摘要: 使用elementPlus中的Tree组件时,无子级的节点左边显示箭头,如下图 <el-tree :data="state.permissionTree" show-checkbox :props="state.defaultProps" node-key="permission" :default 阅读全文
posted @ 2023-03-15 15:28 小鱼儿-xy 阅读(2504) 评论(0) 推荐(0)
摘要: 在vue2中全局变量是prototype 在vue3中使用globalProperties 比如引入elementPlus的组件作为全局变量 1、在main.ts中声明 import * as ElIcons from '@element-plus/icons' import * as Elemen 阅读全文
posted @ 2023-03-05 12:21 小鱼儿-xy 阅读(3492) 评论(0) 推荐(0)
摘要: 当使用组合式API编写Vue组件时,您可能希望useStore返回类型化store。为了useStore能正确返回类型化store,必须执行以下步骤: 定义类型化的InjectionKey。 将store安装到Vue应用时提供类型化的Injectionkey。 将类型化的InjectionKey传给 阅读全文
posted @ 2023-02-26 16:49 小鱼儿-xy 阅读(357) 评论(0) 推荐(0)