Skip to content

feat(table): action 增加 type 配置项,默认 primary (#830)#1004

Closed
wanchun wants to merge 1 commit into
chore/test-infrafrom
fix/issue-830-v2
Closed

feat(table): action 增加 type 配置项,默认 primary (#830)#1004
wanchun wants to merge 1 commit into
chore/test-infrafrom
fix/issue-830-v2

Conversation

@wanchun

@wanchun wanchun commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

修复

FTable action 操作按钮支持 type 配置项(primary / warning / danger 等),默认 primary。

改动

  • components/table/interface.ts —— ActionType 加 type?: Type 字段
  • components/table/components/cell.tsx —— type="link"type={action.type ?? 'primary'}
  • components/table/__tests__/table-action-830.spec.ts —— 3 个行为测试(default / warning / danger)

验证

3/3 vitest passed. 无 lockfile 污染.

Closes #830

@wanchun

wanchun commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Closed as part of v3 rebuild from chore/test-infra. Original v1/v2 PRs being superseded by clean re-implementation (vitest + playwright + docs).

@wanchun wanchun closed this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant