@tmagic/table 1.2.0-beta.1 → 1.2.0-beta.3

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.
@@ -1,18 +1,83 @@
1
- import { PropType } from 'vue';
2
1
  import { ColumnConfig } from './schema';
3
- declare const _default: import("vue").DefineComponent<{
4
- config: {
5
- type: PropType<ColumnConfig>;
6
- default: () => {};
7
- required: true;
8
- };
9
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
- config: {
11
- type: PropType<ColumnConfig>;
12
- default: () => {};
13
- required: true;
14
- };
15
- }>>, {
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ config: ColumnConfig;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ config: ColumnConfig;
10
+ }>, {
11
+ config: () => {};
12
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config">;
13
+ $attrs: {
14
+ [x: string]: unknown;
15
+ };
16
+ $refs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $slots: Readonly<{
20
+ [name: string]: import("vue").Slot | undefined;
21
+ }>;
22
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
24
+ $emit: (event: string, ...args: any[]) => void;
25
+ $el: any;
26
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
+ config: ColumnConfig;
28
+ }>, {
29
+ config: () => {};
30
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
31
+ config: ColumnConfig;
32
+ }> & {
33
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
34
+ created?: ((() => void) | (() => void)[]) | undefined;
35
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
36
+ mounted?: ((() => void) | (() => void)[]) | undefined;
37
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
38
+ updated?: ((() => void) | (() => void)[]) | undefined;
39
+ activated?: ((() => void) | (() => void)[]) | undefined;
40
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
43
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
44
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
45
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
47
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
48
+ };
49
+ $forceUpdate: () => void;
50
+ $nextTick: typeof import("vue").nextTick;
51
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
52
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
53
+ config: ColumnConfig;
54
+ }>, {
55
+ config: () => {};
56
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
57
+ __isFragment?: undefined;
58
+ __isTeleport?: undefined;
59
+ __isSuspense?: undefined;
60
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
61
  config: ColumnConfig;
17
- }>;
62
+ }>, {
63
+ config: () => {};
64
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
65
+ config: ColumnConfig;
66
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
67
+ $slots: {};
68
+ });
18
69
  export default _default;
70
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
71
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
72
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
73
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
74
+ } : {
75
+ type: import('vue').PropType<T[K]>;
76
+ required: true;
77
+ };
78
+ };
79
+ declare type __VLS_WithDefaults<P, D> = {
80
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
81
+ default: D[K];
82
+ } : P[K];
83
+ };
@@ -1,20 +1,83 @@
1
- import { PropType } from 'vue';
2
1
  import { ColumnConfig } from './schema';
3
- declare const _default: import("vue").DefineComponent<{
4
- config: {
5
- type: PropType<ColumnConfig>;
6
- default: () => {};
7
- required: true;
8
- };
9
- }, {
10
- formatter: (item: ColumnConfig, row: any) => any;
11
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
- config: {
13
- type: PropType<ColumnConfig>;
14
- default: () => {};
15
- required: true;
16
- };
17
- }>>, {
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ config: ColumnConfig;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ config: ColumnConfig;
10
+ }>, {
11
+ config: () => {};
12
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config">;
13
+ $attrs: {
14
+ [x: string]: unknown;
15
+ };
16
+ $refs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $slots: Readonly<{
20
+ [name: string]: import("vue").Slot | undefined;
21
+ }>;
22
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
24
+ $emit: (event: string, ...args: any[]) => void;
25
+ $el: any;
26
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
+ config: ColumnConfig;
28
+ }>, {
29
+ config: () => {};
30
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
31
+ config: ColumnConfig;
32
+ }> & {
33
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
34
+ created?: ((() => void) | (() => void)[]) | undefined;
35
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
36
+ mounted?: ((() => void) | (() => void)[]) | undefined;
37
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
38
+ updated?: ((() => void) | (() => void)[]) | undefined;
39
+ activated?: ((() => void) | (() => void)[]) | undefined;
40
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
43
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
44
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
45
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
47
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
48
+ };
49
+ $forceUpdate: () => void;
50
+ $nextTick: typeof import("vue").nextTick;
51
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
52
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
53
+ config: ColumnConfig;
54
+ }>, {
55
+ config: () => {};
56
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
57
+ __isFragment?: undefined;
58
+ __isTeleport?: undefined;
59
+ __isSuspense?: undefined;
60
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
61
  config: ColumnConfig;
19
- }>;
62
+ }>, {
63
+ config: () => {};
64
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
65
+ config: ColumnConfig;
66
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
67
+ $slots: {};
68
+ });
20
69
  export default _default;
70
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
71
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
72
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
73
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
74
+ } : {
75
+ type: import('vue').PropType<T[K]>;
76
+ required: true;
77
+ };
78
+ };
79
+ declare type __VLS_WithDefaults<P, D> = {
80
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
81
+ default: D[K];
82
+ } : P[K];
83
+ };
@@ -1,131 +1,226 @@
1
- import { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- data: {
4
- type: ArrayConstructor;
5
- require: boolean;
6
- };
7
- columns: {
8
- type: PropType<any[]>;
9
- require: boolean;
10
- default: () => never[];
11
- };
12
- /** 合并行或列的计算方法 */
13
- spanMethod: {
14
- type: PropType<(data: {
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ columns: any[];
7
+ loading: boolean;
8
+ showHeader: boolean;
9
+ defaultExpandAll: boolean;
10
+ border: boolean;
11
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ data: any[];
13
+ columns?: any[] | undefined;
14
+ /** 合并行或列的计算方法 */
15
+ spanMethod?: ((data: {
16
+ row: any;
17
+ column: any;
18
+ rowIndex: number;
19
+ columnIndex: number;
20
+ }) => [number, number]) | undefined;
21
+ loading?: boolean | undefined;
22
+ /** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
23
+ bodyHeight?: string | number | undefined;
24
+ /** 是否显示表头 */
25
+ showHeader?: boolean | undefined;
26
+ /** 空数据时显示的文本内容 */
27
+ emptyText?: string | undefined;
28
+ /** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
29
+ defaultExpandAll?: boolean | undefined;
30
+ rowkeyName?: string | undefined;
31
+ /** 是否带有纵向边框 */
32
+ border?: boolean | undefined;
33
+ }>, {
34
+ columns: () => never[];
35
+ loading: boolean;
36
+ showHeader: boolean;
37
+ defaultExpandAll: boolean;
38
+ border: boolean;
39
+ }>>> & {
40
+ onAfterAction?: ((...args: any[]) => any) | undefined;
41
+ onSelect?: ((...args: any[]) => any) | undefined;
42
+ "onSort-change"?: ((...args: any[]) => any) | undefined;
43
+ "onSelect-all"?: ((...args: any[]) => any) | undefined;
44
+ "onSelection-change"?: ((...args: any[]) => any) | undefined;
45
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "columns" | "loading" | "showHeader" | "defaultExpandAll" | "border">;
46
+ $attrs: {
47
+ [x: string]: unknown;
48
+ };
49
+ $refs: {
50
+ [x: string]: unknown;
51
+ };
52
+ $slots: Readonly<{
53
+ [name: string]: import("vue").Slot | undefined;
54
+ }>;
55
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
56
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
57
+ $emit: (event: "afterAction" | "sort-change" | "select" | "select-all" | "selection-change", ...args: any[]) => void;
58
+ $el: any;
59
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
60
+ data: any[];
61
+ columns?: any[] | undefined;
62
+ /** 合并行或列的计算方法 */
63
+ spanMethod?: ((data: {
64
+ row: any;
65
+ column: any;
66
+ rowIndex: number;
67
+ columnIndex: number;
68
+ }) => [number, number]) | undefined;
69
+ loading?: boolean | undefined;
70
+ /** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
71
+ bodyHeight?: string | number | undefined;
72
+ /** 是否显示表头 */
73
+ showHeader?: boolean | undefined;
74
+ /** 空数据时显示的文本内容 */
75
+ emptyText?: string | undefined;
76
+ /** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
77
+ defaultExpandAll?: boolean | undefined;
78
+ rowkeyName?: string | undefined;
79
+ /** 是否带有纵向边框 */
80
+ border?: boolean | undefined;
81
+ }>, {
82
+ columns: () => never[];
83
+ loading: boolean;
84
+ showHeader: boolean;
85
+ defaultExpandAll: boolean;
86
+ border: boolean;
87
+ }>>> & {
88
+ onAfterAction?: ((...args: any[]) => any) | undefined;
89
+ onSelect?: ((...args: any[]) => any) | undefined;
90
+ "onSort-change"?: ((...args: any[]) => any) | undefined;
91
+ "onSelect-all"?: ((...args: any[]) => any) | undefined;
92
+ "onSelection-change"?: ((...args: any[]) => any) | undefined;
93
+ }, {
94
+ toggleRowSelection: (row: any, selected: boolean) => void;
95
+ toggleRowExpansion: (row: any, expanded: boolean) => void;
96
+ clearSelection: () => void;
97
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("afterAction" | "sort-change" | "select" | "select-all" | "selection-change")[], string, {
98
+ columns: any[];
99
+ loading: boolean;
100
+ showHeader: boolean;
101
+ defaultExpandAll: boolean;
102
+ border: boolean;
103
+ }> & {
104
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
105
+ created?: ((() => void) | (() => void)[]) | undefined;
106
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
107
+ mounted?: ((() => void) | (() => void)[]) | undefined;
108
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
109
+ updated?: ((() => void) | (() => void)[]) | undefined;
110
+ activated?: ((() => void) | (() => void)[]) | undefined;
111
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
112
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
113
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
114
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
115
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
116
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
117
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
118
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
119
+ };
120
+ $forceUpdate: () => void;
121
+ $nextTick: typeof import("vue").nextTick;
122
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
123
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
124
+ data: any[];
125
+ columns?: any[] | undefined;
126
+ /** 合并行或列的计算方法 */
127
+ spanMethod?: ((data: {
15
128
  row: any;
16
129
  column: any;
17
130
  rowIndex: number;
18
131
  columnIndex: number;
19
- }) => [number, number]>;
20
- };
21
- loading: {
22
- type: BooleanConstructor;
23
- default: boolean;
24
- };
25
- /** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
26
- bodyHeight: {
27
- type: (StringConstructor | NumberConstructor)[];
28
- };
29
- /** 是否显示表头 */
30
- showHeader: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- /** 空数据时显示的文本内容 */
35
- emptyText: {
36
- type: StringConstructor;
37
- };
38
- /** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
39
- defaultExpandAll: {
40
- type: BooleanConstructor;
41
- default: boolean;
42
- };
43
- rowkeyName: {
44
- type: StringConstructor;
45
- };
46
- /** 是否带有纵向边框 */
47
- border: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- }, unknown, {
52
- editState: any[];
53
- }, {
54
- tableData(): unknown[];
55
- selectionColumn(): any;
56
- hasBorder(): boolean;
57
- }, {
58
- sortChange(data: any): void;
59
- selectHandler(selection: any, row: any): void;
60
- selectAllHandler(selection: any): void;
61
- selectionChangeHandler(selection: any): void;
62
- toggleRowSelection(row: any, selected: boolean): void;
63
- toggleRowExpansion(row: any, expanded: boolean): void;
64
- clearSelection(): void;
65
- objectSpanMethod(data: any): [number, number] | (() => {
66
- rowspan: number;
67
- colspan: number;
68
- });
69
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("afterAction" | "sort-change" | "select" | "select-all" | "selection-change")[], "select" | "afterAction" | "sort-change" | "select-all" | "selection-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
- data: {
71
- type: ArrayConstructor;
72
- require: boolean;
73
- };
74
- columns: {
75
- type: PropType<any[]>;
76
- require: boolean;
77
- default: () => never[];
78
- };
132
+ }) => [number, number]) | undefined;
133
+ loading?: boolean | undefined;
134
+ /** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
135
+ bodyHeight?: string | number | undefined;
136
+ /** 是否显示表头 */
137
+ showHeader?: boolean | undefined;
138
+ /** 空数据时显示的文本内容 */
139
+ emptyText?: string | undefined;
140
+ /** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
141
+ defaultExpandAll?: boolean | undefined;
142
+ rowkeyName?: string | undefined;
143
+ /** 是否带有纵向边框 */
144
+ border?: boolean | undefined;
145
+ }>, {
146
+ columns: () => never[];
147
+ loading: boolean;
148
+ showHeader: boolean;
149
+ defaultExpandAll: boolean;
150
+ border: boolean;
151
+ }>>> & {
152
+ onAfterAction?: ((...args: any[]) => any) | undefined;
153
+ onSelect?: ((...args: any[]) => any) | undefined;
154
+ "onSort-change"?: ((...args: any[]) => any) | undefined;
155
+ "onSelect-all"?: ((...args: any[]) => any) | undefined;
156
+ "onSelection-change"?: ((...args: any[]) => any) | undefined;
157
+ } & import("vue").ShallowUnwrapRef<{
158
+ toggleRowSelection: (row: any, selected: boolean) => void;
159
+ toggleRowExpansion: (row: any, expanded: boolean) => void;
160
+ clearSelection: () => void;
161
+ }> & {} & import("vue").ComponentCustomProperties;
162
+ __isFragment?: undefined;
163
+ __isTeleport?: undefined;
164
+ __isSuspense?: undefined;
165
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
166
+ data: any[];
167
+ columns?: any[] | undefined;
79
168
  /** 合并行或列的计算方法 */
80
- spanMethod: {
81
- type: PropType<(data: {
82
- row: any;
83
- column: any;
84
- rowIndex: number;
85
- columnIndex: number;
86
- }) => [number, number]>;
87
- };
88
- loading: {
89
- type: BooleanConstructor;
90
- default: boolean;
91
- };
169
+ spanMethod?: ((data: {
170
+ row: any;
171
+ column: any;
172
+ rowIndex: number;
173
+ columnIndex: number;
174
+ }) => [number, number]) | undefined;
175
+ loading?: boolean | undefined;
92
176
  /** Table 的最大高度。合法的值为数字或者单位为 px 的高度 */
93
- bodyHeight: {
94
- type: (StringConstructor | NumberConstructor)[];
95
- };
177
+ bodyHeight?: string | number | undefined;
96
178
  /** 是否显示表头 */
97
- showHeader: {
98
- type: BooleanConstructor;
99
- default: boolean;
100
- };
179
+ showHeader?: boolean | undefined;
101
180
  /** 空数据时显示的文本内容 */
102
- emptyText: {
103
- type: StringConstructor;
104
- };
181
+ emptyText?: string | undefined;
105
182
  /** 是否默认展开所有行,当 Table 包含展开行存在或者为树形表格时有效 */
106
- defaultExpandAll: {
107
- type: BooleanConstructor;
108
- default: boolean;
109
- };
110
- rowkeyName: {
111
- type: StringConstructor;
112
- };
183
+ defaultExpandAll?: boolean | undefined;
184
+ rowkeyName?: string | undefined;
113
185
  /** 是否带有纵向边框 */
114
- border: {
115
- type: BooleanConstructor;
116
- default: boolean;
117
- };
118
- }>> & {
186
+ border?: boolean | undefined;
187
+ }>, {
188
+ columns: () => never[];
189
+ loading: boolean;
190
+ showHeader: boolean;
191
+ defaultExpandAll: boolean;
192
+ border: boolean;
193
+ }>>> & {
119
194
  onAfterAction?: ((...args: any[]) => any) | undefined;
120
195
  onSelect?: ((...args: any[]) => any) | undefined;
121
196
  "onSort-change"?: ((...args: any[]) => any) | undefined;
122
197
  "onSelect-all"?: ((...args: any[]) => any) | undefined;
123
198
  "onSelection-change"?: ((...args: any[]) => any) | undefined;
124
199
  }, {
200
+ toggleRowSelection: (row: any, selected: boolean) => void;
201
+ toggleRowExpansion: (row: any, expanded: boolean) => void;
202
+ clearSelection: () => void;
203
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("afterAction" | "sort-change" | "select" | "select-all" | "selection-change")[], "select" | "afterAction" | "sort-change" | "select-all" | "selection-change", {
125
204
  columns: any[];
126
- showHeader: boolean;
127
205
  loading: boolean;
206
+ showHeader: boolean;
128
207
  defaultExpandAll: boolean;
129
208
  border: boolean;
130
- }>;
209
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
210
+ $slots: {};
211
+ });
131
212
  export default _default;
213
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
214
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
215
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
216
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
217
+ } : {
218
+ type: import('vue').PropType<T[K]>;
219
+ required: true;
220
+ };
221
+ };
222
+ declare type __VLS_WithDefaults<P, D> = {
223
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
224
+ default: D[K];
225
+ } : P[K];
226
+ };