fix(Field): align center when using input slot

This commit is contained in:
陈嘉涵
2020-02-07 15:40:32 +08:00
parent 9326ad84f8
commit 9d8cf7f8d3
2 changed files with 11 additions and 2 deletions
+5 -1
View File
@@ -263,7 +263,11 @@ export default createComponent({
const inputSlot = this.slots('input');
if (inputSlot) {
return <div class={bem('control', this.inputAlign)}>{inputSlot}</div>;
return (
<div class={bem('control', [this.inputAlign, 'custom'])}>
{inputSlot}
</div>
);
}
const inputProps = {