mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
feat:用户选择组件添加禁用选项
This commit is contained in:
parent
4a027cec20
commit
142de587e4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user