Update Button
This commit is contained in:
parent
dec9ae104d
commit
381417a806
2 changed files with 5 additions and 2 deletions
|
@ -14,6 +14,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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
shape: {
|
shape: {
|
||||||
|
|
|
@ -86,11 +86,11 @@
|
||||||
classes () {
|
classes () {
|
||||||
return [
|
return [
|
||||||
`${prefixCls}`,
|
`${prefixCls}`,
|
||||||
|
`${prefixCls}-${this.type}`,
|
||||||
{
|
{
|
||||||
[`${prefixCls}-${this.type}`]: !!this.type,
|
|
||||||
[`${prefixCls}-long`]: this.long,
|
[`${prefixCls}-long`]: this.long,
|
||||||
[`${prefixCls}-${this.shape}`]: !!this.shape,
|
[`${prefixCls}-${this.shape}`]: !!this.shape,
|
||||||
[`${prefixCls}-${this.size}`]: !!this.size,
|
[`${prefixCls}-${this.size}`]: this.size !== 'default',
|
||||||
[`${prefixCls}-loading`]: this.loading != null && this.loading,
|
[`${prefixCls}-loading`]: this.loading != null && this.loading,
|
||||||
[`${prefixCls}-icon-only`]: !this.showSlot && (!!this.icon || !!this.customIcon || this.loading),
|
[`${prefixCls}-icon-only`]: !this.showSlot && (!!this.icon || !!this.customIcon || this.loading),
|
||||||
[`${prefixCls}-ghost`]: this.ghost
|
[`${prefixCls}-ghost`]: this.ghost
|
||||||
|
|
Loading…
Add table
Reference in a new issue