vue组件
远在北方的鬼
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Vuex中getters对象的使用
1.getters相当于组件中的computed计算属性 2.不能直接在dom元素中使用 3.可在组件的computed中调用 4.state中的数据,若想实现双向绑定也得在computed中调用 computed:{ num(){ return this.$store.state.num }, count(){ return this.$store.getters.co...原创 2019-12-22 15:41:50 · 701 阅读 · 0 评论 -
vue组件暴露和.js文件暴露接口
1、将同一类型的组件放在一个文件夹下 2、在此文件夹下创建一个index.js 3、在index.js中导入组件,并把他们暴露出去 1、写法一 import studentCourse1 from './studentCourse.vue' import studentInfo1 from './studentInfo.vue' export var studentCourse=stu...原创 2019-09-12 14:34:49 · 5671 阅读 · 1 评论
分享