This commit is contained in:
xiaozhiyong
2023-02-28 09:22:10 +08:00
parent 51aa12621d
commit 1d0e1bd34e
13 changed files with 443 additions and 1004 deletions

View File

@@ -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);
},
},
};