Skip to content

mutation的插入单元格 #15

Description

@wlchair
[types.INSERT_CELL](state, {
		currentSheet,
		cells
	}) {
		let currentList = state[currentSheet];
		for (let i = 0, len = cells.length; i < len; i++) {
			currentList.push(cells[i]);
		}
	}

什么情况下会出现一次性插入很多单元格?

即使:支持一次性插入多个单元格,应该是Object和Array两种形式
通过传入的对象,自行控制,不是通过参数形式控制:[cells]

同时:[types.UPDATE_CELL] 这个方法为什么就不支持批量修改呢?
如果我是批量把单元格的背景颜色修改了呢 ??
是不是应该支持批量操作

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions