Explorar o código

fix: ElTree 和 <el-tree>标签冲突

wanggaokun hai 1 mes
pai
achega
d2826fc43b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/components/TreeFilter/index.vue

+ 2 - 2
src/components/TreeFilter/index.vue

@@ -41,7 +41,7 @@
 </template>
 
 <script setup lang="ts" name="OrgTree">
-import { ElTree } from 'element-plus'
+import { ElTree as ElTreeType } from 'element-plus'
 
 // 接收父组件参数并设置默认值
 interface OrgTreeProps {
@@ -68,7 +68,7 @@ const defaultProps = {
   label: props.label
 }
 
-const treeRef = ref<InstanceType<typeof ElTree>>()
+const treeRef = ref<InstanceType<typeof ElTreeType>>()
 const treeData = ref<{ [key: string]: any }[]>([])
 const treeAllData = ref<{ [key: string]: any }[]>([])