bkui-vue 2.0.2-beta.9 → 2.0.2-beta.90

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 (343) hide show
  1. package/License.txt +1 -2
  2. package/dist/cli.css +1 -0
  3. package/dist/index.cjs.js +166 -138
  4. package/dist/index.esm.js +24631 -18441
  5. package/dist/index.umd.js +166 -138
  6. package/dist/locale/en.esm.js.map +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/ja-jp.esm.js +2 -0
  9. package/dist/locale/ja-jp.esm.js.map +1 -0
  10. package/dist/locale/ja-jp.umd.js +2 -0
  11. package/dist/locale/ja-jp.umd.js.map +1 -0
  12. package/dist/locale/zh-cn.esm.js.map +1 -1
  13. package/dist/locale/zh-cn.umd.js.map +1 -1
  14. package/dist/style.variable.css +1 -1
  15. package/lib/affix/affix.variable.css +2 -1
  16. package/lib/affix/index.js +2 -2
  17. package/lib/alert/alert.variable.css +2 -1
  18. package/lib/alert/index.js +16 -5
  19. package/lib/animate-number/index.js +2 -2
  20. package/lib/backtop/backtop.variable.css +2 -1
  21. package/lib/backtop/index.js +2 -2
  22. package/lib/badge/badge.variable.css +2 -1
  23. package/lib/badge/index.js +2 -2
  24. package/lib/breadcrumb/breadcrumb.variable.css +2 -1
  25. package/lib/breadcrumb/index.js +3 -3
  26. package/lib/button/button.d.ts +1 -1
  27. package/lib/button/button.variable.css +2 -1
  28. package/lib/button/index.js +3 -3
  29. package/lib/card/card.variable.css +2 -1
  30. package/lib/card/index.js +2 -2
  31. package/lib/cascader/cascader.css +52 -25
  32. package/lib/cascader/cascader.d.ts +309 -0
  33. package/lib/cascader/cascader.less +109 -75
  34. package/lib/cascader/cascader.variable.css +54 -26
  35. package/lib/cascader/index.d.ts +618 -0
  36. package/lib/cascader/index.js +147 -65
  37. package/lib/checkbox/checkbox.variable.css +2 -1
  38. package/lib/checkbox/index.js +5 -5
  39. package/lib/code-diff/code-diff.variable.css +2 -1
  40. package/lib/code-diff/index.js +2 -2
  41. package/lib/collapse/collapse.variable.css +2 -1
  42. package/lib/collapse/index.js +3 -3
  43. package/lib/collapse-transition/collapse-transition.variable.css +2 -1
  44. package/lib/collapse-transition/index.js +2 -2
  45. package/lib/color-picker/color-picker.variable.css +2 -1
  46. package/lib/color-picker/index.js +64 -55
  47. package/lib/components.js +1 -1
  48. package/lib/config-provider/config-provider.variable.css +2 -1
  49. package/lib/config-provider/index.d.ts +1 -1
  50. package/lib/config-provider/index.js +6 -6
  51. package/lib/container/container.variable.css +2 -1
  52. package/lib/container/index.js +5 -5
  53. package/lib/date-picker/date-picker.d.ts +2 -1
  54. package/lib/date-picker/date-picker.variable.css +2 -1
  55. package/lib/date-picker/index.d.ts +6 -2
  56. package/lib/date-picker/index.js +79 -76
  57. package/lib/date-picker/panel/date-range.d.ts +2 -1
  58. package/lib/date-picker/panel/time.d.ts +1 -1
  59. package/lib/date-picker/utils.d.ts +5 -17
  60. package/lib/dialog/dialog.css +20 -1
  61. package/lib/dialog/dialog.variable.css +22 -2
  62. package/lib/dialog/index.js +13 -36
  63. package/lib/directives/index.js +8 -9
  64. package/lib/dist.index.js +1 -1
  65. package/lib/divider/divider.variable.css +2 -1
  66. package/lib/divider/index.js +3 -3
  67. package/lib/dropdown/dropdown.d.ts +1 -0
  68. package/lib/dropdown/dropdown.variable.css +2 -1
  69. package/lib/dropdown/index.d.ts +3 -0
  70. package/lib/dropdown/index.js +15 -10
  71. package/lib/exception/exception.variable.css +2 -1
  72. package/lib/exception/index.js +2 -2
  73. package/lib/fixed-navbar/fixed-navbar.variable.css +2 -1
  74. package/lib/fixed-navbar/index.js +2 -2
  75. package/lib/form/form-item.d.ts +19 -0
  76. package/lib/form/form.css +17 -4
  77. package/lib/form/form.less +25 -6
  78. package/lib/form/form.variable.css +19 -5
  79. package/lib/form/index.d.ts +13 -0
  80. package/lib/form/index.js +43 -50
  81. package/lib/hooks.js +1 -1
  82. package/lib/icon/angle-double-down-line.js +1 -1
  83. package/lib/icon/angle-double-left-line.js +1 -1
  84. package/lib/icon/angle-double-left.js +1 -1
  85. package/lib/icon/angle-double-right-line.js +1 -1
  86. package/lib/icon/angle-double-right.js +1 -1
  87. package/lib/icon/angle-double-up-line.js +1 -1
  88. package/lib/icon/angle-down-fill.js +1 -1
  89. package/lib/icon/angle-down-line.js +1 -1
  90. package/lib/icon/angle-down.js +1 -1
  91. package/lib/icon/angle-left.js +1 -1
  92. package/lib/icon/angle-right.js +1 -1
  93. package/lib/icon/angle-up-fill.js +1 -1
  94. package/lib/icon/angle-up.js +1 -1
  95. package/lib/icon/archive-fill.js +1 -1
  96. package/lib/icon/arrows-left.js +1 -1
  97. package/lib/icon/arrows-right.js +1 -1
  98. package/lib/icon/assistant.js +1 -1
  99. package/lib/icon/audio-fill.js +1 -1
  100. package/lib/icon/bk.js +1 -1
  101. package/lib/icon/circle.js +1 -1
  102. package/lib/icon/close-line.js +1 -1
  103. package/lib/icon/close.js +1 -1
  104. package/lib/icon/code.js +1 -1
  105. package/lib/icon/cog-shape.js +1 -1
  106. package/lib/icon/collapse-left.js +1 -1
  107. package/lib/icon/copy-shape.js +1 -1
  108. package/lib/icon/copy.js +1 -1
  109. package/lib/icon/data-shape.js +1 -1
  110. package/lib/icon/del.js +1 -1
  111. package/lib/icon/doc-fill.js +1 -1
  112. package/lib/icon/done.js +1 -1
  113. package/lib/icon/down-shape.js +1 -1
  114. package/lib/icon/down-small.js +1 -1
  115. package/lib/icon/edit-line.js +1 -1
  116. package/lib/icon/ellipsis.js +1 -1
  117. package/lib/icon/enlarge-line.js +1 -1
  118. package/lib/icon/error.js +1 -1
  119. package/lib/icon/excel-fill.js +1 -1
  120. package/lib/icon/exclamation-circle-shape.js +1 -1
  121. package/lib/icon/eye.js +1 -1
  122. package/lib/icon/filliscreen-line.js +1 -1
  123. package/lib/icon/fix-line.js +1 -1
  124. package/lib/icon/fix-shape.js +1 -1
  125. package/lib/icon/folder-open.js +1 -1
  126. package/lib/icon/folder-shape-open.js +1 -1
  127. package/lib/icon/folder-shape.js +1 -1
  128. package/lib/icon/folder.js +1 -1
  129. package/lib/icon/funnel.js +1 -1
  130. package/lib/icon/grag-fill.js +1 -1
  131. package/lib/icon/help-document-fill.js +1 -1
  132. package/lib/icon/help-fill.js +1 -1
  133. package/lib/icon/help.js +1 -1
  134. package/lib/icon/image-fill.js +1 -1
  135. package/lib/icon/img-error.js +1 -1
  136. package/lib/icon/img-placehoulder.js +1 -1
  137. package/lib/icon/index.js +1 -1
  138. package/lib/icon/info-line.js +1 -1
  139. package/lib/icon/info.js +1 -1
  140. package/lib/icon/left-shape.js +1 -1
  141. package/lib/icon/left-turn-line.js +1 -1
  142. package/lib/icon/loading.js +1 -1
  143. package/lib/icon/narrow-line.js +1 -1
  144. package/lib/icon/original.js +1 -1
  145. package/lib/icon/pdf-fill.js +1 -1
  146. package/lib/icon/play-shape.js +1 -1
  147. package/lib/icon/plus.js +1 -1
  148. package/lib/icon/ppt-fill.js +1 -1
  149. package/lib/icon/qq.js +1 -1
  150. package/lib/icon/right-shape.js +1 -1
  151. package/lib/icon/right-turn-line.js +1 -1
  152. package/lib/icon/search.js +1 -1
  153. package/lib/icon/share.js +1 -1
  154. package/lib/icon/spinner.js +1 -1
  155. package/lib/icon/success.js +1 -1
  156. package/lib/icon/switcher-loading.js +1 -1
  157. package/lib/icon/text-all.js +1 -1
  158. package/lib/icon/text-file.js +1 -1
  159. package/lib/icon/text-fill.js +1 -1
  160. package/lib/icon/transfer.js +1 -1
  161. package/lib/icon/tree-application-shape.js +1 -1
  162. package/lib/icon/unfull-screen.js +1 -1
  163. package/lib/icon/unvisible.js +1 -1
  164. package/lib/icon/up-shape.js +1 -1
  165. package/lib/icon/upload.js +1 -1
  166. package/lib/icon/video-fill.js +1 -1
  167. package/lib/icon/warn.js +1 -1
  168. package/lib/icon/weixin-pro.js +1 -1
  169. package/lib/icon/weixin.js +1 -1
  170. package/lib/image/image-viewer.variable.css +2 -1
  171. package/lib/image/image.variable.css +2 -1
  172. package/lib/image/index.js +11 -12
  173. package/lib/index.js +1 -1
  174. package/lib/info-box/index.js +22 -7
  175. package/lib/info-box/info-box.css +20 -1
  176. package/lib/info-box/info-box.d.ts +1 -0
  177. package/lib/info-box/info-box.less +28 -2
  178. package/lib/info-box/info-box.variable.css +23 -3
  179. package/lib/input/index.d.ts +45 -20
  180. package/lib/input/index.js +57 -29
  181. package/lib/input/input.css +6 -0
  182. package/lib/input/input.d.ts +35 -17
  183. package/lib/input/input.less +7 -0
  184. package/lib/input/input.variable.css +8 -1
  185. package/lib/link/index.js +2 -2
  186. package/lib/link/link.variable.css +2 -1
  187. package/lib/loading/index.js +15 -7
  188. package/lib/loading/loading.variable.css +2 -1
  189. package/lib/locale/index.d.ts +1 -0
  190. package/lib/locale/index.js +172 -4
  191. package/lib/locale/lang/ja-jp.d.ts +3 -0
  192. package/lib/menu/index.js +12 -9
  193. package/lib/menu/menu.css +5 -4
  194. package/lib/menu/menu.less +1 -0
  195. package/lib/menu/menu.variable.css +7 -5
  196. package/lib/menu/submenu.variable.css +2 -1
  197. package/lib/message/index.js +62 -28
  198. package/lib/message/message.variable.css +2 -1
  199. package/lib/message/messageConstructor.d.ts +1 -1
  200. package/lib/modal/index.js +19 -8
  201. package/lib/modal/modal.css +20 -1
  202. package/lib/modal/modal.variable.css +22 -2
  203. package/lib/navigation/index.js +3 -3
  204. package/lib/navigation/navigation.css +29 -29
  205. package/lib/navigation/navigation.less +29 -29
  206. package/lib/navigation/navigation.variable.css +31 -30
  207. package/lib/notify/index.js +43 -24
  208. package/lib/notify/notify.variable.css +2 -1
  209. package/lib/overflow-title/components/overflow-title.d.ts +6 -2
  210. package/lib/overflow-title/index.d.ts +12 -4
  211. package/lib/overflow-title/index.js +3 -3
  212. package/lib/overflow-title/props.d.ts +3 -1
  213. package/lib/pagination/index.js +22 -14
  214. package/lib/pagination/pagination.css +1 -0
  215. package/lib/pagination/pagination.less +1 -0
  216. package/lib/pagination/pagination.variable.css +3 -1
  217. package/lib/pop-confirm/index.d.ts +592 -0
  218. package/lib/pop-confirm/index.js +10 -6
  219. package/lib/pop-confirm/pop-confirm.d.ts +296 -0
  220. package/lib/pop-confirm/pop-confirm.variable.css +2 -1
  221. package/lib/pop-confirm/props.d.ts +148 -0
  222. package/lib/popover/index.d.ts +18 -10
  223. package/lib/popover/index.js +281 -76
  224. package/lib/popover/popover.d.ts +8 -4
  225. package/lib/popover/popover.variable.css +2 -1
  226. package/lib/popover/props.d.ts +3 -1
  227. package/lib/popover/use-floating.d.ts +2 -2
  228. package/lib/popover/use-popover-init.d.ts +2 -2
  229. package/lib/popover/use-popper-id.d.ts +3 -1
  230. package/lib/popover2/index.js +2 -2
  231. package/lib/preset.js +1 -1
  232. package/lib/process/index.js +2 -2
  233. package/lib/process/process.d.ts +1 -1
  234. package/lib/process/process.variable.css +2 -1
  235. package/lib/progress/index.js +4 -4
  236. package/lib/progress/progress.variable.css +2 -1
  237. package/lib/radio/index.js +5 -5
  238. package/lib/radio/radio.variable.css +2 -1
  239. package/lib/rate/index.js +3 -3
  240. package/lib/rate/rate.variable.css +2 -1
  241. package/lib/resize-layout/index.js +2 -2
  242. package/lib/resize-layout/resize-layout.css +1 -0
  243. package/lib/resize-layout/resize-layout.less +1 -0
  244. package/lib/resize-layout/resize-layout.variable.css +3 -1
  245. package/lib/scrollbar/css/scrollbar.variable.css +2 -1
  246. package/lib/scrollbar/index.js +6 -6
  247. package/lib/search-select/index.d.ts +43 -15
  248. package/lib/search-select/index.js +88 -37
  249. package/lib/search-select/input.d.ts +5 -1
  250. package/lib/search-select/search-select.d.ts +14 -5
  251. package/lib/search-select/search-select.variable.css +2 -1
  252. package/lib/search-select/selected.d.ts +10 -2
  253. package/lib/search-select/utils.d.ts +1 -0
  254. package/lib/select/common.d.ts +0 -1
  255. package/lib/select/index.d.ts +58 -11
  256. package/lib/select/index.js +68 -66
  257. package/lib/select/optionGroup.d.ts +12 -1
  258. package/lib/select/select.d.ts +21 -4
  259. package/lib/select/select.variable.css +2 -1
  260. package/lib/select/type.d.ts +1 -0
  261. package/lib/shared/index.d.ts +1 -1
  262. package/lib/shared/index.js +10 -10
  263. package/lib/shared/z-index-manager.d.ts +1 -1
  264. package/lib/sideslider/index.d.ts +129 -2
  265. package/lib/sideslider/index.js +149 -11
  266. package/lib/sideslider/sideslider.css +62 -0
  267. package/lib/sideslider/sideslider.d.ts +59 -1
  268. package/lib/sideslider/sideslider.less +83 -0
  269. package/lib/sideslider/sideslider.variable.css +64 -1
  270. package/lib/slider/index.d.ts +1 -1
  271. package/lib/slider/index.js +5 -4
  272. package/lib/slider/slider-button.d.ts +1 -1
  273. package/lib/slider/slider.d.ts +1 -1
  274. package/lib/slider/slider.variable.css +2 -1
  275. package/lib/steps/index.js +13 -14
  276. package/lib/steps/steps.css +24 -11
  277. package/lib/steps/steps.d.ts +1 -1
  278. package/lib/steps/steps.less +28 -10
  279. package/lib/steps/steps.variable.css +26 -12
  280. package/lib/styles/mixins/animate.variable.css +2 -1
  281. package/lib/styles/mixins/popper.variable.css +2 -1
  282. package/lib/styles/mixins/scroll.variable.css +2 -1
  283. package/lib/styles/reset.variable.css +2 -1
  284. package/lib/styles/themes/themes.less +4 -1
  285. package/lib/swiper/index.js +2 -2
  286. package/lib/swiper/swiper.variable.css +2 -1
  287. package/lib/switcher/index.js +2 -2
  288. package/lib/switcher/switcher.variable.css +2 -1
  289. package/lib/tab/index.d.ts +12 -0
  290. package/lib/tab/index.js +22 -17
  291. package/lib/tab/props.d.ts +3 -0
  292. package/lib/tab/tab.d.ts +6 -0
  293. package/lib/tab/tab.variable.css +2 -1
  294. package/lib/table/index.js +35 -36
  295. package/lib/table/plugins/head-filter.variable.css +2 -1
  296. package/lib/table/plugins/head-sort.variable.css +2 -1
  297. package/lib/table/plugins/settings.variable.css +2 -1
  298. package/lib/table/table.css +1 -0
  299. package/lib/table/table.variable.css +3 -1
  300. package/lib/table-column/index.js +1 -1
  301. package/lib/tag/index.d.ts +23 -0
  302. package/lib/tag/index.js +10 -5
  303. package/lib/tag/tag.d.ts +11 -0
  304. package/lib/tag/tag.variable.css +2 -1
  305. package/lib/tag-input/index.d.ts +82 -9
  306. package/lib/tag-input/index.js +1639 -54
  307. package/lib/tag-input/tag-input.css +31 -0
  308. package/lib/tag-input/tag-input.d.ts +36 -4
  309. package/lib/tag-input/tag-input.less +36 -0
  310. package/lib/tag-input/tag-input.variable.css +33 -1
  311. package/lib/tag-input/tag-props.d.ts +13 -1
  312. package/lib/tag-input/tag-render.d.ts +24 -2
  313. package/lib/time-picker/index.js +1 -1
  314. package/lib/time-picker/time-picker.variable.css +2 -1
  315. package/lib/timeline/index.d.ts +7 -7
  316. package/lib/timeline/index.js +1375 -9
  317. package/lib/timeline/timeline.d.ts +5 -5
  318. package/lib/timeline/timeline.variable.css +2 -1
  319. package/lib/transfer/index.d.ts +1 -24
  320. package/lib/transfer/index.js +21 -11
  321. package/lib/transfer/props.d.ts +0 -5
  322. package/lib/transfer/transfer.css +26 -8
  323. package/lib/transfer/transfer.d.ts +1 -12
  324. package/lib/transfer/transfer.less +18 -8
  325. package/lib/transfer/transfer.variable.css +28 -9
  326. package/lib/tree/constant.d.ts +2 -0
  327. package/lib/tree/index.d.ts +67 -11
  328. package/lib/tree/index.js +17694 -103
  329. package/lib/tree/props.d.ts +37 -3
  330. package/lib/tree/tree.css +34 -0
  331. package/lib/tree/tree.d.ts +31 -5
  332. package/lib/tree/tree.less +41 -2
  333. package/lib/tree/tree.variable.css +36 -1
  334. package/lib/tree/use-array-move.d.ts +6 -0
  335. package/lib/tree/use-node-action.d.ts +3 -1
  336. package/lib/tree/use-node-attribute.d.ts +3 -0
  337. package/lib/upload/index.js +8 -8
  338. package/lib/upload/upload.variable.css +2 -1
  339. package/lib/virtual-render/index.js +7 -7
  340. package/lib/virtual-render/virtual-render.variable.css +2 -1
  341. package/lib/volar.components.d.ts +2 -1
  342. package/package.json +13 -2
  343. package/dist/style.css +0 -1
@@ -99,7 +99,7 @@
99
99
  --submenu-bg-color: #151d2c;
100
100
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
101
101
  --menu-color: #96a2b9;
102
- --menu-group-color: var(--default-color);
102
+ --menu-group-color: #6E788B;
103
103
  --menu-width: 260px;
104
104
  --menu-collapse-width: 60px;
105
105
  --menu-active-color: white;
@@ -128,6 +128,7 @@
128
128
  --search-select-menu-border-color: var(--disable-color);
129
129
  --select-active-color: #e1ecff;
130
130
  --select-hover-color: #f5f7fa;
131
+ --sub-title-bg-color: #f5f6fa;
131
132
  }
132
133
  * {
133
134
  box-sizing: border-box;
@@ -162,15 +163,31 @@
162
163
  }
163
164
  .bk-steps .bk-step {
164
165
  position: relative;
166
+ flex: 1;
165
167
  margin-right: 16px;
166
168
  overflow: hidden;
167
169
  text-align: left;
168
170
  white-space: nowrap;
169
- flex: 1;
171
+ }
172
+ .bk-steps .bk-step.is-controllable {
173
+ cursor: pointer;
174
+ }
175
+ .bk-steps .bk-step.is-disabled {
176
+ cursor: not-allowed;
177
+ }
178
+ .bk-steps .bk-step.is-disabled .bk-step-indicator {
179
+ color: #dcdee5;
180
+ border-color: #dcdee5;
181
+ }
182
+ .bk-steps .bk-step.is-disabled .bk-step-title {
183
+ color: #dcdee5;
170
184
  }
171
185
  .bk-steps .bk-step .bk-step-indicator {
172
186
  z-index: 1;
187
+ box-sizing: border-box;
173
188
  display: inline-flex;
189
+ align-items: center;
190
+ justify-content: center;
174
191
  width: 24px;
175
192
  height: 24px;
176
193
  padding: 0;
@@ -182,9 +199,6 @@
182
199
  background-color: #fff;
183
200
  border: 1px solid #979ba5;
184
201
  border-radius: 50%;
185
- box-sizing: border-box;
186
- align-items: center;
187
- justify-content: center;
188
202
  }
189
203
  .bk-steps .bk-step .bk-step-number {
190
204
  font-family: arial;
@@ -209,8 +223,8 @@
209
223
  left: 100%;
210
224
  width: 99999px;
211
225
  height: 1px;
212
- background-color: transparent;
213
226
  content: '';
227
+ background-color: transparent;
214
228
  }
215
229
  .bk-steps .bk-step .bk-step-description {
216
230
  max-width: 140px;
@@ -227,16 +241,16 @@
227
241
  left: 100%;
228
242
  width: 99999px;
229
243
  height: 1px;
230
- background-color: transparent;
231
244
  content: '';
245
+ background-color: transparent;
232
246
  }
233
247
  .bk-steps .bk-step.bk-step-no-content .bk-step-indicator::after {
234
248
  top: 10px;
235
249
  left: 32px;
236
250
  }
237
251
  .bk-steps .bk-step:last-child {
238
- margin-right: 0;
239
252
  flex: none;
253
+ margin-right: 0;
240
254
  }
241
255
  .bk-steps .bk-step:last-child .bk-step-title {
242
256
  padding-right: 0;
@@ -370,8 +384,8 @@
370
384
  .bk-steps-dashed .bk-step .bk-step-title::after,
371
385
  .bk-steps-dashed .bk-step .bk-step-indicator::after {
372
386
  background-image: linear-gradient(to right, var(--light-gray) 50%, transparent 0%);
373
- background-position: bottom;
374
387
  background-repeat: repeat-x;
388
+ background-position: bottom;
375
389
  background-size: 6px 1px;
376
390
  }
377
391
  .bk-steps-solid .bk-step .bk-step-title::after,
@@ -396,11 +410,11 @@
396
410
  left: 12px;
397
411
  width: 1px;
398
412
  height: 100%;
413
+ content: '';
399
414
  background-image: linear-gradient(var(--light-gray) 50%, transparent 0%);
400
- background-position: right;
401
415
  background-repeat: repeat-y;
416
+ background-position: right;
402
417
  background-size: 1px 6px;
403
- content: '';
404
418
  }
405
419
  .bk-steps-vertical .bk-step.done:has(+ .current.is-error)::after,
406
420
  .bk-steps-vertical .bk-step.done:has( + .current.bk-step-error)::after {
@@ -408,10 +422,10 @@
408
422
  }
409
423
  .bk-steps-vertical .bk-step .bk-step-title {
410
424
  display: flex;
425
+ align-items: center;
411
426
  height: 100%;
412
427
  margin-top: 0;
413
428
  text-align: left;
414
- align-items: center;
415
429
  }
416
430
  .bk-steps-small .bk-step .bk-step-indicator {
417
431
  width: 20px;
@@ -98,7 +98,7 @@
98
98
  --submenu-bg-color: #151d2c;
99
99
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
100
  --menu-color: #96a2b9;
101
- --menu-group-color: var(--default-color);
101
+ --menu-group-color: #6E788B;
102
102
  --menu-width: 260px;
103
103
  --menu-collapse-width: 60px;
104
104
  --menu-active-color: white;
@@ -127,6 +127,7 @@
127
127
  --search-select-menu-border-color: var(--disable-color);
128
128
  --select-active-color: #e1ecff;
129
129
  --select-hover-color: #f5f7fa;
130
+ --sub-title-bg-color: #f5f6fa;
130
131
  }
131
132
  @keyframes loading-scale-animate {
132
133
  0% {
@@ -98,7 +98,7 @@
98
98
  --submenu-bg-color: #151d2c;
99
99
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
100
  --menu-color: #96a2b9;
101
- --menu-group-color: var(--default-color);
101
+ --menu-group-color: #6E788B;
102
102
  --menu-width: 260px;
103
103
  --menu-collapse-width: 60px;
104
104
  --menu-active-color: white;
@@ -127,6 +127,7 @@
127
127
  --search-select-menu-border-color: var(--disable-color);
128
128
  --select-active-color: #e1ecff;
129
129
  --select-hover-color: #f5f7fa;
130
+ --sub-title-bg-color: #f5f6fa;
130
131
  }
131
132
  .bk-popper {
132
133
  display: none;
@@ -98,7 +98,7 @@
98
98
  --submenu-bg-color: #151d2c;
99
99
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
100
  --menu-color: #96a2b9;
101
- --menu-group-color: var(--default-color);
101
+ --menu-group-color: #6E788B;
102
102
  --menu-width: 260px;
103
103
  --menu-collapse-width: 60px;
104
104
  --menu-active-color: white;
@@ -127,6 +127,7 @@
127
127
  --search-select-menu-border-color: var(--disable-color);
128
128
  --select-active-color: #e1ecff;
129
129
  --select-hover-color: #f5f7fa;
130
+ --sub-title-bg-color: #f5f6fa;
130
131
  }
131
132
  .bk-F-scroll-x {
132
133
  overflow-x: auto;
@@ -98,7 +98,7 @@
98
98
  --submenu-bg-color: #151d2c;
99
99
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
100
  --menu-color: #96a2b9;
101
- --menu-group-color: var(--default-color);
101
+ --menu-group-color: #6E788B;
102
102
  --menu-width: 260px;
103
103
  --menu-collapse-width: 60px;
104
104
  --menu-active-color: white;
@@ -127,6 +127,7 @@
127
127
  --search-select-menu-border-color: var(--disable-color);
128
128
  --select-active-color: #e1ecff;
129
129
  --select-hover-color: #f5f7fa;
130
+ --sub-title-bg-color: #f5f6fa;
130
131
  }
131
132
  .scroll-bar-style::-webkit-scrollbar {
132
133
  width: 4px;
@@ -129,7 +129,7 @@
129
129
  @submenu-bg-color: #151d2c;
130
130
  @menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
131
131
  @menu-color: #96a2b9;
132
- @menu-group-color: @default-color;
132
+ @menu-group-color: #6E788B;
133
133
  @menu-width: 260px;
134
134
  @menu-collapse-width: 60px;
135
135
  @menu-active-color: white;
@@ -173,3 +173,6 @@
173
173
  // select theme
174
174
  @select-active-color: #e1ecff;
175
175
  @select-hover-color: #f5f7fa;
176
+
177
+ // info-box theme
178
+ @sub-title-bg-color: #f5f6fa;
@@ -96,7 +96,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
96
96
  * Tencent is pleased to support the open source community by making
97
97
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
98
98
  *
99
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
99
+ * Copyright (C) 2025 Tencent. All rights reserved.
100
100
  *
101
101
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
102
102
  *
@@ -309,7 +309,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
309
309
  * Tencent is pleased to support the open source community by making
310
310
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
311
311
  *
312
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
312
+ * Copyright (C) 2025 Tencent. All rights reserved.
313
313
  *
314
314
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
315
315
  *
@@ -98,7 +98,7 @@
98
98
  --submenu-bg-color: #151d2c;
99
99
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
100
  --menu-color: #96a2b9;
101
- --menu-group-color: var(--default-color);
101
+ --menu-group-color: #6E788B;
102
102
  --menu-width: 260px;
103
103
  --menu-collapse-width: 60px;
104
104
  --menu-active-color: white;
@@ -127,6 +127,7 @@
127
127
  --search-select-menu-border-color: var(--disable-color);
128
128
  --select-active-color: #e1ecff;
129
129
  --select-hover-color: #f5f7fa;
130
+ --sub-title-bg-color: #f5f6fa;
130
131
  }
131
132
  .bk-swiper-home {
132
133
  position: relative;
@@ -101,7 +101,7 @@ const icon_namespaceObject = icon_x({ ["SwitcherLoading"]: () => __WEBPACK_EXTER
101
101
  * Tencent is pleased to support the open source community by making
102
102
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
103
103
  *
104
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
104
+ * Copyright (C) 2025 Tencent. All rights reserved.
105
105
  *
106
106
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
107
107
  *
@@ -248,7 +248,7 @@ var switcherEmitEventsType = _defineProperty(_defineProperty({}, EVENTS.UPDATE,
248
248
  * Tencent is pleased to support the open source community by making
249
249
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
250
250
  *
251
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
251
+ * Copyright (C) 2025 Tencent. All rights reserved.
252
252
  *
253
253
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
254
254
  *
@@ -98,7 +98,7 @@
98
98
  --submenu-bg-color: #151d2c;
99
99
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
100
  --menu-color: #96a2b9;
101
- --menu-group-color: var(--default-color);
101
+ --menu-group-color: #6E788B;
102
102
  --menu-width: 260px;
103
103
  --menu-collapse-width: 60px;
104
104
  --menu-active-color: white;
@@ -127,6 +127,7 @@
127
127
  --search-select-menu-border-color: var(--disable-color);
128
128
  --select-active-color: #e1ecff;
129
129
  --select-hover-color: #f5f7fa;
130
+ --sub-title-bg-color: #f5f6fa;
130
131
  }
131
132
  @keyframes loading-scale-animate {
132
133
  0% {
@@ -45,6 +45,9 @@ declare const BkTab: {
45
45
  } & {
46
46
  default: string;
47
47
  };
48
+ beforeChange: {
49
+ type: FunctionConstructor;
50
+ };
48
51
  }>> & {
49
52
  onDrag?: (...args: any[]) => any;
50
53
  onChange?: (...args: any[]) => any;
@@ -107,6 +110,9 @@ declare const BkTab: {
107
110
  } & {
108
111
  default: string;
109
112
  };
113
+ beforeChange: {
114
+ type: FunctionConstructor;
115
+ };
110
116
  }>> & {
111
117
  onDrag?: (...args: any[]) => any;
112
118
  onChange?: (...args: any[]) => any;
@@ -180,6 +186,9 @@ declare const BkTab: {
180
186
  } & {
181
187
  default: string;
182
188
  };
189
+ beforeChange: {
190
+ type: FunctionConstructor;
191
+ };
183
192
  }>> & {
184
193
  onDrag?: (...args: any[]) => any;
185
194
  onChange?: (...args: any[]) => any;
@@ -259,6 +268,9 @@ declare const BkTab: {
259
268
  } & {
260
269
  default: string;
261
270
  };
271
+ beforeChange: {
272
+ type: FunctionConstructor;
273
+ };
262
274
  }>> & {
263
275
  onDrag?: (...args: any[]) => any;
264
276
  onChange?: (...args: any[]) => any;
package/lib/tab/index.js CHANGED
@@ -858,7 +858,10 @@ var tabProps = {
858
858
  extCls: shared_namespaceObject.PropTypes.string.def(''),
859
859
  validateActive: shared_namespaceObject.PropTypes.bool.def(true),
860
860
  activeBarSize: shared_namespaceObject.PropTypes.number.def(2),
861
- activeBarColor: shared_namespaceObject.PropTypes.string.def('#3a84ff')
861
+ activeBarColor: shared_namespaceObject.PropTypes.string.def('#3a84ff'),
862
+ beforeChange: {
863
+ type: Function
864
+ }
862
865
  };
863
866
  var tabNavProps = _objectSpread({
864
867
  active: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(''),
@@ -932,7 +935,7 @@ function clickoutside_arrayLikeToArray(arr, len) { if (len == null || len > arr.
932
935
  * Tencent is pleased to support the open source community by making
933
936
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
934
937
  *
935
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
938
+ * Copyright (C) 2025 Tencent. All rights reserved.
936
939
  *
937
940
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
938
941
  *
@@ -1060,7 +1063,7 @@ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTE
1060
1063
  * Tencent is pleased to support the open source community by making
1061
1064
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1062
1065
  *
1063
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1066
+ * Copyright (C) 2025 Tencent. All rights reserved.
1064
1067
  *
1065
1068
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1066
1069
  *
@@ -1172,7 +1175,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
1172
1175
  * Tencent is pleased to support the open source community by making
1173
1176
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1174
1177
  *
1175
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1178
+ * Copyright (C) 2025 Tencent. All rights reserved.
1176
1179
  *
1177
1180
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1178
1181
  *
@@ -1223,7 +1226,7 @@ function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
1223
1226
  * Tencent is pleased to support the open source community by making
1224
1227
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1225
1228
  *
1226
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1229
+ * Copyright (C) 2025 Tencent. All rights reserved.
1227
1230
  *
1228
1231
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1229
1232
  *
@@ -1278,9 +1281,6 @@ var tooltips = {
1278
1281
  hide(el);
1279
1282
  }, 100);
1280
1283
  });
1281
- el.addEventListener('click', function () {
1282
- hide(el);
1283
- });
1284
1284
  popper.addEventListener('mouseleave', function () {
1285
1285
  clearTimeout(delayTimeout);
1286
1286
  hideTimeout = setTimeout(function () {
@@ -1294,7 +1294,7 @@ var tooltips = {
1294
1294
  show(el);
1295
1295
  clearTimeout(delayTimeout);
1296
1296
  }, opts.delay);
1297
- } else if (popper.hasAttribute('data-show')) {
1297
+ } else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
1298
1298
  hide(el);
1299
1299
  }
1300
1300
  });
@@ -1403,6 +1403,7 @@ function renderArrow() {
1403
1403
  * @returns popper实例
1404
1404
  */
1405
1405
  function createPopperInstance(el, popper) {
1406
+ if (!tooltips_nodeList.get(el)) return;
1406
1407
  var _nodeList$get = tooltips_nodeList.get(el),
1407
1408
  opts = _nodeList$get.opts;
1408
1409
  var placement = opts.placement,
@@ -1443,6 +1444,7 @@ function createPopperInstance(el, popper) {
1443
1444
  * @param el
1444
1445
  */
1445
1446
  function show(el) {
1447
+ if (!tooltips_nodeList.get(el)) return;
1446
1448
  var _nodeList$get2 = tooltips_nodeList.get(el),
1447
1449
  popper = _nodeList$get2.popper,
1448
1450
  opts = _nodeList$get2.opts;
@@ -1518,7 +1520,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1518
1520
  * Tencent is pleased to support the open source community by making
1519
1521
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1520
1522
  *
1521
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1523
+ * Copyright (C) 2025 Tencent. All rights reserved.
1522
1524
  *
1523
1525
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1524
1526
  *
@@ -1559,7 +1561,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
1559
1561
  * Tencent is pleased to support the open source community by making
1560
1562
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1561
1563
  *
1562
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1564
+ * Copyright (C) 2025 Tencent. All rights reserved.
1563
1565
  *
1564
1566
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1565
1567
  *
@@ -1907,7 +1909,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
1907
1909
  * Tencent is pleased to support the open source community by making
1908
1910
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1909
1911
  *
1910
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1912
+ * Copyright (C) 2025 Tencent. All rights reserved.
1911
1913
  *
1912
1914
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1913
1915
  *
@@ -1999,10 +2001,13 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
1999
2001
  });
2000
2002
  },
2001
2003
  tabChange: function tabChange(name) {
2002
- // emit('xxx') 会调用onXxx函数, 所以不必在主动调用onXxx函数了
2003
- emit('change', name);
2004
- emit('tab-change', name);
2005
- emit('update:active', name);
2004
+ var _props$beforeChange, _props$beforeChange2;
2005
+ if ((_props$beforeChange = (_props$beforeChange2 = _props.beforeChange) === null || _props$beforeChange2 === void 0 ? void 0 : _props$beforeChange2.call(_props, name)) !== null && _props$beforeChange !== void 0 ? _props$beforeChange : true) {
2006
+ // emit('xxx') 会调用onXxx函数, 所以不必在主动调用onXxx函数了
2007
+ emit('change', name);
2008
+ emit('tab-change', name);
2009
+ emit('update:active', name);
2010
+ }
2006
2011
  },
2007
2012
  tabRemove: function tabRemove(index, panel) {
2008
2013
  // emit('xxx') 会调用onXxx函数, 所以不必在主动调用onXxx函数了
@@ -2118,7 +2123,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
2118
2123
  * Tencent is pleased to support the open source community by making
2119
2124
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2120
2125
  *
2121
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2126
+ * Copyright (C) 2025 Tencent. All rights reserved.
2122
2127
  *
2123
2128
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2124
2129
  *
@@ -152,6 +152,9 @@ export declare const tabProps: {
152
152
  } & {
153
153
  default: string;
154
154
  };
155
+ beforeChange: {
156
+ type: FunctionConstructor;
157
+ };
155
158
  };
156
159
  export declare const tabNavProps: {
157
160
  tabAdd: {
package/lib/tab/tab.d.ts CHANGED
@@ -39,6 +39,9 @@ declare const _default: import("vue").DefineComponent<{
39
39
  } & {
40
40
  default: string;
41
41
  };
42
+ beforeChange: {
43
+ type: FunctionConstructor;
44
+ };
42
45
  }, {
43
46
  isMounted: import("vue").Ref<boolean>;
44
47
  panels: import("vue").Ref<any[]>;
@@ -89,6 +92,9 @@ declare const _default: import("vue").DefineComponent<{
89
92
  } & {
90
93
  default: string;
91
94
  };
95
+ beforeChange: {
96
+ type: FunctionConstructor;
97
+ };
92
98
  }>> & {
93
99
  onDrag?: (...args: any[]) => any;
94
100
  onChange?: (...args: any[]) => any;
@@ -98,7 +98,7 @@
98
98
  --submenu-bg-color: #151d2c;
99
99
  --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
100
  --menu-color: #96a2b9;
101
- --menu-group-color: var(--default-color);
101
+ --menu-group-color: #6E788B;
102
102
  --menu-width: 260px;
103
103
  --menu-collapse-width: 60px;
104
104
  --menu-active-color: white;
@@ -127,6 +127,7 @@
127
127
  --search-select-menu-border-color: var(--disable-color);
128
128
  --select-active-color: #e1ecff;
129
129
  --select-hover-color: #f5f7fa;
130
+ --sub-title-bg-color: #f5f6fa;
130
131
  }
131
132
  .bk-tab {
132
133
  position: relative;