本帖最后由 spreadjs666 于 2024-7-9 15:24 编辑
如示例使用cmd粘贴多选区不生效
- window.spread.commandManager().execute({
- cmd: "clipboardPaste",
- sheetName: 'Sheet5',
- fromSheet: sheet,
- fromRanges: [
- {
- "row": 7,
- "col": 2,
- "rowCount": 2,
- "colCount": 1
- },
- {
- "row": 10,
- "col": 2,
- "rowCount": 1,
- "colCount": 1
- }
- ],
- pastedRanges: sheet.getSelections(),
- isCutting: false,
- pasteOption: GC.Spread.Sheets.ClipboardPasteOptions.all
- });
复制代码
应用场景:筛选后粘贴,使用cmd自行实现,不生效
|