Bug Type: Component
Environment
- Vue Version:
3.3.4
- Element Plus Version:
2.3.9
- Browser / OS:
*
- Build Tool:
Vite
Reproduction
Related Component
el-autocomplete
Reproduction Link
Link
Steps to reproduce
https://github.com/element-plus/element-plus/blob/665cc59b1968249b99fdef632993c9ea927e2dab/packages/components/autocomplete/src/autocomplete.ts#L31C17-L31C22
https://element-plus.org/zh-CN/component/autocomplete.html#attributes
未定义 placeholder prop
What is Expected?
.
What is actually happening?
.
Additional comments
(empty)
4条答案
按热度按时间k10s72fa1#
placeholder
is a native attribute that is passed directly toinput
via attrs.element-plus/packages/components/autocomplete/src/autocomplete.vue
Line 31 in 665cc59
| | v-bind="attrs" |
kadbb4592#
placeholder
is a native attribute that is passed directly toinput
via attrs.element-plus/packages/components/autocomplete/src/autocomplete.vue
Line 31 in 665cc59
| | v-bind="attrs" |
typescript and IDE cannot recognize it
yk9xbfzb3#
It is normal in vscode, if you are using webstrom, maybe you can refer to this comment.
kmbjn2e34#
It is normal in vscode, if you are using webstrom, maybe you can refer to this comment.
It doesn't work. I tried both Volar and TS. Are there any other solutions?