feat:用户选择组件添加禁用选项

This commit is contained in:
weifashi
2023-07-31 09:53:03 +08:00
parent 4a027cec20
commit 142de587e4

View File

@@ -252,6 +252,12 @@ export default {
default: false
},
// 是否禁用
disable: {
type: Boolean,
default: false
},
// 提交前的回调
beforeSubmit: Function
},
@@ -582,6 +588,9 @@ export default {
},
onSelection() {
if(this.disable){
return
}
this.$nextTick(_ => {
this.selects = $A.cloneJSON(this.values)
this.showModal = true