bkui-vue 1.0.3-beta.25 → 1.0.3-beta.26
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 +46 -46
- package/dist/index.esm.js +6148 -6162
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +17 -16
- package/lib/alert/alert.variable.css +23 -23
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +3 -5
- package/lib/button/button.variable.css +71 -71
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +12 -11
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +3 -4
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +25 -24
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +59 -48
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +36 -30
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/date-picker.less +55 -54
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +8 -8
- package/lib/date-picker/time-picker.d.ts +0 -1
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +5 -8
- package/lib/divider/divider.variable.css +10 -10
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +1 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +14 -16
- package/lib/form/form.variable.css +65 -65
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +24 -25
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +6 -8
- package/lib/image/image.variable.css +31 -31
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +1 -2
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/input.css +102 -104
- package/lib/input/input.less +27 -33
- package/lib/input/input.variable.css +104 -106
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +1 -3
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +25 -24
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +8 -12
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +8 -6
- package/lib/notify/notify.variable.css +19 -19
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +24 -25
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +14 -11
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +5 -6
- package/lib/popover/popover.variable.css +7 -7
- package/lib/process/process.css +36 -33
- package/lib/process/process.less +8 -7
- package/lib/process/process.variable.css +38 -35
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +6 -5
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +13 -20
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +17 -10
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +27 -22
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +6 -4
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +9 -13
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +44 -48
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +4 -5
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes copy.less +167 -0
- package/lib/styles/themes/themes.less +3 -10
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +14 -22
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +40 -39
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +0 -1
- package/lib/table/index.d.ts +0 -1
- package/lib/table/index.js +0 -20
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +1 -3
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +10 -14
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +0 -3
- package/lib/table-column/index.js +0 -15
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +0 -3
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +76 -44
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +6 -12
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +6 -7
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +68 -69
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
@@ -179,7 +179,6 @@ declare const BkTableColumn: {
|
|
179
179
|
default: number;
|
180
180
|
};
|
181
181
|
}>>): {};
|
182
|
-
rsolveIndexedColumn(): boolean;
|
183
182
|
updateColumnDefineByParent(): void;
|
184
183
|
unmountColumn(): void;
|
185
184
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
@@ -426,7 +425,6 @@ declare const BkTableColumn: {
|
|
426
425
|
default: number;
|
427
426
|
};
|
428
427
|
}>>): {};
|
429
|
-
rsolveIndexedColumn(): boolean;
|
430
428
|
updateColumnDefineByParent(): void;
|
431
429
|
unmountColumn(): void;
|
432
430
|
}, {
|
@@ -621,7 +619,6 @@ declare const BkTableColumn: {
|
|
621
619
|
default: number;
|
622
620
|
};
|
623
621
|
}>>): {};
|
624
|
-
rsolveIndexedColumn(): boolean;
|
625
622
|
updateColumnDefineByParent(): void;
|
626
623
|
unmountColumn(): void;
|
627
624
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
@@ -714,23 +714,8 @@ var TableColumnProp = {
|
|
714
714
|
return Object.assign(result, _defineProperty({}, target, props[key]));
|
715
715
|
}, {});
|
716
716
|
},
|
717
|
-
rsolveIndexedColumn: function rsolveIndexedColumn() {
|
718
|
-
// 如果是设置了Index,则先添加Index列,不做自动递归读取Column
|
719
|
-
if (/\d+\.?\d*/.test("".concat(this.$props.index))) {
|
720
|
-
var resolveProp = Object.assign({}, this.copyProps(this.$props), {
|
721
|
-
field: this.$props.prop || this.$props.field,
|
722
|
-
render: this.$slots["default"]
|
723
|
-
});
|
724
|
-
this.initColumns(resolveProp);
|
725
|
-
return false;
|
726
|
-
}
|
727
|
-
return true;
|
728
|
-
},
|
729
717
|
updateColumnDefineByParent: function updateColumnDefineByParent() {
|
730
718
|
var _this = this;
|
731
|
-
if (!this.rsolveIndexedColumn()) {
|
732
|
-
return;
|
733
|
-
}
|
734
719
|
var fn = function fn() {
|
735
720
|
// @ts-ignore
|
736
721
|
var selfVnode = _this._;
|
package/lib/tag/tag.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
.bk-tag {
|
1
|
+
:where(.bk-tag) {
|
2
2
|
display: inline-flex;
|
3
3
|
align-items: center;
|
4
4
|
height: 22px;
|
@@ -11,121 +11,121 @@
|
|
11
11
|
border-color: rgba(151, 155, 165, 0.3);
|
12
12
|
box-sizing: border-box;
|
13
13
|
}
|
14
|
-
.bk-tag.bk-tag-success {
|
14
|
+
:where(.bk-tag).bk-tag-success {
|
15
15
|
color: #14a568;
|
16
16
|
border-color: rgba(20, 165, 104, 0.3);
|
17
|
-
background-color: #
|
17
|
+
background-color: #e4faf0;
|
18
18
|
}
|
19
|
-
.bk-tag.bk-tag-success.bk-tag-filled {
|
20
|
-
background-color: #
|
19
|
+
:where(.bk-tag).bk-tag-success.bk-tag-filled {
|
20
|
+
background-color: #14a568;
|
21
21
|
}
|
22
|
-
.bk-tag.bk-tag-success.bk-tag-filled:hover {
|
23
|
-
background-color: #
|
22
|
+
:where(.bk-tag).bk-tag-success.bk-tag-filled:hover {
|
23
|
+
background-color: #42b685;
|
24
24
|
}
|
25
|
-
.bk-tag.bk-tag-success:hover:not(.bk-tag-filled) {
|
26
|
-
background-color: #
|
25
|
+
:where(.bk-tag).bk-tag-success:hover:not(.bk-tag-filled) {
|
26
|
+
background-color: #c9f5e2;
|
27
27
|
}
|
28
|
-
.bk-tag.bk-tag-info {
|
28
|
+
:where(.bk-tag).bk-tag-info {
|
29
29
|
color: #3a84ff;
|
30
30
|
border-color: rgba(58, 132, 255, 0.3);
|
31
|
-
background-color: #
|
31
|
+
background-color: #edf4ff;
|
32
32
|
}
|
33
|
-
.bk-tag.bk-tag-info.bk-tag-filled {
|
34
|
-
background-color: #
|
33
|
+
:where(.bk-tag).bk-tag-info.bk-tag-filled {
|
34
|
+
background-color: #3a84ff;
|
35
35
|
}
|
36
|
-
.bk-tag.bk-tag-info.bk-tag-filled:hover {
|
37
|
-
background-color: #
|
36
|
+
:where(.bk-tag).bk-tag-info.bk-tag-filled:hover {
|
37
|
+
background-color: #609cfe;
|
38
38
|
}
|
39
|
-
.bk-tag.bk-tag-info:hover:not(.bk-tag-filled) {
|
40
|
-
background-color: #
|
39
|
+
:where(.bk-tag).bk-tag-info:hover:not(.bk-tag-filled) {
|
40
|
+
background-color: #e1ecff;
|
41
41
|
}
|
42
|
-
.bk-tag.bk-tag-warning {
|
42
|
+
:where(.bk-tag).bk-tag-warning {
|
43
43
|
color: #fe9c00;
|
44
44
|
border-color: rgba(254, 165, 0, 0.3);
|
45
|
-
background-color: #
|
45
|
+
background-color: #fff1db;
|
46
46
|
}
|
47
|
-
.bk-tag.bk-tag-warning.bk-tag-filled {
|
48
|
-
background-color: #
|
47
|
+
:where(.bk-tag).bk-tag-warning.bk-tag-filled {
|
48
|
+
background-color: #fe9c00;
|
49
49
|
}
|
50
|
-
.bk-tag.bk-tag-warning.bk-tag-filled:hover {
|
51
|
-
background-color: #
|
50
|
+
:where(.bk-tag).bk-tag-warning.bk-tag-filled:hover {
|
51
|
+
background-color: #fdaf32;
|
52
52
|
}
|
53
|
-
.bk-tag.bk-tag-warning:hover:not(.bk-tag-filled) {
|
54
|
-
background-color: #
|
53
|
+
:where(.bk-tag).bk-tag-warning:hover:not(.bk-tag-filled) {
|
54
|
+
background-color: #ffe8c3;
|
55
55
|
}
|
56
|
-
.bk-tag.bk-tag-danger {
|
56
|
+
:where(.bk-tag).bk-tag-danger {
|
57
57
|
color: #ea3636;
|
58
58
|
border-color: rgba(234, 53, 54, 0.3);
|
59
|
-
background-color: #
|
59
|
+
background-color: #feebea;
|
60
60
|
}
|
61
|
-
.bk-tag.bk-tag-danger.bk-tag-filled {
|
62
|
-
background-color: #
|
61
|
+
:where(.bk-tag).bk-tag-danger.bk-tag-filled {
|
62
|
+
background-color: #ea3536;
|
63
63
|
}
|
64
|
-
.bk-tag.bk-tag-danger.bk-tag-filled:hover {
|
65
|
-
background-color: #
|
64
|
+
:where(.bk-tag).bk-tag-danger.bk-tag-filled:hover {
|
65
|
+
background-color: #ed5c5d;
|
66
66
|
}
|
67
|
-
.bk-tag.bk-tag-danger:hover:not(.bk-tag-filled) {
|
68
|
-
background-color: #
|
67
|
+
:where(.bk-tag).bk-tag-danger:hover:not(.bk-tag-filled) {
|
68
|
+
background-color: #fedddc;
|
69
69
|
}
|
70
|
-
.bk-tag:hover {
|
70
|
+
:where(.bk-tag):hover {
|
71
71
|
background-color: #dcdee5;
|
72
72
|
}
|
73
|
-
.bk-tag.bk-tag-filled {
|
73
|
+
:where(.bk-tag).bk-tag-filled {
|
74
74
|
color: #fff;
|
75
|
-
background-color: #
|
75
|
+
background-color: #979ba5;
|
76
76
|
}
|
77
|
-
.bk-tag.bk-tag-filled:hover {
|
78
|
-
background-color: #
|
77
|
+
:where(.bk-tag).bk-tag-filled:hover {
|
78
|
+
background-color: #acafb6;
|
79
79
|
}
|
80
|
-
.bk-tag.bk-tag-stroke {
|
80
|
+
:where(.bk-tag).bk-tag-stroke {
|
81
81
|
padding: 0 9px;
|
82
82
|
line-height: 20px;
|
83
83
|
border-style: solid;
|
84
84
|
border-width: 1px;
|
85
85
|
}
|
86
|
-
.bk-tag.bk-tag-closable {
|
86
|
+
:where(.bk-tag).bk-tag-closable {
|
87
87
|
padding: 0 4px 0 10px;
|
88
88
|
}
|
89
|
-
.bk-tag.bk-tag-checkable {
|
89
|
+
:where(.bk-tag).bk-tag-checkable {
|
90
90
|
cursor: pointer;
|
91
91
|
background: none;
|
92
92
|
}
|
93
|
-
.bk-tag.bk-tag-checkable:hover {
|
94
|
-
background: #
|
93
|
+
:where(.bk-tag).bk-tag-checkable:hover {
|
94
|
+
background: #f0f1f5;
|
95
95
|
}
|
96
|
-
.bk-tag.bk-tag-check {
|
96
|
+
:where(.bk-tag).bk-tag-check {
|
97
97
|
color: #fff;
|
98
98
|
background: #3a84ff;
|
99
99
|
}
|
100
|
-
.bk-tag.bk-tag-check:hover {
|
100
|
+
:where(.bk-tag).bk-tag-check:hover {
|
101
101
|
color: #fff;
|
102
102
|
background: #3a84ff;
|
103
103
|
opacity: 1;
|
104
104
|
}
|
105
|
-
.bk-tag--defaul {
|
105
|
+
:where(.bk-tag--defaul) {
|
106
106
|
padding: 0 8px;
|
107
107
|
}
|
108
|
-
.bk-tag--small {
|
108
|
+
:where(.bk-tag--small) {
|
109
109
|
height: 16px;
|
110
110
|
padding: 0 4px;
|
111
111
|
line-height: 16px;
|
112
112
|
}
|
113
|
-
.bk-tag--small .bk-tag-text {
|
113
|
+
:where(.bk-tag--small) .bk-tag-text {
|
114
114
|
font-size: 10px;
|
115
115
|
}
|
116
|
-
.bk-tag-text {
|
116
|
+
:where(.bk-tag-text) {
|
117
117
|
flex: 1;
|
118
118
|
overflow: hidden;
|
119
119
|
text-overflow: ellipsis;
|
120
120
|
white-space: nowrap;
|
121
121
|
}
|
122
|
-
.bk-tag-icon {
|
122
|
+
:where(.bk-tag-icon) {
|
123
123
|
flex-shrink: 0;
|
124
124
|
margin-right: 4px;
|
125
125
|
font-size: 14px;
|
126
126
|
line-height: 0;
|
127
127
|
}
|
128
|
-
.bk-tag-close {
|
128
|
+
:where(.bk-tag-close) {
|
129
129
|
flex-shrink: 0;
|
130
130
|
margin-left: 4px;
|
131
131
|
font-size: 12px;
|
package/lib/tag/tag.less
CHANGED
@@ -6,37 +6,37 @@
|
|
6
6
|
@tag-warning-color: #fe9c00;
|
7
7
|
@tag-danger-color: @danger-color;
|
8
8
|
|
9
|
-
@tag-success-bg-color: #
|
10
|
-
@tag-info-bg-color: #
|
11
|
-
@tag-warning-bg-color: #
|
12
|
-
@tag-danger-bg-color: #
|
13
|
-
@tag-stroke-bg-color: #
|
14
|
-
@tag-filled-bg-color: #
|
15
|
-
@tag-filled-success-bg-color: #
|
16
|
-
@tag-filled-info-bg-color: #
|
17
|
-
@tag-filled-warning-bg-color: #
|
18
|
-
@tag-filled-danger-bg-color: #
|
19
|
-
|
20
|
-
@tag-success-border-color: rgba(20,165,104
|
21
|
-
@tag-info-border-color: rgba(58,132,255
|
22
|
-
@tag-warning-border-color: rgba(254,165,0
|
23
|
-
@tag-danger-border-color: rgba(234,53,54
|
24
|
-
|
25
|
-
@tag-success-hover-bg-color: #
|
26
|
-
@tag-info-hover-bg-color: #
|
27
|
-
@tag-warning-hover-bg-color: #
|
28
|
-
@tag-danger-hover-bg-color: #
|
29
|
-
@tag-stroke-hover-bg-color: #
|
30
|
-
@tag-filled-hover-bg-color: #
|
31
|
-
@tag-filled-success-hover-bg-color: #
|
32
|
-
@tag-filled-info-hover-bg-color: #
|
33
|
-
@tag-filled-warning-hover-bg-color: #
|
34
|
-
@tag-filled-danger-hover-bg-color: #
|
35
|
-
@tag-checkable-hover-bg-color: #
|
9
|
+
@tag-success-bg-color: #e4faf0;
|
10
|
+
@tag-info-bg-color: #edf4ff;
|
11
|
+
@tag-warning-bg-color: #fff1db;
|
12
|
+
@tag-danger-bg-color: #feebea;
|
13
|
+
@tag-stroke-bg-color: #fafbfd;
|
14
|
+
@tag-filled-bg-color: #979ba5;
|
15
|
+
@tag-filled-success-bg-color: #14a568;
|
16
|
+
@tag-filled-info-bg-color: #3a84ff;
|
17
|
+
@tag-filled-warning-bg-color: #fe9c00;
|
18
|
+
@tag-filled-danger-bg-color: #ea3536;
|
19
|
+
|
20
|
+
@tag-success-border-color: rgba(20, 165, 104, 0.3);
|
21
|
+
@tag-info-border-color: rgba(58, 132, 255, 0.3);
|
22
|
+
@tag-warning-border-color: rgba(254, 165, 0, 0.3);
|
23
|
+
@tag-danger-border-color: rgba(234, 53, 54, 0.3);
|
24
|
+
|
25
|
+
@tag-success-hover-bg-color: #c9f5e2;
|
26
|
+
@tag-info-hover-bg-color: #e1ecff;
|
27
|
+
@tag-warning-hover-bg-color: #ffe8c3;
|
28
|
+
@tag-danger-hover-bg-color: #fedddc;
|
29
|
+
@tag-stroke-hover-bg-color: #f0f1f5;
|
30
|
+
@tag-filled-hover-bg-color: #acafb6;
|
31
|
+
@tag-filled-success-hover-bg-color: #42b685;
|
32
|
+
@tag-filled-info-hover-bg-color: #609cfe;
|
33
|
+
@tag-filled-warning-hover-bg-color: #fdaf32;
|
34
|
+
@tag-filled-danger-hover-bg-color: #ed5c5d;
|
35
|
+
@tag-checkable-hover-bg-color: #f0f1f5;
|
36
36
|
|
37
37
|
@themeSelectors: success, info, warning, danger;
|
38
38
|
|
39
|
-
.@{bk-prefix}-tag {
|
39
|
+
:where(.@{bk-prefix}-tag) {
|
40
40
|
display: inline-flex;
|
41
41
|
align-items: center;
|
42
42
|
height: 22px;
|
@@ -46,7 +46,7 @@
|
|
46
46
|
color: @default-color;
|
47
47
|
cursor: default;
|
48
48
|
background-color: #f0f1f5;
|
49
|
-
border-color: rgba(151,155,165
|
49
|
+
border-color: rgba(151, 155, 165, 0.3);
|
50
50
|
box-sizing: border-box;
|
51
51
|
|
52
52
|
each(@themeSelectors, {
|
@@ -117,11 +117,11 @@
|
|
117
117
|
}
|
118
118
|
}
|
119
119
|
|
120
|
-
.@{bk-prefix}-tag--defaul {
|
120
|
+
:where(.@{bk-prefix}-tag--defaul) {
|
121
121
|
padding: 0 8px;
|
122
122
|
}
|
123
123
|
|
124
|
-
.@{bk-prefix}-tag--small {
|
124
|
+
:where(.@{bk-prefix}-tag--small) {
|
125
125
|
height: 16px;
|
126
126
|
padding: 0 4px;
|
127
127
|
line-height: 16px;
|
@@ -131,21 +131,21 @@
|
|
131
131
|
}
|
132
132
|
}
|
133
133
|
|
134
|
-
.@{bk-prefix}-tag-text {
|
134
|
+
:where(.@{bk-prefix}-tag-text) {
|
135
135
|
flex: 1;
|
136
136
|
overflow: hidden;
|
137
137
|
text-overflow: ellipsis;
|
138
138
|
white-space: nowrap;
|
139
139
|
}
|
140
140
|
|
141
|
-
.@{bk-prefix}-tag-icon {
|
141
|
+
:where(.@{bk-prefix}-tag-icon) {
|
142
142
|
flex-shrink: 0;
|
143
143
|
margin-right: 4px;
|
144
144
|
font-size: 14px;
|
145
145
|
line-height: 0;
|
146
146
|
}
|
147
147
|
|
148
|
-
.@{bk-prefix}-tag-close {
|
148
|
+
:where(.@{bk-prefix}-tag-close) {
|
149
149
|
flex-shrink: 0;
|
150
150
|
margin-left: 4px;
|
151
151
|
font-size: 12px;
|
package/lib/tag/tag.variable.css
CHANGED
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
-
--border-color: #dcdee5;
|
16
15
|
--font-size-base: 12px;
|
17
16
|
--font-size-medium: 14px;
|
18
17
|
--font-size-large: 16px;
|
19
18
|
--line-height-base: 16px;
|
20
19
|
--line-height-medium: 16px;
|
21
20
|
--line-height-large: 18px;
|
21
|
+
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656e;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,7 +127,7 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
.bk-tag {
|
130
|
+
:where(.bk-tag) {
|
131
131
|
display: inline-flex;
|
132
132
|
align-items: center;
|
133
133
|
height: 22px;
|
@@ -140,121 +140,121 @@
|
|
140
140
|
border-color: rgba(151, 155, 165, 0.3);
|
141
141
|
box-sizing: border-box;
|
142
142
|
}
|
143
|
-
.bk-tag.bk-tag-success {
|
143
|
+
:where(.bk-tag).bk-tag-success {
|
144
144
|
color: #14a568;
|
145
145
|
border-color: rgba(20, 165, 104, 0.3);
|
146
|
-
background-color: #
|
146
|
+
background-color: #e4faf0;
|
147
147
|
}
|
148
|
-
.bk-tag.bk-tag-success.bk-tag-filled {
|
149
|
-
background-color: #
|
148
|
+
:where(.bk-tag).bk-tag-success.bk-tag-filled {
|
149
|
+
background-color: #14a568;
|
150
150
|
}
|
151
|
-
.bk-tag.bk-tag-success.bk-tag-filled:hover {
|
152
|
-
background-color: #
|
151
|
+
:where(.bk-tag).bk-tag-success.bk-tag-filled:hover {
|
152
|
+
background-color: #42b685;
|
153
153
|
}
|
154
|
-
.bk-tag.bk-tag-success:hover:not(.bk-tag-filled) {
|
155
|
-
background-color: #
|
154
|
+
:where(.bk-tag).bk-tag-success:hover:not(.bk-tag-filled) {
|
155
|
+
background-color: #c9f5e2;
|
156
156
|
}
|
157
|
-
.bk-tag.bk-tag-info {
|
157
|
+
:where(.bk-tag).bk-tag-info {
|
158
158
|
color: var(--primary-color);
|
159
159
|
border-color: rgba(58, 132, 255, 0.3);
|
160
|
-
background-color: #
|
160
|
+
background-color: #edf4ff;
|
161
161
|
}
|
162
|
-
.bk-tag.bk-tag-info.bk-tag-filled {
|
163
|
-
background-color: #
|
162
|
+
:where(.bk-tag).bk-tag-info.bk-tag-filled {
|
163
|
+
background-color: #3a84ff;
|
164
164
|
}
|
165
|
-
.bk-tag.bk-tag-info.bk-tag-filled:hover {
|
166
|
-
background-color: #
|
165
|
+
:where(.bk-tag).bk-tag-info.bk-tag-filled:hover {
|
166
|
+
background-color: #609cfe;
|
167
167
|
}
|
168
|
-
.bk-tag.bk-tag-info:hover:not(.bk-tag-filled) {
|
169
|
-
background-color: #
|
168
|
+
:where(.bk-tag).bk-tag-info:hover:not(.bk-tag-filled) {
|
169
|
+
background-color: #e1ecff;
|
170
170
|
}
|
171
|
-
.bk-tag.bk-tag-warning {
|
171
|
+
:where(.bk-tag).bk-tag-warning {
|
172
172
|
color: #fe9c00;
|
173
173
|
border-color: rgba(254, 165, 0, 0.3);
|
174
|
-
background-color: #
|
174
|
+
background-color: #fff1db;
|
175
175
|
}
|
176
|
-
.bk-tag.bk-tag-warning.bk-tag-filled {
|
177
|
-
background-color: #
|
176
|
+
:where(.bk-tag).bk-tag-warning.bk-tag-filled {
|
177
|
+
background-color: #fe9c00;
|
178
178
|
}
|
179
|
-
.bk-tag.bk-tag-warning.bk-tag-filled:hover {
|
180
|
-
background-color: #
|
179
|
+
:where(.bk-tag).bk-tag-warning.bk-tag-filled:hover {
|
180
|
+
background-color: #fdaf32;
|
181
181
|
}
|
182
|
-
.bk-tag.bk-tag-warning:hover:not(.bk-tag-filled) {
|
183
|
-
background-color: #
|
182
|
+
:where(.bk-tag).bk-tag-warning:hover:not(.bk-tag-filled) {
|
183
|
+
background-color: #ffe8c3;
|
184
184
|
}
|
185
|
-
.bk-tag.bk-tag-danger {
|
185
|
+
:where(.bk-tag).bk-tag-danger {
|
186
186
|
color: var(--danger-color);
|
187
187
|
border-color: rgba(234, 53, 54, 0.3);
|
188
|
-
background-color: #
|
188
|
+
background-color: #feebea;
|
189
189
|
}
|
190
|
-
.bk-tag.bk-tag-danger.bk-tag-filled {
|
191
|
-
background-color: #
|
190
|
+
:where(.bk-tag).bk-tag-danger.bk-tag-filled {
|
191
|
+
background-color: #ea3536;
|
192
192
|
}
|
193
|
-
.bk-tag.bk-tag-danger.bk-tag-filled:hover {
|
194
|
-
background-color: #
|
193
|
+
:where(.bk-tag).bk-tag-danger.bk-tag-filled:hover {
|
194
|
+
background-color: #ed5c5d;
|
195
195
|
}
|
196
|
-
.bk-tag.bk-tag-danger:hover:not(.bk-tag-filled) {
|
197
|
-
background-color: #
|
196
|
+
:where(.bk-tag).bk-tag-danger:hover:not(.bk-tag-filled) {
|
197
|
+
background-color: #fedddc;
|
198
198
|
}
|
199
|
-
.bk-tag:hover {
|
199
|
+
:where(.bk-tag):hover {
|
200
200
|
background-color: #dcdee5;
|
201
201
|
}
|
202
|
-
.bk-tag.bk-tag-filled {
|
202
|
+
:where(.bk-tag).bk-tag-filled {
|
203
203
|
color: #fff;
|
204
|
-
background-color: #
|
204
|
+
background-color: #979ba5;
|
205
205
|
}
|
206
|
-
.bk-tag.bk-tag-filled:hover {
|
207
|
-
background-color: #
|
206
|
+
:where(.bk-tag).bk-tag-filled:hover {
|
207
|
+
background-color: #acafb6;
|
208
208
|
}
|
209
|
-
.bk-tag.bk-tag-stroke {
|
209
|
+
:where(.bk-tag).bk-tag-stroke {
|
210
210
|
padding: 0 9px;
|
211
211
|
line-height: 20px;
|
212
212
|
border-style: solid;
|
213
213
|
border-width: 1px;
|
214
214
|
}
|
215
|
-
.bk-tag.bk-tag-closable {
|
215
|
+
:where(.bk-tag).bk-tag-closable {
|
216
216
|
padding: 0 4px 0 10px;
|
217
217
|
}
|
218
|
-
.bk-tag.bk-tag-checkable {
|
218
|
+
:where(.bk-tag).bk-tag-checkable {
|
219
219
|
cursor: pointer;
|
220
220
|
background: none;
|
221
221
|
}
|
222
|
-
.bk-tag.bk-tag-checkable:hover {
|
223
|
-
background: #
|
222
|
+
:where(.bk-tag).bk-tag-checkable:hover {
|
223
|
+
background: #f0f1f5;
|
224
224
|
}
|
225
|
-
.bk-tag.bk-tag-check {
|
225
|
+
:where(.bk-tag).bk-tag-check {
|
226
226
|
color: #fff;
|
227
227
|
background: var(--primary-color);
|
228
228
|
}
|
229
|
-
.bk-tag.bk-tag-check:hover {
|
229
|
+
:where(.bk-tag).bk-tag-check:hover {
|
230
230
|
color: #fff;
|
231
231
|
background: var(--primary-color);
|
232
232
|
opacity: 1;
|
233
233
|
}
|
234
|
-
.bk-tag--defaul {
|
234
|
+
:where(.bk-tag--defaul) {
|
235
235
|
padding: 0 8px;
|
236
236
|
}
|
237
|
-
.bk-tag--small {
|
237
|
+
:where(.bk-tag--small) {
|
238
238
|
height: 16px;
|
239
239
|
padding: 0 4px;
|
240
240
|
line-height: 16px;
|
241
241
|
}
|
242
|
-
.bk-tag--small .bk-tag-text {
|
242
|
+
:where(.bk-tag--small) .bk-tag-text {
|
243
243
|
font-size: 10px;
|
244
244
|
}
|
245
|
-
.bk-tag-text {
|
245
|
+
:where(.bk-tag-text) {
|
246
246
|
flex: 1;
|
247
247
|
overflow: hidden;
|
248
248
|
text-overflow: ellipsis;
|
249
249
|
white-space: nowrap;
|
250
250
|
}
|
251
|
-
.bk-tag-icon {
|
251
|
+
:where(.bk-tag-icon) {
|
252
252
|
flex-shrink: 0;
|
253
253
|
margin-right: 4px;
|
254
254
|
font-size: 14px;
|
255
255
|
line-height: 0;
|
256
256
|
}
|
257
|
-
.bk-tag-close {
|
257
|
+
:where(.bk-tag-close) {
|
258
258
|
flex-shrink: 0;
|
259
259
|
margin-left: 4px;
|
260
260
|
font-size: 12px;
|