@canvas-components/react-list-table 0.3.73 → 0.3.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +1256 -56
- package/dist/index.js +1259 -59
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -498,6 +498,6 @@ import {
|
|
|
498
498
|
|
|
499
499
|
调用 `tableRef.current?.setSelectedRowKeys(["1", "2", "3"])` 可以主动设置行高亮,无需配置 `rowSelection`,也不会新增 checkbox / radio 列。配置 `rowSelection` 时同时同步勾选并触发 `onChange`;单选模式只保留第一个 key。传入空数组等同清空,普通配置更新会保留未受控的选中 key。
|
|
500
500
|
|
|
501
|
-
`onRow(record, rowIndex)` 可返回 `style: { backgroundColor, color }` 实现受控业务高亮;建议用 `useCallback` 维护依赖,业务选中变化时会刷新 Canvas
|
|
501
|
+
`onRow(record, rowIndex)` 可返回 `style: { backgroundColor, color }` 实现受控业务高亮;建议用 `useCallback` 维护依赖,业务选中变化时会刷新 Canvas。业务权限与动态条件使用 `hidden`(不缓存),用户列设置使用 `visible`(默认 true,按 storageKey 缓存)。实际显示为 `hidden !== true && visible !== false`;业务条件恢复时保留原用户偏好。详见 [业务显隐与用户列偏好](../list-table/docs/column-visibility.md)。
|
|
502
502
|
|
|
503
503
|
禁用的原生按钮内容(`type: "button", disabled: true`)不会触发内容、单元格、行或列的点击回调,也不会改变活动单元格和鼠标选区;同一单元格内其他启用按钮仍可独立交互。
|