bkui-vue 1.0.3-beta.1 → 1.0.3-beta.11
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/README.md +1 -0
- package/dist/index.cjs.js +68 -68
- package/dist/index.esm.js +15117 -14021
- package/dist/index.umd.js +68 -68
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.js +1 -0
- package/lib/animate-number/index.js +1 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.js +1 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/breadcrumb/index.js +1 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.js +1 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/card/index.js +1 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/cascader/index.js +1 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +1 -0
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.variable.css +3 -0
- package/lib/collapse/index.js +1 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/collapse-transition/index.js +1 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/components.js +0 -4
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/dialog/dialog.variable.css +3 -0
- package/lib/dialog/index.js +1 -0
- package/lib/directives/index.js +1 -0
- package/lib/dist.index.js +0 -1
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown.variable.css +3 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +1 -0
- package/lib/form/form.css +1 -0
- package/lib/form/form.less +2 -0
- package/lib/form/form.variable.css +4 -0
- package/lib/form/index.js +1 -0
- package/lib/hooks.js +1 -8
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +35 -1
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +276 -0
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +1 -0
- package/lib/index.js +0 -1
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.variable.css +3 -0
- package/lib/input/index.js +1 -0
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.js +1 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.js +1 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/index.js +1 -0
- package/lib/modal/modal.variable.css +3 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.js +11 -5
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/index.js +11 -5
- package/lib/popover/popover.variable.css +3 -0
- package/lib/popover2/index.js +1 -0
- package/lib/preset.js +14 -20
- package/lib/process/index.js +1 -0
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.js +1 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.js +1 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/index.js +1 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/search-select.variable.css +3 -0
- package/lib/select/index.d.ts +68 -6
- package/lib/select/index.js +1327 -68
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +36 -7
- package/lib/select/select.d.ts +28 -2
- package/lib/select/select.less +43 -13
- package/lib/select/select.variable.css +39 -7
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.js +1 -0
- package/lib/sideslider/index.js +1 -0
- package/lib/sideslider/sideslider.variable.css +3 -0
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider.variable.css +3 -0
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +3 -1
- package/lib/styles/reset.less +3 -1
- package/lib/styles/reset.variable.css +6 -1
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +1 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/index.d.ts +15 -0
- package/lib/table/index.js +386 -245
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.d.ts +7 -0
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-pagination.d.ts +2 -1
- package/lib/table/props.d.ts +9 -0
- package/lib/table/table.css +15 -16
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +27 -14
- package/lib/table/table.variable.css +18 -16
- package/lib/table/use-attributes.d.ts +40 -1
- package/lib/table/use-common.d.ts +1 -0
- package/lib/table/utils.d.ts +5 -4
- package/lib/table-column/index.js +11 -0
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/tree.variable.css +3 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/virtual-render.variable.css +3 -0
- package/package.json +3 -2
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-table-head-action {
|
128
131
|
display: flex;
|
@@ -8,6 +8,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
8
8
|
active: import("vue-types").VueTypeValidableDef<boolean> & {
|
9
9
|
default: boolean;
|
10
10
|
};
|
11
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
12
|
+
default: () => any[];
|
13
|
+
};
|
11
14
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
12
15
|
column: import("vue-types").VueTypeDef<Column>;
|
13
16
|
defaultSort: import("vue-types").VueTypeDef<SORT_OPTION> & {
|
@@ -16,10 +19,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
19
|
active: import("vue-types").VueTypeValidableDef<boolean> & {
|
17
20
|
default: boolean;
|
18
21
|
};
|
22
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
23
|
+
default: () => any[];
|
24
|
+
};
|
19
25
|
}>> & {
|
20
26
|
onChange?: (...args: any[]) => any;
|
21
27
|
}, {
|
22
28
|
active: boolean;
|
29
|
+
sortValFormat: any[];
|
23
30
|
defaultSort: SORT_OPTION;
|
24
31
|
}, {}>;
|
25
32
|
export default _default;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-head-cell-sort {
|
128
131
|
display: flex;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-table-settings[data-bk-table-settings-theme='true'] {
|
128
131
|
padding: 0;
|
@@ -6,12 +6,12 @@ declare const _default: (props: TablePropTypes, resp: ITableResponse, ctx: Setup
|
|
6
6
|
onDragleave?: undefined;
|
7
7
|
onDragstart?: undefined;
|
8
8
|
onDragover?: undefined;
|
9
|
-
|
9
|
+
onDragend?: undefined;
|
10
10
|
} | {
|
11
11
|
onDragenter: (event: DragEvent) => void;
|
12
12
|
onDragleave: (event: DragEvent) => void;
|
13
13
|
onDragstart: (event: DragEvent) => void;
|
14
14
|
onDragover: (event: DragEvent) => void;
|
15
|
-
|
15
|
+
onDragend: (event: DragEvent) => void;
|
16
16
|
};
|
17
17
|
export default _default;
|
@@ -9,9 +9,10 @@ import { Column, SortScope, TablePropTypes } from '../props';
|
|
9
9
|
export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
|
10
10
|
declare const _default: (props: TablePropTypes) => {
|
11
11
|
pageData: any[];
|
12
|
-
indexData:
|
12
|
+
indexData: any[];
|
13
13
|
localPagination: import("vue").Ref<any>;
|
14
14
|
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
|
+
resolveIndexData: () => Promise<void>;
|
15
16
|
resolvePageDataBySortList: (multiCol?: any) => void;
|
16
17
|
resetStartEndIndex: () => void;
|
17
18
|
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[]) => void;
|
package/lib/table/props.d.ts
CHANGED
@@ -304,6 +304,15 @@ export declare const tableProps: {
|
|
304
304
|
} & {
|
305
305
|
default: boolean;
|
306
306
|
};
|
307
|
+
/**
|
308
|
+
* 排序时对需要排序的字符串数值进行格式化
|
309
|
+
* 这里需要配置为正则或者回调函数,(str) => string | number | boolean
|
310
|
+
* 如果配置为正则,程序会提取匹配到的第一个结果尝试转换为数值
|
311
|
+
* 如果为多个,程序会顺序执行所有正则表达式,直到转换成功
|
312
|
+
*/
|
313
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
314
|
+
default: () => any[];
|
315
|
+
};
|
307
316
|
/**
|
308
317
|
* table header config
|
309
318
|
*/
|
package/lib/table/table.css
CHANGED
@@ -997,6 +997,7 @@
|
|
997
997
|
position: relative;
|
998
998
|
height: auto;
|
999
999
|
overflow: hidden;
|
1000
|
+
width: 100%;
|
1000
1001
|
}
|
1001
1002
|
.bk-table-flex {
|
1002
1003
|
display: flex;
|
@@ -1014,6 +1015,7 @@
|
|
1014
1015
|
position: relative;
|
1015
1016
|
overflow: auto;
|
1016
1017
|
scrollbar-gutter: stable;
|
1018
|
+
border-bottom: 1px solid #dcdee5;
|
1017
1019
|
}
|
1018
1020
|
.bk-table .bk-table-body::-webkit-scrollbar {
|
1019
1021
|
width: 5px;
|
@@ -1283,23 +1285,16 @@
|
|
1283
1285
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
1284
1286
|
background: #f5f7fa;
|
1285
1287
|
}
|
1286
|
-
.bk-table .bk-table-head table tbody tr.--drag-
|
1287
|
-
.bk-table .bk-table-body table tbody tr.--drag-
|
1288
|
-
|
1289
|
-
}
|
1290
|
-
.bk-table .bk-table-head table tbody tr.--drag-enter.--top,
|
1291
|
-
.bk-table .bk-table-body table tbody tr.--drag-enter.--top {
|
1292
|
-
border-top: solid 1px #3785ff;
|
1293
|
-
}
|
1294
|
-
.bk-table .bk-table-head table tbody tr.--drag-start,
|
1295
|
-
.bk-table .bk-table-body table tbody tr.--drag-start {
|
1296
|
-
background: #fff;
|
1288
|
+
.bk-table .bk-table-head table tbody tr.--drag-start td,
|
1289
|
+
.bk-table .bk-table-body table tbody tr.--drag-start td {
|
1290
|
+
background: #fff !important;
|
1297
1291
|
}
|
1298
1292
|
.bk-table .bk-table-head {
|
1299
1293
|
position: relative;
|
1300
1294
|
z-index: 2;
|
1301
1295
|
scrollbar-gutter: stable;
|
1302
1296
|
overflow: hidden;
|
1297
|
+
background-color: var(--background-color);
|
1303
1298
|
}
|
1304
1299
|
.bk-table .bk-table-head .col-resize-drag {
|
1305
1300
|
position: absolute;
|
@@ -1325,10 +1320,8 @@
|
|
1325
1320
|
font-size: 14px;
|
1326
1321
|
cursor: pointer;
|
1327
1322
|
background: #fafbfd;
|
1328
|
-
border-bottom: 1px solid #dcdee5;
|
1329
1323
|
border-left: 1px solid #dcdee5;
|
1330
1324
|
border-radius: 0 2px 0 0;
|
1331
|
-
transform: translateX(var(--scroll-left));
|
1332
1325
|
justify-content: center;
|
1333
1326
|
align-items: center;
|
1334
1327
|
}
|
@@ -1346,8 +1339,10 @@
|
|
1346
1339
|
.bk-table .bk-table-footer.is-hidden {
|
1347
1340
|
display: none;
|
1348
1341
|
}
|
1349
|
-
.bk-table.bordered-row
|
1350
|
-
|
1342
|
+
.bk-table.bordered-row .bk-table-head {
|
1343
|
+
border-bottom: 1px solid #dcdee5;
|
1344
|
+
}
|
1345
|
+
.bk-table.bordered-row td {
|
1351
1346
|
border-bottom: 1px solid #dcdee5;
|
1352
1347
|
}
|
1353
1348
|
.bk-table.bordered-row tr:last-child td {
|
@@ -1379,10 +1374,14 @@
|
|
1379
1374
|
.bk-table.bordered-col td:last-child {
|
1380
1375
|
border-right: none;
|
1381
1376
|
}
|
1377
|
+
.bk-table th,
|
1378
|
+
.bk-table td {
|
1379
|
+
border-right: 1px solid transparent;
|
1380
|
+
}
|
1382
1381
|
.bk-table.bordered-none th,
|
1383
1382
|
.bk-table.bordered-none td {
|
1384
1383
|
border-top: none;
|
1385
|
-
border-right:
|
1384
|
+
border-right: 1px solid transparent;
|
1386
1385
|
border-bottom: none;
|
1387
1386
|
border-left: none;
|
1388
1387
|
}
|
package/lib/table/table.d.ts
CHANGED
@@ -37,6 +37,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
37
37
|
} & {
|
38
38
|
default: boolean;
|
39
39
|
};
|
40
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
41
|
+
default: () => any[];
|
42
|
+
};
|
40
43
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
41
44
|
default: () => import("./props").Thead;
|
42
45
|
};
|
@@ -275,6 +278,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
275
278
|
} & {
|
276
279
|
default: boolean;
|
277
280
|
};
|
281
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
282
|
+
default: () => any[];
|
283
|
+
};
|
278
284
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
279
285
|
default: () => import("./props").Thead;
|
280
286
|
};
|
@@ -498,6 +504,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
498
504
|
stripe: boolean;
|
499
505
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
500
506
|
showHead: boolean;
|
507
|
+
sortValFormat: any[];
|
501
508
|
virtualEnabled: boolean;
|
502
509
|
paginationHeight: number;
|
503
510
|
remotePagination: boolean;
|
package/lib/table/table.less
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
position: relative;
|
15
15
|
height: auto;
|
16
16
|
overflow: hidden;
|
17
|
+
width: 100%;
|
17
18
|
|
18
19
|
&-flex {
|
19
20
|
display: flex;
|
@@ -35,6 +36,7 @@
|
|
35
36
|
position: relative;
|
36
37
|
overflow: auto;
|
37
38
|
scrollbar-gutter: stable;
|
39
|
+
border-bottom: 1px solid @table-border-color;
|
38
40
|
|
39
41
|
&::-webkit-scrollbar {
|
40
42
|
width: 5px;
|
@@ -311,18 +313,21 @@
|
|
311
313
|
}
|
312
314
|
}
|
313
315
|
|
314
|
-
&.--drag-enter {
|
315
|
-
|
316
|
-
|
317
|
-
|
316
|
+
// &.--drag-enter {
|
317
|
+
// &.--bottom {
|
318
|
+
// border-bottom: solid 1px #3785ff;
|
319
|
+
// }
|
318
320
|
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
}
|
321
|
+
// &.--top {
|
322
|
+
// border-top: solid 1px #3785ff;
|
323
|
+
// }
|
324
|
+
// }
|
323
325
|
|
324
326
|
&.--drag-start {
|
325
|
-
|
327
|
+
|
328
|
+
td {
|
329
|
+
background: #fff!important;
|
330
|
+
}
|
326
331
|
}
|
327
332
|
}
|
328
333
|
}
|
@@ -334,6 +339,7 @@
|
|
334
339
|
z-index: 2;
|
335
340
|
scrollbar-gutter: stable;
|
336
341
|
overflow: hidden;
|
342
|
+
background-color: var(--background-color);
|
337
343
|
|
338
344
|
.col-resize-drag {
|
339
345
|
position: absolute;
|
@@ -363,10 +369,10 @@
|
|
363
369
|
|
364
370
|
background: @table-head-bg-color;
|
365
371
|
//border-right: 1px solid @table-border-color;
|
366
|
-
border-bottom: 1px solid @table-border-color;
|
372
|
+
// border-bottom: 1px solid @table-border-color;
|
367
373
|
border-left: 1px solid @table-border-color;
|
368
374
|
border-radius: 0 2px 0 0;
|
369
|
-
transform: translateX(var(--scroll-left));
|
375
|
+
// transform: translateX(var(--scroll-left));
|
370
376
|
justify-content: center;
|
371
377
|
align-items: center;
|
372
378
|
|
@@ -390,8 +396,11 @@
|
|
390
396
|
}
|
391
397
|
|
392
398
|
&.bordered-row {
|
393
|
-
|
394
|
-
|
399
|
+
.@{bk-prefix}-table-head {
|
400
|
+
border-bottom: 1px solid @table-border-color;
|
401
|
+
}
|
402
|
+
|
403
|
+
td {
|
395
404
|
border-bottom: 1px solid @table-border-color;
|
396
405
|
}
|
397
406
|
|
@@ -444,11 +453,15 @@
|
|
444
453
|
|
445
454
|
}
|
446
455
|
|
456
|
+
th, td {
|
457
|
+
border-right: 1px solid transparent;
|
458
|
+
}
|
459
|
+
|
447
460
|
&.bordered-none {
|
448
461
|
th,
|
449
462
|
td {
|
450
463
|
border-top: none;
|
451
|
-
border-right:
|
464
|
+
border-right: 1px solid transparent;
|
452
465
|
border-bottom: none;
|
453
466
|
border-left: none;
|
454
467
|
}
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-F-scroll-x {
|
128
131
|
overflow-x: auto;
|
@@ -1123,6 +1126,7 @@
|
|
1123
1126
|
position: relative;
|
1124
1127
|
height: auto;
|
1125
1128
|
overflow: hidden;
|
1129
|
+
width: 100%;
|
1126
1130
|
}
|
1127
1131
|
.bk-table-flex {
|
1128
1132
|
display: flex;
|
@@ -1140,6 +1144,7 @@
|
|
1140
1144
|
position: relative;
|
1141
1145
|
overflow: auto;
|
1142
1146
|
scrollbar-gutter: stable;
|
1147
|
+
border-bottom: 1px solid #dcdee5;
|
1143
1148
|
}
|
1144
1149
|
.bk-table .bk-table-body::-webkit-scrollbar {
|
1145
1150
|
width: 5px;
|
@@ -1409,23 +1414,16 @@
|
|
1409
1414
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
1410
1415
|
background: #f5f7fa;
|
1411
1416
|
}
|
1412
|
-
.bk-table .bk-table-head table tbody tr.--drag-
|
1413
|
-
.bk-table .bk-table-body table tbody tr.--drag-
|
1414
|
-
|
1415
|
-
}
|
1416
|
-
.bk-table .bk-table-head table tbody tr.--drag-enter.--top,
|
1417
|
-
.bk-table .bk-table-body table tbody tr.--drag-enter.--top {
|
1418
|
-
border-top: solid 1px #3785ff;
|
1419
|
-
}
|
1420
|
-
.bk-table .bk-table-head table tbody tr.--drag-start,
|
1421
|
-
.bk-table .bk-table-body table tbody tr.--drag-start {
|
1422
|
-
background: #fff;
|
1417
|
+
.bk-table .bk-table-head table tbody tr.--drag-start td,
|
1418
|
+
.bk-table .bk-table-body table tbody tr.--drag-start td {
|
1419
|
+
background: #fff !important;
|
1423
1420
|
}
|
1424
1421
|
.bk-table .bk-table-head {
|
1425
1422
|
position: relative;
|
1426
1423
|
z-index: 2;
|
1427
1424
|
scrollbar-gutter: stable;
|
1428
1425
|
overflow: hidden;
|
1426
|
+
background-color: var(--background-color);
|
1429
1427
|
}
|
1430
1428
|
.bk-table .bk-table-head .col-resize-drag {
|
1431
1429
|
position: absolute;
|
@@ -1451,10 +1449,8 @@
|
|
1451
1449
|
font-size: 14px;
|
1452
1450
|
cursor: pointer;
|
1453
1451
|
background: #fafbfd;
|
1454
|
-
border-bottom: 1px solid #dcdee5;
|
1455
1452
|
border-left: 1px solid #dcdee5;
|
1456
1453
|
border-radius: 0 2px 0 0;
|
1457
|
-
transform: translateX(var(--scroll-left));
|
1458
1454
|
justify-content: center;
|
1459
1455
|
align-items: center;
|
1460
1456
|
}
|
@@ -1472,8 +1468,10 @@
|
|
1472
1468
|
.bk-table .bk-table-footer.is-hidden {
|
1473
1469
|
display: none;
|
1474
1470
|
}
|
1475
|
-
.bk-table.bordered-row
|
1476
|
-
|
1471
|
+
.bk-table.bordered-row .bk-table-head {
|
1472
|
+
border-bottom: 1px solid #dcdee5;
|
1473
|
+
}
|
1474
|
+
.bk-table.bordered-row td {
|
1477
1475
|
border-bottom: 1px solid #dcdee5;
|
1478
1476
|
}
|
1479
1477
|
.bk-table.bordered-row tr:last-child td {
|
@@ -1505,10 +1503,14 @@
|
|
1505
1503
|
.bk-table.bordered-col td:last-child {
|
1506
1504
|
border-right: none;
|
1507
1505
|
}
|
1506
|
+
.bk-table th,
|
1507
|
+
.bk-table td {
|
1508
|
+
border-right: 1px solid transparent;
|
1509
|
+
}
|
1508
1510
|
.bk-table.bordered-none th,
|
1509
1511
|
.bk-table.bordered-none td {
|
1510
1512
|
border-top: none;
|
1511
|
-
border-right:
|
1513
|
+
border-right: 1px solid transparent;
|
1512
1514
|
border-bottom: none;
|
1513
1515
|
border-left: none;
|
1514
1516
|
}
|
@@ -19,6 +19,7 @@ export type ITableFormatData = {
|
|
19
19
|
};
|
20
20
|
};
|
21
21
|
export type ITableResponse = {
|
22
|
+
setIndexData: () => Promise<void>;
|
22
23
|
formatColumns: (columns: Column[]) => void;
|
23
24
|
formatDataSchema: (data: any[]) => void;
|
24
25
|
setRowSelection: (row: any, isSelected: boolean) => void;
|
@@ -56,5 +57,43 @@ export type ITableResponse = {
|
|
56
57
|
localPagination: any;
|
57
58
|
formatData: ITableFormatData;
|
58
59
|
};
|
59
|
-
declare const _default: (props: TablePropTypes) =>
|
60
|
+
declare const _default: (props: TablePropTypes) => {
|
61
|
+
formatColumns: (columns: Column[]) => void;
|
62
|
+
formatDataSchema: (data: any[]) => void;
|
63
|
+
setRowSelection: (row: any, isSelected: boolean) => void;
|
64
|
+
setRowExpand: (row: any, isExpand: boolean) => void;
|
65
|
+
setRowIndex: (row: any, index: number) => void;
|
66
|
+
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | void | string)) => void;
|
67
|
+
setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
|
68
|
+
setColumnSortActive: (column: Column, active: boolean) => void;
|
69
|
+
setRowSelectionAll: (val: boolean) => void;
|
70
|
+
setRowIndeterminate: () => void;
|
71
|
+
setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | void | string)) => void;
|
72
|
+
getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
73
|
+
getColumnId: (col: Column) => any;
|
74
|
+
getColumnOrderWidth: (col: Column, orders?: string[]) => number;
|
75
|
+
getRowSelection: () => any[];
|
76
|
+
resolveColumnWidth: (root: HTMLElement, autoWidth?: number, offsetWidth?: number) => void;
|
77
|
+
isActiveColumn: (col: Column) => any;
|
78
|
+
isHiddenColumn: (col: Column) => any;
|
79
|
+
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
80
|
+
resolveByDefColumns: () => void;
|
81
|
+
resetStartEndIndex: () => void;
|
82
|
+
toggleAllSelection: (value?: boolean) => void;
|
83
|
+
setAllRowExpand: (value?: boolean) => void;
|
84
|
+
clearSelection: () => void;
|
85
|
+
clearColumnSort: (reset?: boolean) => void;
|
86
|
+
toggleRowSelection: (row: any) => void;
|
87
|
+
getRowAttribute: (item: any | IEmptyObject, attrName: string) => any;
|
88
|
+
filter: () => void;
|
89
|
+
sortData: (column: Column) => void;
|
90
|
+
isCheckedAll: () => boolean;
|
91
|
+
hasCheckedRow: () => boolean;
|
92
|
+
updateSettings: (settings?: Settings, rowHeight?: number) => void;
|
93
|
+
changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
|
94
|
+
pageData: any[];
|
95
|
+
localPagination: import("vue").Ref<any>;
|
96
|
+
formatData: ITableFormatData;
|
97
|
+
setIndexData: () => Promise<void>;
|
98
|
+
};
|
60
99
|
export default _default;
|
@@ -32,6 +32,7 @@ export declare const useClass: (props: TablePropTypes, targetColumns: ITableColu
|
|
32
32
|
'--row-height': string;
|
33
33
|
'--scroll-head-left': string;
|
34
34
|
'--scroll-left': string;
|
35
|
+
'--background-color': any;
|
35
36
|
}>;
|
36
37
|
fixHeight: import("vue").Ref<number>;
|
37
38
|
maxFixHeight: import("vue").Ref<number>;
|
package/lib/table/utils.d.ts
CHANGED
@@ -80,7 +80,7 @@ export declare const resolveHeadConfig: (props: TablePropTypes) => {
|
|
80
80
|
* @param index 当前行Index
|
81
81
|
* @returns
|
82
82
|
*/
|
83
|
-
export declare const getRowText: (row: any, key: string) => any;
|
83
|
+
export declare const getRowText: (row: any, key: string, format?: string[] | (() => string | number | boolean)[]) => any;
|
84
84
|
/**
|
85
85
|
* 获取当前行指定列的值
|
86
86
|
* @param row 当前行
|
@@ -111,10 +111,10 @@ export declare const resolveCellSpan: (column: Column, colIndex: number, row: an
|
|
111
111
|
colspan: any;
|
112
112
|
rowspan: any;
|
113
113
|
};
|
114
|
-
export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) =>
|
115
|
-
export declare const getSortFn: (column: any, sortType: any) => ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
|
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);
|
116
116
|
export declare const getNextSortType: (sortType: string) => string;
|
117
|
-
export declare const resolveSort: (sort: ISortPropShape, column: any) => ({
|
117
|
+
export declare const resolveSort: (sort: ISortPropShape, column: any, format?: any[]) => ({
|
118
118
|
sortFn: ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
|
119
119
|
} & import("./props").ISortShape) | {
|
120
120
|
sortFn?: Function;
|
@@ -133,3 +133,4 @@ export declare const resolveColumnSortProp: (col: Column, props: TablePropTypes)
|
|
133
133
|
scope: import("./props").SortScope;
|
134
134
|
active: boolean;
|
135
135
|
};
|
136
|
+
export declare const getRawData: (data: any) => any;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import "../styles/reset.css";
|
1
2
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
@@ -414,6 +415,13 @@ var tableProps = {
|
|
414
415
|
* 是否显示Head
|
415
416
|
*/
|
416
417
|
showHead: shared_namespaceObject.PropTypes.bool.def(true),
|
418
|
+
/**
|
419
|
+
* 排序时对需要排序的字符串数值进行格式化
|
420
|
+
* 这里需要配置为正则或者回调函数,(str) => string | number | boolean
|
421
|
+
* 如果配置为正则,程序会提取匹配到的第一个结果尝试转换为数值
|
422
|
+
* 如果为多个,程序会顺序执行所有正则表达式,直到转换成功
|
423
|
+
*/
|
424
|
+
sortValFormat: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.any).def(['']),
|
417
425
|
/**
|
418
426
|
* table header config
|
419
427
|
*/
|
@@ -669,6 +677,9 @@ var TableColumnProp = {
|
|
669
677
|
mounted: function mounted() {
|
670
678
|
this.updateColumnDefine();
|
671
679
|
},
|
680
|
+
updated: function updated() {
|
681
|
+
this.updateColumnDefineByParent();
|
682
|
+
},
|
672
683
|
methods: {
|
673
684
|
updateColumnDefine: function updateColumnDefine() {
|
674
685
|
var unmounted = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
package/lib/tag/index.js
CHANGED
package/lib/tag/tag.variable.css
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-tag {
|
128
131
|
display: inline-flex;
|
package/lib/tag-input/index.js
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-tag-input {
|
128
131
|
position: relative;
|
package/lib/time-picker/index.js
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-time-picker-header {
|
128
131
|
height: 46px;
|
package/lib/timeline/index.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import "../styles/reset.css";
|
1
2
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
* {
|
128
131
|
box-sizing: border-box;
|
package/lib/transfer/index.js
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-transfer {
|
128
131
|
display: flex;
|
package/lib/tree/index.js
CHANGED