mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Field): move placeholder from attrs to props (#5598)
This commit is contained in:
parent
ea91b92735
commit
1f4e9eec31
@ -27,6 +27,7 @@ export default createComponent({
|
|||||||
labelClass: null,
|
labelClass: null,
|
||||||
labelAlign: String,
|
labelAlign: String,
|
||||||
inputAlign: String,
|
inputAlign: String,
|
||||||
|
placeholder: String,
|
||||||
errorMessage: String,
|
errorMessage: String,
|
||||||
errorMessageAlign: String,
|
errorMessageAlign: String,
|
||||||
showWordLimit: Boolean,
|
showWordLimit: Boolean,
|
||||||
@ -234,7 +235,8 @@ export default createComponent({
|
|||||||
attrs: {
|
attrs: {
|
||||||
...this.$attrs,
|
...this.$attrs,
|
||||||
disabled: this.disabled,
|
disabled: this.disabled,
|
||||||
readonly: this.readonly
|
readonly: this.readonly,
|
||||||
|
placeholder: this.placeholder
|
||||||
},
|
},
|
||||||
on: this.listeners,
|
on: this.listeners,
|
||||||
// add model directive to skip IME composition
|
// add model directive to skip IME composition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user