baidu / baidu/amis

建议扩展Tabs和Action组件,实现多任务平台功能

Open
#2,467 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 是否关联于某个问题吗:
多任务工作平台,在同一个页面中来回切换不同的工作任务。
当前要做不同任务只能在不同页面、不同窗口之间来回切换,有时在执行当前任务时想回头看看前几步操作中的内容或数据,只能切回去或者新开一个窗口。

#### 预期的解决方案:
使用Tabs组件,结合Action动态生成Tab选项卡。
比如点击链接,在tabs组件中新增一个tab A做A公司的管理,再点按钮新增一个tab B做B公司的管理…… 在编辑B公司属性的时候,可以回过头切换到tab A参考一下A公司的属性,再切回B公司继续处理。同时给Tab页增加关闭按钮,处理完毕之后可以关闭每个Tab。如此可以做成一个多任务工作平台。

#### 其他可接受方案:
当前有两种方案:
1、用form弹窗完成A、B任务切换,但由于同时只能弹出一个框,在弹窗A没法看弹窗B的内容,只能把A关掉,再弹出B,很麻烦;
2、把多任务A、B写硬编码死在Tabs中,这样失去了灵活性,如果多任务本来就是动态生成的,这种硬编码方式就无效了。

#### 任何附加信息:
请添加任何可以补充说明上述问题的材料,例如图片或视频等...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing Tabs and Action component entry points and their current tests or examples. Define how dynamically created tabs are added, switched, and closed, then verify the multi-task workflow with coverage for separate A and B tabs; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.