bkui-vue 2.0.1-beta.12 → 2.0.1-beta.14
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 +165 -165
- package/dist/index.esm.js +31253 -31265
- package/dist/index.umd.js +165 -165
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -7
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.js +31 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/index.js +44 -44
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/index.js +190 -188
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +5 -5
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +18 -18
- package/lib/dialog/index.d.ts +40 -40
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +7 -7
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +3 -3
- package/lib/modal/index.js +7 -7
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +18 -20
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +9 -9
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -20
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.js +10 -10
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +7 -8
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/index.d.ts +61 -61
- package/lib/select/index.js +69 -75
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +24 -24
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +3 -3
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +124 -128
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.d.ts +47 -47
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +18 -18
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +36 -36
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +6 -6
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/upload/index.js +25 -26
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +6 -6
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +13 -49
@@ -13,34 +13,24 @@ declare const BkTableColumn: {
|
|
13
13
|
default: string;
|
14
14
|
};
|
15
15
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
|
16
|
-
type: import("vue-types").VueTypeDef<"index" | "
|
16
|
+
type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
|
17
17
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
18
18
|
default: boolean;
|
19
19
|
} & {
|
20
20
|
default: boolean;
|
21
21
|
};
|
22
|
-
fixed: import("vue-types").VueTypeDef<boolean | "
|
23
|
-
default: boolean | "
|
22
|
+
fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
|
23
|
+
default: boolean | "left" | "right";
|
24
24
|
};
|
25
25
|
sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
|
26
26
|
filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
|
27
27
|
colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
28
|
-
default: (
|
29
|
-
column: any;
|
30
|
-
colIndex: any;
|
31
|
-
row: any;
|
32
|
-
rowIndex: any;
|
33
|
-
}) => number) | (() => Number);
|
28
|
+
default: import("../table/props").SpanFunctionString;
|
34
29
|
};
|
35
30
|
rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
36
|
-
default: (
|
37
|
-
column: any;
|
38
|
-
colIndex: any;
|
39
|
-
row: any;
|
40
|
-
rowIndex: any;
|
41
|
-
}) => number) | (() => Number);
|
31
|
+
default: import("../table/props").SpanFunctionString;
|
42
32
|
};
|
43
|
-
align: import("vue-types").VueTypeDef<"" | "
|
33
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
44
34
|
className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
|
45
35
|
prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
46
36
|
index: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -50,43 +40,13 @@ declare const BkTableColumn: {
|
|
50
40
|
};
|
51
41
|
}>>, {
|
52
42
|
column: {
|
53
|
-
fixed?: boolean | "
|
43
|
+
fixed?: boolean | "left" | "right";
|
54
44
|
resizable?: boolean;
|
55
45
|
minWidth?: string | number;
|
56
46
|
index?: number;
|
57
47
|
columnKey?: string;
|
58
|
-
colspan?: (
|
59
|
-
|
60
|
-
colIndex: any;
|
61
|
-
row: any;
|
62
|
-
rowIndex: any;
|
63
|
-
}) => number) | {
|
64
|
-
toString: (radix?: number) => string;
|
65
|
-
toFixed: (fractionDigits?: number) => string;
|
66
|
-
toExponential: (fractionDigits?: number) => string;
|
67
|
-
toPrecision: (precision?: number) => string;
|
68
|
-
valueOf: () => number;
|
69
|
-
toLocaleString: {
|
70
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
71
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
72
|
-
};
|
73
|
-
};
|
74
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
75
|
-
column: any;
|
76
|
-
colIndex: any;
|
77
|
-
row: any;
|
78
|
-
rowIndex: any;
|
79
|
-
}) => number) | {
|
80
|
-
toString: (radix?: number) => string;
|
81
|
-
toFixed: (fractionDigits?: number) => string;
|
82
|
-
toExponential: (fractionDigits?: number) => string;
|
83
|
-
toPrecision: (precision?: number) => string;
|
84
|
-
valueOf: () => number;
|
85
|
-
toLocaleString: {
|
86
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
87
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
88
|
-
};
|
89
|
-
};
|
48
|
+
colspan?: import("../table/props").SpanFunctionString;
|
49
|
+
rowspan?: import("../table/props").SpanFunctionString;
|
90
50
|
render?: import("../table/props").RenderFunctionString;
|
91
51
|
sort?: string | boolean | {
|
92
52
|
sortFn?: Function;
|
@@ -104,11 +64,11 @@ declare const BkTableColumn: {
|
|
104
64
|
height?: number;
|
105
65
|
maxHeight?: number;
|
106
66
|
};
|
107
|
-
type?: "index" | "
|
67
|
+
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
108
68
|
label?: import("../table/props").LabelFunctionString;
|
109
69
|
width?: string | number;
|
110
70
|
className?: import("../table/props").RowClassFunctionString;
|
111
|
-
align?: "" | "
|
71
|
+
align?: "" | "left" | "right" | "center";
|
112
72
|
showOverflowTooltip?: boolean | {
|
113
73
|
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
114
74
|
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
@@ -135,34 +95,24 @@ declare const BkTableColumn: {
|
|
135
95
|
default: string;
|
136
96
|
};
|
137
97
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
|
138
|
-
type: import("vue-types").VueTypeDef<"index" | "
|
98
|
+
type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
|
139
99
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
140
100
|
default: boolean;
|
141
101
|
} & {
|
142
102
|
default: boolean;
|
143
103
|
};
|
144
|
-
fixed: import("vue-types").VueTypeDef<boolean | "
|
145
|
-
default: boolean | "
|
104
|
+
fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
|
105
|
+
default: boolean | "left" | "right";
|
146
106
|
};
|
147
107
|
sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
|
148
108
|
filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
|
149
109
|
colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
150
|
-
default: (
|
151
|
-
column: any;
|
152
|
-
colIndex: any;
|
153
|
-
row: any;
|
154
|
-
rowIndex: any;
|
155
|
-
}) => number) | (() => Number);
|
110
|
+
default: import("../table/props").SpanFunctionString;
|
156
111
|
};
|
157
112
|
rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
158
|
-
default: (
|
159
|
-
column: any;
|
160
|
-
colIndex: any;
|
161
|
-
row: any;
|
162
|
-
rowIndex: any;
|
163
|
-
}) => number) | (() => Number);
|
113
|
+
default: import("../table/props").SpanFunctionString;
|
164
114
|
};
|
165
|
-
align: import("vue-types").VueTypeDef<"" | "
|
115
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
166
116
|
className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
|
167
117
|
prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
168
118
|
index: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -171,7 +121,7 @@ declare const BkTableColumn: {
|
|
171
121
|
default: number;
|
172
122
|
};
|
173
123
|
}>>, {
|
174
|
-
fixed: boolean | "
|
124
|
+
fixed: boolean | "left" | "right";
|
175
125
|
resizable: boolean;
|
176
126
|
minWidth: string | number;
|
177
127
|
index: number;
|
@@ -199,34 +149,24 @@ declare const BkTableColumn: {
|
|
199
149
|
default: string;
|
200
150
|
};
|
201
151
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
|
202
|
-
type: import("vue-types").VueTypeDef<"index" | "
|
152
|
+
type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
|
203
153
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
204
154
|
default: boolean;
|
205
155
|
} & {
|
206
156
|
default: boolean;
|
207
157
|
};
|
208
|
-
fixed: import("vue-types").VueTypeDef<boolean | "
|
209
|
-
default: boolean | "
|
158
|
+
fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
|
159
|
+
default: boolean | "left" | "right";
|
210
160
|
};
|
211
161
|
sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
|
212
162
|
filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
|
213
163
|
colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
214
|
-
default: (
|
215
|
-
column: any;
|
216
|
-
colIndex: any;
|
217
|
-
row: any;
|
218
|
-
rowIndex: any;
|
219
|
-
}) => number) | (() => Number);
|
164
|
+
default: import("../table/props").SpanFunctionString;
|
220
165
|
};
|
221
166
|
rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
222
|
-
default: (
|
223
|
-
column: any;
|
224
|
-
colIndex: any;
|
225
|
-
row: any;
|
226
|
-
rowIndex: any;
|
227
|
-
}) => number) | (() => Number);
|
167
|
+
default: import("../table/props").SpanFunctionString;
|
228
168
|
};
|
229
|
-
align: import("vue-types").VueTypeDef<"" | "
|
169
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
230
170
|
className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
|
231
171
|
prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
232
172
|
index: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -236,43 +176,13 @@ declare const BkTableColumn: {
|
|
236
176
|
};
|
237
177
|
}>>, {
|
238
178
|
column: {
|
239
|
-
fixed?: boolean | "
|
179
|
+
fixed?: boolean | "left" | "right";
|
240
180
|
resizable?: boolean;
|
241
181
|
minWidth?: string | number;
|
242
182
|
index?: number;
|
243
183
|
columnKey?: string;
|
244
|
-
colspan?: (
|
245
|
-
|
246
|
-
colIndex: any;
|
247
|
-
row: any;
|
248
|
-
rowIndex: any;
|
249
|
-
}) => number) | {
|
250
|
-
toString: (radix?: number) => string;
|
251
|
-
toFixed: (fractionDigits?: number) => string;
|
252
|
-
toExponential: (fractionDigits?: number) => string;
|
253
|
-
toPrecision: (precision?: number) => string;
|
254
|
-
valueOf: () => number;
|
255
|
-
toLocaleString: {
|
256
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
257
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
258
|
-
};
|
259
|
-
};
|
260
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
261
|
-
column: any;
|
262
|
-
colIndex: any;
|
263
|
-
row: any;
|
264
|
-
rowIndex: any;
|
265
|
-
}) => number) | {
|
266
|
-
toString: (radix?: number) => string;
|
267
|
-
toFixed: (fractionDigits?: number) => string;
|
268
|
-
toExponential: (fractionDigits?: number) => string;
|
269
|
-
toPrecision: (precision?: number) => string;
|
270
|
-
valueOf: () => number;
|
271
|
-
toLocaleString: {
|
272
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
273
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
274
|
-
};
|
275
|
-
};
|
184
|
+
colspan?: import("../table/props").SpanFunctionString;
|
185
|
+
rowspan?: import("../table/props").SpanFunctionString;
|
276
186
|
render?: import("../table/props").RenderFunctionString;
|
277
187
|
sort?: string | boolean | {
|
278
188
|
sortFn?: Function;
|
@@ -290,11 +200,11 @@ declare const BkTableColumn: {
|
|
290
200
|
height?: number;
|
291
201
|
maxHeight?: number;
|
292
202
|
};
|
293
|
-
type?: "index" | "
|
203
|
+
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
294
204
|
label?: import("../table/props").LabelFunctionString;
|
295
205
|
width?: string | number;
|
296
206
|
className?: import("../table/props").RowClassFunctionString;
|
297
|
-
align?: "" | "
|
207
|
+
align?: "" | "left" | "right" | "center";
|
298
208
|
showOverflowTooltip?: boolean | {
|
299
209
|
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
300
210
|
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
@@ -308,7 +218,7 @@ declare const BkTableColumn: {
|
|
308
218
|
prop?: import("../table/props").LabelFunctionString;
|
309
219
|
};
|
310
220
|
}, {}, {}, {}, {
|
311
|
-
fixed: boolean | "
|
221
|
+
fixed: boolean | "left" | "right";
|
312
222
|
resizable: boolean;
|
313
223
|
minWidth: string | number;
|
314
224
|
index: number;
|
@@ -333,34 +243,24 @@ declare const BkTableColumn: {
|
|
333
243
|
default: string;
|
334
244
|
};
|
335
245
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
|
336
|
-
type: import("vue-types").VueTypeDef<"index" | "
|
246
|
+
type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
|
337
247
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
338
248
|
default: boolean;
|
339
249
|
} & {
|
340
250
|
default: boolean;
|
341
251
|
};
|
342
|
-
fixed: import("vue-types").VueTypeDef<boolean | "
|
343
|
-
default: boolean | "
|
252
|
+
fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
|
253
|
+
default: boolean | "left" | "right";
|
344
254
|
};
|
345
255
|
sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
|
346
256
|
filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
|
347
257
|
colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
348
|
-
default: (
|
349
|
-
column: any;
|
350
|
-
colIndex: any;
|
351
|
-
row: any;
|
352
|
-
rowIndex: any;
|
353
|
-
}) => number) | (() => Number);
|
258
|
+
default: import("../table/props").SpanFunctionString;
|
354
259
|
};
|
355
260
|
rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
|
356
|
-
default: (
|
357
|
-
column: any;
|
358
|
-
colIndex: any;
|
359
|
-
row: any;
|
360
|
-
rowIndex: any;
|
361
|
-
}) => number) | (() => Number);
|
261
|
+
default: import("../table/props").SpanFunctionString;
|
362
262
|
};
|
363
|
-
align: import("vue-types").VueTypeDef<"" | "
|
263
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
364
264
|
className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
|
365
265
|
prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
366
266
|
index: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -370,43 +270,13 @@ declare const BkTableColumn: {
|
|
370
270
|
};
|
371
271
|
}>>, {
|
372
272
|
column: {
|
373
|
-
fixed?: boolean | "
|
273
|
+
fixed?: boolean | "left" | "right";
|
374
274
|
resizable?: boolean;
|
375
275
|
minWidth?: string | number;
|
376
276
|
index?: number;
|
377
277
|
columnKey?: string;
|
378
|
-
colspan?: (
|
379
|
-
|
380
|
-
colIndex: any;
|
381
|
-
row: any;
|
382
|
-
rowIndex: any;
|
383
|
-
}) => number) | {
|
384
|
-
toString: (radix?: number) => string;
|
385
|
-
toFixed: (fractionDigits?: number) => string;
|
386
|
-
toExponential: (fractionDigits?: number) => string;
|
387
|
-
toPrecision: (precision?: number) => string;
|
388
|
-
valueOf: () => number;
|
389
|
-
toLocaleString: {
|
390
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
391
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
392
|
-
};
|
393
|
-
};
|
394
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
395
|
-
column: any;
|
396
|
-
colIndex: any;
|
397
|
-
row: any;
|
398
|
-
rowIndex: any;
|
399
|
-
}) => number) | {
|
400
|
-
toString: (radix?: number) => string;
|
401
|
-
toFixed: (fractionDigits?: number) => string;
|
402
|
-
toExponential: (fractionDigits?: number) => string;
|
403
|
-
toPrecision: (precision?: number) => string;
|
404
|
-
valueOf: () => number;
|
405
|
-
toLocaleString: {
|
406
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
407
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
408
|
-
};
|
409
|
-
};
|
278
|
+
colspan?: import("../table/props").SpanFunctionString;
|
279
|
+
rowspan?: import("../table/props").SpanFunctionString;
|
410
280
|
render?: import("../table/props").RenderFunctionString;
|
411
281
|
sort?: string | boolean | {
|
412
282
|
sortFn?: Function;
|
@@ -424,11 +294,11 @@ declare const BkTableColumn: {
|
|
424
294
|
height?: number;
|
425
295
|
maxHeight?: number;
|
426
296
|
};
|
427
|
-
type?: "index" | "
|
297
|
+
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
428
298
|
label?: import("../table/props").LabelFunctionString;
|
429
299
|
width?: string | number;
|
430
300
|
className?: import("../table/props").RowClassFunctionString;
|
431
|
-
align?: "" | "
|
301
|
+
align?: "" | "left" | "right" | "center";
|
432
302
|
showOverflowTooltip?: boolean | {
|
433
303
|
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
434
304
|
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
@@ -442,7 +312,7 @@ declare const BkTableColumn: {
|
|
442
312
|
prop?: import("../table/props").LabelFunctionString;
|
443
313
|
};
|
444
314
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
445
|
-
fixed: boolean | "
|
315
|
+
fixed: boolean | "left" | "right";
|
446
316
|
resizable: boolean;
|
447
317
|
minWidth: string | number;
|
448
318
|
index: number;
|
@@ -114,11 +114,11 @@ function _defineProperty(obj, key, value) {
|
|
114
114
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
115
115
|
var BORDER_OPTION;
|
116
116
|
(function (BORDER_OPTION) {
|
117
|
-
BORDER_OPTION["NONE"] = "none";
|
118
|
-
BORDER_OPTION["ROW"] = "row";
|
119
117
|
BORDER_OPTION["COL"] = "col";
|
120
|
-
BORDER_OPTION["OUTER"] = "outer";
|
121
118
|
BORDER_OPTION["HORIZONTAL"] = "horizontal";
|
119
|
+
BORDER_OPTION["NONE"] = "none";
|
120
|
+
BORDER_OPTION["OUTER"] = "outer";
|
121
|
+
BORDER_OPTION["ROW"] = "row";
|
122
122
|
})(BORDER_OPTION || (BORDER_OPTION = {}));
|
123
123
|
/**
|
124
124
|
* 鼠标划过行样式
|
@@ -126,8 +126,8 @@ var BORDER_OPTION;
|
|
126
126
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
127
127
|
var ROW_HOVER;
|
128
128
|
(function (ROW_HOVER) {
|
129
|
-
ROW_HOVER["HIGHLIGHT"] = "highlight";
|
130
129
|
ROW_HOVER["AUTO"] = "auto";
|
130
|
+
ROW_HOVER["HIGHLIGHT"] = "highlight";
|
131
131
|
})(ROW_HOVER || (ROW_HOVER = {}));
|
132
132
|
var ROW_HOVER_OPTIONS = [ROW_HOVER.AUTO, ROW_HOVER.HIGHLIGHT];
|
133
133
|
/**
|
@@ -220,9 +220,9 @@ var TB_FOOT_HEIGHT = 60;
|
|
220
220
|
var SORT_OPTION;
|
221
221
|
(function (SORT_OPTION) {
|
222
222
|
SORT_OPTION["ASC"] = "asc";
|
223
|
+
SORT_OPTION["CUSTOM"] = "custom";
|
223
224
|
SORT_OPTION["DESC"] = "desc";
|
224
225
|
SORT_OPTION["NULL"] = "null";
|
225
|
-
SORT_OPTION["CUSTOM"] = "custom";
|
226
226
|
})(SORT_OPTION || (SORT_OPTION = {}));
|
227
227
|
var SORT_OPTIONS = [SORT_OPTION.ASC, SORT_OPTION.DESC, SORT_OPTION.NULL, SORT_OPTION.CUSTOM];
|
228
228
|
/**
|
@@ -247,30 +247,30 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: ()
|
|
247
247
|
|
248
248
|
var SortScope;
|
249
249
|
(function (SortScope) {
|
250
|
-
SortScope["CURRENT"] = "current";
|
251
250
|
SortScope["ALL"] = "all";
|
251
|
+
SortScope["CURRENT"] = "current";
|
252
252
|
})(SortScope || (SortScope = {}));
|
253
253
|
var OverflowModeEnum;
|
254
254
|
(function (OverflowModeEnum) {
|
255
|
-
OverflowModeEnum["STATIC"] = "static";
|
256
255
|
OverflowModeEnum["AUTO"] = "auto";
|
256
|
+
OverflowModeEnum["STATIC"] = "static";
|
257
257
|
})(OverflowModeEnum || (OverflowModeEnum = {}));
|
258
258
|
var EnumOverflowModeType = (0,external_vue_types_namespaceObject.toType)('showOverflowTooltipMode', {
|
259
259
|
"default": OverflowModeEnum.AUTO
|
260
260
|
});
|
261
261
|
var ColumnTypeEnum;
|
262
262
|
(function (ColumnTypeEnum) {
|
263
|
-
ColumnTypeEnum["SELECTION"] = "selection";
|
264
|
-
ColumnTypeEnum["INDEX"] = "index";
|
265
263
|
ColumnTypeEnum["EXPAND"] = "expand";
|
264
|
+
ColumnTypeEnum["INDEX"] = "index";
|
266
265
|
ColumnTypeEnum["NONE"] = "__COL_TYPE_NONE";
|
266
|
+
ColumnTypeEnum["SELECTION"] = "selection";
|
267
267
|
})(ColumnTypeEnum || (ColumnTypeEnum = {}));
|
268
268
|
var TableAlignEnum;
|
269
269
|
(function (TableAlignEnum) {
|
270
|
-
TableAlignEnum["LEFT"] = "left";
|
271
|
-
TableAlignEnum["RIGHT"] = "right";
|
272
270
|
TableAlignEnum["CENTER"] = "center";
|
271
|
+
TableAlignEnum["LEFT"] = "left";
|
273
272
|
TableAlignEnum["NONE"] = "";
|
273
|
+
TableAlignEnum["RIGHT"] = "right";
|
274
274
|
})(TableAlignEnum || (TableAlignEnum = {}));
|
275
275
|
var columnType = (0,external_vue_types_namespaceObject.toType)('columnType', {
|
276
276
|
"default": ColumnTypeEnum.NONE
|
@@ -288,9 +288,9 @@ var fullType = (0,external_vue_types_namespaceObject.toType)('full', {
|
|
288
288
|
});
|
289
289
|
var SettingSizeEnum;
|
290
290
|
(function (SettingSizeEnum) {
|
291
|
-
SettingSizeEnum["SMALL"] = "small";
|
292
|
-
SettingSizeEnum["MEDIUM"] = "medium";
|
293
291
|
SettingSizeEnum["LARGE"] = "large";
|
292
|
+
SettingSizeEnum["MEDIUM"] = "medium";
|
293
|
+
SettingSizeEnum["SMALL"] = "small";
|
294
294
|
})(SettingSizeEnum || (SettingSizeEnum = {}));
|
295
295
|
var settingSizeType = (0,external_vue_types_namespaceObject.toType)('columnSize', {
|
296
296
|
"default": SettingSizeEnum.SMALL
|
@@ -315,9 +315,9 @@ var IFilterType = (0,external_vue_types_namespaceObject.toType)('IFilterPropShap
|
|
315
315
|
});
|
316
316
|
var ColumnPickEnum;
|
317
317
|
(function (ColumnPickEnum) {
|
318
|
+
ColumnPickEnum["DISABLED"] = "disabled";
|
318
319
|
ColumnPickEnum["MULTI"] = "multi";
|
319
320
|
ColumnPickEnum["SINGLE"] = "single";
|
320
|
-
ColumnPickEnum["DISABLED"] = "disabled";
|
321
321
|
})(ColumnPickEnum || (ColumnPickEnum = {}));
|
322
322
|
var ResizerWay;
|
323
323
|
(function (ResizerWay) {
|
@@ -353,14 +353,14 @@ var IColumnProp = (0,external_vue_types_namespaceObject.toType)('IColumnPropType
|
|
353
353
|
});
|
354
354
|
var IColSortBehavior;
|
355
355
|
(function (IColSortBehavior) {
|
356
|
-
/**
|
357
|
-
* 列排序是相互依赖的
|
358
|
-
*/
|
359
|
-
IColSortBehavior["interdependent"] = "interdependent";
|
360
356
|
/**
|
361
357
|
* 列与列之间的排序是独立的,互斥的
|
362
358
|
*/
|
363
359
|
IColSortBehavior["independent"] = "independent";
|
360
|
+
/**
|
361
|
+
* 列排序是相互依赖的
|
362
|
+
*/
|
363
|
+
IColSortBehavior["interdependent"] = "interdependent";
|
364
364
|
})(IColSortBehavior || (IColSortBehavior = {}));
|
365
365
|
var tableProps = {
|
366
366
|
/**
|
package/lib/tag/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const BkTag: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
4
|
-
default: "" | "info" | "success" | "
|
3
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
4
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
5
5
|
};
|
6
6
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
7
7
|
default: boolean;
|
@@ -38,8 +38,8 @@ declare const BkTag: {
|
|
38
38
|
handleClick: (e: Event) => void;
|
39
39
|
resolveClassName: (cls: string) => string;
|
40
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
41
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
42
|
-
default: "" | "info" | "success" | "
|
41
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
42
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
43
43
|
};
|
44
44
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
45
|
default: boolean;
|
@@ -70,7 +70,7 @@ declare const BkTag: {
|
|
70
70
|
onClose?: (...args: any[]) => any;
|
71
71
|
}, {
|
72
72
|
type: "" | "stroke" | "filled";
|
73
|
-
theme: "" | "info" | "success" | "
|
73
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
74
74
|
closable: boolean;
|
75
75
|
radius: string;
|
76
76
|
checked: boolean;
|
@@ -86,8 +86,8 @@ declare const BkTag: {
|
|
86
86
|
M: {};
|
87
87
|
Defaults: {};
|
88
88
|
}, Readonly<import("vue").ExtractPropTypes<{
|
89
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
90
|
-
default: "" | "info" | "success" | "
|
89
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
90
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
91
91
|
};
|
92
92
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
93
93
|
default: boolean;
|
@@ -125,7 +125,7 @@ declare const BkTag: {
|
|
125
125
|
resolveClassName: (cls: string) => string;
|
126
126
|
}, {}, {}, {}, {
|
127
127
|
type: "" | "stroke" | "filled";
|
128
|
-
theme: "" | "info" | "success" | "
|
128
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
129
129
|
closable: boolean;
|
130
130
|
radius: string;
|
131
131
|
checked: boolean;
|
@@ -135,8 +135,8 @@ declare const BkTag: {
|
|
135
135
|
__isTeleport?: never;
|
136
136
|
__isSuspense?: never;
|
137
137
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
138
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
139
|
-
default: "" | "info" | "success" | "
|
138
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
139
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
140
140
|
};
|
141
141
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
142
142
|
default: boolean;
|
@@ -174,7 +174,7 @@ declare const BkTag: {
|
|
174
174
|
resolveClassName: (cls: string) => string;
|
175
175
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", {
|
176
176
|
type: "" | "stroke" | "filled";
|
177
|
-
theme: "" | "info" | "success" | "
|
177
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
178
178
|
closable: boolean;
|
179
179
|
radius: string;
|
180
180
|
checked: boolean;
|
package/lib/tag/index.js
CHANGED
@@ -134,9 +134,9 @@ const icon_namespaceObject = icon_x({ ["Error"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
134
134
|
|
135
135
|
var TagStrokeType;
|
136
136
|
(function (TagStrokeType) {
|
137
|
-
TagStrokeType["UNKNOWN"] = "";
|
138
137
|
TagStrokeType["FILLED"] = "filled";
|
139
138
|
TagStrokeType["STROKE"] = "stroke";
|
139
|
+
TagStrokeType["UNKNOWN"] = "";
|
140
140
|
})(TagStrokeType || (TagStrokeType = {}));
|
141
141
|
/* harmony default export */ const tag = ((0,external_vue_namespaceObject.defineComponent)({
|
142
142
|
name: 'Tag',
|
@@ -184,8 +184,8 @@ var TagStrokeType;
|
|
184
184
|
var _this$$slots$default, _this$$slots;
|
185
185
|
var classes = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('tag'), true), this.resolveClassName('tag-closable'), this.closable), this.resolveClassName('tag-checkable'), this.checkable), this.resolveClassName('tag-check'), this.checked), this.resolveClassName("tag-".concat(this.type)), this.type), this.resolveClassName("tag-".concat(this.theme)), this.theme), this.resolveClassName("tag--".concat(this.size)), true);
|
186
186
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
187
|
-
"class": classes,
|
188
187
|
"style": this.wrapperStyle,
|
188
|
+
"class": classes,
|
189
189
|
"onClick": this.handleClick
|
190
190
|
}, [this.$slots.icon ? (0,external_vue_namespaceObject.createVNode)("span", {
|
191
191
|
"class": "".concat(this.resolveClassName('tag-icon'))
|
package/lib/tag/tag.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SlotsType } from 'vue';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
4
|
-
default: "" | "info" | "success" | "
|
3
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
4
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
5
5
|
};
|
6
6
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
7
7
|
default: boolean;
|
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
handleClick: (e: Event) => void;
|
36
36
|
resolveClassName: (cls: string) => string;
|
37
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
38
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
39
|
-
default: "" | "info" | "success" | "
|
38
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
39
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
40
40
|
};
|
41
41
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
42
|
default: boolean;
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
67
|
onClose?: (...args: any[]) => any;
|
68
68
|
}, {
|
69
69
|
type: "" | "stroke" | "filled";
|
70
|
-
theme: "" | "info" | "success" | "
|
70
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
71
71
|
closable: boolean;
|
72
72
|
radius: string;
|
73
73
|
checked: boolean;
|
@@ -31,6 +31,6 @@ export declare const getCharLength: (str: string) => number;
|
|
31
31
|
* @param collapseTags 是否折叠 tags
|
32
32
|
* @param selectedTagList 已选择 tags
|
33
33
|
*/
|
34
|
-
export declare const useTagsOverflow: (tagInputRef: Ref<HTMLDivElement>, collapseTags: Ref<
|
34
|
+
export declare const useTagsOverflow: (tagInputRef: Ref<HTMLDivElement>, collapseTags: Ref<boolean>, selectedTagList: Ref<string[]>) => {
|
35
35
|
overflowTagIndex: Ref<number>;
|
36
36
|
};
|