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.
Files changed (219) hide show
  1. package/dist/index.cjs.js +46 -46
  2. package/dist/index.esm.js +6148 -6162
  3. package/dist/index.umd.js +46 -46
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +1 -1
  7. package/lib/affix/affix.less +2 -2
  8. package/lib/affix/affix.variable.css +3 -3
  9. package/lib/alert/alert.css +21 -21
  10. package/lib/alert/alert.less +17 -16
  11. package/lib/alert/alert.variable.css +23 -23
  12. package/lib/backtop/backtop.css +11 -11
  13. package/lib/backtop/backtop.less +3 -3
  14. package/lib/backtop/backtop.variable.css +13 -13
  15. package/lib/badge/badge.css +32 -32
  16. package/lib/badge/badge.less +5 -5
  17. package/lib/badge/badge.variable.css +34 -34
  18. package/lib/breadcrumb/breadcrumb.css +31 -31
  19. package/lib/breadcrumb/breadcrumb.less +8 -8
  20. package/lib/breadcrumb/breadcrumb.variable.css +33 -33
  21. package/lib/button/button.css +69 -69
  22. package/lib/button/button.less +3 -5
  23. package/lib/button/button.variable.css +71 -71
  24. package/lib/card/card.css +31 -31
  25. package/lib/card/card.less +4 -4
  26. package/lib/card/card.variable.css +33 -33
  27. package/lib/cascader/cascader.css +63 -63
  28. package/lib/cascader/cascader.less +12 -11
  29. package/lib/cascader/cascader.variable.css +65 -65
  30. package/lib/checkbox/checkbox.css +21 -21
  31. package/lib/checkbox/checkbox.less +8 -8
  32. package/lib/checkbox/checkbox.variable.css +23 -23
  33. package/lib/code-diff/code-diff.css +97 -97
  34. package/lib/code-diff/code-diff.less +3 -4
  35. package/lib/code-diff/code-diff.variable.css +99 -99
  36. package/lib/collapse/collapse.css +30 -30
  37. package/lib/collapse/collapse.less +25 -24
  38. package/lib/collapse/collapse.variable.css +32 -32
  39. package/lib/collapse-transition/collapse-transition.css +32 -32
  40. package/lib/collapse-transition/collapse-transition.less +59 -48
  41. package/lib/collapse-transition/collapse-transition.variable.css +34 -34
  42. package/lib/color-picker/color-picker.css +57 -57
  43. package/lib/color-picker/color-picker.less +36 -30
  44. package/lib/color-picker/color-picker.variable.css +59 -59
  45. package/lib/config-provider/config-provider.variable.css +2 -2
  46. package/lib/container/container.css +19 -19
  47. package/lib/container/container.less +3 -3
  48. package/lib/container/container.variable.css +21 -21
  49. package/lib/date-picker/date-picker.css +92 -92
  50. package/lib/date-picker/date-picker.d.ts +0 -1
  51. package/lib/date-picker/date-picker.less +55 -54
  52. package/lib/date-picker/date-picker.variable.css +94 -94
  53. package/lib/date-picker/index.d.ts +0 -3
  54. package/lib/date-picker/index.js +8 -8
  55. package/lib/date-picker/time-picker.d.ts +0 -1
  56. package/lib/dialog/dialog.css +51 -51
  57. package/lib/dialog/dialog.less +1 -1
  58. package/lib/dialog/dialog.variable.css +53 -53
  59. package/lib/divider/divider.css +8 -8
  60. package/lib/divider/divider.less +5 -8
  61. package/lib/divider/divider.variable.css +10 -10
  62. package/lib/dropdown/dropdown.css +15 -15
  63. package/lib/dropdown/dropdown.less +6 -6
  64. package/lib/dropdown/dropdown.variable.css +17 -17
  65. package/lib/exception/exception.css +13 -13
  66. package/lib/exception/exception.less +6 -6
  67. package/lib/exception/exception.variable.css +15 -15
  68. package/lib/fixed-navbar/fixed-navbar.css +9 -9
  69. package/lib/fixed-navbar/fixed-navbar.less +1 -2
  70. package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
  71. package/lib/form/form.css +63 -63
  72. package/lib/form/form.less +14 -16
  73. package/lib/form/form.variable.css +65 -65
  74. package/lib/image/image-viewer.css +23 -23
  75. package/lib/image/image-viewer.less +24 -25
  76. package/lib/image/image-viewer.variable.css +25 -25
  77. package/lib/image/image.css +29 -29
  78. package/lib/image/image.less +6 -8
  79. package/lib/image/image.variable.css +31 -31
  80. package/lib/info-box/info-box.css +10 -10
  81. package/lib/info-box/info-box.less +1 -2
  82. package/lib/info-box/info-box.variable.css +12 -12
  83. package/lib/input/input.css +102 -104
  84. package/lib/input/input.less +27 -33
  85. package/lib/input/input.variable.css +104 -106
  86. package/lib/link/link.css +18 -18
  87. package/lib/link/link.less +1 -3
  88. package/lib/link/link.variable.css +20 -20
  89. package/lib/loading/loading.css +94 -94
  90. package/lib/loading/loading.less +4 -4
  91. package/lib/loading/loading.variable.css +96 -96
  92. package/lib/menu/menu.css +38 -38
  93. package/lib/menu/menu.less +10 -10
  94. package/lib/menu/menu.variable.css +40 -40
  95. package/lib/menu/submenu.css +1 -1
  96. package/lib/menu/submenu.less +1 -1
  97. package/lib/menu/submenu.variable.css +3 -3
  98. package/lib/message/message.css +59 -59
  99. package/lib/message/message.less +25 -24
  100. package/lib/message/message.variable.css +61 -61
  101. package/lib/modal/modal.css +26 -26
  102. package/lib/modal/modal.less +8 -12
  103. package/lib/modal/modal.variable.css +28 -28
  104. package/lib/navigation/navigation.css +25 -25
  105. package/lib/navigation/navigation.less +9 -9
  106. package/lib/navigation/navigation.variable.css +27 -27
  107. package/lib/notify/notify.css +17 -17
  108. package/lib/notify/notify.less +8 -6
  109. package/lib/notify/notify.variable.css +19 -19
  110. package/lib/pagination/pagination.css +60 -60
  111. package/lib/pagination/pagination.less +24 -25
  112. package/lib/pagination/pagination.variable.css +62 -62
  113. package/lib/pop-confirm/pop-confirm.css +10 -10
  114. package/lib/pop-confirm/pop-confirm.less +14 -11
  115. package/lib/pop-confirm/pop-confirm.variable.css +12 -12
  116. package/lib/popover/popover.css +5 -5
  117. package/lib/popover/popover.less +5 -6
  118. package/lib/popover/popover.variable.css +7 -7
  119. package/lib/process/process.css +36 -33
  120. package/lib/process/process.less +8 -7
  121. package/lib/process/process.variable.css +38 -35
  122. package/lib/progress/progress.css +33 -33
  123. package/lib/progress/progress.less +6 -5
  124. package/lib/progress/progress.variable.css +35 -35
  125. package/lib/radio/radio.css +51 -51
  126. package/lib/radio/radio.less +13 -20
  127. package/lib/radio/radio.variable.css +53 -53
  128. package/lib/rate/rate.css +2 -2
  129. package/lib/rate/rate.less +1 -1
  130. package/lib/rate/rate.variable.css +4 -4
  131. package/lib/rate/star.css +7 -7
  132. package/lib/rate/star.less +1 -1
  133. package/lib/rate/star.variable.css +9 -9
  134. package/lib/resize-layout/resize-layout.css +42 -42
  135. package/lib/resize-layout/resize-layout.less +17 -10
  136. package/lib/resize-layout/resize-layout.variable.css +44 -44
  137. package/lib/search-select/search-select.css +15 -15
  138. package/lib/search-select/search-select.variable.css +17 -17
  139. package/lib/select/select.css +87 -87
  140. package/lib/select/select.less +27 -22
  141. package/lib/select/select.variable.css +89 -89
  142. package/lib/shared/index.js +6 -4
  143. package/lib/sideslider/sideslider.css +14 -14
  144. package/lib/sideslider/sideslider.less +9 -13
  145. package/lib/sideslider/sideslider.variable.css +16 -16
  146. package/lib/slider/slider.css +31 -31
  147. package/lib/slider/slider.less +8 -8
  148. package/lib/slider/slider.variable.css +33 -33
  149. package/lib/steps/steps.css +134 -134
  150. package/lib/steps/steps.less +44 -48
  151. package/lib/steps/steps.variable.css +136 -136
  152. package/lib/styles/mixins/animate.css +4 -4
  153. package/lib/styles/mixins/animate.less +3 -3
  154. package/lib/styles/mixins/animate.variable.css +6 -6
  155. package/lib/styles/mixins/mixins.css +15 -15
  156. package/lib/styles/mixins/mixins.variable.css +15 -15
  157. package/lib/styles/mixins/popper.css +11 -11
  158. package/lib/styles/mixins/popper.less +6 -6
  159. package/lib/styles/mixins/popper.variable.css +13 -13
  160. package/lib/styles/mixins/scroll.css +5 -5
  161. package/lib/styles/mixins/scroll.less +4 -4
  162. package/lib/styles/mixins/scroll.variable.css +7 -7
  163. package/lib/styles/reset.css +6 -6
  164. package/lib/styles/reset.less +4 -5
  165. package/lib/styles/reset.variable.css +8 -8
  166. package/lib/styles/themes/themes copy.less +167 -0
  167. package/lib/styles/themes/themes.less +3 -10
  168. package/lib/swiper/swiper.css +15 -15
  169. package/lib/swiper/swiper.less +8 -8
  170. package/lib/swiper/swiper.variable.css +17 -17
  171. package/lib/switcher/switcher.css +57 -57
  172. package/lib/switcher/switcher.less +14 -22
  173. package/lib/switcher/switcher.variable.css +59 -59
  174. package/lib/tab/tab.css +78 -78
  175. package/lib/tab/tab.less +40 -39
  176. package/lib/tab/tab.variable.css +80 -80
  177. package/lib/table/components/table-column.d.ts +0 -1
  178. package/lib/table/index.d.ts +0 -1
  179. package/lib/table/index.js +0 -20
  180. package/lib/table/plugins/head-filter.css +13 -13
  181. package/lib/table/plugins/head-filter.less +3 -3
  182. package/lib/table/plugins/head-filter.variable.css +15 -15
  183. package/lib/table/plugins/head-sort.css +5 -5
  184. package/lib/table/plugins/head-sort.less +2 -2
  185. package/lib/table/plugins/head-sort.variable.css +7 -7
  186. package/lib/table/plugins/settings.css +26 -26
  187. package/lib/table/plugins/settings.less +1 -3
  188. package/lib/table/plugins/settings.variable.css +28 -28
  189. package/lib/table/table.css +380 -380
  190. package/lib/table/table.less +10 -14
  191. package/lib/table/table.variable.css +382 -382
  192. package/lib/table-column/index.d.ts +0 -3
  193. package/lib/table-column/index.js +0 -15
  194. package/lib/tag/tag.css +51 -51
  195. package/lib/tag/tag.less +34 -34
  196. package/lib/tag/tag.variable.css +53 -53
  197. package/lib/tag-input/tag-input.css +38 -38
  198. package/lib/tag-input/tag-input.less +3 -3
  199. package/lib/tag-input/tag-input.variable.css +40 -40
  200. package/lib/time-picker/index.d.ts +0 -3
  201. package/lib/time-picker/time-picker.css +40 -40
  202. package/lib/time-picker/time-picker.less +76 -44
  203. package/lib/time-picker/time-picker.variable.css +42 -42
  204. package/lib/timeline/timeline.css +69 -69
  205. package/lib/timeline/timeline.less +6 -12
  206. package/lib/timeline/timeline.variable.css +71 -71
  207. package/lib/transfer/transfer.css +89 -89
  208. package/lib/transfer/transfer.less +1 -1
  209. package/lib/transfer/transfer.variable.css +91 -91
  210. package/lib/tree/tree.css +49 -49
  211. package/lib/tree/tree.less +6 -7
  212. package/lib/tree/tree.variable.css +51 -51
  213. package/lib/upload/upload.css +98 -98
  214. package/lib/upload/upload.less +68 -69
  215. package/lib/upload/upload.variable.css +100 -100
  216. package/lib/virtual-render/virtual-render.css +9 -9
  217. package/lib/virtual-render/virtual-render.less +1 -1
  218. package/lib/virtual-render/virtual-render.variable.css +11 -11
  219. 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: #E4FAF0;
17
+ background-color: #e4faf0;
18
18
  }
19
- .bk-tag.bk-tag-success.bk-tag-filled {
20
- background-color: #14A568;
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: #42B685;
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: #C9F5E2;
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: #EDF4FF;
31
+ background-color: #edf4ff;
32
32
  }
33
- .bk-tag.bk-tag-info.bk-tag-filled {
34
- background-color: #3A84FF;
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: #609CFE;
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: #E1ECFF;
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: #FFF1DB;
45
+ background-color: #fff1db;
46
46
  }
47
- .bk-tag.bk-tag-warning.bk-tag-filled {
48
- background-color: #FE9C00;
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: #FDAF32;
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: #FFE8C3;
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: #FEEBEA;
59
+ background-color: #feebea;
60
60
  }
61
- .bk-tag.bk-tag-danger.bk-tag-filled {
62
- background-color: #EA3536;
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: #ED5C5D;
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: #FEDDDC;
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: #979BA5;
75
+ background-color: #979ba5;
76
76
  }
77
- .bk-tag.bk-tag-filled:hover {
78
- background-color: #ACAFB6;
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: #F0F1F5;
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: #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,.3);
21
- @tag-info-border-color: rgba(58,132,255,.3);
22
- @tag-warning-border-color: rgba(254,165,0,.3);
23
- @tag-danger-border-color: rgba(234,53,54,.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;
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,.3);
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;
@@ -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: #63656E;
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: #E4FAF0;
146
+ background-color: #e4faf0;
147
147
  }
148
- .bk-tag.bk-tag-success.bk-tag-filled {
149
- background-color: #14A568;
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: #42B685;
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: #C9F5E2;
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: #EDF4FF;
160
+ background-color: #edf4ff;
161
161
  }
162
- .bk-tag.bk-tag-info.bk-tag-filled {
163
- background-color: #3A84FF;
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: #609CFE;
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: #E1ECFF;
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: #FFF1DB;
174
+ background-color: #fff1db;
175
175
  }
176
- .bk-tag.bk-tag-warning.bk-tag-filled {
177
- background-color: #FE9C00;
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: #FDAF32;
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: #FFE8C3;
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: #FEEBEA;
188
+ background-color: #feebea;
189
189
  }
190
- .bk-tag.bk-tag-danger.bk-tag-filled {
191
- background-color: #EA3536;
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: #ED5C5D;
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: #FEDDDC;
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: #979BA5;
204
+ background-color: #979ba5;
205
205
  }
206
- .bk-tag.bk-tag-filled:hover {
207
- background-color: #ACAFB6;
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: #F0F1F5;
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;