mirror of
https://github.com/youzan/vant.git
synced 2025-12-25 02:02:01 +08:00
chore(Field): move placeholder from attrs to props (#5598)
This commit is contained in:
@@ -27,6 +27,7 @@ export default createComponent({
|
||||
labelClass: null,
|
||||
labelAlign: String,
|
||||
inputAlign: String,
|
||||
placeholder: String,
|
||||
errorMessage: String,
|
||||
errorMessageAlign: String,
|
||||
showWordLimit: Boolean,
|
||||
@@ -234,7 +235,8 @@ export default createComponent({
|
||||
attrs: {
|
||||
...this.$attrs,
|
||||
disabled: this.disabled,
|
||||
readonly: this.readonly
|
||||
readonly: this.readonly,
|
||||
placeholder: this.placeholder
|
||||
},
|
||||
on: this.listeners,
|
||||
// add model directive to skip IME composition
|
||||
|
||||
Reference in New Issue
Block a user