fixed some bugs

fixed some bugs
This commit is contained in:
梁灏 2016-10-28 18:27:04 +08:00
parent 8a3bad748c
commit 4b7138b97f
6 changed files with 28 additions and 27 deletions

View file

@ -100,14 +100,14 @@
computed: {
classes () {
return [
prefixCls + '',
`${prefixCls}`,
{
[prefixCls + '-visible']: this.visible,
[prefixCls + '-disabled']: this.disabled,
[prefixCls + '-multiple']: this.multiple,
[prefixCls + '-single']: !this.multiple,
[prefixCls + '-show-clear']: this.showCloseIcon,
[prefixCls + '-${this.size}']: !!this.size
[`${prefixCls}-visible`]: this.visible,
[`${prefixCls}-disabled`]: this.disabled,
[`${prefixCls}-multiple`]: this.multiple,
[`${prefixCls}-single`]: !this.multiple,
[`${prefixCls}-show-clear`]: this.showCloseIcon,
[`${prefixCls}-${this.size}`]: !!this.size
}
]
},
@ -136,7 +136,7 @@
if (this.showPlaceholder) {
style.width = '100%';
} else {
style.width = '${this.inputLength}px';
style.width = `${this.inputLength}px`;
}
}