Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

[P2] RowActions 行菜单 + BulkActions 批量操作栏 #751

Closed

Description

@hotlong

背景

Parent Issue: #736

Spec rowActions: string[] 和 bulkActions: string[] 已定义,ObjectUI 类型已存在但无 UI 渲染。

目标

  1. RowActions:每行末尾渲染 "..." 操作下拉菜单,菜单项由 rowActions 配置
  2. BulkActions:多选行后在 toolbar 下方显示批量操作栏,操作项由 bulkActions 配置

技术要点

  • packages/plugin-grid/src/ObjectGrid.tsx — 添加 action 列 + 批量操作栏
  • packages/plugin-list/src/ListView.tsx L335 — 已有 selectedRows state

改动范围

  • packages/plugin-grid/src/components/RowActionMenu.tsx — 新增行菜单组件
  • packages/plugin-grid/src/components/BulkActionBar.tsx — 新增批量操作栏
  • packages/plugin-grid/src/ObjectGrid.tsx — 集成行菜单和批量栏
  • packages/plugin-list/src/ListView.tsx — 传递 rowActions/bulkActions 到子视图

验收标准

  • Grid 每行末尾显示 "..." 按钮
  • 点击展开下拉菜单,包含 rowActions 配置的操作项
  • 多选后 toolbar 下方出现 "N selected" + 批量操作按钮
  • 批量操作按钮触发对应 action
  • 所有新增代码有对应单元测试
  • pnpm test 全部通过
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions