|
@@ -3,6 +3,7 @@
|
|
|
import {useCompRef} from "@/utils/useCompRef";
|
|
|
import {ElIcon, ElTreeV2, TreeNode} from "element-plus";
|
|
|
import {computed, h, watch} from "vue";
|
|
|
+// @ts-ignore
|
|
|
import {Folder, Document} from "@element-plus/icons-vue";
|
|
|
import XEUtils from "xe-utils";
|
|
|
|
|
@@ -18,6 +19,7 @@ const defaultProps = {
|
|
|
}
|
|
|
|
|
|
watch(() => props.modelValue, () => {
|
|
|
+ // @ts-ignore
|
|
|
treeRef.value!.filter(props.modelValue)
|
|
|
})
|
|
|
|
|
@@ -25,7 +27,7 @@ const click = (node) => {
|
|
|
emits('nodeClick', node)
|
|
|
}
|
|
|
|
|
|
-const filterMethod = (query: string, node: TreeNode) => {
|
|
|
+const filterMethod = (query: string, node: { name: string }) => {
|
|
|
return node.name!.includes(query)
|
|
|
}
|
|
|
|