feat(input-table): headerToolbar 透传为底层 table actions(editGrid 添加按钮落表头工具栏)
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -41,3 +41,7 @@ revision.json
|
|||||||
|
|
||||||
!/.vscode/iconConfig.json
|
!/.vscode/iconConfig.json
|
||||||
publish.sh
|
publish.sh
|
||||||
|
|
||||||
|
# OMC 工具临时目录,勿入库
|
||||||
|
.omc/
|
||||||
|
**/.omc/
|
||||||
|
|||||||
@@ -2015,7 +2015,10 @@ export default class FormTable<
|
|||||||
autoFillHeight,
|
autoFillHeight,
|
||||||
tableContentClassName,
|
tableContentClassName,
|
||||||
onEvent,
|
onEvent,
|
||||||
showIndex
|
showIndex,
|
||||||
|
// 透传 headerToolbar 为底层 table 的 actions:Table.renderActions('header') 会把它与列切换 ⊞ 图标
|
||||||
|
// 并排渲染在表头工具栏,使 input-table(editGrid)的「添加」按钮落到与普通列表 CRUD 一致的工具栏位置。
|
||||||
|
actions: (this.props as any).headerToolbar
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ref: this.tableRef,
|
ref: this.tableRef,
|
||||||
|
|||||||
Reference in New Issue
Block a user