Table support global setting

This commit is contained in:
梁灏 2018-06-28 14:27:03 +08:00
parent 2211158897
commit 645d482fee

View file

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