CRUD 组件多选事件缺少数据
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
问题1、CRUD2 多选默认渲染的 renderSelection renderTag 样式错乱,见图1
Tag 样式都是在 `.cxd-Crud` 下的,`CRUD2` 添加外部样式 `.cxd-Crud` 目前可临时解决
问题2、CRUD2 renderSelection 没有判断数量使用 TooltipWrapper,见图2
问题3、CRUD或者CRUD2 renderSelection 通过Tag删除选中项无法触发 onSelect
问题4、CRUD或者CRUD2 开启了 keepItemSelectionOnPageChange onSelect函数返回的 SelectedItems 只有当前页数据
问题5、CRUD或者CRUD2 没有 updateSelectData,无法更新数据域中的 SelectedItems
#### 截图或视频:

图1

图2
#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
sdk
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
最新版
3. 粘贴有问题的完整 `amis schema` 代码:
4. 操作步骤
CRUD 或 CRUD2 开启 keepItemSelectionOnPageChange 即可复现
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the CRUD and CRUD2 components' renderSelection behavior, especially when keepItemSelectionOnPageChange is enabled, and reproduce the issue through the SDK. Verify the five reported areas: selection styling and tooltip behavior, onSelect after Tag deletion, selected items across pages, and updating SelectedItems in the data domain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100