element-plus
element-plus copied to clipboard
[Component] [select-v2] select-v2 选项文字显示不全
Bug Type: Component
Environment
- Vue Version:
3.2.45
- Element Plus Version:
2.2.21
- Browser / OS:
Chrome 107.0.0.0
- Build Tool:
Vite
Reproduction
Related Component
-
el-select-v2
Reproduction Link
Steps to reproduce

What is Expected?
将选项文字显示完整,或提供title等方式
What is actually happening?
选项文字显示不完整
Additional comments
(empty)
@1120040377
是select-v2哦,不是select,已添加示例
建议与select组件一样 自动宽度 而不是省略。或者增加选项。
这个问题影响还是很大的(用户天天吐槽下拉框内容全都长一样,看不到完整文字,没法选择),官方想办法解决一下吧,el-select显示是没问题的,但无法承载大量数据。
同问,建议添加一个是否省略的内容的开关
<template #default="{ item }">
<div :title="item ">
<p>
{{ item }}
</p>
</div>
</template>
``` title 属性了解一下 悬停可以解决这个问题