@antv/s2-vue 1.4.0 → 2.0.0-alpha.1

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.
package/lib/index.js CHANGED
@@ -1,27 +1,8 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
22
- var s2 = require("@antv/s2");
23
- var vue = require("vue");
24
- var antDesignVue = require("ant-design-vue");
3
+ const s2 = require("@antv/s2");
4
+ const vue = require("vue");
5
+ const antDesignVue = require("ant-design-vue");
25
6
  const EN_US = {
26
7
  \u9009\u62E9\u5206\u6790\u4FE1\u606F: "Select Analysis Information",
27
8
  \u5207\u6362\u6307\u6807: "Switch indicator",
@@ -115,15 +96,21 @@ const SHEET_COMPONENT_DEFAULT_OPTIONS = {
115
96
  showDefaultHeaderActionIcon: true
116
97
  };
117
98
  const RESIZE_RENDER_DELAY = 200;
118
- const DRILL_DOWN_PRE_CLASS = "s2-drill-down";
119
- const getBaseSheetComponentOptions = (...options) => s2.customMerge(s2.DEFAULT_OPTIONS, SHEET_COMPONENT_DEFAULT_OPTIONS, ...options);
99
+ const DRILL_DOWN_PRE_CLASS = `${s2.S2_PREFIX_CLS}-drill-down`;
100
+ const getBaseSheetComponentOptions = (...options) => {
101
+ return s2.customMerge(
102
+ s2.DEFAULT_OPTIONS,
103
+ SHEET_COMPONENT_DEFAULT_OPTIONS,
104
+ ...options
105
+ );
106
+ };
120
107
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
121
- var freeGlobal$1 = freeGlobal;
108
+ const freeGlobal$1 = freeGlobal;
122
109
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
123
110
  var root = freeGlobal$1 || freeSelf || Function("return this")();
124
- var root$1 = root;
111
+ const root$1 = root;
125
112
  var Symbol$1 = root$1.Symbol;
126
- var Symbol$2 = Symbol$1;
113
+ const Symbol$2 = Symbol$1;
127
114
  var objectProto$f = Object.prototype;
128
115
  var hasOwnProperty$c = objectProto$f.hasOwnProperty;
129
116
  var nativeObjectToString$1 = objectProto$f.toString;
@@ -173,7 +160,7 @@ function arrayMap(array, iteratee) {
173
160
  return result;
174
161
  }
175
162
  var isArray = Array.isArray;
176
- var isArray$1 = isArray;
163
+ const isArray$1 = isArray;
177
164
  var INFINITY$1 = 1 / 0;
178
165
  var symbolProto$2 = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto$2 ? symbolProto$2.toString : void 0;
179
166
  function baseToString(value) {
@@ -239,7 +226,7 @@ function isFunction(value) {
239
226
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
240
227
  }
241
228
  var coreJsData = root$1["__core-js_shared__"];
242
- var coreJsData$1 = coreJsData;
229
+ const coreJsData$1 = coreJsData;
243
230
  var maskSrcKey = function() {
244
231
  var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
245
232
  return uid ? "Symbol(src)_1." + uid : "";
@@ -267,7 +254,9 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
267
254
  var funcProto = Function.prototype, objectProto$d = Object.prototype;
268
255
  var funcToString = funcProto.toString;
269
256
  var hasOwnProperty$b = objectProto$d.hasOwnProperty;
270
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
257
+ var reIsNative = RegExp(
258
+ "^" + funcToString.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
259
+ );
271
260
  function baseIsNative(value) {
272
261
  if (!isObject(value) || isMasked(value)) {
273
262
  return false;
@@ -283,7 +272,7 @@ function getNative(object, key) {
283
272
  return baseIsNative(value) ? value : void 0;
284
273
  }
285
274
  var WeakMap = getNative(root$1, "WeakMap");
286
- var WeakMap$1 = WeakMap;
275
+ const WeakMap$1 = WeakMap;
287
276
  var objectCreate = Object.create;
288
277
  var baseCreate = function() {
289
278
  function object() {
@@ -301,7 +290,7 @@ var baseCreate = function() {
301
290
  return result;
302
291
  };
303
292
  }();
304
- var baseCreate$1 = baseCreate;
293
+ const baseCreate$1 = baseCreate;
305
294
  function copyArray(source, array) {
306
295
  var index2 = -1, length = source.length;
307
296
  array || (array = Array(length));
@@ -318,7 +307,7 @@ var defineProperty = function() {
318
307
  } catch (e) {
319
308
  }
320
309
  }();
321
- var defineProperty$1 = defineProperty;
310
+ const defineProperty$1 = defineProperty;
322
311
  function arrayEach(array, iteratee) {
323
312
  var index2 = -1, length = array == null ? 0 : array.length;
324
313
  while (++index2 < length) {
@@ -407,7 +396,7 @@ var isArguments = baseIsArguments(function() {
407
396
  }()) ? baseIsArguments : function(value) {
408
397
  return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
409
398
  };
410
- var isArguments$1 = isArguments;
399
+ const isArguments$1 = isArguments;
411
400
  function stubFalse() {
412
401
  return false;
413
402
  }
@@ -417,7 +406,7 @@ var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
417
406
  var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
418
407
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
419
408
  var isBuffer = nativeIsBuffer || stubFalse;
420
- var isBuffer$1 = isBuffer;
409
+ const isBuffer$1 = isBuffer;
421
410
  var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$4 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
422
411
  var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
423
412
  var typedArrayTags = {};
@@ -445,10 +434,10 @@ var nodeUtil = function() {
445
434
  } catch (e) {
446
435
  }
447
436
  }();
448
- var nodeUtil$1 = nodeUtil;
437
+ const nodeUtil$1 = nodeUtil;
449
438
  var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
450
439
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
451
- var isTypedArray$1 = isTypedArray;
440
+ const isTypedArray$1 = isTypedArray;
452
441
  var objectProto$9 = Object.prototype;
453
442
  var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
454
443
  function arrayLikeKeys(value, inherited) {
@@ -466,7 +455,7 @@ function overArg(func, transform) {
466
455
  };
467
456
  }
468
457
  var nativeKeys = overArg(Object.keys, Object);
469
- var nativeKeys$1 = nativeKeys;
458
+ const nativeKeys$1 = nativeKeys;
470
459
  var objectProto$8 = Object.prototype;
471
460
  var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
472
461
  function baseKeys(object) {
@@ -522,7 +511,7 @@ function isKey(value, object) {
522
511
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
523
512
  }
524
513
  var nativeCreate = getNative(Object, "create");
525
- var nativeCreate$1 = nativeCreate;
514
+ const nativeCreate$1 = nativeCreate;
526
515
  function hashClear() {
527
516
  this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
528
517
  this.size = 0;
@@ -629,7 +618,7 @@ ListCache.prototype.get = listCacheGet;
629
618
  ListCache.prototype.has = listCacheHas;
630
619
  ListCache.prototype.set = listCacheSet;
631
620
  var Map = getNative(root$1, "Map");
632
- var Map$1 = Map;
621
+ const Map$1 = Map;
633
622
  function mapCacheClear() {
634
623
  this.size = 0;
635
624
  this.__data__ = {
@@ -717,7 +706,7 @@ var stringToPath = memoizeCapped(function(string) {
717
706
  });
718
707
  return result;
719
708
  });
720
- var stringToPath$1 = stringToPath;
709
+ const stringToPath$1 = stringToPath;
721
710
  function toString(value) {
722
711
  return value == null ? "" : baseToString(value);
723
712
  }
@@ -755,7 +744,7 @@ function arrayPush(array, values) {
755
744
  return array;
756
745
  }
757
746
  var getPrototype = overArg(Object.getPrototypeOf, Object);
758
- var getPrototype$1 = getPrototype;
747
+ const getPrototype$1 = getPrototype;
759
748
  var rsAstralRange$1 = "\\ud800-\\udfff", rsComboMarksRange$1 = "\\u0300-\\u036f", reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$1 = "\\u20d0-\\u20ff", rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1, rsVarRange$1 = "\\ufe0e\\ufe0f";
760
749
  var rsZWJ$1 = "\\u200d";
761
750
  var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
@@ -855,7 +844,7 @@ var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
855
844
  return propertyIsEnumerable.call(object, symbol);
856
845
  });
857
846
  };
858
- var getSymbols$1 = getSymbols;
847
+ const getSymbols$1 = getSymbols;
859
848
  function copySymbols(source, object) {
860
849
  return copyObject(source, getSymbols$1(source), object);
861
850
  }
@@ -868,7 +857,7 @@ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
868
857
  }
869
858
  return result;
870
859
  };
871
- var getSymbolsIn$1 = getSymbolsIn;
860
+ const getSymbolsIn$1 = getSymbolsIn;
872
861
  function copySymbolsIn(source, object) {
873
862
  return copyObject(source, getSymbolsIn$1(source), object);
874
863
  }
@@ -883,11 +872,11 @@ function getAllKeysIn(object) {
883
872
  return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
884
873
  }
885
874
  var DataView = getNative(root$1, "DataView");
886
- var DataView$1 = DataView;
875
+ const DataView$1 = DataView;
887
876
  var Promise$1 = getNative(root$1, "Promise");
888
- var Promise$2 = Promise$1;
877
+ const Promise$2 = Promise$1;
889
878
  var Set = getNative(root$1, "Set");
890
- var Set$1 = Set;
879
+ const Set$1 = Set;
891
880
  var mapTag$6 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$6 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
892
881
  var dataViewTag$3 = "[object DataView]";
893
882
  var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
@@ -912,7 +901,7 @@ if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 ||
912
901
  return result;
913
902
  };
914
903
  }
915
- var getTag$1 = getTag;
904
+ const getTag$1 = getTag;
916
905
  var objectProto$3 = Object.prototype;
917
906
  var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
918
907
  function initCloneArray(array) {
@@ -924,7 +913,7 @@ function initCloneArray(array) {
924
913
  return result;
925
914
  }
926
915
  var Uint8Array = root$1.Uint8Array;
927
- var Uint8Array$1 = Uint8Array;
916
+ const Uint8Array$1 = Uint8Array;
928
917
  function cloneArrayBuffer(arrayBuffer) {
929
918
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
930
919
  new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
@@ -992,14 +981,14 @@ function baseIsMap(value) {
992
981
  }
993
982
  var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
994
983
  var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
995
- var isMap$1 = isMap;
984
+ const isMap$1 = isMap;
996
985
  var setTag$4 = "[object Set]";
997
986
  function baseIsSet(value) {
998
987
  return isObjectLike(value) && getTag$1(value) == setTag$4;
999
988
  }
1000
989
  var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
1001
990
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
1002
- var isSet$1 = isSet;
991
+ const isSet$1 = isSet;
1003
992
  var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
1004
993
  var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
1005
994
  var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
@@ -1426,7 +1415,7 @@ function createBaseFor(fromRight) {
1426
1415
  };
1427
1416
  }
1428
1417
  var baseFor = createBaseFor();
1429
- var baseFor$1 = baseFor;
1418
+ const baseFor$1 = baseFor;
1430
1419
  function baseForOwn(object, iteratee) {
1431
1420
  return object && baseFor$1(object, iteratee, keys);
1432
1421
  }
@@ -1448,11 +1437,11 @@ function createBaseEach(eachFunc, fromRight) {
1448
1437
  };
1449
1438
  }
1450
1439
  var baseEach = createBaseEach(baseForOwn);
1451
- var baseEach$1 = baseEach;
1440
+ const baseEach$1 = baseEach;
1452
1441
  var now = function() {
1453
1442
  return root$1.Date.now();
1454
1443
  };
1455
- var now$1 = now;
1444
+ const now$1 = now;
1456
1445
  var FUNC_ERROR_TEXT = "Expected a function";
1457
1446
  var nativeMax = Math.max, nativeMin = Math.min;
1458
1447
  function debounce(func, wait, options) {
@@ -1582,7 +1571,7 @@ function isEmpty(value) {
1582
1571
  return true;
1583
1572
  }
1584
1573
  var asciiSize = baseProperty("length");
1585
- var asciiSize$1 = asciiSize;
1574
+ const asciiSize$1 = asciiSize;
1586
1575
  var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
1587
1576
  var rsAstral = "[" + rsAstralRange + "]", rsCombo = "[" + rsComboRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ = "\\u200d";
1588
1577
  var reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
@@ -1666,11 +1655,13 @@ const createResizeObserver = (params) => {
1666
1655
  }
1667
1656
  debounceRender(width, height);
1668
1657
  };
1669
- const resizeObserver = new ResizeObserver(([entry] = []) => {
1670
- if (entry) {
1671
- onResize();
1658
+ const resizeObserver = new ResizeObserver(
1659
+ ([entry] = []) => {
1660
+ if (entry) {
1661
+ onResize();
1662
+ }
1672
1663
  }
1673
- });
1664
+ );
1674
1665
  resizeObserver.observe(actualWrapper, {
1675
1666
  box: "border-box"
1676
1667
  });
@@ -1679,7 +1670,10 @@ const createResizeObserver = (params) => {
1679
1670
  };
1680
1671
  };
1681
1672
  const getDrillDownCache = (spreadsheet, meta) => {
1682
- const drillDownDataCache = spreadsheet.store.get("drillDownDataCache", []);
1673
+ const drillDownDataCache = spreadsheet.store.get(
1674
+ "drillDownDataCache",
1675
+ []
1676
+ );
1683
1677
  const cache = drillDownDataCache.find((dc) => dc.rowId === meta.id);
1684
1678
  return {
1685
1679
  drillDownDataCache,
@@ -1690,7 +1684,10 @@ const handleActionIconClick = (params) => {
1690
1684
  const { meta, event, callback } = params;
1691
1685
  const { spreadsheet } = meta;
1692
1686
  spreadsheet.store.set("drillDownNode", meta);
1693
- const { drillDownDataCache, drillDownCurrentCache } = getDrillDownCache(spreadsheet, meta);
1687
+ const { drillDownDataCache, drillDownCurrentCache } = getDrillDownCache(
1688
+ spreadsheet,
1689
+ meta
1690
+ );
1694
1691
  const cache = (drillDownCurrentCache == null ? void 0 : drillDownCurrentCache.drillField) ? [drillDownCurrentCache == null ? void 0 : drillDownCurrentCache.drillField] : [];
1695
1692
  const disabled = [];
1696
1693
  drillDownDataCache.forEach((val) => {
@@ -1709,10 +1706,9 @@ const handleActionIconClick = (params) => {
1709
1706
  });
1710
1707
  };
1711
1708
  const defaultPartDrillDownDisplayCondition = (meta) => {
1712
- var _a;
1713
1709
  const s22 = meta.spreadsheet;
1714
1710
  const { fields } = s22.dataCfg;
1715
- const iconLevel = ((_a = fields.rows) == null ? void 0 : _a.length) - 1;
1711
+ const iconLevel = size(fields.rows) - 1;
1716
1712
  const isValueInCols = !isEmpty(fields.values) ? s22.isValueInCols() : true;
1717
1713
  return iconLevel <= meta.level && s22.isHierarchyTreeType() && isValueInCols && !meta.isGrandTotals;
1718
1714
  };
@@ -1739,25 +1735,36 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
1739
1735
  };
1740
1736
  nextHeaderIcons.push(drillDownActionIcon);
1741
1737
  }
1742
- return __spreadProps(__spreadValues({}, options), {
1738
+ return {
1739
+ ...options,
1743
1740
  headerActionIcons: nextHeaderIcons
1744
- });
1741
+ };
1745
1742
  };
1746
1743
  const handleDrillDown = (params) => {
1747
1744
  const { fetchData, spreadsheet, drillFields, drillItemsNum = -1 } = params;
1748
1745
  spreadsheet.store.set("drillItemsNum", drillItemsNum);
1749
1746
  const meta = spreadsheet.store.get("drillDownNode");
1750
- const { drillDownDataCache, drillDownCurrentCache } = getDrillDownCache(spreadsheet, meta);
1747
+ const { drillDownDataCache, drillDownCurrentCache } = getDrillDownCache(
1748
+ spreadsheet,
1749
+ meta
1750
+ );
1751
1751
  let newDrillDownDataCache = clone(drillDownDataCache);
1752
1752
  if (drillDownCurrentCache) {
1753
- newDrillDownDataCache = filter(drillDownDataCache, (cache) => cache.rowId !== meta.id);
1753
+ newDrillDownDataCache = filter(
1754
+ drillDownDataCache,
1755
+ (cache) => cache.rowId !== meta.id
1756
+ );
1754
1757
  }
1755
1758
  if (!fetchData) {
1756
1759
  return;
1757
1760
  }
1758
1761
  fetchData(meta, drillFields).then((info) => {
1759
1762
  const { drillData, drillField } = info;
1760
- spreadsheet.dataSet.transformDrillDownData(drillField, drillData, meta);
1763
+ spreadsheet.dataSet.transformDrillDownData(
1764
+ drillField,
1765
+ drillData,
1766
+ meta
1767
+ );
1761
1768
  if (!isEmpty(drillData)) {
1762
1769
  const drillLevel = meta.level + 1;
1763
1770
  const newDrillDownData = {
@@ -1784,13 +1791,6 @@ const useExpose = (expose) => {
1784
1791
  });
1785
1792
  return s2Ref;
1786
1793
  };
1787
- var _export_sfc = (sfc, props) => {
1788
- const target = sfc.__vccOpts || sfc;
1789
- for (const [key, val] of props) {
1790
- target[key] = val;
1791
- }
1792
- return target;
1793
- };
1794
1794
  const _sfc_main$e = vue.defineComponent({
1795
1795
  name: "TooltipDetail",
1796
1796
  props: ["list"],
@@ -1800,6 +1800,13 @@ const _sfc_main$e = vue.defineComponent({
1800
1800
  };
1801
1801
  }
1802
1802
  });
1803
+ const _export_sfc = (sfc, props) => {
1804
+ const target = sfc.__vccOpts || sfc;
1805
+ for (const [key, val] of props) {
1806
+ target[key] = val;
1807
+ }
1808
+ return target;
1809
+ };
1803
1810
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
1804
1811
  return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item, index2) => {
1805
1812
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -1819,7 +1826,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
1819
1826
  ], 2);
1820
1827
  }), 128);
1821
1828
  }
1822
- var TooltipDetail = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]);
1829
+ const TooltipDetail = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]);
1823
1830
  const _sfc_main$d = vue.defineComponent({
1824
1831
  name: "TooltipHeadInfo",
1825
1832
  props: ["rows", "cols"],
@@ -1850,7 +1857,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
1850
1857
  }), 128))
1851
1858
  ], 2)) : vue.createCommentVNode("", true);
1852
1859
  }
1853
- var TooltipHeadInfo = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d]]);
1860
+ const TooltipHeadInfo = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d]]);
1854
1861
  const _sfc_main$c = vue.defineComponent({
1855
1862
  name: "TooltipInfos",
1856
1863
  props: ["infos"],
@@ -1866,7 +1873,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
1866
1873
  class: vue.normalizeClass(`${_ctx.TOOLTIP_PREFIX_CLS}-infos`)
1867
1874
  }, vue.toDisplayString(_ctx.infos), 3);
1868
1875
  }
1869
- var TooltipInfos = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
1876
+ const TooltipInfos = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
1870
1877
  const _sfc_main$b = vue.defineComponent({
1871
1878
  name: "TooltipSimpleTips",
1872
1879
  props: ["name", "tips"],
@@ -1889,18 +1896,24 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
1889
1896
  }, vue.toDisplayString(_ctx.tips), 3)) : vue.createCommentVNode("", true)
1890
1897
  ], 64);
1891
1898
  }
1892
- var TooltipSimpleTips = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b]]);
1899
+ const TooltipSimpleTips = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b]]);
1893
1900
  const _sfc_main$a = vue.defineComponent({
1894
1901
  name: "TooltipSummary",
1895
1902
  props: ["summaries"],
1896
1903
  setup(props) {
1897
- const summaryInfo = vue.computed(() => reduce(props.summaries, (pre, next) => {
1898
- pre.count += size(next == null ? void 0 : next.selectedData);
1899
- if (next.value || next.name) {
1900
- pre.summaries.push(next);
1901
- }
1902
- return pre;
1903
- }, { count: 0, summaries: [] }));
1904
+ const summaryInfo = vue.computed(
1905
+ () => reduce(
1906
+ props.summaries,
1907
+ (pre, next) => {
1908
+ pre.count += size(next == null ? void 0 : next.selectedData);
1909
+ if (next.value || next.name) {
1910
+ pre.summaries.push(next);
1911
+ }
1912
+ return pre;
1913
+ },
1914
+ { count: 0, summaries: [] }
1915
+ )
1916
+ );
1904
1917
  return {
1905
1918
  summaryInfo,
1906
1919
  i18n: s2.i18n,
@@ -1928,7 +1941,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
1928
1941
  }, [
1929
1942
  vue.createElementVNode("span", {
1930
1943
  class: vue.normalizeClass(`${_ctx.TOOLTIP_PREFIX_CLS}-summary-key`)
1931
- }, vue.toDisplayString(summary.name) + " " + vue.toDisplayString(_ctx.i18n("\u603B\u548C")), 3),
1944
+ }, vue.toDisplayString(summary.name) + " (" + vue.toDisplayString(_ctx.i18n("\u603B\u548C")) + ") ", 3),
1932
1945
  vue.createElementVNode("span", {
1933
1946
  class: vue.normalizeClass(`${_ctx.TOOLTIP_PREFIX_CLS}-summary-val ${_ctx.TOOLTIP_PREFIX_CLS}-bold`)
1934
1947
  }, vue.toDisplayString(summary.value), 3)
@@ -1936,7 +1949,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
1936
1949
  }), 128))
1937
1950
  ], 2);
1938
1951
  }
1939
- var TooltipSummary = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a]]);
1952
+ const TooltipSummary = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a]]);
1940
1953
  const _sfc_main$9 = vue.defineComponent({
1941
1954
  name: "TooltipOperatorTitle",
1942
1955
  props: ["menu"],
@@ -1961,7 +1974,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
1961
1974
  }, vue.toDisplayString(_ctx.menu.text), 3)
1962
1975
  ]);
1963
1976
  }
1964
- var TooltipOperatorTitle = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
1977
+ const TooltipOperatorTitle = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
1965
1978
  const _sfc_main$8 = vue.defineComponent({
1966
1979
  name: "TooltipOperatorMenu",
1967
1980
  props: ["menu", "cell"],
@@ -2040,8 +2053,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
2040
2053
  }, 8, ["title"])) : vue.createCommentVNode("", true)
2041
2054
  ], 64);
2042
2055
  }
2043
- var TooltipOperatorMenu = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
2044
- var index_vue_vue_type_style_index_0_lang$1 = "";
2056
+ const TooltipOperatorMenu = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
2045
2057
  const _sfc_main$7 = vue.defineComponent({
2046
2058
  name: "TooltipOperator",
2047
2059
  props: [
@@ -2050,9 +2062,9 @@ const _sfc_main$7 = vue.defineComponent({
2050
2062
  "onClick",
2051
2063
  "cell"
2052
2064
  ],
2053
- setup(props, { emit }) {
2054
- const onMenuClick = (...args) => {
2055
- emit("click", ...args);
2065
+ setup(_, { emit }) {
2066
+ const onMenuClick = (menuInfo) => {
2067
+ emit("click", menuInfo);
2056
2068
  };
2057
2069
  return {
2058
2070
  TOOLTIP_PREFIX_CLS: s2.TOOLTIP_PREFIX_CLS,
@@ -2066,6 +2078,7 @@ const _sfc_main$7 = vue.defineComponent({
2066
2078
  TooltipOperatorMenu
2067
2079
  }
2068
2080
  });
2081
+ const index_vue_vue_type_style_index_0_lang$1 = "";
2069
2082
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
2070
2083
  const _component_TooltipOperatorMenu = vue.resolveComponent("TooltipOperatorMenu");
2071
2084
  const _component_Menu = vue.resolveComponent("Menu");
@@ -2129,8 +2142,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
2129
2142
  }), 128))
2130
2143
  ], 2);
2131
2144
  }
2132
- var TooltipOperator = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
2133
- var index_vue_vue_type_style_index_0_lang = "";
2145
+ const TooltipOperator = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
2134
2146
  const _sfc_main$6 = vue.defineComponent({
2135
2147
  name: "TooltipComponent",
2136
2148
  props: [
@@ -2157,6 +2169,7 @@ const _sfc_main$6 = vue.defineComponent({
2157
2169
  TooltipOperator
2158
2170
  }
2159
2171
  });
2172
+ const index_vue_vue_type_style_index_0_lang = "";
2160
2173
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
2161
2174
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
2162
2175
  const _component_TooltipOperator = vue.resolveComponent("TooltipOperator");
@@ -2201,7 +2214,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
2201
2214
  ], 64))
2202
2215
  ], 64));
2203
2216
  }
2204
- var TooltipComponent = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
2217
+ const TooltipComponent = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
2205
2218
  class CustomTooltip extends s2.BaseTooltip {
2206
2219
  constructor(spreadsheet) {
2207
2220
  super(spreadsheet);
@@ -2210,15 +2223,22 @@ class CustomTooltip extends s2.BaseTooltip {
2210
2223
  var _a, _b;
2211
2224
  const { tooltip } = this.spreadsheet.options;
2212
2225
  const showOptions = this.options;
2213
- const cell = this.spreadsheet.getCell((_a = showOptions.event) == null ? void 0 : _a.target);
2226
+ const cell = this.spreadsheet.getCell(
2227
+ (_a = showOptions.event) == null ? void 0 : _a.target
2228
+ );
2214
2229
  const content = (_b = showOptions.content) != null ? _b : tooltip == null ? void 0 : tooltip.content;
2215
- const tooltipProps = __spreadProps(__spreadValues({}, showOptions), {
2230
+ const tooltipProps = {
2231
+ ...showOptions,
2216
2232
  cell,
2217
2233
  content
2218
- });
2219
- const tooltipVNode = vue.createVNode(TooltipComponent, tooltipProps, {
2220
- content: () => content
2221
- });
2234
+ };
2235
+ const tooltipVNode = vue.createVNode(
2236
+ TooltipComponent,
2237
+ tooltipProps,
2238
+ {
2239
+ content: () => content
2240
+ }
2241
+ );
2222
2242
  vue.render(null, this.container);
2223
2243
  vue.render(tooltipVNode, this.container);
2224
2244
  }
@@ -2233,8 +2253,12 @@ const DEFAULT_PAGE_NUMBER = 1;
2233
2253
  const DEFAULT_PAGE_SIZE = 10;
2234
2254
  const usePagination = (s2Ref, props) => {
2235
2255
  var _a, _b, _c, _d, _e, _f;
2236
- const current = vue.ref((_c = (_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) != null ? _c : DEFAULT_PAGE_NUMBER);
2237
- const pageSize = vue.ref((_f = (_e = (_d = props.options) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) != null ? _f : DEFAULT_PAGE_SIZE);
2256
+ const current = vue.ref(
2257
+ (_c = (_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) != null ? _c : DEFAULT_PAGE_NUMBER
2258
+ );
2259
+ const pageSize = vue.ref(
2260
+ (_f = (_e = (_d = props.options) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) != null ? _f : DEFAULT_PAGE_SIZE
2261
+ );
2238
2262
  const total = vue.ref(0);
2239
2263
  const change = (nextCurrent) => {
2240
2264
  current.value = nextCurrent;
@@ -2258,17 +2282,21 @@ const usePagination = (s2Ref, props) => {
2258
2282
  s2Ref.value.updatePagination(nextPagination);
2259
2283
  s2Ref.value.render(false);
2260
2284
  });
2261
- vue.watch([() => {
2262
- var _a2;
2263
- return (_a2 = props.options) == null ? void 0 : _a2.pagination;
2264
- }, s2Ref], () => {
2265
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
2266
- current.value = (_c2 = (_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) != null ? _c2 : DEFAULT_PAGE_NUMBER;
2267
- pageSize.value = (_f2 = (_e2 = (_d2 = props.options) == null ? void 0 : _d2.pagination) == null ? void 0 : _e2.pageSize) != null ? _f2 : DEFAULT_PAGE_SIZE;
2268
- total.value = (_i = (_h = (_g = s2Ref.value) == null ? void 0 : _g.facet) == null ? void 0 : _h.viewCellHeights.getTotalLength()) != null ? _i : 0;
2269
- }, {
2270
- immediate: true
2271
- });
2285
+ vue.watch(
2286
+ [() => {
2287
+ var _a2;
2288
+ return (_a2 = props.options) == null ? void 0 : _a2.pagination;
2289
+ }, s2Ref],
2290
+ () => {
2291
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
2292
+ current.value = (_c2 = (_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) != null ? _c2 : DEFAULT_PAGE_NUMBER;
2293
+ pageSize.value = (_f2 = (_e2 = (_d2 = props.options) == null ? void 0 : _d2.pagination) == null ? void 0 : _e2.pageSize) != null ? _f2 : DEFAULT_PAGE_SIZE;
2294
+ total.value = (_i = (_h = (_g = s2Ref.value) == null ? void 0 : _g.facet) == null ? void 0 : _h.viewCellHeights.getTotalLength()) != null ? _i : 0;
2295
+ },
2296
+ {
2297
+ immediate: true
2298
+ }
2299
+ );
2272
2300
  vue.watch(s2Ref, (value, oldValue, onCleanup) => {
2273
2301
  if (!s2Ref.value) {
2274
2302
  return;
@@ -2348,7 +2376,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
2348
2376
  }, vue.toDisplayString(_ctx.i18n("\u5171\u8BA1")) + " " + vue.toDisplayString(_ctx.total || " - ") + " " + vue.toDisplayString(_ctx.i18n("\u6761")), 3)
2349
2377
  ], 2);
2350
2378
  }
2351
- var S2Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
2379
+ const S2Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
2352
2380
  const RENDER_TOOLTIP_OPTION = {
2353
2381
  tooltip: {
2354
2382
  renderTooltip: (spreadsheet) => new CustomTooltip(spreadsheet)
@@ -2377,73 +2405,253 @@ const useEvents = (s2Ref, emit) => {
2377
2405
  }
2378
2406
  useCellEvent(s2Ref, emit, s2.S2Event.ROW_CELL_HOVER, "rowCellHover");
2379
2407
  useCellEvent(s2Ref, emit, s2.S2Event.ROW_CELL_CLICK, "rowCellClick");
2380
- useCellEvent(s2Ref, emit, s2.S2Event.ROW_CELL_DOUBLE_CLICK, "rowCellDoubleClick");
2381
- useCellEvent(s2Ref, emit, s2.S2Event.ROW_CELL_CONTEXT_MENU, "rowCellContextMenu");
2408
+ useCellEvent(
2409
+ s2Ref,
2410
+ emit,
2411
+ s2.S2Event.ROW_CELL_DOUBLE_CLICK,
2412
+ "rowCellDoubleClick"
2413
+ );
2414
+ useCellEvent(
2415
+ s2Ref,
2416
+ emit,
2417
+ s2.S2Event.ROW_CELL_CONTEXT_MENU,
2418
+ "rowCellContextMenu"
2419
+ );
2382
2420
  useCellEvent(s2Ref, emit, s2.S2Event.ROW_CELL_MOUSE_DOWN, "rowCellMouseDown");
2383
2421
  useCellEvent(s2Ref, emit, s2.S2Event.ROW_CELL_MOUSE_UP, "rowCellMouseUp");
2384
2422
  useCellEvent(s2Ref, emit, s2.S2Event.ROW_CELL_MOUSE_MOVE, "rowCellMouseMove");
2385
- useS2Event(s2Ref, emit, s2.S2Event.ROW_CELL_COLLAPSE_TREE_ROWS, "rowCellCollapseTreeRows");
2423
+ useS2Event(
2424
+ s2Ref,
2425
+ emit,
2426
+ s2.S2Event.ROW_CELL_COLLAPSE_TREE_ROWS,
2427
+ "rowCellCollapseTreeRows"
2428
+ );
2386
2429
  useS2Event(s2Ref, emit, s2.S2Event.ROW_CELL_SCROLL, "rowCellScroll");
2387
2430
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_HOVER, "colCellHover");
2388
2431
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_CLICK, "colCellClick");
2389
- useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_DOUBLE_CLICK, "colCellDoubleClick");
2390
- useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_CONTEXT_MENU, "colCellContextMenu");
2432
+ useCellEvent(
2433
+ s2Ref,
2434
+ emit,
2435
+ s2.S2Event.COL_CELL_DOUBLE_CLICK,
2436
+ "colCellDoubleClick"
2437
+ );
2438
+ useCellEvent(
2439
+ s2Ref,
2440
+ emit,
2441
+ s2.S2Event.COL_CELL_CONTEXT_MENU,
2442
+ "colCellContextMenu"
2443
+ );
2391
2444
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_MOUSE_DOWN, "colCellMouseDown");
2392
2445
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_MOUSE_UP, "colCellMouseUp");
2393
2446
  useCellEvent(s2Ref, emit, s2.S2Event.COL_CELL_MOUSE_MOVE, "colCellMouseMove");
2394
2447
  useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_HOVER, "dataCellHover");
2395
2448
  useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_CLICK, "dataCellClick");
2396
- useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_DOUBLE_CLICK, "dataCellDoubleClick");
2397
- useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_CONTEXT_MENU, "dataCellContextMenu");
2398
- useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_MOUSE_DOWN, "dataCellMouseDown");
2449
+ useCellEvent(
2450
+ s2Ref,
2451
+ emit,
2452
+ s2.S2Event.DATA_CELL_DOUBLE_CLICK,
2453
+ "dataCellDoubleClick"
2454
+ );
2455
+ useCellEvent(
2456
+ s2Ref,
2457
+ emit,
2458
+ s2.S2Event.DATA_CELL_CONTEXT_MENU,
2459
+ "dataCellContextMenu"
2460
+ );
2461
+ useCellEvent(
2462
+ s2Ref,
2463
+ emit,
2464
+ s2.S2Event.DATA_CELL_MOUSE_DOWN,
2465
+ "dataCellMouseDown"
2466
+ );
2399
2467
  useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_MOUSE_UP, "dataCellMouseUp");
2400
- useCellEvent(s2Ref, emit, s2.S2Event.DATA_CELL_MOUSE_MOVE, "dataCellMouseMove");
2401
- useS2Event(s2Ref, emit, s2.S2Event.DATA_CELL_TREND_ICON_CLICK, "dataCellTrendIconClick");
2402
- useS2Event(s2Ref, emit, s2.S2Event.DATA_CELL_BRUSH_SELECTION, "dataCellBrushSelection");
2403
- useS2Event(s2Ref, emit, s2.S2Event.DATA_CELL_SELECT_MOVE, "dataCellSelectMove");
2468
+ useCellEvent(
2469
+ s2Ref,
2470
+ emit,
2471
+ s2.S2Event.DATA_CELL_MOUSE_MOVE,
2472
+ "dataCellMouseMove"
2473
+ );
2474
+ useS2Event(
2475
+ s2Ref,
2476
+ emit,
2477
+ s2.S2Event.DATA_CELL_TREND_ICON_CLICK,
2478
+ "dataCellTrendIconClick"
2479
+ );
2480
+ useS2Event(
2481
+ s2Ref,
2482
+ emit,
2483
+ s2.S2Event.DATA_CELL_BRUSH_SELECTION,
2484
+ "dataCellBrushSelection"
2485
+ );
2486
+ useS2Event(
2487
+ s2Ref,
2488
+ emit,
2489
+ s2.S2Event.DATA_CELL_SELECT_MOVE,
2490
+ "dataCellSelectMove"
2491
+ );
2404
2492
  useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_HOVER, "cornerCellHover");
2405
2493
  useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_CLICK, "cornerCellClick");
2406
- useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_DOUBLE_CLICK, "cornerCellDoubleClick");
2407
- useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_CONTEXT_MENU, "cornerCellContextMenu");
2408
- useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_MOUSE_DOWN, "cornerCellMouseDown");
2409
- useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_MOUSE_UP, "cornerCellMouseUp");
2410
- useCellEvent(s2Ref, emit, s2.S2Event.CORNER_CELL_MOUSE_MOVE, "cornerCellMouseMove");
2494
+ useCellEvent(
2495
+ s2Ref,
2496
+ emit,
2497
+ s2.S2Event.CORNER_CELL_DOUBLE_CLICK,
2498
+ "cornerCellDoubleClick"
2499
+ );
2500
+ useCellEvent(
2501
+ s2Ref,
2502
+ emit,
2503
+ s2.S2Event.CORNER_CELL_CONTEXT_MENU,
2504
+ "cornerCellContextMenu"
2505
+ );
2506
+ useCellEvent(
2507
+ s2Ref,
2508
+ emit,
2509
+ s2.S2Event.CORNER_CELL_MOUSE_DOWN,
2510
+ "cornerCellMouseDown"
2511
+ );
2512
+ useCellEvent(
2513
+ s2Ref,
2514
+ emit,
2515
+ s2.S2Event.CORNER_CELL_MOUSE_UP,
2516
+ "cornerCellMouseUp"
2517
+ );
2518
+ useCellEvent(
2519
+ s2Ref,
2520
+ emit,
2521
+ s2.S2Event.CORNER_CELL_MOUSE_MOVE,
2522
+ "cornerCellMouseMove"
2523
+ );
2411
2524
  useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_HOVER, "mergedCellsHover");
2412
2525
  useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_CLICK, "mergedCellsClick");
2413
- useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_DOUBLE_CLICK, "mergedCellsDoubleClick");
2414
- useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_CONTEXT_MENU, "mergedCellsContextMenu");
2415
- useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_MOUSE_DOWN, "mergedCellsMouseDown");
2416
- useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_MOUSE_UP, "mergedCellsMouseUp");
2417
- useCellEvent(s2Ref, emit, s2.S2Event.MERGED_CELLS_MOUSE_MOVE, "mergedCellsMouseMove");
2526
+ useCellEvent(
2527
+ s2Ref,
2528
+ emit,
2529
+ s2.S2Event.MERGED_CELLS_DOUBLE_CLICK,
2530
+ "mergedCellsDoubleClick"
2531
+ );
2532
+ useCellEvent(
2533
+ s2Ref,
2534
+ emit,
2535
+ s2.S2Event.MERGED_CELLS_CONTEXT_MENU,
2536
+ "mergedCellsContextMenu"
2537
+ );
2538
+ useCellEvent(
2539
+ s2Ref,
2540
+ emit,
2541
+ s2.S2Event.MERGED_CELLS_MOUSE_DOWN,
2542
+ "mergedCellsMouseDown"
2543
+ );
2544
+ useCellEvent(
2545
+ s2Ref,
2546
+ emit,
2547
+ s2.S2Event.MERGED_CELLS_MOUSE_UP,
2548
+ "mergedCellsMouseUp"
2549
+ );
2550
+ useCellEvent(
2551
+ s2Ref,
2552
+ emit,
2553
+ s2.S2Event.MERGED_CELLS_MOUSE_MOVE,
2554
+ "mergedCellsMouseMove"
2555
+ );
2418
2556
  useS2Event(s2Ref, emit, s2.S2Event.RANGE_SORT, "rangeSort");
2419
2557
  useS2Event(s2Ref, emit, s2.S2Event.RANGE_SORTED, "rangeSorted");
2420
2558
  useS2Event(s2Ref, emit, s2.S2Event.RANGE_FILTER, "rangeFilter");
2421
2559
  useS2Event(s2Ref, emit, s2.S2Event.RANGE_FILTERED, "rangeFiltered");
2422
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_AFTER_HEADER_LAYOUT, "layoutAfterHeaderLayout");
2560
+ useS2Event(
2561
+ s2Ref,
2562
+ emit,
2563
+ s2.S2Event.LAYOUT_AFTER_HEADER_LAYOUT,
2564
+ "layoutAfterHeaderLayout"
2565
+ );
2423
2566
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_PAGINATION, "layoutPagination");
2424
2567
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_CELL_SCROLL, "layoutCellScroll");
2425
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_AFTER_COLLAPSE_ROWS, "layoutAfterCollapseRows");
2426
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_TREE_ROWS_COLLAPSE_ALL, "collapseRowsAll");
2568
+ useS2Event(
2569
+ s2Ref,
2570
+ emit,
2571
+ s2.S2Event.LAYOUT_AFTER_COLLAPSE_ROWS,
2572
+ "layoutAfterCollapseRows"
2573
+ );
2574
+ useS2Event(
2575
+ s2Ref,
2576
+ emit,
2577
+ s2.S2Event.LAYOUT_TREE_ROWS_COLLAPSE_ALL,
2578
+ "collapseRowsAll"
2579
+ );
2427
2580
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_COLS_EXPANDED, "layoutColsExpanded");
2428
2581
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_COLS_HIDDEN, "layoutColsHidden");
2429
2582
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_BEFORE_RENDER, "beforeRender");
2430
2583
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_AFTER_RENDER, "afterRender");
2431
2584
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_DESTROY, "destroy");
2432
2585
  useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE, "layoutResize");
2433
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_SERIES_WIDTH, "layoutResizeSeriesWidth");
2434
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_ROW_WIDTH, "layoutResizeRowWidth");
2435
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_ROW_HEIGHT, "layoutResizeRowHeight");
2436
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_COL_WIDTH, "layoutResizeColWidth");
2437
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_COL_HEIGHT, "layoutResizeColHeight");
2438
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_TREE_WIDTH, "layoutResizeTreeWidth");
2439
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_MOUSE_DOWN, "layoutResizeMouseDown");
2440
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_MOUSE_UP, "layoutResizeMouseUp");
2441
- useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_RESIZE_MOUSE_MOVE, "layoutResizeMouseMove");
2586
+ useS2Event(
2587
+ s2Ref,
2588
+ emit,
2589
+ s2.S2Event.LAYOUT_RESIZE_SERIES_WIDTH,
2590
+ "layoutResizeSeriesWidth"
2591
+ );
2592
+ useS2Event(
2593
+ s2Ref,
2594
+ emit,
2595
+ s2.S2Event.LAYOUT_RESIZE_ROW_WIDTH,
2596
+ "layoutResizeRowWidth"
2597
+ );
2598
+ useS2Event(
2599
+ s2Ref,
2600
+ emit,
2601
+ s2.S2Event.LAYOUT_RESIZE_ROW_HEIGHT,
2602
+ "layoutResizeRowHeight"
2603
+ );
2604
+ useS2Event(
2605
+ s2Ref,
2606
+ emit,
2607
+ s2.S2Event.LAYOUT_RESIZE_COL_WIDTH,
2608
+ "layoutResizeColWidth"
2609
+ );
2610
+ useS2Event(
2611
+ s2Ref,
2612
+ emit,
2613
+ s2.S2Event.LAYOUT_RESIZE_COL_HEIGHT,
2614
+ "layoutResizeColHeight"
2615
+ );
2616
+ useS2Event(
2617
+ s2Ref,
2618
+ emit,
2619
+ s2.S2Event.LAYOUT_RESIZE_TREE_WIDTH,
2620
+ "layoutResizeTreeWidth"
2621
+ );
2622
+ useS2Event(
2623
+ s2Ref,
2624
+ emit,
2625
+ s2.S2Event.LAYOUT_RESIZE_MOUSE_DOWN,
2626
+ "layoutResizeMouseDown"
2627
+ );
2628
+ useS2Event(
2629
+ s2Ref,
2630
+ emit,
2631
+ s2.S2Event.LAYOUT_RESIZE_MOUSE_UP,
2632
+ "layoutResizeMouseUp"
2633
+ );
2634
+ useS2Event(
2635
+ s2Ref,
2636
+ emit,
2637
+ s2.S2Event.LAYOUT_RESIZE_MOUSE_MOVE,
2638
+ "layoutResizeMouseMove"
2639
+ );
2442
2640
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_KEYBOARD_DOWN, "keyBoardDown");
2443
2641
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_KEYBOARD_UP, "keyBoardUp");
2444
2642
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_COPIED, "copied");
2445
- useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_ACTION_ICON_HOVER, "actionIconHover");
2446
- useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_ACTION_ICON_CLICK, "actionIconClick");
2643
+ useS2Event(
2644
+ s2Ref,
2645
+ emit,
2646
+ s2.S2Event.GLOBAL_ACTION_ICON_HOVER,
2647
+ "actionIconHover"
2648
+ );
2649
+ useS2Event(
2650
+ s2Ref,
2651
+ emit,
2652
+ s2.S2Event.GLOBAL_ACTION_ICON_CLICK,
2653
+ "actionIconClick"
2654
+ );
2447
2655
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_CONTEXT_MENU, "contextMenu");
2448
2656
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_HOVER, "mouseHover");
2449
2657
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_CLICK, "click");
@@ -2453,8 +2661,18 @@ const useEvents = (s2Ref, emit) => {
2453
2661
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_RESET, "reset");
2454
2662
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_LINK_FIELD_JUMP, "linkFieldJump");
2455
2663
  useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_SCROLL, "scroll");
2456
- useS2Event(s2Ref, emit, s2.S2Event.ROW_CELL_BRUSH_SELECTION, "rowCellBrushSelection");
2457
- useS2Event(s2Ref, emit, s2.S2Event.COL_CELL_BRUSH_SELECTION, "colCellBrushSelection");
2664
+ useS2Event(
2665
+ s2Ref,
2666
+ emit,
2667
+ s2.S2Event.ROW_CELL_BRUSH_SELECTION,
2668
+ "rowCellBrushSelection"
2669
+ );
2670
+ useS2Event(
2671
+ s2Ref,
2672
+ emit,
2673
+ s2.S2Event.COL_CELL_BRUSH_SELECTION,
2674
+ "colCellBrushSelection"
2675
+ );
2458
2676
  });
2459
2677
  };
2460
2678
  const useLoading = (s2Ref, loadingProp = false) => {
@@ -2478,32 +2696,44 @@ const useSheetUpdate = (s2Ref, props) => {
2478
2696
  reloadData: false,
2479
2697
  rebuildDataset: false
2480
2698
  });
2481
- vue.watch(() => props.options, (options, prevOptions) => {
2482
- var _a, _b;
2483
- updateFlag.rerender = true;
2484
- if (!Object.is(prevOptions == null ? void 0 : prevOptions.hierarchyType, options == null ? void 0 : options.hierarchyType)) {
2699
+ vue.watch(
2700
+ () => props.options,
2701
+ (options, prevOptions) => {
2702
+ var _a, _b;
2703
+ updateFlag.rerender = true;
2704
+ if (!Object.is(prevOptions == null ? void 0 : prevOptions.hierarchyType, options == null ? void 0 : options.hierarchyType)) {
2705
+ updateFlag.reloadData = true;
2706
+ updateFlag.rebuildDataset = true;
2707
+ }
2708
+ (_a = s2Ref.value) == null ? void 0 : _a.setOptions(options);
2709
+ (_b = s2Ref.value) == null ? void 0 : _b.changeSheetSize(options == null ? void 0 : options.width, options == null ? void 0 : options.height);
2710
+ },
2711
+ { deep: vue.isProxy(props.options) }
2712
+ );
2713
+ vue.watch(
2714
+ () => props.dataCfg,
2715
+ (dataCfg, prevDataCfg) => {
2716
+ var _a, _b, _c, _d, _e, _f;
2717
+ if (((_b = (_a = prevDataCfg == null ? void 0 : prevDataCfg.fields) == null ? void 0 : _a.columns) == null ? void 0 : _b.length) !== ((_d = (_c = dataCfg == null ? void 0 : dataCfg.fields) == null ? void 0 : _c.columns) == null ? void 0 : _d.length)) {
2718
+ (_e = s2Ref.value) == null ? void 0 : _e.clearColumnLeafNodes();
2719
+ }
2720
+ updateFlag.rerender = true;
2485
2721
  updateFlag.reloadData = true;
2486
- updateFlag.rebuildDataset = true;
2487
- }
2488
- (_a = s2Ref.value) == null ? void 0 : _a.setOptions(options);
2489
- (_b = s2Ref.value) == null ? void 0 : _b.changeSheetSize(options == null ? void 0 : options.width, options == null ? void 0 : options.height);
2490
- }, { deep: vue.isProxy(props.options) });
2491
- vue.watch(() => props.dataCfg, (dataCfg, prevDataCfg) => {
2492
- var _a, _b, _c, _d, _e, _f;
2493
- if (((_b = (_a = prevDataCfg == null ? void 0 : prevDataCfg.fields) == null ? void 0 : _a.columns) == null ? void 0 : _b.length) !== ((_d = (_c = dataCfg == null ? void 0 : dataCfg.fields) == null ? void 0 : _c.columns) == null ? void 0 : _d.length)) {
2494
- (_e = s2Ref.value) == null ? void 0 : _e.clearColumnLeafNodes();
2495
- }
2496
- updateFlag.rerender = true;
2497
- updateFlag.reloadData = true;
2498
- (_f = s2Ref.value) == null ? void 0 : _f.setDataCfg(dataCfg);
2499
- }, { deep: vue.isProxy(props.dataCfg) });
2500
- vue.watch(() => props.themeCfg, (themeCfg) => {
2501
- var _a;
2502
- updateFlag.rerender = true;
2503
- (_a = s2Ref.value) == null ? void 0 : _a.setThemeCfg(themeCfg);
2504
- }, {
2505
- deep: vue.isProxy(props.themeCfg)
2506
- });
2722
+ (_f = s2Ref.value) == null ? void 0 : _f.setDataCfg(dataCfg);
2723
+ },
2724
+ { deep: vue.isProxy(props.dataCfg) }
2725
+ );
2726
+ vue.watch(
2727
+ () => props.themeCfg,
2728
+ (themeCfg) => {
2729
+ var _a;
2730
+ updateFlag.rerender = true;
2731
+ (_a = s2Ref.value) == null ? void 0 : _a.setThemeCfg(themeCfg);
2732
+ },
2733
+ {
2734
+ deep: vue.isProxy(props.themeCfg)
2735
+ }
2736
+ );
2507
2737
  vue.watch(updateFlag, (flag) => {
2508
2738
  var _a;
2509
2739
  if (!flag.rerender) {
@@ -2519,21 +2749,25 @@ const useSheetUpdate = (s2Ref, props) => {
2519
2749
  };
2520
2750
  const useResize = (s2Ref, props, dom) => {
2521
2751
  const unobserve = vue.ref();
2522
- vue.watch([s2Ref, () => props.adaptive], ([s22, adaptive], _, onCleanup) => {
2523
- if (!s22) {
2524
- return;
2525
- }
2526
- unobserve.value = createResizeObserver({
2527
- s2: s22,
2528
- adaptive,
2529
- wrapper: dom.wrapperRef.value,
2530
- container: dom.containerRef.value
2531
- });
2532
- onCleanup(() => {
2533
- var _a;
2534
- (_a = unobserve.value) == null ? void 0 : _a.call(unobserve);
2535
- });
2536
- }, { deep: true });
2752
+ vue.watch(
2753
+ [s2Ref, () => props.adaptive],
2754
+ ([s22, adaptive], _, onCleanup) => {
2755
+ if (!s22) {
2756
+ return;
2757
+ }
2758
+ unobserve.value = createResizeObserver({
2759
+ s2: s22,
2760
+ adaptive,
2761
+ wrapper: dom.wrapperRef.value,
2762
+ container: dom.containerRef.value
2763
+ });
2764
+ onCleanup(() => {
2765
+ var _a;
2766
+ (_a = unobserve.value) == null ? void 0 : _a.call(unobserve);
2767
+ });
2768
+ },
2769
+ { deep: true }
2770
+ );
2537
2771
  };
2538
2772
  function useSpreadSheet(props, emit) {
2539
2773
  const {
@@ -2732,7 +2966,6 @@ const initBaseSheetEmits = () => {
2732
2966
  ];
2733
2967
  return keys2;
2734
2968
  };
2735
- var baseSheet_vue_vue_type_style_index_0_lang = "";
2736
2969
  const _sfc_main$4 = vue.defineComponent({
2737
2970
  name: "BaseSheet",
2738
2971
  props: initBaseSheetProps(),
@@ -2774,6 +3007,7 @@ const _sfc_main$4 = vue.defineComponent({
2774
3007
  S2Pagination
2775
3008
  }
2776
3009
  });
3010
+ const baseSheet_vue_vue_type_style_index_0_lang = "";
2777
3011
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
2778
3012
  const _component_S2Pagination = vue.resolveComponent("S2Pagination");
2779
3013
  const _component_Spin = vue.resolveComponent("Spin");
@@ -2803,7 +3037,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
2803
3037
  _: 1
2804
3038
  }, 8, ["wrapperClassName", "spinning"]);
2805
3039
  }
2806
- var BaseSheet = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
3040
+ const BaseSheet = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
2807
3041
  const _hoisted_1$2 = {
2808
3042
  class: "antv-s2-icon",
2809
3043
  viewBox: "0 0 1024 1024",
@@ -2821,7 +3055,7 @@ const _hoisted_3$2 = [
2821
3055
  function render$2(_ctx, _cache) {
2822
3056
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, _hoisted_3$2);
2823
3057
  }
2824
- var LocationIcon = { render: render$2 };
3058
+ const LocationIcon = { render: render$2 };
2825
3059
  const _hoisted_1$1 = {
2826
3060
  class: "antv-s2-icon",
2827
3061
  viewBox: "0 0 1024 1024",
@@ -2839,7 +3073,7 @@ const _hoisted_3$1 = [
2839
3073
  function render$1(_ctx, _cache) {
2840
3074
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$1, _hoisted_3$1);
2841
3075
  }
2842
- var TextIcon = { render: render$1 };
3076
+ const TextIcon = { render: render$1 };
2843
3077
  const _hoisted_1 = {
2844
3078
  class: "antv-s2-icon",
2845
3079
  viewBox: "0 0 1024 1024",
@@ -2857,8 +3091,7 @@ const _hoisted_3 = [
2857
3091
  function render(_ctx, _cache) {
2858
3092
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
2859
3093
  }
2860
- var CalendarIcon = { render };
2861
- var index_vue_vue_type_style_index_0_scoped_true_lang = "";
3094
+ const CalendarIcon = { render };
2862
3095
  const _sfc_main$3 = vue.defineComponent({
2863
3096
  name: "DrillDown",
2864
3097
  props: initDrillDownProps(),
@@ -2932,6 +3165,7 @@ const _sfc_main$3 = vue.defineComponent({
2932
3165
  };
2933
3166
  }
2934
3167
  });
3168
+ const index_vue_vue_type_style_index_0_scoped_1a60f775_lang = "";
2935
3169
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
2936
3170
  const _component_Button = vue.resolveComponent("Button");
2937
3171
  const _component_Input = vue.resolveComponent("Input");
@@ -2999,7 +3233,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
2999
3233
  }, 8, ["selectedKeys", "onSelect"])
3000
3234
  ], 2);
3001
3235
  }
3002
- var DrillDown = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-3a294982"]]);
3236
+ const DrillDown = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-1a60f775"]]);
3003
3237
  const _sfc_main$2 = vue.defineComponent({
3004
3238
  name: "PivotSheet",
3005
3239
  props: initBaseSheetProps(),
@@ -3031,11 +3265,12 @@ const _sfc_main$2 = vue.defineComponent({
3031
3265
  const { event, disabledFields } = params;
3032
3266
  if (event) {
3033
3267
  const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
3034
- const drillDownNode = vue.createVNode(DrillDown, __spreadProps(__spreadValues({}, (_b = partDrillDown.value) == null ? void 0 : _b.drillConfig), {
3268
+ const drillDownNode = vue.createVNode(DrillDown, {
3269
+ ...(_b = partDrillDown.value) == null ? void 0 : _b.drillConfig,
3035
3270
  setDrillFields,
3036
3271
  drillFields: drillFields.value,
3037
3272
  disabledFields
3038
- }));
3273
+ });
3039
3274
  instance == null ? void 0 : instance.showTooltip({
3040
3275
  position: {
3041
3276
  x: event.clientX,
@@ -3046,7 +3281,13 @@ const _sfc_main$2 = vue.defineComponent({
3046
3281
  });
3047
3282
  }
3048
3283
  };
3049
- const options = vue.computed(() => buildDrillDownOptions(pivotOptions.value, partDrillDown.value, (params) => onDrillDownIconClick(params)));
3284
+ const options = vue.computed(
3285
+ () => buildDrillDownOptions(
3286
+ pivotOptions.value,
3287
+ partDrillDown.value,
3288
+ (params) => onDrillDownIconClick(params)
3289
+ )
3290
+ );
3050
3291
  return {
3051
3292
  s2Ref,
3052
3293
  options
@@ -3063,7 +3304,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
3063
3304
  options: _ctx.options
3064
3305
  }), null, 16, ["options"]);
3065
3306
  }
3066
- var PivotSheet = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
3307
+ const PivotSheet = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
3067
3308
  const _sfc_main$1 = vue.defineComponent({
3068
3309
  name: "TableSheet",
3069
3310
  props: [],
@@ -3080,7 +3321,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
3080
3321
  const _component_BaseSheet = vue.resolveComponent("BaseSheet");
3081
3322
  return vue.openBlock(), vue.createBlock(_component_BaseSheet, { ref: "s2Ref" }, null, 512);
3082
3323
  }
3083
- var TableSheet = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
3324
+ const TableSheet = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
3084
3325
  const _sfc_main = vue.defineComponent({
3085
3326
  name: "Sheet",
3086
3327
  props: [],
@@ -3106,7 +3347,7 @@ const _sfc_main = vue.defineComponent({
3106
3347
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3107
3348
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
3108
3349
  }
3109
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3350
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3110
3351
  exports.BaseSheet = BaseSheet;
3111
3352
  exports.CustomTooltip = CustomTooltip;
3112
3353
  exports.PivotSheet = PivotSheet;