|
@@ -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 }[]>([])
|
|
|
|