@zhenliang/sheet 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -136,6 +136,7 @@ export var sideEffectReducer = {
136
136
  }
137
137
  var cellIndex = flatRowColIndex(start, end);
138
138
  var groupMap = groupConfigToGroupMap(groupConfig);
139
+ var count = 0;
139
140
  var copyData = cellIndex.reduce(function (left, _ref3) {
140
141
  var _ref3$row = _ref3.row,
141
142
  row = _ref3$row === void 0 ? 0 : _ref3$row,
@@ -153,6 +154,7 @@ export var sideEffectReducer = {
153
154
  };
154
155
  }
155
156
  }
157
+ count++;
156
158
 
157
159
  // 复制到剪贴板的时候执行 formatter
158
160
  var _data$row$col = data[row][col],
@@ -181,7 +183,7 @@ export var sideEffectReducer = {
181
183
  value: ''
182
184
  });
183
185
  var text = copyData.value;
184
- stringToClipboardData(text, cellIndex.length);
186
+ stringToClipboardData(text, count);
185
187
  },
186
188
  paste: function paste(dispatch, getState) {
187
189
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import EventEmitter from 'events';
2
3
  declare const useEventBus: () => EventEmitter;
3
4
  export { useEventBus };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhenliang/sheet",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",