12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <!-- -->
- <template>
- <div class="Big-Book-prev-Tiny" v-if="curQue">
- <h2 v-if="curQue.title">{{curQue.title}}</h2>
- <div v-html="curQue.con" class="tiny-box"></div>
- </div>
- </template>
- <script>
- export default {
- components: {},
- props: ["curQue"],
- data() {
- return {};
- },
- computed: {},
- watch: {},
- //方法集合
- methods: {},
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {},
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {},
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang='scss' scoped>
- //@import url(); 引入公共css类
- .Big-Book-prev-Tiny{
- width: 100%;
- margin-bottom: 16px;
- h2{
- margin: 16px 0 0;
- font-weight: 500;
- font-size: 16px;
- line-height: 24px;
- color: #000000;
- }
- .tiny-box{
- word-break: break-word;
- }
- }
- </style>
|