Commit 645d482feeb57f37379b5774540a496d69e960a6

Authored by 梁灏
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 130 size: {
131 131 validator (value) {
132 132 return oneOf(value, ['small', 'large', 'default']);
  133 + },
  134 + default () {
  135 + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
133 136 }
134 137 },
135 138 width: {
... ...