MultiRowInput.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!-- -->
  2. <template>
  3. <div class="Big-Book-prev-Textdes" v-if="curQue">
  4. <div v-for="(item, index) in curQue.con" :key="item.con + index">
  5. <p v-if="item.annotation">{{ item.annotation }}</p>
  6. <el-input style="width: 600px" v-model="item.con"></el-input>
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. components: {},
  13. props: ["curQue"],
  14. data() {
  15. return {};
  16. },
  17. computed: {},
  18. watch: {},
  19. //方法集合
  20. methods: {},
  21. //生命周期 - 创建完成(可以访问当前this实例)
  22. created() {
  23. console.log(this.curQue);
  24. },
  25. //生命周期 - 挂载完成(可以访问DOM元素)
  26. mounted() {},
  27. beforeCreate() {}, //生命周期 - 创建之前
  28. beforeMount() {}, //生命周期 - 挂载之前
  29. beforeUpdate() {}, //生命周期 - 更新之前
  30. updated() {}, //生命周期 - 更新之后
  31. beforeDestroy() {}, //生命周期 - 销毁之前
  32. destroyed() {}, //生命周期 - 销毁完成
  33. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  34. };
  35. </script>
  36. <style lang='scss' scoped>
  37. //@import url(); 引入公共css类
  38. .Big-Book-prev-Textdes {
  39. > div {
  40. p {
  41. color: #000000;
  42. opacity: 0.4;
  43. }
  44. }
  45. }
  46. </style>