mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[Improvement] add checkbox labelDisabled test case (#650)
This commit is contained in:
@@ -100,8 +100,8 @@ export default create({
|
||||
},
|
||||
|
||||
methods: {
|
||||
onClick(flag) {
|
||||
if (!this.isDisabled && (flag !== 'label' || (flag === 'label' && !this.labelDisabled))) {
|
||||
onClick(target) {
|
||||
if (!this.isDisabled && !(target === 'label' && this.labelDisabled)) {
|
||||
this.currentValue = !this.currentValue;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user