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