element-plus [Component] [autocomplete] Autocomplete 没有 placeholder prop

bq3bfh9z  于 6个月前  发布在  其他
关注(0)|答案(4)|浏览(62)

Bug Type: Component

Environment

  • Vue Version: 3.3.4
  • Element Plus Version: 2.3.9
  • Browser / OS: *
  • Build Tool: Vite

Reproduction

  • el-autocomplete

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)

k10s72fa

k10s72fa1#

placeholder is a native attribute that is passed directly to input via attrs.
element-plus/packages/components/autocomplete/src/autocomplete.vue

Line 31 in 665cc59

| | v-bind="attrs" |

kadbb459

kadbb4592#

placeholder is a native attribute that is passed directly to input via attrs.

element-plus/packages/components/autocomplete/src/autocomplete.vue

Line 31 in 665cc59

| | v-bind="attrs" |

typescript and IDE cannot recognize it

yk9xbfzb

yk9xbfzb3#

It is normal in vscode, if you are using webstrom, maybe you can refer to this comment.

kmbjn2e3

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?

相关问题