Button support global size

This commit is contained in:
梁灏 2018-06-28 11:52:37 +08:00
parent 517917a2ad
commit 486116265d
2 changed files with 5 additions and 1 deletions

View file

@ -12,7 +12,8 @@ import locale from '../src/locale/lang/zh-CN';
Vue.use(VueRouter);
Vue.use(iView, {
locale,
transfer: true
transfer: true,
size: 'small'
});
// 开启debug模式

View file

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