baidu / baidu/amis

建议:如果可以的话,希望能对InputTable组件功能进行增强

Open
#3,960 1 comment 7 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

感谢amis开发团队做出这么好的项目。
如果可以的话,希望开发团队能对InputTable组件进行功能增强,谢谢!

背景:
我们在开发一个管理系统,前端使用的是amis。
很多的应用场景是对单据的管理。单据分为单据头和单据体(单据体为单据的明细信息,例如一个订单的商品信息)。单据体使用的是InputTable。

希望增强的建议:
场景1:
根据InputTable其中某两列或者几列使用Formula组件进行数学运算,并将运算的结果赋值给InputTable的某一列;

场景2:
汇总(SUM)InputTable某一列的值,并将汇总的值赋值给单据头的某个组件;

场景3:
当InputTable列的数量比较多的时候,需要将当前行以普通表单的排版进行编辑;
例如:在点击InputTable行编辑按钮时,可以打开一个Dialog或者其他组件,这个组件的表单以普通表单的模式进行排版,且表单控件与InputTable列相对应,以便编辑InputTable某一行的数据。

场景4:
需要对InputTable某一行进行单选或者多选,并在操作整个表单时,能获取到选中的行相关信息;

场景5:
复制与InputTable列对应的Excel数据,可以进行批量地粘贴,以便快速填充InputTable数据。
这个功能实现起来可能有点难度,如果可以支持,那么或许可以成为amis的一个很好的核心竞争力,毕竟当前很少有(或者根本没有)前端InputTable组件能支持这个场景。

场景6:
需要能方便地对InputTable的某一列进行批量填充或者重置;

场景7:
单据需要打印,希望能已更方便的方式支持打印样式和排版;

以上建议希望团队能采纳,谢谢

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the InputTable component and its existing Formula, Dialog, row-selection, paste, bulk-fill, and print capabilities. The request covers seven independent enhancements, so first narrow it to one scenario and identify the relevant component entry points and tests. Done should be defined by a focused scope with clear behavior and acceptance criteria.

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
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.