chore(Field): move disabled from attrs to props (#5590)

This commit is contained in:
陈嘉涵 2020-01-16 19:56:12 +08:00
parent 16597562f0
commit 64451eaaee

View File

@ -15,6 +15,7 @@ export default createComponent({
props: { props: {
...cellProps, ...cellProps,
error: Boolean, error: Boolean,
disabled: Boolean,
readonly: Boolean, readonly: Boolean,
autosize: [Boolean, Object], autosize: [Boolean, Object],
leftIcon: String, leftIcon: String,
@ -232,6 +233,7 @@ export default createComponent({
}, },
attrs: { attrs: {
...this.$attrs, ...this.$attrs,
disabled: this.disabled,
readonly: this.readonly readonly: this.readonly
}, },
on: this.listeners, on: this.listeners,