@antv/s2-vue 2.0.0-next.12 → 2.0.0-next.13
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 +70 -4
- package/esm/index.js +243 -87
- package/esm/index.js.map +1 -1
- package/lib/index.js +242 -86
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/esm/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { LineStyleProps } from '@antv/g';
|
|
|
35
35
|
import { MemoizedFunction } from 'lodash';
|
|
36
36
|
import { MergedCell } from '@antv/s2';
|
|
37
37
|
import { Node as Node_2 } from '@antv/s2';
|
|
38
|
+
import { Omit as Omit_2 } from 'lodash';
|
|
38
39
|
import { Pagination } from '@antv/s2';
|
|
39
40
|
import type { PaginationProps } from 'ant-design-vue';
|
|
40
41
|
import { PointLike } from '@antv/g';
|
|
@@ -575,12 +576,14 @@ declare abstract class BaseFacet {
|
|
|
575
576
|
protected getCellCustomSize(node: Node_2_2 | null, size: CellCustomSize): number | null | undefined;
|
|
576
577
|
protected getRowCellDraggedWidth(node: Node_2_2): number | undefined;
|
|
577
578
|
protected getRowCellDraggedHeight(node: Node_2_2): number | undefined;
|
|
578
|
-
protected
|
|
579
|
+
protected isCustomRowCellHeight(node: Node_2_2): boolean;
|
|
580
|
+
protected getCustomRowCellHeight(node: Node_2_2): number | null | undefined;
|
|
581
|
+
protected getRowCellHeight(node: Node_2_2): number | undefined;
|
|
579
582
|
protected getColCellDraggedWidth(node: Node_2_2): number | undefined;
|
|
580
583
|
protected getColCellDraggedHeight(node: Node_2_2): number | undefined;
|
|
581
584
|
protected getColNodeHeight(colNode: Node_2_2, colsHierarchy: Hierarchy): any;
|
|
582
585
|
protected getDefaultColNodeHeight(colNode: Node_2_2, colsHierarchy: Hierarchy): number;
|
|
583
|
-
protected getCellAdaptiveHeight(cell: S2CellType_2, defaultHeight
|
|
586
|
+
protected getCellAdaptiveHeight(cell: S2CellType_2, defaultHeight?: number): any;
|
|
584
587
|
/**
|
|
585
588
|
* 将每一层级的采样节点更新为高度最大的节点 (未隐藏, 非汇总节点)
|
|
586
589
|
*/
|
|
@@ -1083,6 +1086,63 @@ containerRef: Ref<HTMLDivElement>;
|
|
|
1083
1086
|
s2Ref: ShallowRef<SpreadSheet>;
|
|
1084
1087
|
loading: Ref<boolean>;
|
|
1085
1088
|
pagination: {
|
|
1089
|
+
customOptions: Omit_2<Pagination & Partial<ExtractPropTypes< {
|
|
1090
|
+
total: NumberConstructor;
|
|
1091
|
+
defaultCurrent: NumberConstructor;
|
|
1092
|
+
disabled: {
|
|
1093
|
+
type: BooleanConstructor;
|
|
1094
|
+
default: any;
|
|
1095
|
+
};
|
|
1096
|
+
current: NumberConstructor;
|
|
1097
|
+
defaultPageSize: NumberConstructor;
|
|
1098
|
+
pageSize: NumberConstructor;
|
|
1099
|
+
hideOnSinglePage: {
|
|
1100
|
+
type: BooleanConstructor;
|
|
1101
|
+
default: any;
|
|
1102
|
+
};
|
|
1103
|
+
showSizeChanger: {
|
|
1104
|
+
type: BooleanConstructor;
|
|
1105
|
+
default: any;
|
|
1106
|
+
};
|
|
1107
|
+
pageSizeOptions: PropType<(string | number)[]>;
|
|
1108
|
+
buildOptionText: PropType<(opt: {
|
|
1109
|
+
value: any;
|
|
1110
|
+
}) => any>;
|
|
1111
|
+
showQuickJumper: {
|
|
1112
|
+
type: PropType<boolean | {
|
|
1113
|
+
goButton?: any;
|
|
1114
|
+
}>;
|
|
1115
|
+
default: boolean | {
|
|
1116
|
+
goButton?: any;
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
showTotal: PropType<(total: number, range: [number, number]) => any>;
|
|
1120
|
+
size: PropType<"small" | "default">;
|
|
1121
|
+
simple: {
|
|
1122
|
+
type: BooleanConstructor;
|
|
1123
|
+
default: any;
|
|
1124
|
+
};
|
|
1125
|
+
locale: ObjectConstructor;
|
|
1126
|
+
prefixCls: StringConstructor;
|
|
1127
|
+
selectPrefixCls: StringConstructor;
|
|
1128
|
+
totalBoundaryShowSizeChanger: NumberConstructor;
|
|
1129
|
+
selectComponentClass: StringConstructor;
|
|
1130
|
+
itemRender: PropType<(opt: {
|
|
1131
|
+
page: number;
|
|
1132
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
1133
|
+
originalElement: any;
|
|
1134
|
+
}) => any>;
|
|
1135
|
+
role: StringConstructor;
|
|
1136
|
+
responsive: BooleanConstructor;
|
|
1137
|
+
showLessItems: {
|
|
1138
|
+
type: BooleanConstructor;
|
|
1139
|
+
default: any;
|
|
1140
|
+
};
|
|
1141
|
+
onChange: PropType<(page: number, pageSize: number) => void>;
|
|
1142
|
+
onShowSizeChange: PropType<(current: number, size: number) => void>;
|
|
1143
|
+
'onUpdate:current': PropType<(current: number) => void>;
|
|
1144
|
+
'onUpdate:pageSize': PropType<(size: number) => void>;
|
|
1145
|
+
}>>, "total" | "current" | "pageSize">;
|
|
1086
1146
|
visible: ComputedRef<boolean>;
|
|
1087
1147
|
current: Ref<number>;
|
|
1088
1148
|
pageSize: Ref<number>;
|
|
@@ -1700,6 +1760,8 @@ declare interface CellMeta {
|
|
|
1700
1760
|
rowIndex: number;
|
|
1701
1761
|
type: CellType;
|
|
1702
1762
|
rowQuery?: Record<string, any>;
|
|
1763
|
+
rowId?: string;
|
|
1764
|
+
colId?: string;
|
|
1703
1765
|
[key: string]: unknown;
|
|
1704
1766
|
}
|
|
1705
1767
|
|
|
@@ -5610,6 +5672,8 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
5610
5672
|
})
|
|
5611
5673
|
*/
|
|
5612
5674
|
render(options?: S2RenderOptions_2 | boolean): Promise<void>;
|
|
5675
|
+
private mountSheetInstance;
|
|
5676
|
+
private unmountSheetInstance;
|
|
5613
5677
|
/**
|
|
5614
5678
|
* 卸载表格
|
|
5615
5679
|
* @example s2.destroy()
|
|
@@ -5650,7 +5714,9 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
5650
5714
|
/**
|
|
5651
5715
|
* 获取 <canvas/> HTML 元素
|
|
5652
5716
|
*/
|
|
5653
|
-
getCanvasElement(): HTMLCanvasElement
|
|
5717
|
+
getCanvasElement(): HTMLCanvasElement & {
|
|
5718
|
+
__s2_instance__: SpreadSheet_2;
|
|
5719
|
+
};
|
|
5654
5720
|
getLayoutWidthType(): LayoutWidthType;
|
|
5655
5721
|
/**
|
|
5656
5722
|
* Update scroll's offset, the value can be undefined,
|
|
@@ -6418,7 +6484,7 @@ declare interface ValueRange {
|
|
|
6418
6484
|
|
|
6419
6485
|
declare type ValueRanges = Record<string, ValueRange>;
|
|
6420
6486
|
|
|
6421
|
-
export declare const version = "@antv/s2-vue-v2.0.0-next.
|
|
6487
|
+
export declare const version = "@antv/s2-vue-v2.0.0-next.13";
|
|
6422
6488
|
|
|
6423
6489
|
declare interface ViewCellHeights {
|
|
6424
6490
|
getCellOffsetY: (index: number) => number;
|