feat(input-table): headerToolbar 透传为底层 table actions(editGrid 添加按钮落表头工具栏)
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:
2026-06-16 22:09:27 +08:00
parent 8c8e4247a9
commit 2b1c48c0d6
2 changed files with 8 additions and 1 deletions

4
.gitignore vendored
View File

@@ -41,3 +41,7 @@ revision.json
!/.vscode/iconConfig.json !/.vscode/iconConfig.json
publish.sh publish.sh
# OMC 工具临时目录,勿入库
.omc/
**/.omc/

View File

@@ -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,