@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/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/esm/index.d.ts +6 -3
- package/esm/index.js +16 -11
- package/esm/index.js.map +1 -1
- package/lib/index.js +16 -11
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/esm/index.d.ts
CHANGED
|
@@ -1597,7 +1597,7 @@ declare interface FormatResult {
|
|
|
1597
1597
|
value: DataItem;
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
|
-
declare type Formatter = (v: unknown, data?: Data_2 | Data_2[]) => string;
|
|
1600
|
+
declare type Formatter = (v: unknown, data?: Data_2 | Data_2[], meta?: Node_2_2 | ViewMeta_2) => string;
|
|
1601
1601
|
|
|
1602
1602
|
declare class Frame extends Group {
|
|
1603
1603
|
cfg: FrameConfig;
|
|
@@ -2586,8 +2586,8 @@ declare interface ResizeInteractionOptions {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
|
|
2588
2588
|
declare interface ResizeParams_2 {
|
|
2589
|
-
|
|
2590
|
-
style
|
|
2589
|
+
info: ResizeInfo_2;
|
|
2590
|
+
style: Style;
|
|
2591
2591
|
}
|
|
2592
2592
|
|
|
2593
2593
|
declare enum ResizeType {
|
|
@@ -2699,6 +2699,9 @@ declare interface RowCfg {
|
|
|
2699
2699
|
width?: CellCustomWidth;
|
|
2700
2700
|
widthByField?: Record<string, number>;
|
|
2701
2701
|
heightByField?: Record<string, number>;
|
|
2702
|
+
/**
|
|
2703
|
+
* @deprecated (已废弃, 请使用 style.treeRowsWidth 代替) tree row width(拖拽产生的,无需主动设置)
|
|
2704
|
+
*/
|
|
2702
2705
|
treeRowsWidth?: number;
|
|
2703
2706
|
}
|
|
2704
2707
|
|
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 = (
|
|
1622
|
+
const analyzeAdaptive = (defaultContainer, adaptive) => {
|
|
1623
1623
|
var _a, _b, _c;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
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;
|
|
@@ -2703,6 +2706,8 @@ const initBaseSheetEmits = () => {
|
|
|
2703
2706
|
"selected",
|
|
2704
2707
|
"reset",
|
|
2705
2708
|
"linkFieldJump",
|
|
2709
|
+
"click",
|
|
2710
|
+
"doubleClick",
|
|
2706
2711
|
"scroll"
|
|
2707
2712
|
];
|
|
2708
2713
|
return keys2;
|
|
@@ -2975,7 +2980,7 @@ var DrillDown = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render
|
|
|
2975
2980
|
const _sfc_main$2 = defineComponent({
|
|
2976
2981
|
name: "PivotSheet",
|
|
2977
2982
|
props: initBaseSheetProps(),
|
|
2978
|
-
emits:
|
|
2983
|
+
emits: [],
|
|
2979
2984
|
setup(props, ctx) {
|
|
2980
2985
|
const s2Ref = useExpose(ctx.expose);
|
|
2981
2986
|
const { options: pivotOptions } = toRefs(props);
|