Open co2color opened 4 months ago
useSelect.ts
const tagStyle = computed(() => {
const gapWidth = getGapWidth()
const maxWidth =
collapseItemRef.value && props.maxCollapseTags === 1
? states.selectionWidth - states.collapseItemWidth - gapWidth
: states.selectionWidth
return { maxWidth: `${maxWidth}px` }
})
可能是这儿set错了
Bug Type:
Component
Environment
3.4.29
2.7.5
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Vite
Reproduction
Related Component
el-select
el-dialog
Reproduction Link
Element Plus Playground
Steps to reproduce
What is Expected?
打开dialog后,select组件正常显示所选label
What is actually happening?
打开dialog后,select组件 无法 正常显示所选label
Additional comments
.el-selectselection.el-selectselected-item.el-tag : 该span标签会动态设置css [style="max-width: px;"] ,可能是设置出错导致的?