Switch support global setting
This commit is contained in:
parent
2968067efc
commit
2211158897
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@
|
||||||
size: {
|
size: {
|
||||||
validator (value) {
|
validator (value) {
|
||||||
return oneOf(value, ['large', 'small', 'default']);
|
return oneOf(value, ['large', 'small', 'default']);
|
||||||
|
},
|
||||||
|
default () {
|
||||||
|
return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue