ant-design / ant-design/pro-components

🐛[BUG]valueType等于select,并且 mode 是 multiple时,ellipsis不生效

Open
#8,071 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述
valueType等于select,并且 mode 是 multiple时, ellipsis不生效

### 📷 复现步骤
在使用ProTable 时,
Columns 配置
[{
title: '签章',
width: 180,
dataIndex: 'sealId',
key: 'sealId',
ellipsis: true,
fieldProps: {
mode: 'multiple',
},
valueType: 'select',
readonly: true,
}]

### 🏞 期望结果
在ProTable 的只读状态下,使用multiple模式的select,ellipsis能够生效将文本省略

### 💻 复现代码

### © 版本信息

- ProComponents 版本: [e.g. 2.6.44]
- umi 版本
- 浏览器环境 Chrome 120.0.6099.201
- 开发环境 [e.g. windows]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start at the ProTable read-only rendering path for a select with fieldProps.mode set to multiple, and inspect how the ellipsis column setting is applied. Reproduce the reported configuration in Chrome and verify that long selected text is visibly truncated when the issue is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.