Checkbox support global setting

This commit is contained in:
梁灏 2018-06-28 14:19:49 +08:00
parent 35f7a4ae12
commit 2968067efc
2 changed files with 6 additions and 0 deletions

View file

@ -22,6 +22,9 @@
size: {
validator (value) {
return oneOf(value, ['small', 'large', 'default']);
},
default () {
return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
}
}
},

View file

@ -63,6 +63,9 @@
size: {
validator (value) {
return oneOf(value, ['small', 'large', 'default']);
},
default () {
return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
}
},
name: {