更新
This commit is contained in:
@@ -45,7 +45,7 @@ export default {
|
||||
"config.echoId": {
|
||||
handler(nval, oval) {
|
||||
this.list = [];
|
||||
this.isDisabled = !!this.config.isDisabled;
|
||||
// this.isDisabled = !!this.config.isDisabled;
|
||||
if (nval) {
|
||||
let resultName = this.config.echoName.replace(/\s*/g, "");
|
||||
if (!resultName) return;
|
||||
@@ -55,6 +55,17 @@ export default {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
"config.isDisabled": {
|
||||
handler(nval, oval) {
|
||||
let type = this.$utils.typeJudgment(nval);
|
||||
console.log("type", type);
|
||||
if (type.includes("Boolean") || type.includes("String")) {
|
||||
this.isDisabled = !!this.config.isDisabled;
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 远程搜索
|
||||
@@ -94,7 +105,7 @@ export default {
|
||||
}
|
||||
},
|
||||
change(val) {
|
||||
this.$emit("change", val);
|
||||
this.$emit("change", val, this.list);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user