src/views/other/commonDialog/HighViewScopeDialog.vue
@@ -21,6 +21,7 @@ ref="tree" highlight-current :props="defaultProps" :filter-node-method="filterNode" > </el-tree> </div> @@ -48,6 +49,11 @@ }, components: {}, computed: {}, watch: { searchInput(val) { this.$refs.tree.filter(val) } }, data() { return { dialogWidth: "35%", @@ -129,6 +135,10 @@ methods: { handleClose() { this.editConfig.visible = false }, filterNode(value, data) { if (!value) return true return data.label.indexOf(value) !== -1 } } }