你可以使用如下代码来做到:
- var oldExe = spread.commandManager().getCommand('fill').execute;
- spread.commandManager().getCommand('fill').execute = function (workbook, options, isUndo) {
- options.autoFillType = GC.Spread.Sheets.Fill.FillType.direction;
- oldExe.call(this, workbook, options, isUndo)
- }
复制代码
这样会把拖拽填充的类型锁死在复制上 |