增加placeholder

master
chenjiajian 2023-04-27 09:53:35 +08:00
parent 55b2c910bd
commit bcb294a135
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class TextArea extends Component {
attribute: false attribute: false
}, },
type: '', type: '',
placeholder: '',
autofocus: false, autofocus: false,
readOnly: false, readOnly: false,
disabled: false, disabled: false,
@ -217,6 +218,7 @@ class TextArea extends Component {
:value=${this.value} :value=${this.value}
ref="textarea" ref="textarea"
spellcheck="false" spellcheck="false"
placeholder=${this.placeholder}
readonly=${this.readOnly} readonly=${this.readOnly}
disabled=${this.disabled} disabled=${this.disabled}
maxlength=${this.maxlength} maxlength=${this.maxlength}