@antv/s2-vue 2.0.0-next.10 → 2.0.0-next.12
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/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/style.min.css +1 -1
- package/esm/index.d.ts +112 -66
- package/esm/index.js +108 -118
- package/esm/index.js.map +1 -1
- package/esm/style.css +1 -0
- package/lib/index.js +108 -118
- package/lib/index.js.map +1 -1
- package/lib/style.css +1 -0
- package/package.json +3 -3
package/esm/index.js
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
import { S2_PREFIX_CLS, customMerge, DEFAULT_OPTIONS, floor, S2Event, extendLocale, TOOLTIP_PREFIX_CLS, i18n, getIcon, getTooltipDefaultOptions, BaseTooltip, getBaseCellData, TableSheet as TableSheet$1, PivotSheet as PivotSheet$1 } from "@antv/s2";
|
|
2
21
|
import { shallowRef, defineComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, computed, createTextVNode, resolveComponent, createBlock, withCtx, createVNode, renderSlot, render as render$3, ref, watch, onMounted, reactive, isProxy, onBeforeUnmount, toRaw, toRefs, mergeProps, resolveDynamicComponent } from "vue";
|
|
3
22
|
import { Menu, Dropdown, Pagination, Spin, Button, Input, Empty, MenuItem } from "ant-design-vue";
|
|
@@ -108,16 +127,13 @@ const getBaseSheetComponentOptions = (...options) => customMerge(
|
|
|
108
127
|
...options
|
|
109
128
|
);
|
|
110
129
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
111
|
-
const freeGlobal$1 = freeGlobal;
|
|
112
130
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
113
|
-
var root = freeGlobal
|
|
114
|
-
|
|
115
|
-
var Symbol$1 = root$1.Symbol;
|
|
116
|
-
const Symbol$2 = Symbol$1;
|
|
131
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
132
|
+
var Symbol$1 = root.Symbol;
|
|
117
133
|
var objectProto$f = Object.prototype;
|
|
118
134
|
var hasOwnProperty$c = objectProto$f.hasOwnProperty;
|
|
119
135
|
var nativeObjectToString$1 = objectProto$f.toString;
|
|
120
|
-
var symToStringTag$1 = Symbol$
|
|
136
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
121
137
|
function getRawTag(value) {
|
|
122
138
|
var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
123
139
|
try {
|
|
@@ -141,7 +157,7 @@ function objectToString(value) {
|
|
|
141
157
|
return nativeObjectToString.call(value);
|
|
142
158
|
}
|
|
143
159
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
144
|
-
var symToStringTag = Symbol$
|
|
160
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
145
161
|
function baseGetTag(value) {
|
|
146
162
|
if (value == null) {
|
|
147
163
|
return value === void 0 ? undefinedTag : nullTag;
|
|
@@ -163,14 +179,13 @@ function arrayMap(array, iteratee) {
|
|
|
163
179
|
return result;
|
|
164
180
|
}
|
|
165
181
|
var isArray = Array.isArray;
|
|
166
|
-
const isArray$1 = isArray;
|
|
167
182
|
var INFINITY$1 = 1 / 0;
|
|
168
|
-
var symbolProto$2 = Symbol$
|
|
183
|
+
var symbolProto$2 = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto$2 ? symbolProto$2.toString : void 0;
|
|
169
184
|
function baseToString(value) {
|
|
170
185
|
if (typeof value == "string") {
|
|
171
186
|
return value;
|
|
172
187
|
}
|
|
173
|
-
if (isArray
|
|
188
|
+
if (isArray(value)) {
|
|
174
189
|
return arrayMap(value, baseToString) + "";
|
|
175
190
|
}
|
|
176
191
|
if (isSymbol(value)) {
|
|
@@ -228,10 +243,9 @@ function isFunction(value) {
|
|
|
228
243
|
var tag = baseGetTag(value);
|
|
229
244
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
230
245
|
}
|
|
231
|
-
var coreJsData = root
|
|
232
|
-
const coreJsData$1 = coreJsData;
|
|
246
|
+
var coreJsData = root["__core-js_shared__"];
|
|
233
247
|
var maskSrcKey = function() {
|
|
234
|
-
var uid = /[^.]+$/.exec(coreJsData
|
|
248
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
235
249
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
236
250
|
}();
|
|
237
251
|
function isMasked(func) {
|
|
@@ -274,10 +288,9 @@ function getNative(object, key) {
|
|
|
274
288
|
var value = getValue(object, key);
|
|
275
289
|
return baseIsNative(value) ? value : void 0;
|
|
276
290
|
}
|
|
277
|
-
var WeakMap = getNative(root
|
|
278
|
-
const WeakMap$1 = WeakMap;
|
|
291
|
+
var WeakMap = getNative(root, "WeakMap");
|
|
279
292
|
var objectCreate = Object.create;
|
|
280
|
-
var baseCreate = function() {
|
|
293
|
+
var baseCreate = /* @__PURE__ */ function() {
|
|
281
294
|
function object() {
|
|
282
295
|
}
|
|
283
296
|
return function(proto) {
|
|
@@ -293,7 +306,6 @@ var baseCreate = function() {
|
|
|
293
306
|
return result;
|
|
294
307
|
};
|
|
295
308
|
}();
|
|
296
|
-
const baseCreate$1 = baseCreate;
|
|
297
309
|
function copyArray(source, array) {
|
|
298
310
|
var index2 = -1, length = source.length;
|
|
299
311
|
array || (array = Array(length));
|
|
@@ -310,7 +322,6 @@ var defineProperty = function() {
|
|
|
310
322
|
} catch (e) {
|
|
311
323
|
}
|
|
312
324
|
}();
|
|
313
|
-
const defineProperty$1 = defineProperty;
|
|
314
325
|
function arrayEach(array, iteratee) {
|
|
315
326
|
var index2 = -1, length = array == null ? 0 : array.length;
|
|
316
327
|
while (++index2 < length) {
|
|
@@ -328,8 +339,8 @@ function isIndex(value, length) {
|
|
|
328
339
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
329
340
|
}
|
|
330
341
|
function baseAssignValue(object, key, value) {
|
|
331
|
-
if (key == "__proto__" && defineProperty
|
|
332
|
-
defineProperty
|
|
342
|
+
if (key == "__proto__" && defineProperty) {
|
|
343
|
+
defineProperty(object, key, {
|
|
333
344
|
"configurable": true,
|
|
334
345
|
"enumerable": true,
|
|
335
346
|
"value": value,
|
|
@@ -394,7 +405,7 @@ function baseIsArguments(value) {
|
|
|
394
405
|
var objectProto$a = Object.prototype;
|
|
395
406
|
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
396
407
|
var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
|
|
397
|
-
var isArguments = baseIsArguments(function() {
|
|
408
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
398
409
|
return arguments;
|
|
399
410
|
}()) ? baseIsArguments : function(value) {
|
|
400
411
|
return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
@@ -406,7 +417,7 @@ function stubFalse() {
|
|
|
406
417
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
407
418
|
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
408
419
|
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
409
|
-
var Buffer$1 = moduleExports$2 ? root
|
|
420
|
+
var Buffer$1 = moduleExports$2 ? root.Buffer : void 0;
|
|
410
421
|
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
411
422
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
412
423
|
const isBuffer$1 = isBuffer;
|
|
@@ -426,7 +437,7 @@ function baseUnary(func) {
|
|
|
426
437
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
427
438
|
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
428
439
|
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
429
|
-
var freeProcess = moduleExports$1 && freeGlobal
|
|
440
|
+
var freeProcess = moduleExports$1 && freeGlobal.process;
|
|
430
441
|
var nodeUtil = function() {
|
|
431
442
|
try {
|
|
432
443
|
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
@@ -437,14 +448,13 @@ var nodeUtil = function() {
|
|
|
437
448
|
} catch (e) {
|
|
438
449
|
}
|
|
439
450
|
}();
|
|
440
|
-
|
|
441
|
-
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
451
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
442
452
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
443
453
|
const isTypedArray$1 = isTypedArray;
|
|
444
454
|
var objectProto$9 = Object.prototype;
|
|
445
455
|
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
446
456
|
function arrayLikeKeys(value, inherited) {
|
|
447
|
-
var isArr = isArray
|
|
457
|
+
var isArr = isArray(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
448
458
|
for (var key in value) {
|
|
449
459
|
if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
450
460
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -462,12 +472,11 @@ function overArg(func, transform) {
|
|
|
462
472
|
};
|
|
463
473
|
}
|
|
464
474
|
var nativeKeys = overArg(Object.keys, Object);
|
|
465
|
-
const nativeKeys$1 = nativeKeys;
|
|
466
475
|
var objectProto$8 = Object.prototype;
|
|
467
476
|
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
468
477
|
function baseKeys(object) {
|
|
469
478
|
if (!isPrototype(object)) {
|
|
470
|
-
return nativeKeys
|
|
479
|
+
return nativeKeys(object);
|
|
471
480
|
}
|
|
472
481
|
var result = [];
|
|
473
482
|
for (var key in Object(object)) {
|
|
@@ -508,7 +517,7 @@ function keysIn(object) {
|
|
|
508
517
|
}
|
|
509
518
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
510
519
|
function isKey(value, object) {
|
|
511
|
-
if (isArray
|
|
520
|
+
if (isArray(value)) {
|
|
512
521
|
return false;
|
|
513
522
|
}
|
|
514
523
|
var type = typeof value;
|
|
@@ -518,9 +527,8 @@ function isKey(value, object) {
|
|
|
518
527
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
519
528
|
}
|
|
520
529
|
var nativeCreate = getNative(Object, "create");
|
|
521
|
-
const nativeCreate$1 = nativeCreate;
|
|
522
530
|
function hashClear() {
|
|
523
|
-
this.__data__ = nativeCreate
|
|
531
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
524
532
|
this.size = 0;
|
|
525
533
|
}
|
|
526
534
|
function hashDelete(key) {
|
|
@@ -533,7 +541,7 @@ var objectProto$6 = Object.prototype;
|
|
|
533
541
|
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
534
542
|
function hashGet(key) {
|
|
535
543
|
var data = this.__data__;
|
|
536
|
-
if (nativeCreate
|
|
544
|
+
if (nativeCreate) {
|
|
537
545
|
var result = data[key];
|
|
538
546
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
539
547
|
}
|
|
@@ -543,13 +551,13 @@ var objectProto$5 = Object.prototype;
|
|
|
543
551
|
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
544
552
|
function hashHas(key) {
|
|
545
553
|
var data = this.__data__;
|
|
546
|
-
return nativeCreate
|
|
554
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
|
|
547
555
|
}
|
|
548
556
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
549
557
|
function hashSet(key, value) {
|
|
550
558
|
var data = this.__data__;
|
|
551
559
|
this.size += this.has(key) ? 0 : 1;
|
|
552
|
-
data[key] = nativeCreate
|
|
560
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
553
561
|
return this;
|
|
554
562
|
}
|
|
555
563
|
function Hash(entries) {
|
|
@@ -624,13 +632,12 @@ ListCache.prototype["delete"] = listCacheDelete;
|
|
|
624
632
|
ListCache.prototype.get = listCacheGet;
|
|
625
633
|
ListCache.prototype.has = listCacheHas;
|
|
626
634
|
ListCache.prototype.set = listCacheSet;
|
|
627
|
-
var Map = getNative(root
|
|
628
|
-
const Map$1 = Map;
|
|
635
|
+
var Map = getNative(root, "Map");
|
|
629
636
|
function mapCacheClear() {
|
|
630
637
|
this.size = 0;
|
|
631
638
|
this.__data__ = {
|
|
632
639
|
"hash": new Hash(),
|
|
633
|
-
"map": new (Map
|
|
640
|
+
"map": new (Map || ListCache)(),
|
|
634
641
|
"string": new Hash()
|
|
635
642
|
};
|
|
636
643
|
}
|
|
@@ -713,15 +720,14 @@ var stringToPath = memoizeCapped(function(string) {
|
|
|
713
720
|
});
|
|
714
721
|
return result;
|
|
715
722
|
});
|
|
716
|
-
const stringToPath$1 = stringToPath;
|
|
717
723
|
function toString(value) {
|
|
718
724
|
return value == null ? "" : baseToString(value);
|
|
719
725
|
}
|
|
720
726
|
function castPath(value, object) {
|
|
721
|
-
if (isArray
|
|
727
|
+
if (isArray(value)) {
|
|
722
728
|
return value;
|
|
723
729
|
}
|
|
724
|
-
return isKey(value, object) ? [value] : stringToPath
|
|
730
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
725
731
|
}
|
|
726
732
|
var INFINITY = 1 / 0;
|
|
727
733
|
function toKey(value) {
|
|
@@ -788,7 +794,7 @@ function stackSet(key, value) {
|
|
|
788
794
|
var data = this.__data__;
|
|
789
795
|
if (data instanceof ListCache) {
|
|
790
796
|
var pairs = data.__data__;
|
|
791
|
-
if (!Map
|
|
797
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
792
798
|
pairs.push([key, value]);
|
|
793
799
|
this.size = ++data.size;
|
|
794
800
|
return this;
|
|
@@ -817,7 +823,7 @@ function baseAssignIn(object, source) {
|
|
|
817
823
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
818
824
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
819
825
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
820
|
-
var
|
|
826
|
+
var Buffer2 = moduleExports ? root.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
821
827
|
function cloneBuffer(buffer, isDeep) {
|
|
822
828
|
if (isDeep) {
|
|
823
829
|
return buffer.slice();
|
|
@@ -864,31 +870,27 @@ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
864
870
|
}
|
|
865
871
|
return result;
|
|
866
872
|
};
|
|
867
|
-
const getSymbolsIn$1 = getSymbolsIn;
|
|
868
873
|
function copySymbolsIn(source, object) {
|
|
869
|
-
return copyObject(source, getSymbolsIn
|
|
874
|
+
return copyObject(source, getSymbolsIn(source), object);
|
|
870
875
|
}
|
|
871
876
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
872
877
|
var result = keysFunc(object);
|
|
873
|
-
return isArray
|
|
878
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
874
879
|
}
|
|
875
880
|
function getAllKeys(object) {
|
|
876
881
|
return baseGetAllKeys(object, keys, getSymbols$1);
|
|
877
882
|
}
|
|
878
883
|
function getAllKeysIn(object) {
|
|
879
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn
|
|
880
|
-
}
|
|
881
|
-
var DataView = getNative(root
|
|
882
|
-
|
|
883
|
-
var
|
|
884
|
-
const Promise$2 = Promise$1;
|
|
885
|
-
var Set = getNative(root$1, "Set");
|
|
886
|
-
const Set$1 = Set;
|
|
884
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
885
|
+
}
|
|
886
|
+
var DataView = getNative(root, "DataView");
|
|
887
|
+
var Promise$1 = getNative(root, "Promise");
|
|
888
|
+
var Set = getNative(root, "Set");
|
|
887
889
|
var mapTag$6 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$6 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
888
890
|
var dataViewTag$3 = "[object DataView]";
|
|
889
|
-
var dataViewCtorString = toSource(DataView
|
|
891
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
890
892
|
var getTag = baseGetTag;
|
|
891
|
-
if (DataView
|
|
893
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map && getTag(new Map()) != mapTag$6 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$6 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) {
|
|
892
894
|
getTag = function(value) {
|
|
893
895
|
var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
894
896
|
if (ctorString) {
|
|
@@ -919,8 +921,8 @@ function initCloneArray(array) {
|
|
|
919
921
|
}
|
|
920
922
|
return result;
|
|
921
923
|
}
|
|
922
|
-
var
|
|
923
|
-
const Uint8Array$1 =
|
|
924
|
+
var Uint8Array2 = root.Uint8Array;
|
|
925
|
+
const Uint8Array$1 = Uint8Array2;
|
|
924
926
|
function cloneArrayBuffer(arrayBuffer) {
|
|
925
927
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
926
928
|
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
@@ -936,7 +938,7 @@ function cloneRegExp(regexp) {
|
|
|
936
938
|
result.lastIndex = regexp.lastIndex;
|
|
937
939
|
return result;
|
|
938
940
|
}
|
|
939
|
-
var symbolProto$1 = Symbol$
|
|
941
|
+
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
940
942
|
function cloneSymbol(symbol) {
|
|
941
943
|
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
942
944
|
}
|
|
@@ -980,22 +982,20 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
980
982
|
}
|
|
981
983
|
}
|
|
982
984
|
function initCloneObject(object) {
|
|
983
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate
|
|
985
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype$1(object)) : {};
|
|
984
986
|
}
|
|
985
987
|
var mapTag$4 = "[object Map]";
|
|
986
988
|
function baseIsMap(value) {
|
|
987
989
|
return isObjectLike(value) && getTag$1(value) == mapTag$4;
|
|
988
990
|
}
|
|
989
|
-
var nodeIsMap = nodeUtil
|
|
991
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
990
992
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
991
|
-
const isMap$1 = isMap;
|
|
992
993
|
var setTag$4 = "[object Set]";
|
|
993
994
|
function baseIsSet(value) {
|
|
994
995
|
return isObjectLike(value) && getTag$1(value) == setTag$4;
|
|
995
996
|
}
|
|
996
|
-
var nodeIsSet = nodeUtil
|
|
997
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
997
998
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
998
|
-
const isSet$1 = isSet;
|
|
999
999
|
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1000
1000
|
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]";
|
|
1001
1001
|
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]";
|
|
@@ -1013,7 +1013,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1013
1013
|
if (!isObject(value)) {
|
|
1014
1014
|
return value;
|
|
1015
1015
|
}
|
|
1016
|
-
var isArr = isArray
|
|
1016
|
+
var isArr = isArray(value);
|
|
1017
1017
|
if (isArr) {
|
|
1018
1018
|
result = initCloneArray(value);
|
|
1019
1019
|
if (!isDeep) {
|
|
@@ -1042,11 +1042,11 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1042
1042
|
return stacked;
|
|
1043
1043
|
}
|
|
1044
1044
|
stack.set(value, result);
|
|
1045
|
-
if (isSet
|
|
1045
|
+
if (isSet(value)) {
|
|
1046
1046
|
value.forEach(function(subValue) {
|
|
1047
1047
|
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
1048
1048
|
});
|
|
1049
|
-
} else if (isMap
|
|
1049
|
+
} else if (isMap(value)) {
|
|
1050
1050
|
value.forEach(function(subValue, key2) {
|
|
1051
1051
|
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
1052
1052
|
});
|
|
@@ -1156,7 +1156,7 @@ function setToArray(set) {
|
|
|
1156
1156
|
var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
|
|
1157
1157
|
var boolTag$1 = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$2 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
|
|
1158
1158
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
1159
|
-
var symbolProto = Symbol$
|
|
1159
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1160
1160
|
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1161
1161
|
switch (tag) {
|
|
1162
1162
|
case dataViewTag:
|
|
@@ -1254,7 +1254,7 @@ var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[o
|
|
|
1254
1254
|
var objectProto$1 = Object.prototype;
|
|
1255
1255
|
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
1256
1256
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1257
|
-
var objIsArr = isArray
|
|
1257
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
1258
1258
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
1259
1259
|
othTag = othTag == argsTag ? objectTag : othTag;
|
|
1260
1260
|
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
@@ -1369,7 +1369,7 @@ function hasPath(object, path, hasFunc) {
|
|
|
1369
1369
|
return result;
|
|
1370
1370
|
}
|
|
1371
1371
|
length = object == null ? 0 : object.length;
|
|
1372
|
-
return !!length && isLength(length) && isIndex(key, length) && (isArray
|
|
1372
|
+
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments$1(object));
|
|
1373
1373
|
}
|
|
1374
1374
|
function hasIn(object, path) {
|
|
1375
1375
|
return object != null && hasPath(object, path, baseHasIn);
|
|
@@ -1405,7 +1405,7 @@ function baseIteratee(value) {
|
|
|
1405
1405
|
return identity;
|
|
1406
1406
|
}
|
|
1407
1407
|
if (typeof value == "object") {
|
|
1408
|
-
return isArray
|
|
1408
|
+
return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
1409
1409
|
}
|
|
1410
1410
|
return property(value);
|
|
1411
1411
|
}
|
|
@@ -1446,9 +1446,8 @@ function createBaseEach(eachFunc, fromRight) {
|
|
|
1446
1446
|
var baseEach = createBaseEach(baseForOwn);
|
|
1447
1447
|
const baseEach$1 = baseEach;
|
|
1448
1448
|
var now = function() {
|
|
1449
|
-
return root
|
|
1449
|
+
return root.Date.now();
|
|
1450
1450
|
};
|
|
1451
|
-
const now$1 = now;
|
|
1452
1451
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1453
1452
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
1454
1453
|
function debounce(func, wait, options) {
|
|
@@ -1484,7 +1483,7 @@ function debounce(func, wait, options) {
|
|
|
1484
1483
|
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
1485
1484
|
}
|
|
1486
1485
|
function timerExpired() {
|
|
1487
|
-
var time = now
|
|
1486
|
+
var time = now();
|
|
1488
1487
|
if (shouldInvoke(time)) {
|
|
1489
1488
|
return trailingEdge(time);
|
|
1490
1489
|
}
|
|
@@ -1506,10 +1505,10 @@ function debounce(func, wait, options) {
|
|
|
1506
1505
|
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
1507
1506
|
}
|
|
1508
1507
|
function flush() {
|
|
1509
|
-
return timerId === void 0 ? result : trailingEdge(now
|
|
1508
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
1510
1509
|
}
|
|
1511
1510
|
function debounced() {
|
|
1512
|
-
var time = now
|
|
1511
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
1513
1512
|
lastArgs = arguments;
|
|
1514
1513
|
lastThis = this;
|
|
1515
1514
|
lastCallTime = time;
|
|
@@ -1542,12 +1541,12 @@ function baseFilter(collection, predicate) {
|
|
|
1542
1541
|
return result;
|
|
1543
1542
|
}
|
|
1544
1543
|
function filter(collection, predicate) {
|
|
1545
|
-
var func = isArray
|
|
1544
|
+
var func = isArray(collection) ? arrayFilter : baseFilter;
|
|
1546
1545
|
return func(collection, baseIteratee(predicate));
|
|
1547
1546
|
}
|
|
1548
1547
|
var stringTag = "[object String]";
|
|
1549
1548
|
function isString(value) {
|
|
1550
|
-
return typeof value == "string" || !isArray
|
|
1549
|
+
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
1551
1550
|
}
|
|
1552
1551
|
var boolTag = "[object Boolean]";
|
|
1553
1552
|
function isBoolean(value) {
|
|
@@ -1560,7 +1559,7 @@ function isEmpty(value) {
|
|
|
1560
1559
|
if (value == null) {
|
|
1561
1560
|
return true;
|
|
1562
1561
|
}
|
|
1563
|
-
if (isArrayLike(value) && (isArray
|
|
1562
|
+
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$1(value) || isTypedArray$1(value) || isArguments$1(value))) {
|
|
1564
1563
|
return !value.length;
|
|
1565
1564
|
}
|
|
1566
1565
|
var tag = getTag$1(value);
|
|
@@ -1578,7 +1577,6 @@ function isEmpty(value) {
|
|
|
1578
1577
|
return true;
|
|
1579
1578
|
}
|
|
1580
1579
|
var asciiSize = baseProperty("length");
|
|
1581
|
-
const asciiSize$1 = asciiSize;
|
|
1582
1580
|
var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
|
|
1583
1581
|
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";
|
|
1584
1582
|
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("|") + ")";
|
|
@@ -1591,7 +1589,7 @@ function unicodeSize(string) {
|
|
|
1591
1589
|
return result;
|
|
1592
1590
|
}
|
|
1593
1591
|
function stringSize(string) {
|
|
1594
|
-
return hasUnicode(string) ? unicodeSize(string) : asciiSize
|
|
1592
|
+
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
|
1595
1593
|
}
|
|
1596
1594
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
1597
1595
|
eachFunc(collection, function(value, index2, collection2) {
|
|
@@ -1600,7 +1598,7 @@ function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
|
1600
1598
|
return accumulator;
|
|
1601
1599
|
}
|
|
1602
1600
|
function reduce(collection, iteratee, accumulator) {
|
|
1603
|
-
var func = isArray
|
|
1601
|
+
var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
1604
1602
|
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
|
|
1605
1603
|
}
|
|
1606
1604
|
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
@@ -1618,7 +1616,7 @@ function size(collection) {
|
|
|
1618
1616
|
return baseKeys(collection).length;
|
|
1619
1617
|
}
|
|
1620
1618
|
const analyzeAdaptive = (defaultContainer, adaptive) => {
|
|
1621
|
-
var _a;
|
|
1619
|
+
var _a, _b, _c;
|
|
1622
1620
|
if (isBoolean(adaptive)) {
|
|
1623
1621
|
return {
|
|
1624
1622
|
container: defaultContainer,
|
|
@@ -1628,8 +1626,8 @@ const analyzeAdaptive = (defaultContainer, adaptive) => {
|
|
|
1628
1626
|
}
|
|
1629
1627
|
return {
|
|
1630
1628
|
container: ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || defaultContainer,
|
|
1631
|
-
adaptiveWidth: (adaptive == null ? void 0 : adaptive.width)
|
|
1632
|
-
adaptiveHeight: (adaptive == null ? void 0 : adaptive.height)
|
|
1629
|
+
adaptiveWidth: (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true,
|
|
1630
|
+
adaptiveHeight: (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true
|
|
1633
1631
|
};
|
|
1634
1632
|
};
|
|
1635
1633
|
const createResizeObserver = (params) => {
|
|
@@ -1650,8 +1648,8 @@ const createResizeObserver = (params) => {
|
|
|
1650
1648
|
const debounceRender = debounce(render2, RESIZE_RENDER_DELAY);
|
|
1651
1649
|
const onResize = () => {
|
|
1652
1650
|
const { clientWidth: containerWidth, clientHeight: containerHeight } = container;
|
|
1653
|
-
const width = adaptiveWidth ? floor(containerWidth
|
|
1654
|
-
const height = adaptiveHeight ? floor(containerHeight
|
|
1651
|
+
const width = adaptiveWidth ? floor(containerWidth != null ? containerWidth : s2.options.width) : s2.options.width;
|
|
1652
|
+
const height = adaptiveHeight ? floor(containerHeight != null ? containerHeight : s2.options.height) : s2.options.height;
|
|
1655
1653
|
if (!adaptiveWidth && !adaptiveHeight) {
|
|
1656
1654
|
return;
|
|
1657
1655
|
}
|
|
@@ -1744,10 +1742,9 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
|
|
|
1744
1742
|
};
|
|
1745
1743
|
nextHeaderIcons.push(drillDownActionIcon);
|
|
1746
1744
|
}
|
|
1747
|
-
return {
|
|
1748
|
-
...options,
|
|
1745
|
+
return __spreadProps(__spreadValues({}, options), {
|
|
1749
1746
|
headerActionIcons: nextHeaderIcons
|
|
1750
|
-
};
|
|
1747
|
+
});
|
|
1751
1748
|
};
|
|
1752
1749
|
const handleDrillDown = (params) => {
|
|
1753
1750
|
const { fetchData, spreadsheet, drillFields, drillItemsNum = -1 } = params;
|
|
@@ -2094,7 +2091,6 @@ const _sfc_main$7 = defineComponent({
|
|
|
2094
2091
|
TooltipOperatorMenu
|
|
2095
2092
|
}
|
|
2096
2093
|
});
|
|
2097
|
-
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
2098
2094
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2099
2095
|
const _component_TooltipOperatorMenu = resolveComponent("TooltipOperatorMenu");
|
|
2100
2096
|
const _component_Menu = resolveComponent("Menu");
|
|
@@ -2184,7 +2180,6 @@ const _sfc_main$6 = defineComponent({
|
|
|
2184
2180
|
TooltipOperator
|
|
2185
2181
|
}
|
|
2186
2182
|
});
|
|
2187
|
-
const index_vue_vue_type_style_index_0_lang = "";
|
|
2188
2183
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2189
2184
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
2190
2185
|
const _component_TooltipOperator = resolveComponent("TooltipOperator");
|
|
@@ -2233,18 +2228,17 @@ class CustomTooltip extends BaseTooltip {
|
|
|
2233
2228
|
super(spreadsheet);
|
|
2234
2229
|
}
|
|
2235
2230
|
renderContent() {
|
|
2236
|
-
var _a;
|
|
2231
|
+
var _a, _b;
|
|
2237
2232
|
const { tooltip } = this.spreadsheet.options;
|
|
2238
2233
|
const showOptions = this.options;
|
|
2239
2234
|
const cell = this.spreadsheet.getCell(
|
|
2240
2235
|
(_a = showOptions.event) == null ? void 0 : _a.target
|
|
2241
2236
|
);
|
|
2242
|
-
const content = showOptions.content
|
|
2243
|
-
const tooltipProps = {
|
|
2244
|
-
...showOptions,
|
|
2237
|
+
const content = (_b = showOptions.content) != null ? _b : tooltip == null ? void 0 : tooltip.content;
|
|
2238
|
+
const tooltipProps = __spreadProps(__spreadValues({}, showOptions), {
|
|
2245
2239
|
cell,
|
|
2246
2240
|
content
|
|
2247
|
-
};
|
|
2241
|
+
});
|
|
2248
2242
|
const tooltipVNode = createVNode(
|
|
2249
2243
|
TooltipComponent,
|
|
2250
2244
|
tooltipProps,
|
|
@@ -2265,12 +2259,12 @@ class CustomTooltip extends BaseTooltip {
|
|
|
2265
2259
|
const DEFAULT_PAGE_NUMBER = 1;
|
|
2266
2260
|
const DEFAULT_PAGE_SIZE = 10;
|
|
2267
2261
|
const usePagination = (s2Ref, props) => {
|
|
2268
|
-
var _a, _b, _c, _d;
|
|
2262
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2269
2263
|
const current = ref(
|
|
2270
|
-
((_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current)
|
|
2264
|
+
(_c = (_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) != null ? _c : DEFAULT_PAGE_NUMBER
|
|
2271
2265
|
);
|
|
2272
2266
|
const pageSize = ref(
|
|
2273
|
-
((
|
|
2267
|
+
(_f = (_e = (_d = props.options) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) != null ? _f : DEFAULT_PAGE_SIZE
|
|
2274
2268
|
);
|
|
2275
2269
|
const total = ref(0);
|
|
2276
2270
|
const change = (nextCurrent) => {
|
|
@@ -2303,10 +2297,10 @@ const usePagination = (s2Ref, props) => {
|
|
|
2303
2297
|
return (_a2 = props.options) == null ? void 0 : _a2.pagination;
|
|
2304
2298
|
}, s2Ref],
|
|
2305
2299
|
() => {
|
|
2306
|
-
var _a2, _b2, _c2, _d2,
|
|
2307
|
-
current.value = ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current)
|
|
2308
|
-
pageSize.value = ((
|
|
2309
|
-
total.value = ((
|
|
2300
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
|
|
2301
|
+
current.value = (_c2 = (_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) != null ? _c2 : DEFAULT_PAGE_NUMBER;
|
|
2302
|
+
pageSize.value = (_f2 = (_e2 = (_d2 = props.options) == null ? void 0 : _d2.pagination) == null ? void 0 : _e2.pageSize) != null ? _f2 : DEFAULT_PAGE_SIZE;
|
|
2303
|
+
total.value = (_i = (_h = (_g = s2Ref.value) == null ? void 0 : _g.facet) == null ? void 0 : _h.viewCellHeights.getTotalLength()) != null ? _i : 0;
|
|
2310
2304
|
},
|
|
2311
2305
|
{
|
|
2312
2306
|
immediate: true
|
|
@@ -2774,7 +2768,7 @@ function useSpreadSheet(props, emit) {
|
|
|
2774
2768
|
themeCfg,
|
|
2775
2769
|
loading: loadingProps,
|
|
2776
2770
|
sheetType,
|
|
2777
|
-
|
|
2771
|
+
spreadsheet: customSpreadSheet,
|
|
2778
2772
|
onMounted: onS2Mounted
|
|
2779
2773
|
} = props;
|
|
2780
2774
|
const wrapperRef = ref();
|
|
@@ -2786,8 +2780,8 @@ function useSpreadSheet(props, emit) {
|
|
|
2786
2780
|
const rawDataCfg = toRaw(dataCfg);
|
|
2787
2781
|
const rawOptions = toRaw(options);
|
|
2788
2782
|
const s2Options = getSheetComponentOptions(rawOptions);
|
|
2789
|
-
if (
|
|
2790
|
-
return
|
|
2783
|
+
if (customSpreadSheet) {
|
|
2784
|
+
return customSpreadSheet(container, rawDataCfg, s2Options);
|
|
2791
2785
|
}
|
|
2792
2786
|
if (sheetType === "table") {
|
|
2793
2787
|
return new TableSheet$1(container, rawDataCfg, s2Options);
|
|
@@ -2829,7 +2823,6 @@ const initBaseSheetProps = () => {
|
|
|
2829
2823
|
default: false
|
|
2830
2824
|
},
|
|
2831
2825
|
loading: Boolean,
|
|
2832
|
-
// TODO: 待后续完善
|
|
2833
2826
|
partDrillDown: Object,
|
|
2834
2827
|
header: Object,
|
|
2835
2828
|
options: {
|
|
@@ -2840,7 +2833,7 @@ const initBaseSheetProps = () => {
|
|
|
2840
2833
|
type: [Object, Boolean],
|
|
2841
2834
|
default: false
|
|
2842
2835
|
},
|
|
2843
|
-
|
|
2836
|
+
spreadsheet: Function,
|
|
2844
2837
|
onMounted: Function
|
|
2845
2838
|
};
|
|
2846
2839
|
};
|
|
@@ -3014,7 +3007,6 @@ const _sfc_main$4 = defineComponent({
|
|
|
3014
3007
|
S2Pagination
|
|
3015
3008
|
}
|
|
3016
3009
|
});
|
|
3017
|
-
const baseSheet_vue_vue_type_style_index_0_lang = "";
|
|
3018
3010
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3019
3011
|
const _component_S2Pagination = resolveComponent("S2Pagination");
|
|
3020
3012
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -3170,7 +3162,6 @@ const _sfc_main$3 = defineComponent({
|
|
|
3170
3162
|
};
|
|
3171
3163
|
}
|
|
3172
3164
|
});
|
|
3173
|
-
const index_vue_vue_type_style_index_0_scoped_8dd920ec_lang = "";
|
|
3174
3165
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3175
3166
|
const _component_Button = resolveComponent("Button");
|
|
3176
3167
|
const _component_Input = resolveComponent("Input");
|
|
@@ -3249,7 +3240,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
3249
3240
|
const { dataCfg, partDrillDown } = toRefs(props);
|
|
3250
3241
|
const drillFields = ref([]);
|
|
3251
3242
|
const setDrillFields = (fields) => {
|
|
3252
|
-
var _a, _b, _c, _d, _e;
|
|
3243
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3253
3244
|
const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
|
|
3254
3245
|
drillFields.value = fields;
|
|
3255
3246
|
instance == null ? void 0 : instance.hideTooltip();
|
|
@@ -3257,10 +3248,10 @@ const _sfc_main$2 = defineComponent({
|
|
|
3257
3248
|
instance == null ? void 0 : instance.clearDrillDownData((_b = instance == null ? void 0 : instance.store.get("drillDownNode")) == null ? void 0 : _b.id);
|
|
3258
3249
|
} else {
|
|
3259
3250
|
handleDrillDown({
|
|
3260
|
-
rows: ((_c = dataCfg.value) == null ? void 0 : _c.fields.rows)
|
|
3251
|
+
rows: (_d = (_c = dataCfg.value) == null ? void 0 : _c.fields.rows) != null ? _d : [],
|
|
3261
3252
|
drillFields: fields,
|
|
3262
|
-
fetchData: (
|
|
3263
|
-
drillItemsNum: (
|
|
3253
|
+
fetchData: (_e = partDrillDown.value) == null ? void 0 : _e["fetchData"],
|
|
3254
|
+
drillItemsNum: (_f = partDrillDown.value) == null ? void 0 : _f["drillItemsNum"],
|
|
3264
3255
|
spreadsheet: instance
|
|
3265
3256
|
});
|
|
3266
3257
|
}
|
|
@@ -3270,12 +3261,11 @@ const _sfc_main$2 = defineComponent({
|
|
|
3270
3261
|
const { event, disabledFields } = params;
|
|
3271
3262
|
if (event) {
|
|
3272
3263
|
const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
|
|
3273
|
-
const drillDownNode = createVNode(DrillDown, {
|
|
3274
|
-
...(_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"],
|
|
3264
|
+
const drillDownNode = createVNode(DrillDown, __spreadProps(__spreadValues({}, (_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"]), {
|
|
3275
3265
|
setDrillFields,
|
|
3276
3266
|
drillFields: drillFields.value,
|
|
3277
3267
|
disabledFields
|
|
3278
|
-
});
|
|
3268
|
+
}));
|
|
3279
3269
|
instance == null ? void 0 : instance.showTooltip({
|
|
3280
3270
|
position: {
|
|
3281
3271
|
x: event.clientX,
|
|
@@ -3353,7 +3343,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3353
3343
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
|
|
3354
3344
|
}
|
|
3355
3345
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3356
|
-
const version = "@antv/s2-vue-v2.0.0-next.
|
|
3346
|
+
const version = "@antv/s2-vue-v2.0.0-next.12";
|
|
3357
3347
|
export {
|
|
3358
3348
|
BaseSheet,
|
|
3359
3349
|
CustomTooltip,
|