fix Field test cases

This commit is contained in:
陈嘉涵
2019-01-21 22:39:34 +08:00
parent 79a816b3b1
commit cfc3e7df62
9 changed files with 29 additions and 30 deletions

View File

@@ -170,13 +170,12 @@ export default sfc({
},
attrs: {
...this.$attrs,
type,
readonly: this.readonly
},
on: this.listeners
};
const Input = type === 'textarea' ? <textarea {...inputProps} /> : <input {...inputProps} />;
const Input = type === 'textarea' ? <textarea {...inputProps} /> : <input type={type} {...inputProps} />;
return (
<Cell