@@ -50,6 +50,7 @@
<a-select
v-model="model.pid"
show-search
+ :filter-option="filterOption"
placeholder="请选择装置"
@change="pidChange"
>
@@ -518,6 +519,12 @@
handleCancel () {
this.close()
},
+ // 搜索
+ filterOption(input, option) {
+ return (
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ );
+ },
}
</script>