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

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
@@ -1716,7 +1716,7 @@ const defaultPartDrillDownDisplayCondition = (meta) => {
1716
1716
  };
1717
1717
  const buildDrillDownOptions = (options, partDrillDown, callback) => {
1718
1718
  var _a;
1719
- const nextHeaderIcons = ((_a = options.headerActionIcons) == null ? void 0 : _a.length) ? [...options.headerActionIcons] : [];
1719
+ const nextHeaderIcons = ((_a = options == null ? void 0 : options.headerActionIcons) == null ? void 0 : _a.length) ? [...options.headerActionIcons] : [];
1720
1720
  if (!isEmpty(partDrillDown)) {
1721
1721
  const drillDownActionIcon = {
1722
1722
  belongsCell: "rowCell",
@@ -2451,6 +2451,7 @@ const useEvents = (s2Ref, emit) => {
2451
2451
  useS2Event(s2Ref, emit, S2Event.GLOBAL_RESET, "reset");
2452
2452
  useS2Event(s2Ref, emit, S2Event.GLOBAL_LINK_FIELD_JUMP, "linkFieldJump");
2453
2453
  useS2Event(s2Ref, emit, S2Event.GLOBAL_SCROLL, "scroll");
2454
+ useS2Event(s2Ref, emit, S2Event.LAYOUT_AFTER_REAL_DATA_CELL_RENDER, "layoutAfterRealDataCellRender");
2454
2455
  useS2Event(s2Ref, emit, S2Event.ROW_CELL_BRUSH_SELECTION, "rowCellBrushSelection");
2455
2456
  useS2Event(s2Ref, emit, S2Event.COL_CELL_BRUSH_SELECTION, "colCellBrushSelection");
2456
2457
  });
@@ -2541,6 +2542,7 @@ function useSpreadSheet(props, emit) {
2541
2542
  loading: loadingProps,
2542
2543
  sheetType,
2543
2544
  onSpreadsheet,
2545
+ onMounted: onS2Mounted,
2544
2546
  onGetSpreadSheet
2545
2547
  } = props;
2546
2548
  const wrapperRef = ref();
@@ -2567,6 +2569,7 @@ function useSpreadSheet(props, emit) {
2567
2569
  s2Ref.value.render();
2568
2570
  setLoading(false);
2569
2571
  onGetSpreadSheet == null ? void 0 : onGetSpreadSheet(s2Ref.value);
2572
+ onS2Mounted == null ? void 0 : onS2Mounted(s2Ref.value);
2570
2573
  };
2571
2574
  onMounted(buildSpreadSheet);
2572
2575
  useEvents(s2Ref, emit);
@@ -2605,7 +2608,8 @@ const initBaseSheetProps = () => ({
2605
2608
  default: false
2606
2609
  },
2607
2610
  onSpreadsheet: Function,
2608
- onGetSpreadSheet: Function
2611
+ onGetSpreadSheet: Function,
2612
+ onMounted: Function
2609
2613
  });
2610
2614
  const initDrillDownProps = () => ({
2611
2615
  className: String,
@@ -2693,6 +2697,7 @@ const initBaseSheetEmits = () => {
2693
2697
  "layoutColsHidden",
2694
2698
  "beforeRender",
2695
2699
  "afterRender",
2700
+ "mounted",
2696
2701
  "destroy",
2697
2702
  "layoutResize",
2698
2703
  "layoutResizeSeriesWidth",
@@ -2721,6 +2726,7 @@ const initBaseSheetEmits = () => {
2721
2726
  "doubleClick",
2722
2727
  "scroll",
2723
2728
  "hover",
2729
+ "layoutAfterRealDataCellRender",
2724
2730
  "rowCellBrushSelection",
2725
2731
  "colCellBrushSelection"
2726
2732
  ];