@antv/s2-vue 1.2.0-alpha.1 → 1.2.2

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/esm/index.js CHANGED
@@ -1619,17 +1619,20 @@ function size(collection) {
1619
1619
  }
1620
1620
  return baseKeys(collection).length;
1621
1621
  }
1622
- const analyzeAdaptive = (paramsContainer, adaptive) => {
1622
+ const analyzeAdaptive = (defaultContainer, adaptive) => {
1623
1623
  var _a, _b, _c;
1624
- let container = paramsContainer;
1625
- let adaptiveWidth = true;
1626
- let adaptiveHeight = false;
1627
- if (typeof adaptive !== "boolean") {
1628
- container = ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || paramsContainer;
1629
- adaptiveWidth = (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true;
1630
- adaptiveHeight = (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true;
1631
- }
1632
- return { container, adaptiveWidth, adaptiveHeight };
1624
+ if (isBoolean(adaptive)) {
1625
+ return {
1626
+ container: defaultContainer,
1627
+ adaptiveWidth: true,
1628
+ adaptiveHeight: false
1629
+ };
1630
+ }
1631
+ return {
1632
+ container: ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || defaultContainer,
1633
+ adaptiveWidth: (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true,
1634
+ adaptiveHeight: (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true
1635
+ };
1633
1636
  };
1634
1637
  const createResizeObserver = (params) => {
1635
1638
  let isFirstRender = true;
@@ -2637,19 +2640,23 @@ const initBaseSheetEmits = () => {
2637
2640
  "rowCellHover",
2638
2641
  "rowCellClick",
2639
2642
  "rowCellDoubleClick",
2643
+ "rowCellContextMenu",
2640
2644
  "rowCellMouseDown",
2641
2645
  "rowCellMouseUp",
2642
2646
  "rowCellMouseMove",
2643
2647
  "rowCellCollapseTreeRows",
2648
+ "rowCellScroll",
2644
2649
  "colCellHover",
2645
2650
  "colCellClick",
2646
2651
  "colCellDoubleClick",
2652
+ "colCellContextMenu",
2647
2653
  "colCellMouseDown",
2648
2654
  "colCellMouseUp",
2649
2655
  "colCellMouseMove",
2650
2656
  "dataCellHover",
2651
2657
  "dataCellClick",
2652
2658
  "dataCellDoubleClick",
2659
+ "dataCellContextMenu",
2653
2660
  "dataCellMouseDown",
2654
2661
  "dataCellMouseUp",
2655
2662
  "dataCellMouseMove",
@@ -2659,12 +2666,14 @@ const initBaseSheetEmits = () => {
2659
2666
  "cornerCellHover",
2660
2667
  "cornerCellClick",
2661
2668
  "cornerCellDoubleClick",
2669
+ "cornerCellContextMenu",
2662
2670
  "cornerCellMouseDown",
2663
2671
  "cornerCellMouseUp",
2664
2672
  "cornerCellMouseMove",
2665
2673
  "mergedCellsHover",
2666
2674
  "mergedCellsClick",
2667
2675
  "mergedCellsDoubleClick",
2676
+ "mergedCellsContextMenu",
2668
2677
  "mergedCellsMouseDown",
2669
2678
  "mergedCellsMouseUp",
2670
2679
  "mergedCellsMouseMove",
@@ -2675,6 +2684,7 @@ const initBaseSheetEmits = () => {
2675
2684
  "layoutAfterHeaderLayout",
2676
2685
  "layoutPagination",
2677
2686
  "layoutCellScroll",
2687
+ "layoutCollapseRows",
2678
2688
  "layoutAfterCollapseRows",
2679
2689
  "collapseRowsAll",
2680
2690
  "layoutColsExpanded",
@@ -2696,14 +2706,19 @@ const initBaseSheetEmits = () => {
2696
2706
  "keyBoardUp",
2697
2707
  "copied",
2698
2708
  "actionIconHover",
2699
- "contextMenu",
2700
2709
  "actionIconClick",
2710
+ "contextMenu",
2701
2711
  "mouseHover",
2702
2712
  "mouseUp",
2713
+ "mouseMove",
2714
+ "mouseDown",
2703
2715
  "selected",
2704
2716
  "reset",
2705
2717
  "linkFieldJump",
2706
- "scroll"
2718
+ "click",
2719
+ "doubleClick",
2720
+ "scroll",
2721
+ "hover"
2707
2722
  ];
2708
2723
  return keys2;
2709
2724
  };
@@ -2881,16 +2896,19 @@ const _sfc_main$3 = defineComponent({
2881
2896
  if (getDrillFields) {
2882
2897
  getDrillFields(key);
2883
2898
  }
2884
- if (setDrillFields)
2899
+ if (setDrillFields) {
2885
2900
  setDrillFields(key);
2901
+ }
2886
2902
  };
2887
2903
  const handleClear = (e) => {
2888
2904
  e.stopPropagation();
2889
2905
  selected.value = [];
2890
- if (getDrillFields)
2906
+ if (getDrillFields) {
2891
2907
  getDrillFields([]);
2892
- if (setDrillFields)
2908
+ }
2909
+ if (setDrillFields) {
2893
2910
  setDrillFields([]);
2911
+ }
2894
2912
  };
2895
2913
  return {
2896
2914
  options,
@@ -2971,11 +2989,11 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
2971
2989
  }, 8, ["selectedKeys", "onSelect"])
2972
2990
  ], 2);
2973
2991
  }
2974
- var DrillDown = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-6eb1ccd0"]]);
2992
+ var DrillDown = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-3a294982"]]);
2975
2993
  const _sfc_main$2 = defineComponent({
2976
2994
  name: "PivotSheet",
2977
2995
  props: initBaseSheetProps(),
2978
- emits: initBaseSheetEmits(),
2996
+ emits: [],
2979
2997
  setup(props, ctx) {
2980
2998
  const s2Ref = useExpose(ctx.expose);
2981
2999
  const { options: pivotOptions } = toRefs(props);