TinyModule.vue 1.2 KB

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