1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!-- -->
- <template>
- <div class="">
- <template v-if="context">
- <!-- <Question :context="context" @getData="getData"></Question> -->
- </template>
- </div>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {
- context: {},
- };
- },
- computed: {},
- watch: {},
- //方法集合
- methods: {
- getData(data) {
- console.log(data);
- },
- },
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {},
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {},
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang='scss' scoped>
- //@import url(); 引入公共css类
- </style>
|