bkui-vue 0.0.2-beta.8 → 0.0.2-beta.9
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.cjs.js +54 -54
- package/dist/index.esm.js +7444 -7497
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/components.d.ts +1 -1
- package/lib/container/index.js +1 -1
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +5 -5
- package/lib/message/index.js +1 -1
- package/lib/message/messageConstructor.d.ts +5 -4
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/const.d.ts +22 -9
- package/lib/popover/index.d.ts +80 -45
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +24 -16
- package/lib/popover/props.d.ts +4 -2
- package/lib/popover/use-floating.d.ts +1 -1
- package/lib/select/index.d.ts +0 -12
- package/lib/select/select.d.ts +0 -6
- package/lib/styles/mixins/clearfix.less +0 -10
- package/lib/styles/mixins/clearfix.variable.css +0 -8
- package/lib/table/components/table-cell.d.ts +15 -6
- package/lib/table/components/table-column.d.ts +108 -215
- package/lib/table/const.d.ts +16 -54
- package/lib/table/events.d.ts +180 -0
- package/lib/table/index.d.ts +746 -425
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.d.ts +3 -7
- package/lib/table/plugins/head-sort.d.ts +3 -7
- package/lib/table/plugins/settings.d.ts +8 -12
- package/lib/table/plugins/use-fixed-column.d.ts +3 -2
- package/lib/table/props.d.ts +146 -167
- package/lib/table/render.d.ts +6 -4
- package/lib/table/table.css +13 -2
- package/lib/table/table.d.ts +192 -92
- package/lib/table/table.less +34 -2
- package/lib/table/table.variable.css +13 -2
- package/lib/table/use-column.d.ts +47 -1
- package/lib/table/use-common.d.ts +22 -9
- package/lib/table/utils.d.ts +1 -0
- package/lib/table-column/index.d.ts +417 -537
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/index.d.ts +0 -6
- package/lib/tag-input/tag-input.d.ts +0 -4
- package/lib/tag-input/tag-props.d.ts +0 -2
- package/package.json +1 -1
- package/lib/styles/mixins/clearfix.css +0 -8
- package/lib/styles/mixins/mixins.css +0 -72
- package/lib/styles/mixins/mixins.less +0 -5
- package/lib/styles/mixins/mixins.variable.css +0 -72
@@ -1,4 +1,3 @@
|
|
1
|
-
import { IOverflowTooltip } from '../props';
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
3
2
|
column: import("vue-types").VueTypeValidableDef<any> & {
|
4
3
|
default: any;
|
@@ -6,8 +5,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
6
5
|
row: import("vue-types").VueTypeValidableDef<any> & {
|
7
6
|
default: any;
|
8
7
|
};
|
9
|
-
parentSetting: import("vue-types").VueTypeDef<
|
10
|
-
default: boolean | (() =>
|
8
|
+
parentSetting: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
|
9
|
+
default: boolean | (() => {
|
10
|
+
content: string | Function;
|
11
|
+
disabled?: boolean;
|
12
|
+
watchCellResize?: boolean;
|
13
|
+
mode?: "auto" | "static";
|
14
|
+
});
|
11
15
|
};
|
12
16
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
13
17
|
default: string;
|
@@ -27,8 +31,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
27
31
|
row: import("vue-types").VueTypeValidableDef<any> & {
|
28
32
|
default: any;
|
29
33
|
};
|
30
|
-
parentSetting: import("vue-types").VueTypeDef<
|
31
|
-
default: boolean | (() =>
|
34
|
+
parentSetting: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
|
35
|
+
default: boolean | (() => {
|
36
|
+
content: string | Function;
|
37
|
+
disabled?: boolean;
|
38
|
+
watchCellResize?: boolean;
|
39
|
+
mode?: "auto" | "static";
|
40
|
+
});
|
32
41
|
};
|
33
42
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
34
43
|
default: string;
|
@@ -46,6 +55,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
55
|
column: any;
|
47
56
|
row: any;
|
48
57
|
observerResize: boolean;
|
49
|
-
parentSetting:
|
58
|
+
parentSetting: import("../props").IOverflowTooltipProp;
|
50
59
|
}, {}>;
|
51
60
|
export default _default;
|
@@ -1,15 +1,53 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
declare const TableColumnProp: {
|
3
|
+
label: import("vue-types").VueTypeDef<any>;
|
4
|
+
field: import("vue-types").VueTypeDef<any>;
|
5
|
+
render: import("vue-types").VueTypeDef<any>;
|
6
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
7
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
8
|
+
default: string | number;
|
9
|
+
};
|
10
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
11
|
+
default: string;
|
12
|
+
} & {
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
|
16
|
+
default: boolean | (() => {
|
17
|
+
content: string | Function;
|
18
|
+
disabled?: boolean;
|
19
|
+
watchCellResize?: boolean;
|
20
|
+
mode?: "auto" | "static";
|
21
|
+
});
|
22
|
+
};
|
23
|
+
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
24
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
25
|
+
default: boolean;
|
26
|
+
} & {
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
30
|
+
default: boolean | "right" | "left";
|
31
|
+
};
|
32
|
+
sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape> & {
|
33
|
+
default: string | boolean | (() => import("../props").ISortShape);
|
34
|
+
};
|
35
|
+
filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape> & {
|
36
|
+
default: string | boolean | (() => import("../props").IFilterShape);
|
37
|
+
};
|
38
|
+
colspan: import("vue-types").VueTypeDef<any>;
|
39
|
+
rowspan: import("vue-types").VueTypeDef<any>;
|
40
|
+
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
41
|
+
className: import("vue-types").VueTypeDef<any>;
|
7
42
|
prop: import("vue-types").VueTypeDef<any>;
|
8
43
|
index: import("vue-types").VueTypeValidableDef<number> & {
|
9
44
|
default: number;
|
10
45
|
} & {
|
11
46
|
default: number;
|
12
47
|
};
|
48
|
+
};
|
49
|
+
export type ITableColumn = Partial<ExtractPropTypes<typeof TableColumnProp>>;
|
50
|
+
declare const _default: import("vue").DefineComponent<{
|
13
51
|
label: import("vue-types").VueTypeDef<any>;
|
14
52
|
field: import("vue-types").VueTypeDef<any>;
|
15
53
|
render: import("vue-types").VueTypeDef<any>;
|
@@ -22,8 +60,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
60
|
} & {
|
23
61
|
default: string;
|
24
62
|
};
|
25
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<
|
26
|
-
default: boolean | (() =>
|
63
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
|
64
|
+
default: boolean | (() => {
|
65
|
+
content: string | Function;
|
66
|
+
disabled?: boolean;
|
67
|
+
watchCellResize?: boolean;
|
68
|
+
mode?: "auto" | "static";
|
69
|
+
});
|
27
70
|
};
|
28
71
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
29
72
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -34,51 +77,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
77
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
35
78
|
default: boolean | "right" | "left";
|
36
79
|
};
|
37
|
-
sort: import("vue-types").VueTypeDef<
|
38
|
-
|
39
|
-
sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
40
|
-
value: string;
|
41
|
-
}> & {
|
42
|
-
default: string | boolean | (() => {
|
43
|
-
sortFn: any;
|
44
|
-
sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
45
|
-
value: string;
|
46
|
-
});
|
80
|
+
sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape> & {
|
81
|
+
default: string | boolean | (() => import("../props").ISortShape);
|
47
82
|
};
|
48
|
-
filter: import("vue-types").VueTypeDef<
|
49
|
-
|
50
|
-
filterFn: any;
|
51
|
-
match: "full" | "fuzzy";
|
52
|
-
checked: any[] | (object & (() => any[]));
|
53
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
54
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
55
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
56
|
-
}> & {
|
57
|
-
default: string | boolean | (() => {
|
58
|
-
list: any[] | (object & (() => any[]));
|
59
|
-
filterFn: any;
|
60
|
-
match: "full" | "fuzzy";
|
61
|
-
checked: any[] | (object & (() => any[]));
|
62
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
63
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
64
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
65
|
-
});
|
83
|
+
filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape> & {
|
84
|
+
default: string | boolean | (() => import("../props").IFilterShape);
|
66
85
|
};
|
67
86
|
colspan: import("vue-types").VueTypeDef<any>;
|
68
87
|
rowspan: import("vue-types").VueTypeDef<any>;
|
69
88
|
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
70
89
|
className: import("vue-types").VueTypeDef<any>;
|
90
|
+
prop: import("vue-types").VueTypeDef<any>;
|
91
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
92
|
+
default: number;
|
93
|
+
} & {
|
94
|
+
default: number;
|
95
|
+
};
|
71
96
|
}, {
|
72
97
|
initColumns: (_col: ITableColumn | ITableColumn[], _rm?: boolean) => void;
|
73
98
|
bkTableCache: {
|
74
99
|
queueStack: (_: any, fn: any) => any;
|
75
100
|
};
|
76
101
|
column: {
|
77
|
-
field:
|
78
|
-
|
79
|
-
|
80
|
-
|
102
|
+
field: any;
|
103
|
+
sort?: string | boolean | {
|
104
|
+
sortFn?: Function;
|
105
|
+
sortScope?: import("../props").SortScope;
|
106
|
+
value?: import("../const").SORT_OPTION;
|
107
|
+
};
|
108
|
+
filter?: string | boolean | {
|
109
|
+
list: any[];
|
110
|
+
filterFn?: Function;
|
111
|
+
match?: import("../props").FullEnum;
|
112
|
+
checked?: any[];
|
113
|
+
filterScope?: import("../props").SortScope;
|
114
|
+
btnSave?: string | boolean;
|
115
|
+
btnReset?: string | boolean;
|
116
|
+
};
|
117
|
+
fixed?: boolean | "right" | "left";
|
81
118
|
minWidth?: string | number;
|
119
|
+
index?: number;
|
82
120
|
columnKey?: string;
|
83
121
|
showOverflowTooltip?: boolean | {
|
84
122
|
content: string | Function;
|
@@ -86,142 +124,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
86
124
|
watchCellResize?: boolean;
|
87
125
|
mode?: "auto" | "static";
|
88
126
|
};
|
89
|
-
type?: string;
|
90
|
-
fixed?: string | boolean;
|
91
127
|
resizable?: boolean;
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
};
|
102
|
-
colspan?: Function | {
|
103
|
-
toString: (radix?: number) => string;
|
104
|
-
toFixed: (fractionDigits?: number) => string;
|
105
|
-
toExponential: (fractionDigits?: number) => string;
|
106
|
-
toPrecision: (precision?: number) => string;
|
107
|
-
valueOf: () => number;
|
108
|
-
toLocaleString: {
|
109
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
110
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
111
|
-
};
|
112
|
-
};
|
113
|
-
rowspan?: Function | {
|
114
|
-
toString: (radix?: number) => string;
|
115
|
-
toFixed: (fractionDigits?: number) => string;
|
116
|
-
toExponential: (fractionDigits?: number) => string;
|
117
|
-
toPrecision: (precision?: number) => string;
|
118
|
-
valueOf: () => number;
|
119
|
-
toLocaleString: {
|
120
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
121
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
122
|
-
};
|
123
|
-
};
|
124
|
-
textAlign?: {
|
125
|
-
[x: number]: string;
|
126
|
-
toString: () => string;
|
127
|
-
charAt: (pos: number) => string;
|
128
|
-
charCodeAt: (index: number) => number;
|
129
|
-
concat: (...strings: string[]) => string;
|
130
|
-
indexOf: (searchString: string, position?: number) => number;
|
131
|
-
lastIndexOf: (searchString: string, position?: number) => number;
|
132
|
-
localeCompare: {
|
133
|
-
(that: string): number;
|
134
|
-
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
135
|
-
};
|
136
|
-
match: {
|
137
|
-
(regexp: string | RegExp): RegExpMatchArray;
|
138
|
-
(matcher: {
|
139
|
-
[Symbol.match](string: string): RegExpMatchArray;
|
140
|
-
}): RegExpMatchArray;
|
141
|
-
};
|
142
|
-
replace: {
|
143
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
144
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
145
|
-
(searchValue: {
|
146
|
-
[Symbol.replace](string: string, replaceValue: string): string;
|
147
|
-
}, replaceValue: string): string;
|
148
|
-
(searchValue: {
|
149
|
-
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
150
|
-
}, replacer: (substring: string, ...args: any[]) => string): string;
|
151
|
-
};
|
152
|
-
search: {
|
153
|
-
(regexp: string | RegExp): number;
|
154
|
-
(searcher: {
|
155
|
-
[Symbol.search](string: string): number;
|
156
|
-
}): number;
|
157
|
-
};
|
158
|
-
slice: (start?: number, end?: number) => string;
|
159
|
-
split: {
|
160
|
-
(separator: string | RegExp, limit?: number): string[];
|
161
|
-
(splitter: {
|
162
|
-
[Symbol.split](string: string, limit?: number): string[];
|
163
|
-
}, limit?: number): string[];
|
164
|
-
};
|
165
|
-
substring: (start: number, end?: number) => string;
|
166
|
-
toLowerCase: () => string;
|
167
|
-
toLocaleLowerCase: (locales?: string | string[]) => string;
|
168
|
-
toUpperCase: () => string;
|
169
|
-
toLocaleUpperCase: (locales?: string | string[]) => string;
|
170
|
-
trim: () => string;
|
171
|
-
readonly length: number;
|
172
|
-
substr: (from: number, length?: number) => string;
|
173
|
-
valueOf: () => string;
|
174
|
-
codePointAt: (pos: number) => number;
|
175
|
-
includes: (searchString: string, position?: number) => boolean;
|
176
|
-
endsWith: (searchString: string, endPosition?: number) => boolean;
|
177
|
-
normalize: {
|
178
|
-
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
179
|
-
(form?: string): string;
|
180
|
-
};
|
181
|
-
repeat: (count: number) => string;
|
182
|
-
startsWith: (searchString: string, position?: number) => boolean;
|
183
|
-
anchor: (name: string) => string;
|
184
|
-
big: () => string;
|
185
|
-
blink: () => string;
|
186
|
-
bold: () => string;
|
187
|
-
fixed: () => string;
|
188
|
-
fontcolor: (color: string) => string;
|
189
|
-
fontsize: {
|
190
|
-
(size: number): string;
|
191
|
-
(size: string): string;
|
192
|
-
};
|
193
|
-
italics: () => string;
|
194
|
-
link: (url: string) => string;
|
195
|
-
small: () => string;
|
196
|
-
strike: () => string;
|
197
|
-
sub: () => string;
|
198
|
-
sup: () => string;
|
199
|
-
padStart: (maxLength: number, fillString?: string) => string;
|
200
|
-
padEnd: (maxLength: number, fillString?: string) => string;
|
201
|
-
trimEnd: () => string;
|
202
|
-
trimStart: () => string;
|
203
|
-
trimLeft: () => string;
|
204
|
-
trimRight: () => string;
|
205
|
-
matchAll: (regexp: RegExp) => IterableIterator<RegExpMatchArray>;
|
206
|
-
[Symbol.iterator]: () => IterableIterator<string>;
|
207
|
-
at: (index: number) => string;
|
208
|
-
};
|
209
|
-
className?: string | Function;
|
210
|
-
align?: string;
|
211
|
-
prop?: string | Function;
|
212
|
-
index?: number;
|
128
|
+
render?: any;
|
129
|
+
type?: "none" | "selection" | "index" | "expand";
|
130
|
+
label?: any;
|
131
|
+
width?: string | number;
|
132
|
+
className?: any;
|
133
|
+
align?: "" | "right" | "left" | "center";
|
134
|
+
colspan?: any;
|
135
|
+
rowspan?: any;
|
136
|
+
prop?: any;
|
213
137
|
};
|
214
138
|
}, unknown, {}, {
|
215
139
|
updateColumnDefine(unmounted?: boolean): void;
|
216
140
|
updateColumnDefineByParent(): void;
|
217
141
|
updateColumnDefineByIndex(unmounted?: boolean): void;
|
218
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
219
|
-
prop: import("vue-types").VueTypeDef<any>;
|
220
|
-
index: import("vue-types").VueTypeValidableDef<number> & {
|
221
|
-
default: number;
|
222
|
-
} & {
|
223
|
-
default: number;
|
224
|
-
};
|
142
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
225
143
|
label: import("vue-types").VueTypeDef<any>;
|
226
144
|
field: import("vue-types").VueTypeDef<any>;
|
227
145
|
render: import("vue-types").VueTypeDef<any>;
|
@@ -234,8 +152,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
234
152
|
} & {
|
235
153
|
default: string;
|
236
154
|
};
|
237
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<
|
238
|
-
default: boolean | (() =>
|
155
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
|
156
|
+
default: boolean | (() => {
|
157
|
+
content: string | Function;
|
158
|
+
disabled?: boolean;
|
159
|
+
watchCellResize?: boolean;
|
160
|
+
mode?: "auto" | "static";
|
161
|
+
});
|
239
162
|
};
|
240
163
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
241
164
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -246,60 +169,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
246
169
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
247
170
|
default: boolean | "right" | "left";
|
248
171
|
};
|
249
|
-
sort: import("vue-types").VueTypeDef<
|
250
|
-
|
251
|
-
sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
252
|
-
value: string;
|
253
|
-
}> & {
|
254
|
-
default: string | boolean | (() => {
|
255
|
-
sortFn: any;
|
256
|
-
sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
257
|
-
value: string;
|
258
|
-
});
|
172
|
+
sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape> & {
|
173
|
+
default: string | boolean | (() => import("../props").ISortShape);
|
259
174
|
};
|
260
|
-
filter: import("vue-types").VueTypeDef<
|
261
|
-
|
262
|
-
filterFn: any;
|
263
|
-
match: "full" | "fuzzy";
|
264
|
-
checked: any[] | (object & (() => any[]));
|
265
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
266
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
267
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
268
|
-
}> & {
|
269
|
-
default: string | boolean | (() => {
|
270
|
-
list: any[] | (object & (() => any[]));
|
271
|
-
filterFn: any;
|
272
|
-
match: "full" | "fuzzy";
|
273
|
-
checked: any[] | (object & (() => any[]));
|
274
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
275
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
276
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
277
|
-
});
|
175
|
+
filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape> & {
|
176
|
+
default: string | boolean | (() => import("../props").IFilterShape);
|
278
177
|
};
|
279
178
|
colspan: import("vue-types").VueTypeDef<any>;
|
280
179
|
rowspan: import("vue-types").VueTypeDef<any>;
|
281
180
|
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
282
181
|
className: import("vue-types").VueTypeDef<any>;
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
};
|
289
|
-
filter: string | boolean | {
|
290
|
-
list: any[] | (object & (() => any[]));
|
291
|
-
filterFn: any;
|
292
|
-
match: "full" | "fuzzy";
|
293
|
-
checked: any[] | (object & (() => any[]));
|
294
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
295
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
296
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
182
|
+
prop: import("vue-types").VueTypeDef<any>;
|
183
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
184
|
+
default: number;
|
185
|
+
} & {
|
186
|
+
default: number;
|
297
187
|
};
|
188
|
+
}>>, {
|
189
|
+
sort: import("../props").ISortPropShape;
|
190
|
+
filter: import("../props").IFilterPropShape;
|
298
191
|
fixed: boolean | "right" | "left";
|
299
192
|
minWidth: string | number;
|
300
193
|
index: number;
|
301
194
|
columnKey: string;
|
302
|
-
showOverflowTooltip:
|
195
|
+
showOverflowTooltip: import("../props").IOverflowTooltipProp;
|
303
196
|
resizable: boolean;
|
304
197
|
}, {}>;
|
305
198
|
export default _default;
|
package/lib/table/const.d.ts
CHANGED
@@ -19,60 +19,6 @@ export declare const ROW_HOVER_OPTIONS: ROW_HOVER[];
|
|
19
19
|
* 边框配置可选项
|
20
20
|
*/
|
21
21
|
export declare const BORDER_OPTIONS: BORDER_OPTION[];
|
22
|
-
export declare const enum EVENTS {
|
23
|
-
/** 点击排序事件 */
|
24
|
-
ON_SORT_BY_CLICK = "onSortByClick",
|
25
|
-
ON_FILTER_CLICK = "onFilterClick",
|
26
|
-
ON_SETTING_CHANGE = "onSettingChange",
|
27
|
-
ON_ROW_EXPAND_CLICK = "onRowExpandClick",
|
28
|
-
ON_ROW_CHECK = "onRowCheck"
|
29
|
-
}
|
30
|
-
export declare const enum EMIT_EVENTS {
|
31
|
-
COLUMN_PICK = "columnPick",
|
32
|
-
COLUMN_SORT = "columnSort",
|
33
|
-
COLUMN_FILTER = "columnFilter",
|
34
|
-
COLUMN_FILTER_SAVE = "colFilterSave",
|
35
|
-
ROW_CLICK = "rowClick",
|
36
|
-
ROW_DBL_CLICK = "rowDblclick",
|
37
|
-
ROW_EXPAND_CLICK = "rowExpand",
|
38
|
-
ROW_MOUSE_ENTER = "rowMouseEnter",
|
39
|
-
ROW_MOUSE_LEAVE = "rowMouseLeave",
|
40
|
-
PAGE_LIMIT_CHANGE = "pageLimitChange",
|
41
|
-
PAGE_VALUE_CHANGE = "pageValueChange",
|
42
|
-
SETTING_CHANGE = "settingChange",
|
43
|
-
SCROLL_BOTTOM = "scrollBottom",
|
44
|
-
ROW_SELECT = "select",
|
45
|
-
ROW_SELECT_ALL = "selectAll",
|
46
|
-
ROW_SELECT_CHANGE = "selectionChange",
|
47
|
-
CELL_CLICK = "cellClick",
|
48
|
-
CELL_DBL_CLICK = "cellDblclick",
|
49
|
-
NATIVE_CLICK = "click",
|
50
|
-
NATIVE_DBL_CLICK = "dblclick"
|
51
|
-
}
|
52
|
-
export declare const EMIT_EVENT_TYPES: {
|
53
|
-
columnPick: (..._args: any[]) => boolean;
|
54
|
-
columnFilter: (..._args: any[]) => boolean;
|
55
|
-
columnSort: (..._args: any[]) => boolean;
|
56
|
-
colFilterSave: (..._args: any[]) => boolean;
|
57
|
-
rowClick: (..._args: any[]) => boolean;
|
58
|
-
rowDblclick: (..._args: any[]) => boolean;
|
59
|
-
rowExpand: (..._args: any[]) => boolean;
|
60
|
-
select: (..._args: any[]) => boolean;
|
61
|
-
selectAll: (..._args: any[]) => boolean;
|
62
|
-
selectionChange: (..._args: any[]) => boolean;
|
63
|
-
pageLimitChange: (..._args: any[]) => boolean;
|
64
|
-
pageValueChange: (..._args: any[]) => boolean;
|
65
|
-
settingChange: (..._args: any[]) => boolean;
|
66
|
-
scrollBottom: (..._args: any[]) => boolean;
|
67
|
-
cellClick: (..._args: any[]) => boolean;
|
68
|
-
cellDblclick: (..._args: any[]) => boolean;
|
69
|
-
rowMouseEnter: (..._args: any[]) => boolean;
|
70
|
-
rowMouseLeave: (..._args: any[]) => boolean;
|
71
|
-
};
|
72
|
-
export declare const CELL_EVENT_TYPES: {
|
73
|
-
click: (..._args: any[]) => boolean;
|
74
|
-
dblclick: (..._args: any[]) => boolean;
|
75
|
-
};
|
76
22
|
/**
|
77
23
|
* Table Row Attributes
|
78
24
|
*/
|
@@ -99,6 +45,17 @@ export declare const SCROLLY_WIDTH = 6;
|
|
99
45
|
* 默认行高
|
100
46
|
*/
|
101
47
|
export declare const LINE_HEIGHT = 42;
|
48
|
+
export declare enum IHeadColor {
|
49
|
+
DEF1 = "def1",
|
50
|
+
DEF2 = "def2"
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
|
54
|
+
*/
|
55
|
+
export declare const DEF_COLOR: {
|
56
|
+
def1: string;
|
57
|
+
def2: string;
|
58
|
+
};
|
102
59
|
export declare const SETTING_SIZE: {
|
103
60
|
large: number;
|
104
61
|
medium: number;
|
@@ -115,6 +72,11 @@ export declare const createDefaultSizeList: (t: ComputedRef<Language['table']>)
|
|
115
72
|
export declare const PROVIDE_KEY_INIT_COL = "InitColumns";
|
116
73
|
export declare const PROVIDE_KEY_TB_CACHE = "BKTableCahce";
|
117
74
|
export declare const BK_COLUMN_UPDATE_DEFINE = "Bk_COlumn_Update_Define";
|
75
|
+
/**
|
76
|
+
* 表格底部高度
|
77
|
+
* 分页组件
|
78
|
+
*/
|
79
|
+
export declare const TB_FOOT_HEIGHT = 60;
|
118
80
|
/**
|
119
81
|
* 排序可选择项
|
120
82
|
*/
|