bkui-vue 2.0.1-beta.23 → 2.0.1-beta.24
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 +63 -63
- package/dist/index.esm.js +14201 -14237
- package/dist/index.umd.js +63 -63
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +262 -1
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.variable.css +262 -1
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.variable.css +395 -4
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +262 -1
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +397 -6
- package/lib/button/button.css +273 -143
- package/lib/button/button.variable.css +262 -1
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +396 -5
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.variable.css +415 -24
- package/lib/checkbox/checkbox.css +139 -9
- package/lib/checkbox/checkbox.variable.css +262 -1
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +262 -1
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +262 -1
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +262 -1
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.variable.css +262 -1
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +262 -1
- package/lib/container/container.css +130 -0
- package/lib/container/container.variable.css +392 -1
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.variable.css +400 -9
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.variable.css +262 -1
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.variable.css +262 -1
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
- package/lib/form/form.css +130 -0
- package/lib/form/form.variable.css +262 -1
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.variable.css +262 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +392 -1
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.variable.css +262 -1
- package/lib/input/input.css +202 -72
- package/lib/input/input.variable.css +464 -73
- package/lib/link/link.css +146 -16
- package/lib/link/link.variable.css +262 -1
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.variable.css +408 -17
- package/lib/menu/menu.css +148 -18
- package/lib/menu/menu.variable.css +410 -19
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +262 -1
- package/lib/message/message.css +151 -21
- package/lib/message/message.variable.css +262 -1
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.variable.css +396 -5
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.variable.css +262 -1
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +262 -1
- package/lib/pagination/pagination.css +131 -1
- package/lib/pagination/pagination.variable.css +262 -1
- package/lib/pop-confirm/pop-confirm.css +130 -0
- package/lib/pop-confirm/pop-confirm.variable.css +262 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.variable.css +262 -1
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +262 -1
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.variable.css +396 -5
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.variable.css +262 -1
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +262 -1
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.variable.css +262 -1
- package/lib/scrollbar/index.js +38 -12
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/scrollbar/scrollbar.css +130 -0
- package/lib/scrollbar/scrollbar.variable.css +262 -1
- package/lib/search-select/search-select.css +163 -33
- package/lib/search-select/search-select.variable.css +425 -34
- package/lib/select/select.css +169 -39
- package/lib/select/select.variable.css +431 -40
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +72 -1
- package/lib/sideslider/sideslider.css +131 -1
- package/lib/sideslider/sideslider.variable.css +262 -1
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +262 -1
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +262 -1
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +262 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +262 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +262 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +262 -1
- package/lib/styles/themes/themes.css +130 -0
- package/lib/styles/themes/themes.less +299 -129
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +262 -1
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.variable.css +409 -18
- package/lib/tab/tab.css +147 -17
- package/lib/tab/tab.variable.css +262 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -44
- package/lib/table/const.d.ts +12 -0
- package/lib/table/events.d.ts +2 -98
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +54 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +15 -0
- package/lib/table/hooks/use-layout.d.ts +22 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +23 -0
- package/lib/table/hooks/use-rows.d.ts +25 -0
- package/lib/table/hooks/use-settings.d.ts +24 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +49 -561
- package/lib/table/index.js +3410 -3554
- package/lib/table/plugins/head-filter.css +130 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.variable.css +262 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +262 -1
- package/lib/table/plugins/settings.css +131 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +263 -1
- package/lib/table/props.d.ts +31 -12
- package/lib/table/table.css +361 -243
- package/lib/table/table.d.ts +27 -181
- package/lib/table/table.less +69 -91
- package/lib/table/table.variable.css +623 -244
- package/lib/table/utils.d.ts +26 -3
- package/lib/table-column/index.d.ts +9 -132
- package/lib/table-column/index.js +17314 -25
- package/lib/tag/tag.css +135 -5
- package/lib/tag/tag.variable.css +262 -1
- package/lib/tag-input/tag-input.css +148 -18
- package/lib/tag-input/tag-input.variable.css +262 -1
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +262 -1
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +262 -1
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +262 -1
- package/lib/tree/index.js +10 -0
- package/lib/tree/tree.css +139 -9
- package/lib/tree/tree.variable.css +401 -10
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.variable.css +419 -28
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.css +130 -0
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/lib/virtual-render/virtual-render.variable.css +392 -1
- package/package.json +1 -1
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -155
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
package/lib/table/utils.d.ts
CHANGED
@@ -112,10 +112,10 @@ export declare const resolveCellSpan: (column: Column, colIndex: number, row: an
|
|
112
112
|
rowspan: any;
|
113
113
|
};
|
114
114
|
export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) => number | false;
|
115
|
-
export declare const getSortFn: (column: any, sortType: any, format?: any[]) => ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
|
115
|
+
export declare const getSortFn: (column: any, sortType: any, format?: any[]) => ((_a: any, _b: any) => boolean) | ((_a: any, _b: any, index0: any, index1: any) => number);
|
116
116
|
export declare const getNextSortType: (sortType: string) => string;
|
117
117
|
export declare const resolveSort: (sort: ISortPropShape, column: any, format?: any[]) => ({
|
118
|
-
sortFn: ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
|
118
|
+
sortFn: ((_a: any, _b: any) => boolean) | ((_a: any, _b: any, index0: any, index1: any) => number);
|
119
119
|
} & import("./props").ISortShape) | {
|
120
120
|
sortFn?: Function;
|
121
121
|
sortScope?: import("./props").SortScope;
|
@@ -129,8 +129,31 @@ export declare const isRowSelectEnable: (props: any, { row, index, isCheckAll }:
|
|
129
129
|
export declare const getRowId: (row: any, defVal: any, props: any) => any;
|
130
130
|
export declare const resolveColumnSortProp: (col: Column, props: TablePropTypes) => {
|
131
131
|
type: string;
|
132
|
-
fn: Function | ((((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number)) & Function);
|
132
|
+
fn: Function | ((((_a: any, _b: any) => boolean) | ((_a: any, _b: any, index0: any, index1: any) => number)) & Function);
|
133
133
|
scope: import("./props").SortScope;
|
134
134
|
active: boolean;
|
135
|
+
enabled: boolean;
|
136
|
+
};
|
137
|
+
export declare const resolveColumnFilterProp: (col: Column) => {
|
138
|
+
enabled: boolean;
|
139
|
+
list: any[];
|
140
|
+
filterFn?: Function;
|
141
|
+
match?: import("./props").FullEnum;
|
142
|
+
checked?: any[];
|
143
|
+
filterScope?: import("./props").SortScope;
|
144
|
+
btnSave?: string | boolean;
|
145
|
+
btnReset?: string | boolean;
|
146
|
+
height?: number;
|
147
|
+
maxHeight?: number;
|
148
|
+
} | {
|
149
|
+
enabled: boolean;
|
150
|
+
checked: any[];
|
135
151
|
};
|
136
152
|
export declare const getRawData: (data: any) => any;
|
153
|
+
/**
|
154
|
+
* 转换 px | % 为实际数值
|
155
|
+
* @param val
|
156
|
+
* @param parentVal
|
157
|
+
* @returns
|
158
|
+
*/
|
159
|
+
export declare const getNumberOrPercentValue: (val: string | number, parentVal?: number) => number;
|
@@ -38,50 +38,9 @@ declare const BkTableColumn: {
|
|
38
38
|
} & {
|
39
39
|
default: number;
|
40
40
|
};
|
41
|
-
}>>, {
|
42
|
-
|
43
|
-
|
44
|
-
resizable?: boolean;
|
45
|
-
minWidth?: string | number;
|
46
|
-
index?: number;
|
47
|
-
columnKey?: string;
|
48
|
-
colspan?: import("../table/props").SpanFunctionString;
|
49
|
-
rowspan?: import("../table/props").SpanFunctionString;
|
50
|
-
render?: import("../table/props").RenderFunctionString;
|
51
|
-
sort?: string | boolean | {
|
52
|
-
sortFn?: Function;
|
53
|
-
sortScope?: import("../table/props").SortScope;
|
54
|
-
value?: import("../table/const").SORT_OPTION;
|
55
|
-
};
|
56
|
-
filter?: string | boolean | {
|
57
|
-
list: any[];
|
58
|
-
filterFn?: Function;
|
59
|
-
match?: import("../table/props").FullEnum;
|
60
|
-
checked?: any[];
|
61
|
-
filterScope?: import("../table/props").SortScope;
|
62
|
-
btnSave?: string | boolean;
|
63
|
-
btnReset?: string | boolean;
|
64
|
-
height?: number;
|
65
|
-
maxHeight?: number;
|
66
|
-
};
|
67
|
-
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
68
|
-
label?: import("../table/props").LabelFunctionString;
|
69
|
-
width?: string | number;
|
70
|
-
className?: import("../table/props").RowClassFunctionString;
|
71
|
-
align?: "" | "left" | "right" | "center";
|
72
|
-
showOverflowTooltip?: boolean | {
|
73
|
-
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
74
|
-
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
75
|
-
watchCellResize?: boolean;
|
76
|
-
mode?: "auto" | "static";
|
77
|
-
popoverOption?: any;
|
78
|
-
resizerWay?: import("../table/props").ResizerWay;
|
79
|
-
showHead?: boolean;
|
80
|
-
};
|
81
|
-
field: import("../table/props").LabelFunctionString;
|
82
|
-
prop?: import("../table/props").LabelFunctionString;
|
83
|
-
};
|
84
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
41
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
42
|
+
[key: string]: any;
|
43
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
85
44
|
label: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
86
45
|
field: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
87
46
|
render: import("vue-types").VueTypeDef<import("../table/props").RenderFunctionString>;
|
@@ -174,50 +133,9 @@ declare const BkTableColumn: {
|
|
174
133
|
} & {
|
175
134
|
default: number;
|
176
135
|
};
|
177
|
-
}>>, {
|
178
|
-
|
179
|
-
|
180
|
-
resizable?: boolean;
|
181
|
-
minWidth?: string | number;
|
182
|
-
index?: number;
|
183
|
-
columnKey?: string;
|
184
|
-
colspan?: import("../table/props").SpanFunctionString;
|
185
|
-
rowspan?: import("../table/props").SpanFunctionString;
|
186
|
-
render?: import("../table/props").RenderFunctionString;
|
187
|
-
sort?: string | boolean | {
|
188
|
-
sortFn?: Function;
|
189
|
-
sortScope?: import("../table/props").SortScope;
|
190
|
-
value?: import("../table/const").SORT_OPTION;
|
191
|
-
};
|
192
|
-
filter?: string | boolean | {
|
193
|
-
list: any[];
|
194
|
-
filterFn?: Function;
|
195
|
-
match?: import("../table/props").FullEnum;
|
196
|
-
checked?: any[];
|
197
|
-
filterScope?: import("../table/props").SortScope;
|
198
|
-
btnSave?: string | boolean;
|
199
|
-
btnReset?: string | boolean;
|
200
|
-
height?: number;
|
201
|
-
maxHeight?: number;
|
202
|
-
};
|
203
|
-
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
204
|
-
label?: import("../table/props").LabelFunctionString;
|
205
|
-
width?: string | number;
|
206
|
-
className?: import("../table/props").RowClassFunctionString;
|
207
|
-
align?: "" | "left" | "right" | "center";
|
208
|
-
showOverflowTooltip?: boolean | {
|
209
|
-
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
210
|
-
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
211
|
-
watchCellResize?: boolean;
|
212
|
-
mode?: "auto" | "static";
|
213
|
-
popoverOption?: any;
|
214
|
-
resizerWay?: import("../table/props").ResizerWay;
|
215
|
-
showHead?: boolean;
|
216
|
-
};
|
217
|
-
field: import("../table/props").LabelFunctionString;
|
218
|
-
prop?: import("../table/props").LabelFunctionString;
|
219
|
-
};
|
220
|
-
}, {}, {}, {}, {
|
136
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
137
|
+
[key: string]: any;
|
138
|
+
}>[], {}, {}, {}, {
|
221
139
|
fixed: boolean | "left" | "right";
|
222
140
|
resizable: boolean;
|
223
141
|
minWidth: string | number;
|
@@ -268,50 +186,9 @@ declare const BkTableColumn: {
|
|
268
186
|
} & {
|
269
187
|
default: number;
|
270
188
|
};
|
271
|
-
}>>, {
|
272
|
-
|
273
|
-
|
274
|
-
resizable?: boolean;
|
275
|
-
minWidth?: string | number;
|
276
|
-
index?: number;
|
277
|
-
columnKey?: string;
|
278
|
-
colspan?: import("../table/props").SpanFunctionString;
|
279
|
-
rowspan?: import("../table/props").SpanFunctionString;
|
280
|
-
render?: import("../table/props").RenderFunctionString;
|
281
|
-
sort?: string | boolean | {
|
282
|
-
sortFn?: Function;
|
283
|
-
sortScope?: import("../table/props").SortScope;
|
284
|
-
value?: import("../table/const").SORT_OPTION;
|
285
|
-
};
|
286
|
-
filter?: string | boolean | {
|
287
|
-
list: any[];
|
288
|
-
filterFn?: Function;
|
289
|
-
match?: import("../table/props").FullEnum;
|
290
|
-
checked?: any[];
|
291
|
-
filterScope?: import("../table/props").SortScope;
|
292
|
-
btnSave?: string | boolean;
|
293
|
-
btnReset?: string | boolean;
|
294
|
-
height?: number;
|
295
|
-
maxHeight?: number;
|
296
|
-
};
|
297
|
-
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
298
|
-
label?: import("../table/props").LabelFunctionString;
|
299
|
-
width?: string | number;
|
300
|
-
className?: import("../table/props").RowClassFunctionString;
|
301
|
-
align?: "" | "left" | "right" | "center";
|
302
|
-
showOverflowTooltip?: boolean | {
|
303
|
-
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
304
|
-
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
305
|
-
watchCellResize?: boolean;
|
306
|
-
mode?: "auto" | "static";
|
307
|
-
popoverOption?: any;
|
308
|
-
resizerWay?: import("../table/props").ResizerWay;
|
309
|
-
showHead?: boolean;
|
310
|
-
};
|
311
|
-
field: import("../table/props").LabelFunctionString;
|
312
|
-
prop?: import("../table/props").LabelFunctionString;
|
313
|
-
};
|
314
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
189
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
190
|
+
[key: string]: any;
|
191
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
315
192
|
fixed: boolean | "left" | "right";
|
316
193
|
resizable: boolean;
|
317
194
|
minWidth: string | number;
|