@antv/s2-vue 1.2.0 → 1.2.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
@@ -1621,17 +1621,20 @@ function size(collection) {
1621
1621
  }
1622
1622
  return baseKeys(collection).length;
1623
1623
  }
1624
- const analyzeAdaptive = (paramsContainer, adaptive) => {
1624
+ const analyzeAdaptive = (defaultContainer, adaptive) => {
1625
1625
  var _a, _b, _c;
1626
- let container = paramsContainer;
1627
- let adaptiveWidth = true;
1628
- let adaptiveHeight = false;
1629
- if (typeof adaptive !== "boolean") {
1630
- container = ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || paramsContainer;
1631
- adaptiveWidth = (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true;
1632
- adaptiveHeight = (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true;
1633
- }
1634
- return { container, adaptiveWidth, adaptiveHeight };
1626
+ if (isBoolean(adaptive)) {
1627
+ return {
1628
+ container: defaultContainer,
1629
+ adaptiveWidth: true,
1630
+ adaptiveHeight: false
1631
+ };
1632
+ }
1633
+ return {
1634
+ container: ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || defaultContainer,
1635
+ adaptiveWidth: (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true,
1636
+ adaptiveHeight: (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true
1637
+ };
1635
1638
  };
1636
1639
  const createResizeObserver = (params) => {
1637
1640
  let isFirstRender = true;
@@ -2705,6 +2708,8 @@ const initBaseSheetEmits = () => {
2705
2708
  "selected",
2706
2709
  "reset",
2707
2710
  "linkFieldJump",
2711
+ "click",
2712
+ "doubleClick",
2708
2713
  "scroll"
2709
2714
  ];
2710
2715
  return keys2;
@@ -2977,7 +2982,7 @@ var DrillDown = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render
2977
2982
  const _sfc_main$2 = vue.defineComponent({
2978
2983
  name: "PivotSheet",
2979
2984
  props: initBaseSheetProps(),
2980
- emits: initBaseSheetEmits(),
2985
+ emits: [],
2981
2986
  setup(props, ctx) {
2982
2987
  const s2Ref = useExpose(ctx.expose);
2983
2988
  const { options: pivotOptions } = vue.toRefs(props);