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 default: false
}, },
//
disable: {
type: Boolean,
default: false
},
// //
beforeSubmit: Function beforeSubmit: Function
}, },
@ -582,6 +588,9 @@ export default {
}, },
onSelection() { onSelection() {
if(this.disable){
return
}
this.$nextTick(_ => { this.$nextTick(_ => {
this.selects = $A.cloneJSON(this.values) this.selects = $A.cloneJSON(this.values)
this.showModal = true this.showModal = true