@deot/vc 1.0.70 → 1.0.71
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.d.ts +427 -56
- package/dist/index.iife.js +1460 -1060
- package/dist/index.umd.cjs +1460 -1060
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ import { AllowedComponentProps } from 'vue';
|
|
|
2
2
|
import type { App } from 'vue';
|
|
3
3
|
import type { Component } from 'vue';
|
|
4
4
|
import { ComponentCustomProps } from 'vue';
|
|
5
|
+
import type { ComponentInternalInstance } from 'vue';
|
|
5
6
|
import { ComponentOptionsBase } from 'vue';
|
|
6
7
|
import { ComponentOptionsMixin } from 'vue';
|
|
7
8
|
import { ComponentProvideOptions } from 'vue';
|
|
8
9
|
import type { ComponentPublicInstance } from 'vue';
|
|
10
|
+
import { ComputedRef } from 'vue';
|
|
9
11
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
12
|
+
import type { CSSProperties } from 'vue';
|
|
13
|
+
import { DebouncedFunc } from 'lodash-es';
|
|
10
14
|
import { DefineComponent } from 'vue';
|
|
11
15
|
import { ExtractPropTypes } from 'vue';
|
|
12
16
|
import { FormRule } from '@deot/vc-components';
|
|
@@ -14,6 +18,7 @@ import { GlobalComponents } from 'vue';
|
|
|
14
18
|
import { GlobalDirectives } from 'vue';
|
|
15
19
|
import { JSX } from 'vue/jsx-runtime';
|
|
16
20
|
import { MModal } from '@deot/vc-components';
|
|
21
|
+
import type { Nullable } from '@deot/helper-shared';
|
|
17
22
|
import type { Plugin as Plugin_2 } from 'vue';
|
|
18
23
|
import { PropType } from 'vue';
|
|
19
24
|
import { PublicProps } from 'vue';
|
|
@@ -24,6 +29,7 @@ import { RendererElement } from 'vue';
|
|
|
24
29
|
import { RendererNode } from 'vue';
|
|
25
30
|
import { ScrollerProps } from '@deot/vc-components';
|
|
26
31
|
import { SetupContext } from 'vue';
|
|
32
|
+
import type { Slots } from 'vue';
|
|
27
33
|
import { StyleValue } from 'vue';
|
|
28
34
|
import { Utils } from '@deot/vc-shared';
|
|
29
35
|
import type { VcOptions } from '@deot/vc-components';
|
|
@@ -32,6 +38,48 @@ import { VNodeChild } from 'vue';
|
|
|
32
38
|
import type { VNodeNormalizedChildren } from 'vue';
|
|
33
39
|
import { VNodeProps } from 'vue';
|
|
34
40
|
|
|
41
|
+
declare class BaseWatcher {
|
|
42
|
+
states: any;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class Block {
|
|
46
|
+
store: Store;
|
|
47
|
+
_cache: {
|
|
48
|
+
data: any;
|
|
49
|
+
length: number;
|
|
50
|
+
columnsKey: string;
|
|
51
|
+
getSpan: any;
|
|
52
|
+
plan: any;
|
|
53
|
+
};
|
|
54
|
+
constructor(store: Store);
|
|
55
|
+
buildInitialList(data: any[]): {
|
|
56
|
+
id: any;
|
|
57
|
+
rows: {
|
|
58
|
+
index: number;
|
|
59
|
+
data: any;
|
|
60
|
+
}[];
|
|
61
|
+
rowStart: number;
|
|
62
|
+
expand: boolean;
|
|
63
|
+
}[];
|
|
64
|
+
rebuildMergeList(): void;
|
|
65
|
+
getCoverAnchors(rowIndex: number): any;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare class Column {
|
|
69
|
+
store: Store;
|
|
70
|
+
_sync: {
|
|
71
|
+
snapshot: TableColumnSyncItem[];
|
|
72
|
+
suppressWatch: boolean;
|
|
73
|
+
};
|
|
74
|
+
constructor(store: Store);
|
|
75
|
+
insert(column: TableColumnNode, index?: number, parent?: TableColumnNode): void;
|
|
76
|
+
remove(column: TableColumnNode, parent?: TableColumnNode): void;
|
|
77
|
+
update(): void;
|
|
78
|
+
cloneVisibleTree(arr: TableColumnNode[]): TableColumnNode[];
|
|
79
|
+
syncToParent(): void;
|
|
80
|
+
applyExternal(v: TableColumnSyncItem[]): void;
|
|
81
|
+
}
|
|
82
|
+
|
|
35
83
|
export declare const Components: {
|
|
36
84
|
ActionSheet: DefineComponent<ExtractPropTypes< {
|
|
37
85
|
tag: {
|
|
@@ -10609,10 +10657,10 @@ export declare const Components: {
|
|
|
10609
10657
|
default: boolean;
|
|
10610
10658
|
};
|
|
10611
10659
|
columns: {
|
|
10612
|
-
type:
|
|
10660
|
+
type: PropType<TableColumnSyncItem[]>;
|
|
10613
10661
|
default: () => never[];
|
|
10614
10662
|
};
|
|
10615
|
-
}>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "expand-change" | "current-change" | "
|
|
10663
|
+
}>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "update:columns" | "expand-change" | "current-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "row-click" | "header-click" | "header-contextmenu" | "update:sort" | "sort-change" | "header-dragend" | "cell-dblclick" | "cell-contextmenu" | "row-contextmenu" | "row-dblclick")[], "select" | "select-all" | "selection-change" | "update:columns" | "expand-change" | "current-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "row-click" | "header-click" | "header-contextmenu" | "update:sort" | "sort-change" | "header-dragend" | "cell-dblclick" | "cell-contextmenu" | "row-contextmenu" | "row-dblclick", PublicProps, Readonly<ExtractPropTypes< {
|
|
10616
10664
|
data: {
|
|
10617
10665
|
type: ArrayConstructor;
|
|
10618
10666
|
default: () => never[];
|
|
@@ -10693,26 +10741,27 @@ export declare const Components: {
|
|
|
10693
10741
|
default: boolean;
|
|
10694
10742
|
};
|
|
10695
10743
|
columns: {
|
|
10696
|
-
type:
|
|
10744
|
+
type: PropType<TableColumnSyncItem[]>;
|
|
10697
10745
|
default: () => never[];
|
|
10698
10746
|
};
|
|
10699
10747
|
}>> & Readonly<{
|
|
10700
10748
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
10701
10749
|
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
10702
10750
|
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
10751
|
+
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
10703
10752
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
10704
10753
|
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
10705
|
-
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
10706
10754
|
"onCell-mouse-enter"?: ((...args: any[]) => any) | undefined;
|
|
10707
10755
|
"onCell-mouse-leave"?: ((...args: any[]) => any) | undefined;
|
|
10756
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
10757
|
+
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
10708
10758
|
"onHeader-click"?: ((...args: any[]) => any) | undefined;
|
|
10709
10759
|
"onHeader-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
10710
10760
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
10711
10761
|
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
10712
10762
|
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
10713
|
-
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
10714
10763
|
"onCell-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
10715
|
-
"
|
|
10764
|
+
"onCell-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
10716
10765
|
"onRow-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
10717
10766
|
"onRow-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
10718
10767
|
}>, {
|
|
@@ -10720,7 +10769,7 @@ export declare const Components: {
|
|
|
10720
10769
|
resizable: boolean;
|
|
10721
10770
|
data: unknown[];
|
|
10722
10771
|
border: boolean;
|
|
10723
|
-
columns:
|
|
10772
|
+
columns: TableColumnSyncItem[];
|
|
10724
10773
|
lazy: boolean;
|
|
10725
10774
|
highlight: boolean;
|
|
10726
10775
|
placeholder: string | Function;
|
|
@@ -10730,9 +10779,9 @@ export declare const Components: {
|
|
|
10730
10779
|
defaultExpandAll: boolean;
|
|
10731
10780
|
expandSelectable: boolean;
|
|
10732
10781
|
showHeader: boolean;
|
|
10733
|
-
rows: number;
|
|
10734
10782
|
stripe: boolean;
|
|
10735
10783
|
divider: boolean;
|
|
10784
|
+
rows: number;
|
|
10736
10785
|
showSummary: boolean;
|
|
10737
10786
|
treeMap: Record<string, any>;
|
|
10738
10787
|
affix: boolean | unknown[] | Record<string, any>;
|
|
@@ -10818,10 +10867,10 @@ export declare const Components: {
|
|
|
10818
10867
|
default: boolean;
|
|
10819
10868
|
};
|
|
10820
10869
|
columns: {
|
|
10821
|
-
type:
|
|
10870
|
+
type: PropType<TableColumnSyncItem[]>;
|
|
10822
10871
|
default: () => never[];
|
|
10823
10872
|
};
|
|
10824
|
-
}>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "expand-change" | "current-change" | "
|
|
10873
|
+
}>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "update:columns" | "expand-change" | "current-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "row-click" | "header-click" | "header-contextmenu" | "update:sort" | "sort-change" | "header-dragend" | "cell-dblclick" | "cell-contextmenu" | "row-contextmenu" | "row-dblclick")[], "select" | "select-all" | "selection-change" | "update:columns" | "expand-change" | "current-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-click" | "row-click" | "header-click" | "header-contextmenu" | "update:sort" | "sort-change" | "header-dragend" | "cell-dblclick" | "cell-contextmenu" | "row-contextmenu" | "row-dblclick", PublicProps, Readonly<ExtractPropTypes< {
|
|
10825
10874
|
data: {
|
|
10826
10875
|
type: ArrayConstructor;
|
|
10827
10876
|
default: () => never[];
|
|
@@ -10902,26 +10951,27 @@ export declare const Components: {
|
|
|
10902
10951
|
default: boolean;
|
|
10903
10952
|
};
|
|
10904
10953
|
columns: {
|
|
10905
|
-
type:
|
|
10954
|
+
type: PropType<TableColumnSyncItem[]>;
|
|
10906
10955
|
default: () => never[];
|
|
10907
10956
|
};
|
|
10908
10957
|
}>> & Readonly<{
|
|
10909
10958
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
10910
10959
|
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
10911
10960
|
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
10961
|
+
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
10912
10962
|
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
10913
10963
|
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
10914
|
-
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
10915
10964
|
"onCell-mouse-enter"?: ((...args: any[]) => any) | undefined;
|
|
10916
10965
|
"onCell-mouse-leave"?: ((...args: any[]) => any) | undefined;
|
|
10966
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
10967
|
+
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
10917
10968
|
"onHeader-click"?: ((...args: any[]) => any) | undefined;
|
|
10918
10969
|
"onHeader-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
10919
10970
|
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
10920
10971
|
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
10921
10972
|
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
10922
|
-
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
10923
10973
|
"onCell-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
10924
|
-
"
|
|
10974
|
+
"onCell-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
10925
10975
|
"onRow-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
10926
10976
|
"onRow-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
10927
10977
|
}>, {
|
|
@@ -10929,7 +10979,7 @@ export declare const Components: {
|
|
|
10929
10979
|
resizable: boolean;
|
|
10930
10980
|
data: unknown[];
|
|
10931
10981
|
border: boolean;
|
|
10932
|
-
columns:
|
|
10982
|
+
columns: TableColumnSyncItem[];
|
|
10933
10983
|
lazy: boolean;
|
|
10934
10984
|
highlight: boolean;
|
|
10935
10985
|
placeholder: string | Function;
|
|
@@ -10939,9 +10989,9 @@ export declare const Components: {
|
|
|
10939
10989
|
defaultExpandAll: boolean;
|
|
10940
10990
|
expandSelectable: boolean;
|
|
10941
10991
|
showHeader: boolean;
|
|
10942
|
-
rows: number;
|
|
10943
10992
|
stripe: boolean;
|
|
10944
10993
|
divider: boolean;
|
|
10994
|
+
rows: number;
|
|
10945
10995
|
showSummary: boolean;
|
|
10946
10996
|
treeMap: Record<string, any>;
|
|
10947
10997
|
affix: boolean | unknown[] | Record<string, any>;
|
|
@@ -10957,30 +11007,29 @@ export declare const Components: {
|
|
|
10957
11007
|
prop: StringConstructor;
|
|
10958
11008
|
width: NumberConstructor;
|
|
10959
11009
|
minWidth: NumberConstructor;
|
|
10960
|
-
renderHeader:
|
|
11010
|
+
renderHeader: PropType<TableColumnStates["renderHeader"]>;
|
|
10961
11011
|
resizable: {
|
|
10962
11012
|
type: BooleanConstructor;
|
|
10963
11013
|
default: boolean;
|
|
10964
11014
|
};
|
|
10965
|
-
columnKey: StringConstructor;
|
|
10966
11015
|
align: StringConstructor;
|
|
10967
11016
|
headerAlign: StringConstructor;
|
|
10968
|
-
fixed:
|
|
10969
|
-
formatter:
|
|
10970
|
-
selectable:
|
|
11017
|
+
fixed: PropType<boolean | string>;
|
|
11018
|
+
formatter: PropType<TableColumnStates["formatter"]>;
|
|
11019
|
+
selectable: PropType<TableColumnStates["selectable"]>;
|
|
10971
11020
|
reserveSelection: BooleanConstructor;
|
|
10972
|
-
index:
|
|
11021
|
+
index: PropType<number | ((rowIndex: number) => number)>;
|
|
10973
11022
|
sortable: BooleanConstructor;
|
|
10974
|
-
filters:
|
|
11023
|
+
filters: PropType<unknown[]>;
|
|
10975
11024
|
filterMultiple: {
|
|
10976
11025
|
type: BooleanConstructor;
|
|
10977
11026
|
default: boolean;
|
|
10978
11027
|
};
|
|
10979
11028
|
filterIcon: StringConstructor;
|
|
10980
|
-
filteredValue:
|
|
11029
|
+
filteredValue: PropType<unknown[]>;
|
|
10981
11030
|
filterPopupClass: StringConstructor;
|
|
10982
|
-
filter:
|
|
10983
|
-
tooltip:
|
|
11031
|
+
filter: PropType<(value: unknown) => void>;
|
|
11032
|
+
tooltip: PropType<TableColumnStates["tooltip"]>;
|
|
10984
11033
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
10985
11034
|
[key: string]: any;
|
|
10986
11035
|
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -10994,30 +11043,29 @@ export declare const Components: {
|
|
|
10994
11043
|
prop: StringConstructor;
|
|
10995
11044
|
width: NumberConstructor;
|
|
10996
11045
|
minWidth: NumberConstructor;
|
|
10997
|
-
renderHeader:
|
|
11046
|
+
renderHeader: PropType<TableColumnStates["renderHeader"]>;
|
|
10998
11047
|
resizable: {
|
|
10999
11048
|
type: BooleanConstructor;
|
|
11000
11049
|
default: boolean;
|
|
11001
11050
|
};
|
|
11002
|
-
columnKey: StringConstructor;
|
|
11003
11051
|
align: StringConstructor;
|
|
11004
11052
|
headerAlign: StringConstructor;
|
|
11005
|
-
fixed:
|
|
11006
|
-
formatter:
|
|
11007
|
-
selectable:
|
|
11053
|
+
fixed: PropType<boolean | string>;
|
|
11054
|
+
formatter: PropType<TableColumnStates["formatter"]>;
|
|
11055
|
+
selectable: PropType<TableColumnStates["selectable"]>;
|
|
11008
11056
|
reserveSelection: BooleanConstructor;
|
|
11009
|
-
index:
|
|
11057
|
+
index: PropType<number | ((rowIndex: number) => number)>;
|
|
11010
11058
|
sortable: BooleanConstructor;
|
|
11011
|
-
filters:
|
|
11059
|
+
filters: PropType<unknown[]>;
|
|
11012
11060
|
filterMultiple: {
|
|
11013
11061
|
type: BooleanConstructor;
|
|
11014
11062
|
default: boolean;
|
|
11015
11063
|
};
|
|
11016
11064
|
filterIcon: StringConstructor;
|
|
11017
|
-
filteredValue:
|
|
11065
|
+
filteredValue: PropType<unknown[]>;
|
|
11018
11066
|
filterPopupClass: StringConstructor;
|
|
11019
|
-
filter:
|
|
11020
|
-
tooltip:
|
|
11067
|
+
filter: PropType<(value: unknown) => void>;
|
|
11068
|
+
tooltip: PropType<TableColumnStates["tooltip"]>;
|
|
11021
11069
|
}>> & Readonly<{}>, {
|
|
11022
11070
|
resizable: boolean;
|
|
11023
11071
|
type: string;
|
|
@@ -11036,30 +11084,29 @@ export declare const Components: {
|
|
|
11036
11084
|
prop: StringConstructor;
|
|
11037
11085
|
width: NumberConstructor;
|
|
11038
11086
|
minWidth: NumberConstructor;
|
|
11039
|
-
renderHeader:
|
|
11087
|
+
renderHeader: PropType<TableColumnStates["renderHeader"]>;
|
|
11040
11088
|
resizable: {
|
|
11041
11089
|
type: BooleanConstructor;
|
|
11042
11090
|
default: boolean;
|
|
11043
11091
|
};
|
|
11044
|
-
columnKey: StringConstructor;
|
|
11045
11092
|
align: StringConstructor;
|
|
11046
11093
|
headerAlign: StringConstructor;
|
|
11047
|
-
fixed:
|
|
11048
|
-
formatter:
|
|
11049
|
-
selectable:
|
|
11094
|
+
fixed: PropType<boolean | string>;
|
|
11095
|
+
formatter: PropType<TableColumnStates["formatter"]>;
|
|
11096
|
+
selectable: PropType<TableColumnStates["selectable"]>;
|
|
11050
11097
|
reserveSelection: BooleanConstructor;
|
|
11051
|
-
index:
|
|
11098
|
+
index: PropType<number | ((rowIndex: number) => number)>;
|
|
11052
11099
|
sortable: BooleanConstructor;
|
|
11053
|
-
filters:
|
|
11100
|
+
filters: PropType<unknown[]>;
|
|
11054
11101
|
filterMultiple: {
|
|
11055
11102
|
type: BooleanConstructor;
|
|
11056
11103
|
default: boolean;
|
|
11057
11104
|
};
|
|
11058
11105
|
filterIcon: StringConstructor;
|
|
11059
|
-
filteredValue:
|
|
11106
|
+
filteredValue: PropType<unknown[]>;
|
|
11060
11107
|
filterPopupClass: StringConstructor;
|
|
11061
|
-
filter:
|
|
11062
|
-
tooltip:
|
|
11108
|
+
filter: PropType<(value: unknown) => void>;
|
|
11109
|
+
tooltip: PropType<TableColumnStates["tooltip"]>;
|
|
11063
11110
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
11064
11111
|
[key: string]: any;
|
|
11065
11112
|
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -11073,30 +11120,29 @@ export declare const Components: {
|
|
|
11073
11120
|
prop: StringConstructor;
|
|
11074
11121
|
width: NumberConstructor;
|
|
11075
11122
|
minWidth: NumberConstructor;
|
|
11076
|
-
renderHeader:
|
|
11123
|
+
renderHeader: PropType<TableColumnStates["renderHeader"]>;
|
|
11077
11124
|
resizable: {
|
|
11078
11125
|
type: BooleanConstructor;
|
|
11079
11126
|
default: boolean;
|
|
11080
11127
|
};
|
|
11081
|
-
columnKey: StringConstructor;
|
|
11082
11128
|
align: StringConstructor;
|
|
11083
11129
|
headerAlign: StringConstructor;
|
|
11084
|
-
fixed:
|
|
11085
|
-
formatter:
|
|
11086
|
-
selectable:
|
|
11130
|
+
fixed: PropType<boolean | string>;
|
|
11131
|
+
formatter: PropType<TableColumnStates["formatter"]>;
|
|
11132
|
+
selectable: PropType<TableColumnStates["selectable"]>;
|
|
11087
11133
|
reserveSelection: BooleanConstructor;
|
|
11088
|
-
index:
|
|
11134
|
+
index: PropType<number | ((rowIndex: number) => number)>;
|
|
11089
11135
|
sortable: BooleanConstructor;
|
|
11090
|
-
filters:
|
|
11136
|
+
filters: PropType<unknown[]>;
|
|
11091
11137
|
filterMultiple: {
|
|
11092
11138
|
type: BooleanConstructor;
|
|
11093
11139
|
default: boolean;
|
|
11094
11140
|
};
|
|
11095
11141
|
filterIcon: StringConstructor;
|
|
11096
|
-
filteredValue:
|
|
11142
|
+
filteredValue: PropType<unknown[]>;
|
|
11097
11143
|
filterPopupClass: StringConstructor;
|
|
11098
|
-
filter:
|
|
11099
|
-
tooltip:
|
|
11144
|
+
filter: PropType<(value: unknown) => void>;
|
|
11145
|
+
tooltip: PropType<TableColumnStates["tooltip"]>;
|
|
11100
11146
|
}>> & Readonly<{}>, {
|
|
11101
11147
|
resizable: boolean;
|
|
11102
11148
|
type: string;
|
|
@@ -15024,6 +15070,15 @@ export declare const createVcPlugin: (options?: VcOptions, transfromComponentKey
|
|
|
15024
15070
|
install: (app: App) => void;
|
|
15025
15071
|
};
|
|
15026
15072
|
|
|
15073
|
+
declare class Expand {
|
|
15074
|
+
store: Store;
|
|
15075
|
+
constructor(store: Store);
|
|
15076
|
+
update(): void;
|
|
15077
|
+
toggle(row: any, expanded?: boolean): void;
|
|
15078
|
+
reset(ids: any[]): void;
|
|
15079
|
+
isExpanded(row: any): boolean;
|
|
15080
|
+
}
|
|
15081
|
+
|
|
15027
15082
|
declare const KEY_VALUE: {
|
|
15028
15083
|
children: string;
|
|
15029
15084
|
label: string;
|
|
@@ -15032,6 +15087,37 @@ declare const KEY_VALUE: {
|
|
|
15032
15087
|
isLeaf: string;
|
|
15033
15088
|
};
|
|
15034
15089
|
|
|
15090
|
+
declare class Layout {
|
|
15091
|
+
table: any;
|
|
15092
|
+
store: Store;
|
|
15093
|
+
states: {
|
|
15094
|
+
height: null;
|
|
15095
|
+
scrollX: boolean;
|
|
15096
|
+
scrollY: boolean;
|
|
15097
|
+
bodyWidth: any;
|
|
15098
|
+
tableHeight: any;
|
|
15099
|
+
headerHeight: number;
|
|
15100
|
+
appendHeight: number;
|
|
15101
|
+
footerHeight: number;
|
|
15102
|
+
bodyHeight: any;
|
|
15103
|
+
};
|
|
15104
|
+
templateColumns: ComputedRef<string>;
|
|
15105
|
+
constructor(store: Store);
|
|
15106
|
+
updateScrollY(): void;
|
|
15107
|
+
setHeight(value: any, prop?: string): any;
|
|
15108
|
+
setMaxHeight(value: any): void;
|
|
15109
|
+
updateElsHeight(): any;
|
|
15110
|
+
updateColumnsWidth(): void;
|
|
15111
|
+
syncStickyOffsets(): void;
|
|
15112
|
+
}
|
|
15113
|
+
|
|
15114
|
+
declare type Options = {
|
|
15115
|
+
table: TableProvide;
|
|
15116
|
+
parentNode?: Nullable<TableColumnNode>;
|
|
15117
|
+
instance?: ComponentInternalInstance;
|
|
15118
|
+
states?: Partial<TableColumnStates>;
|
|
15119
|
+
};
|
|
15120
|
+
|
|
15035
15121
|
declare class PortalLeaf {
|
|
15036
15122
|
app?: App;
|
|
15037
15123
|
wrapper?: ComponentPublicInstance & Record<string, any>;
|
|
@@ -15087,8 +15173,293 @@ declare const props: {
|
|
|
15087
15173
|
};
|
|
15088
15174
|
};
|
|
15089
15175
|
|
|
15176
|
+
declare type Props_2 = ExtractPropTypes<typeof props_2>;
|
|
15177
|
+
|
|
15178
|
+
declare const props_2: {
|
|
15179
|
+
data: {
|
|
15180
|
+
type: ArrayConstructor;
|
|
15181
|
+
default: () => never[];
|
|
15182
|
+
};
|
|
15183
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
15184
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
15185
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
15186
|
+
rowHeight: (StringConstructor | NumberConstructor)[];
|
|
15187
|
+
fit: {
|
|
15188
|
+
type: BooleanConstructor;
|
|
15189
|
+
default: boolean;
|
|
15190
|
+
};
|
|
15191
|
+
stripe: BooleanConstructor;
|
|
15192
|
+
border: BooleanConstructor;
|
|
15193
|
+
divider: BooleanConstructor;
|
|
15194
|
+
rows: {
|
|
15195
|
+
type: NumberConstructor;
|
|
15196
|
+
default: number;
|
|
15197
|
+
};
|
|
15198
|
+
primaryKey: (FunctionConstructor | StringConstructor)[];
|
|
15199
|
+
showHeader: {
|
|
15200
|
+
type: BooleanConstructor;
|
|
15201
|
+
default: boolean;
|
|
15202
|
+
};
|
|
15203
|
+
showSummary: BooleanConstructor;
|
|
15204
|
+
sumText: StringConstructor;
|
|
15205
|
+
getSummary: FunctionConstructor;
|
|
15206
|
+
rowClass: (FunctionConstructor | StringConstructor)[];
|
|
15207
|
+
rowStyle: (ObjectConstructor | FunctionConstructor)[];
|
|
15208
|
+
cellClass: (FunctionConstructor | StringConstructor)[];
|
|
15209
|
+
cellStyle: (ObjectConstructor | FunctionConstructor)[];
|
|
15210
|
+
headerRowClass: (FunctionConstructor | StringConstructor)[];
|
|
15211
|
+
headerRowStyle: (ObjectConstructor | FunctionConstructor)[];
|
|
15212
|
+
headerCellClass: (FunctionConstructor | StringConstructor)[];
|
|
15213
|
+
headerCellStyle: (ObjectConstructor | FunctionConstructor)[];
|
|
15214
|
+
highlight: BooleanConstructor;
|
|
15215
|
+
currentRowValue: (StringConstructor | NumberConstructor)[];
|
|
15216
|
+
emptyText: (FunctionConstructor | StringConstructor)[];
|
|
15217
|
+
expandRowValue: ArrayConstructor;
|
|
15218
|
+
defaultExpandAll: BooleanConstructor;
|
|
15219
|
+
indeterminate: {
|
|
15220
|
+
type: BooleanConstructor;
|
|
15221
|
+
default: boolean;
|
|
15222
|
+
};
|
|
15223
|
+
lazy: BooleanConstructor;
|
|
15224
|
+
indent: {
|
|
15225
|
+
type: NumberConstructor;
|
|
15226
|
+
default: number;
|
|
15227
|
+
};
|
|
15228
|
+
treeMap: {
|
|
15229
|
+
type: ObjectConstructor;
|
|
15230
|
+
default: () => {
|
|
15231
|
+
hasChildren: string;
|
|
15232
|
+
children: string;
|
|
15233
|
+
};
|
|
15234
|
+
};
|
|
15235
|
+
expandSelectable: {
|
|
15236
|
+
type: BooleanConstructor;
|
|
15237
|
+
default: boolean;
|
|
15238
|
+
};
|
|
15239
|
+
loadExpand: FunctionConstructor;
|
|
15240
|
+
getSpan: FunctionConstructor;
|
|
15241
|
+
placeholder: {
|
|
15242
|
+
type: (FunctionConstructor | StringConstructor)[];
|
|
15243
|
+
default: string;
|
|
15244
|
+
};
|
|
15245
|
+
sort: {
|
|
15246
|
+
type: ObjectConstructor;
|
|
15247
|
+
default: () => {};
|
|
15248
|
+
};
|
|
15249
|
+
delay: NumberConstructor;
|
|
15250
|
+
resizable: {
|
|
15251
|
+
type: BooleanConstructor;
|
|
15252
|
+
default: undefined;
|
|
15253
|
+
};
|
|
15254
|
+
affix: {
|
|
15255
|
+
type: (ObjectConstructor | BooleanConstructor | ArrayConstructor)[];
|
|
15256
|
+
default: boolean;
|
|
15257
|
+
};
|
|
15258
|
+
columns: {
|
|
15259
|
+
type: PropType<TableColumnSyncItem[]>;
|
|
15260
|
+
default: () => never[];
|
|
15261
|
+
};
|
|
15262
|
+
};
|
|
15263
|
+
|
|
15090
15264
|
declare type Render_2 = PropType<(props: Record<string, unknown>, context: SetupContext) => any>;
|
|
15091
15265
|
|
|
15266
|
+
declare class Row {
|
|
15267
|
+
store: Store;
|
|
15268
|
+
constructor(store: Store);
|
|
15269
|
+
setHoverIndex(index: any): void;
|
|
15270
|
+
set(row: any): void;
|
|
15271
|
+
setById(id?: number | string): void;
|
|
15272
|
+
update(): void;
|
|
15273
|
+
}
|
|
15274
|
+
|
|
15275
|
+
declare class Selection_2 {
|
|
15276
|
+
store: Store;
|
|
15277
|
+
constructor(store: Store);
|
|
15278
|
+
isSelected(row: any): boolean;
|
|
15279
|
+
clear(): void;
|
|
15280
|
+
clean(): void;
|
|
15281
|
+
toggle(row: any, selected?: any, emitChange?: boolean): void;
|
|
15282
|
+
toggleAll: DebouncedFunc<() => void>;
|
|
15283
|
+
updateByRowKey(): void;
|
|
15284
|
+
updateAllSelected(): void;
|
|
15285
|
+
rowChanged(row: any): void;
|
|
15286
|
+
}
|
|
15287
|
+
|
|
15288
|
+
declare class Store extends BaseWatcher {
|
|
15289
|
+
table: any;
|
|
15290
|
+
row: Row;
|
|
15291
|
+
expand: Expand;
|
|
15292
|
+
tree: Tree;
|
|
15293
|
+
block: Block;
|
|
15294
|
+
column: Column;
|
|
15295
|
+
layout: Layout;
|
|
15296
|
+
selection: Selection_2;
|
|
15297
|
+
flatData: ComputedRef<any>;
|
|
15298
|
+
constructor(options: any);
|
|
15299
|
+
setData(data: any[]): void;
|
|
15300
|
+
updateColumns(): void;
|
|
15301
|
+
toggleRowExpansionAdapter(row: any, expanded?: boolean): void;
|
|
15302
|
+
checkPrimaryKey(): void;
|
|
15303
|
+
setExpandRowValueAdapter(val: any): void;
|
|
15304
|
+
updateTableScrollY(): void;
|
|
15305
|
+
scheduleLayout(needUpdateColumns?: any): void;
|
|
15306
|
+
}
|
|
15307
|
+
|
|
15308
|
+
declare class TableColumnNode {
|
|
15309
|
+
states: TableColumnStates;
|
|
15310
|
+
childNodes: TableColumnNode[];
|
|
15311
|
+
table: TableProvide;
|
|
15312
|
+
parentNode: Nullable<TableColumnNode>;
|
|
15313
|
+
instance: ComponentInternalInstance;
|
|
15314
|
+
constructor(options: Options);
|
|
15315
|
+
get children(): TableColumnNode[] | undefined;
|
|
15316
|
+
init(props: TableColumnProps, slots: Slots, attrs: SetupContext['attrs']): void;
|
|
15317
|
+
private registerWatchers;
|
|
15318
|
+
private applyForcedProps;
|
|
15319
|
+
private applyWidth;
|
|
15320
|
+
private applyRenders;
|
|
15321
|
+
cloneNode(childNodes?: TableColumnNode[]): TableColumnNode;
|
|
15322
|
+
}
|
|
15323
|
+
|
|
15324
|
+
declare type TableColumnProps = ExtractPropTypes<typeof tableColumnProps>;
|
|
15325
|
+
|
|
15326
|
+
declare const tableColumnProps: {
|
|
15327
|
+
type: {
|
|
15328
|
+
type: StringConstructor;
|
|
15329
|
+
default: string;
|
|
15330
|
+
};
|
|
15331
|
+
line: NumberConstructor;
|
|
15332
|
+
label: StringConstructor;
|
|
15333
|
+
labelClass: StringConstructor;
|
|
15334
|
+
prop: StringConstructor;
|
|
15335
|
+
width: NumberConstructor;
|
|
15336
|
+
minWidth: NumberConstructor;
|
|
15337
|
+
renderHeader: PropType<TableColumnStates["renderHeader"]>;
|
|
15338
|
+
resizable: {
|
|
15339
|
+
type: BooleanConstructor;
|
|
15340
|
+
default: boolean;
|
|
15341
|
+
};
|
|
15342
|
+
align: StringConstructor;
|
|
15343
|
+
headerAlign: StringConstructor;
|
|
15344
|
+
fixed: PropType<boolean | string>;
|
|
15345
|
+
formatter: PropType<TableColumnStates["formatter"]>;
|
|
15346
|
+
selectable: PropType<TableColumnStates["selectable"]>;
|
|
15347
|
+
reserveSelection: BooleanConstructor;
|
|
15348
|
+
index: PropType<number | ((rowIndex: number) => number)>;
|
|
15349
|
+
sortable: BooleanConstructor;
|
|
15350
|
+
filters: PropType<unknown[]>;
|
|
15351
|
+
filterMultiple: {
|
|
15352
|
+
type: BooleanConstructor;
|
|
15353
|
+
default: boolean;
|
|
15354
|
+
};
|
|
15355
|
+
filterIcon: StringConstructor;
|
|
15356
|
+
filteredValue: PropType<unknown[]>;
|
|
15357
|
+
filterPopupClass: StringConstructor;
|
|
15358
|
+
filter: PropType<(value: unknown) => void>;
|
|
15359
|
+
tooltip: PropType<TableColumnStates["tooltip"]>;
|
|
15360
|
+
};
|
|
15361
|
+
|
|
15362
|
+
declare interface TableColumnRenderData {
|
|
15363
|
+
row: Record<string, unknown>;
|
|
15364
|
+
column: TableColumnStates;
|
|
15365
|
+
rowIndex: number;
|
|
15366
|
+
columnIndex: number;
|
|
15367
|
+
store: Store;
|
|
15368
|
+
selected?: boolean;
|
|
15369
|
+
level?: number;
|
|
15370
|
+
isHead?: boolean;
|
|
15371
|
+
isTail?: boolean;
|
|
15372
|
+
isExpandColumn?: boolean;
|
|
15373
|
+
treeNode?: {
|
|
15374
|
+
indent?: number;
|
|
15375
|
+
expand?: boolean;
|
|
15376
|
+
noLazyChildren?: boolean;
|
|
15377
|
+
loading?: boolean;
|
|
15378
|
+
};
|
|
15379
|
+
}
|
|
15380
|
+
|
|
15381
|
+
declare type TableColumnStates = {
|
|
15382
|
+
id: string;
|
|
15383
|
+
type: string;
|
|
15384
|
+
line?: number;
|
|
15385
|
+
label?: string;
|
|
15386
|
+
labelClass?: string;
|
|
15387
|
+
prop?: string;
|
|
15388
|
+
width?: number;
|
|
15389
|
+
minWidth?: number;
|
|
15390
|
+
resizable?: boolean;
|
|
15391
|
+
align?: string;
|
|
15392
|
+
headerAlign?: string;
|
|
15393
|
+
fixed?: boolean | string;
|
|
15394
|
+
formatter?: (data: TableColumnRenderData) => VNodeChild;
|
|
15395
|
+
selectable?: (row: Record<string, unknown>, rowIndex: number) => boolean;
|
|
15396
|
+
reserveSelection?: boolean;
|
|
15397
|
+
index?: number | ((rowIndex: number) => number);
|
|
15398
|
+
sortable?: boolean;
|
|
15399
|
+
filters?: unknown[];
|
|
15400
|
+
filterMultiple?: boolean;
|
|
15401
|
+
filterIcon?: string;
|
|
15402
|
+
filteredValue?: unknown[];
|
|
15403
|
+
filterPopupClass?: string;
|
|
15404
|
+
filter?: (value: unknown) => void;
|
|
15405
|
+
tooltip?: string | ((data: Pick<TableColumnRenderData, 'column' | 'store'>) => string);
|
|
15406
|
+
colspan: number;
|
|
15407
|
+
rowspan: number;
|
|
15408
|
+
class?: string;
|
|
15409
|
+
style?: CSSProperties;
|
|
15410
|
+
order?: string;
|
|
15411
|
+
realAlign: string | null;
|
|
15412
|
+
realHeaderAlign: string | null;
|
|
15413
|
+
realWidth?: number;
|
|
15414
|
+
hidden?: boolean;
|
|
15415
|
+
level?: number;
|
|
15416
|
+
stickyOffset?: number;
|
|
15417
|
+
stickyStyle?: CSSProperties;
|
|
15418
|
+
stickyClass?: string;
|
|
15419
|
+
renderHeader?: (data: Pick<TableColumnRenderData, 'column' | 'columnIndex' | 'store'>) => VNodeChild;
|
|
15420
|
+
renderCell?: (data: TableColumnRenderData) => VNodeChild;
|
|
15421
|
+
};
|
|
15422
|
+
|
|
15423
|
+
declare interface TableColumnSyncItem {
|
|
15424
|
+
id: string;
|
|
15425
|
+
hidden?: boolean;
|
|
15426
|
+
label?: string;
|
|
15427
|
+
prop?: string;
|
|
15428
|
+
type?: string;
|
|
15429
|
+
}
|
|
15430
|
+
|
|
15431
|
+
declare interface TableProvide {
|
|
15432
|
+
tableId: string;
|
|
15433
|
+
store: Store;
|
|
15434
|
+
props: Props_2;
|
|
15435
|
+
emit: (event: string, ...args: unknown[]) => void;
|
|
15436
|
+
renderExpand: Ref<Nullable<(data: Pick<TableColumnRenderData, 'row' | 'rowIndex' | 'store'>) => VNodeChild>>;
|
|
15437
|
+
hiddenColumns: Ref<Nullable<HTMLElement>>;
|
|
15438
|
+
isReady: Ref<boolean>;
|
|
15439
|
+
hoverState: Ref<Nullable<{
|
|
15440
|
+
cell: HTMLElement;
|
|
15441
|
+
column: TableColumnStates;
|
|
15442
|
+
row: Record<string, unknown>;
|
|
15443
|
+
}>>;
|
|
15444
|
+
resizeProxyVisible: Ref<boolean>;
|
|
15445
|
+
resizeProxy: Ref<Nullable<HTMLElement>>;
|
|
15446
|
+
tableWrapper: Ref<Nullable<HTMLElement>>;
|
|
15447
|
+
}
|
|
15448
|
+
|
|
15449
|
+
declare class Tree {
|
|
15450
|
+
store: Store;
|
|
15451
|
+
normalizedData: ComputedRef< {}>;
|
|
15452
|
+
normalizedLazyNode: ComputedRef< {}>;
|
|
15453
|
+
constructor(store: Store);
|
|
15454
|
+
normalize(data: any[]): {};
|
|
15455
|
+
getMaxLevel(): any;
|
|
15456
|
+
update(): void;
|
|
15457
|
+
expand(ids: any[]): void;
|
|
15458
|
+
toggle(row: any, expanded?: boolean): void;
|
|
15459
|
+
loadOrToggle(row: any): void;
|
|
15460
|
+
loadData(row: any, key: any, treeNode: any): void;
|
|
15461
|
+
}
|
|
15462
|
+
|
|
15092
15463
|
declare interface TreeData {
|
|
15093
15464
|
[key: string]: any;
|
|
15094
15465
|
label?: TreeLabel;
|