设备监控
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
</template>
|
||||
</el-input>
|
||||
<el-tree
|
||||
style="flex: 1"
|
||||
style="flex: 1;overflow: auto;"
|
||||
ref="treeRef"
|
||||
:props="defaultProps"
|
||||
v-bind="$attrs"
|
||||
highlight-current
|
||||
default-expand-all
|
||||
:filter-node-method="filterNode"
|
||||
node-key="id"
|
||||
>
|
||||
<template #default="{ node, data }">
|
||||
<span class="custom-tree-node">
|
||||
@@ -43,6 +44,7 @@ const filterNode = (value: string, data: any) => {
|
||||
if (!value) return true
|
||||
return data.name.includes(value)
|
||||
}
|
||||
defineExpose({ treeRef })
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.cn-tree {
|
||||
|
||||
Reference in New Issue
Block a user