chore: add trailingComma
This commit is contained in:
+15
-15
@@ -33,20 +33,20 @@ export default createComponent({
|
||||
showWordLimit: Boolean,
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
}
|
||||
default: 'text',
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
focused: false
|
||||
focused: false,
|
||||
};
|
||||
},
|
||||
|
||||
watch: {
|
||||
value() {
|
||||
this.$nextTick(this.adjustSize);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
@@ -71,7 +71,7 @@ export default createComponent({
|
||||
input: this.onInput,
|
||||
keypress: this.onKeypress,
|
||||
focus: this.onFocus,
|
||||
blur: this.onBlur
|
||||
blur: this.onBlur,
|
||||
};
|
||||
|
||||
delete listeners.click;
|
||||
@@ -84,7 +84,7 @@ export default createComponent({
|
||||
if (labelWidth) {
|
||||
return { width: addUnit(labelWidth) };
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -230,22 +230,22 @@ export default createComponent({
|
||||
ref: 'input',
|
||||
class: bem('control', this.inputAlign),
|
||||
domProps: {
|
||||
value: this.value
|
||||
value: this.value,
|
||||
},
|
||||
attrs: {
|
||||
...this.$attrs,
|
||||
disabled: this.disabled,
|
||||
readonly: this.readonly,
|
||||
placeholder: this.placeholder
|
||||
placeholder: this.placeholder,
|
||||
},
|
||||
on: this.listeners,
|
||||
// add model directive to skip IME composition
|
||||
directives: [
|
||||
{
|
||||
name: 'model',
|
||||
value: this.value
|
||||
}
|
||||
]
|
||||
value: this.value,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
if (type === 'textarea') {
|
||||
@@ -306,14 +306,14 @@ export default createComponent({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
render() {
|
||||
const { slots, labelAlign } = this;
|
||||
|
||||
const scopedSlots = {
|
||||
icon: this.genLeftIcon
|
||||
icon: this.genLeftIcon,
|
||||
};
|
||||
|
||||
if (slots('label')) {
|
||||
@@ -336,7 +336,7 @@ export default createComponent({
|
||||
class={bem({
|
||||
error: this.error,
|
||||
[`label-${labelAlign}`]: labelAlign,
|
||||
'min-height': this.type === 'textarea' && !this.autosize
|
||||
'min-height': this.type === 'textarea' && !this.autosize,
|
||||
})}
|
||||
scopedSlots={scopedSlots}
|
||||
onClick={this.onClick}
|
||||
@@ -363,5 +363,5 @@ export default createComponent({
|
||||
)}
|
||||
</Cell>
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user