Commit a7e1c2d66b232dcfb24ef03ce285c144ff18ba91
1 parent
20cfa1b6
Cascader support global setting
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
src/components/cascader/cascader.vue
... | ... | @@ -97,7 +97,10 @@ |
97 | 97 | }, |
98 | 98 | size: { |
99 | 99 | validator (value) { |
100 | - return oneOf(value, ['small', 'large']); | |
100 | + return oneOf(value, ['small', 'large', 'default']); | |
101 | + }, | |
102 | + default () { | |
103 | + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; | |
101 | 104 | } |
102 | 105 | }, |
103 | 106 | trigger: { |
... | ... | @@ -128,7 +131,9 @@ |
128 | 131 | }, |
129 | 132 | transfer: { |
130 | 133 | type: Boolean, |
131 | - default: false | |
134 | + default () { | |
135 | + return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; | |
136 | + } | |
132 | 137 | }, |
133 | 138 | name: { |
134 | 139 | type: String | ... | ... |