![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
毛利南
这个作者很懒,什么都没留下…
展开
-
vuex
mapState、mapMutations、mapActionsimport { mapState, mapMutations, mapActions } from 'vuex'computed: mapState(['count', 'count2'])computed: { test: 'test sss', ...mapState(['count', 'count2'])}methods: { ...mapMutations('m1', ['loginMutation'])原创 2020-07-21 13:44:40 · 173 阅读 · 0 评论 -
el-cascader高亮显示上一次的数据
<el-cascader ref="cascader" />this.$refs.cascader.$refs.panel.activePath = []this.$refs.cascader.$refs.panel.calculateCheckedNodePaths()github原创 2020-07-20 16:07:51 · 730 阅读 · 0 评论 -
动态组件:动态加载
<template> <div class="container"> <component :is="userComponentImstance" title="component"/> </div></template><script>export default { name: "userImport", data() { return { isMember: false原创 2020-07-08 10:49:48 · 259 阅读 · 0 评论