antvis / S2

⚡️ A practical visualization library for tabular analysis.

Home Page:https://s2.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🙏随时插入行、列,删除行列

0obuwawao0 opened this issue · comments

🏷 Version

Package Version
@antv/s2 1.54.7
@antv/s2-react -
@antv/s2-vue -

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

希望像excel一样,随时在数据中间插入行 和 列,删除某行 或 某列,插入后的行或列,都能参与新的编辑,比如 合并 插入图片 编辑等。

🏞 What problem does this feature solve

一个像excel一样的表格,用于排座位类的需求,需要灵活的添加行列。

🧐 Suggest the API

name type default description
insertRow(rowIndex/id) - - 传入当前行的index或id在当前行的下方插入新的空行
insertCol(colIndex/id) - - 传入当前列的index或id在当前列的右方插入新的空列
deleteCol(colIndex/id) - - 传入当前列的index或id在删除当前列