Commit 645d482feeb57f37379b5774540a496d69e960a6
1 parent
22111588
Table support global setting
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/components/table/table.vue
@@ -130,6 +130,9 @@ | @@ -130,6 +130,9 @@ | ||
130 | size: { | 130 | size: { |
131 | validator (value) { | 131 | validator (value) { |
132 | return oneOf(value, ['small', 'large', 'default']); | 132 | return oneOf(value, ['small', 'large', 'default']); |
133 | + }, | ||
134 | + default () { | ||
135 | + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; | ||
133 | } | 136 | } |
134 | }, | 137 | }, |
135 | width: { | 138 | width: { |