bkui-vue 1.0.3-beta.9 → 2.0.1-beta.2

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 (285) hide show
  1. package/dist/index.cjs.js +71 -73
  2. package/dist/index.esm.js +21328 -19060
  3. package/dist/index.umd.js +71 -73
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.variable.css +3 -0
  15. package/lib/alert/alert.variable.css +3 -0
  16. package/lib/backtop/backtop.variable.css +3 -0
  17. package/lib/badge/badge.variable.css +3 -0
  18. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  19. package/lib/button/button.variable.css +3 -0
  20. package/lib/card/card.variable.css +3 -0
  21. package/lib/cascader/cascader.variable.css +3 -0
  22. package/lib/checkbox/checkbox.variable.css +3 -0
  23. package/lib/checkbox/index.js +4 -4
  24. package/lib/code-diff/code-diff.variable.css +3 -0
  25. package/lib/collapse/collapse.css +11 -0
  26. package/lib/collapse/collapse.d.ts +11 -0
  27. package/lib/collapse/collapse.less +15 -1
  28. package/lib/collapse/collapse.variable.css +14 -0
  29. package/lib/collapse/index.d.ts +23 -0
  30. package/lib/collapse/index.js +9 -1
  31. package/lib/collapse/props.d.ts +8 -0
  32. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  33. package/lib/color-picker/color-picker.variable.css +3 -0
  34. package/lib/components.d.ts +2 -0
  35. package/lib/components.js +3 -1
  36. package/lib/config-provider/config-provider.d.ts +3 -0
  37. package/lib/config-provider/config-provider.variable.css +3 -0
  38. package/lib/config-provider/index.d.ts +4 -0
  39. package/lib/config-provider/token.d.ts +1 -0
  40. package/lib/container/container.variable.css +3 -0
  41. package/lib/date-picker/base/month-table.d.ts +2 -2
  42. package/lib/date-picker/date-picker.d.ts +1 -0
  43. package/lib/date-picker/date-picker.variable.css +3 -0
  44. package/lib/date-picker/index.d.ts +3 -0
  45. package/lib/date-picker/index.js +70 -32
  46. package/lib/date-picker/interface.d.ts +1 -1
  47. package/lib/date-picker/time-picker.d.ts +1 -0
  48. package/lib/date-picker/utils.d.ts +4 -0
  49. package/lib/dialog/dialog.css +176 -150
  50. package/lib/dialog/dialog.d.ts +40 -109
  51. package/lib/dialog/dialog.less +51 -124
  52. package/lib/dialog/dialog.variable.css +179 -150
  53. package/lib/dialog/index.d.ts +99 -263
  54. package/lib/dialog/index.js +244 -246
  55. package/lib/dialog/props.d.ts +10 -35
  56. package/lib/directives/index.js +0 -1
  57. package/lib/divider/divider.variable.css +3 -0
  58. package/lib/dropdown/dropdown.css +3 -1
  59. package/lib/dropdown/dropdown.variable.css +6 -1
  60. package/lib/exception/exception.variable.css +3 -0
  61. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  62. package/lib/form/form.variable.css +3 -0
  63. package/lib/form/index.js +3 -1
  64. package/lib/icon/image-fill.js +82 -167
  65. package/lib/icon/img-error.js +82 -167
  66. package/lib/icon/img-placehoulder.js +82 -167
  67. package/lib/icon/index.d.ts +1 -0
  68. package/lib/icon/index.js +87 -2427
  69. package/lib/icon/info-line.js +82 -167
  70. package/lib/icon/info.js +82 -167
  71. package/lib/icon/left-shape.js +82 -167
  72. package/lib/icon/left-turn-line.js +82 -167
  73. package/lib/icon/loading.js +82 -167
  74. package/lib/icon/narrow-line.js +82 -167
  75. package/lib/icon/original.js +82 -167
  76. package/lib/icon/pdf-fill.js +82 -167
  77. package/lib/icon/play-shape.js +82 -167
  78. package/lib/icon/plus.js +82 -167
  79. package/lib/icon/ppt-fill.js +82 -167
  80. package/lib/icon/qq.js +82 -167
  81. package/lib/icon/right-shape.js +82 -167
  82. package/lib/icon/right-turn-line.js +82 -167
  83. package/lib/icon/search.js +82 -167
  84. package/lib/icon/share.js +82 -167
  85. package/lib/icon/spinner.js +82 -167
  86. package/lib/icon/success.js +82 -167
  87. package/lib/icon/switcher-loading.js +82 -167
  88. package/lib/icon/text-all.d.ts +4 -0
  89. package/lib/icon/text-all.js +191 -0
  90. package/lib/icon/text-file.js +82 -167
  91. package/lib/icon/text-fill.js +82 -167
  92. package/lib/icon/transfer.js +82 -167
  93. package/lib/icon/tree-application-shape.js +82 -167
  94. package/lib/icon/unfull-screen.js +82 -167
  95. package/lib/icon/unvisible.js +82 -167
  96. package/lib/icon/up-shape.js +82 -167
  97. package/lib/icon/upload.js +82 -167
  98. package/lib/icon/video-fill.js +82 -167
  99. package/lib/icon/warn.js +82 -167
  100. package/lib/icon/weixin-pro.js +82 -167
  101. package/lib/icon/weixin.js +82 -167
  102. package/lib/image/image-viewer.variable.css +3 -0
  103. package/lib/image/image.variable.css +3 -0
  104. package/lib/image/index.js +5 -2
  105. package/lib/info-box/index.d.ts +2 -2
  106. package/lib/info-box/index.js +257 -516
  107. package/lib/info-box/info-box.css +58 -28
  108. package/lib/info-box/info-box.d.ts +18 -16
  109. package/lib/info-box/info-box.less +82 -51
  110. package/lib/info-box/info-box.variable.css +61 -28
  111. package/lib/info-box/render-component.d.ts +4 -0
  112. package/lib/input/index.js +7 -1
  113. package/lib/input/input.variable.css +3 -0
  114. package/lib/link/link.variable.css +3 -0
  115. package/lib/loading/loading.variable.css +3 -0
  116. package/lib/locale/index.js +4 -2
  117. package/lib/locale/lang/en.d.ts +1 -0
  118. package/lib/menu/menu.variable.css +3 -0
  119. package/lib/menu/submenu.variable.css +3 -0
  120. package/lib/message/message.variable.css +3 -0
  121. package/lib/modal/hooks.d.ts +6 -0
  122. package/lib/modal/index.d.ts +41 -309
  123. package/lib/modal/index.js +285 -671
  124. package/lib/modal/mask.d.ts +6 -0
  125. package/lib/modal/modal.css +155 -76
  126. package/lib/modal/modal.d.ts +18 -116
  127. package/lib/modal/modal.less +107 -55
  128. package/lib/modal/modal.variable.css +158 -76
  129. package/lib/modal/props.mixin.d.ts +5 -41
  130. package/lib/navigation/navigation.variable.css +3 -0
  131. package/lib/notify/notify.variable.css +3 -0
  132. package/lib/overflow-title/index.js +46 -52
  133. package/lib/pagination/index.js +2 -1
  134. package/lib/pagination/pagination.variable.css +3 -0
  135. package/lib/plugin-popover/index.d.ts +1 -1
  136. package/lib/plugin-popover/index.js +45 -26
  137. package/lib/pop-confirm/index.js +8 -5
  138. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  139. package/lib/popover/content.d.ts +1 -1
  140. package/lib/popover/index.js +45 -26
  141. package/lib/popover/plugin-popover.d.ts +4 -1
  142. package/lib/popover/popover.css +3 -1
  143. package/lib/popover/popover.less +4 -1
  144. package/lib/popover/popover.variable.css +6 -1
  145. package/lib/preset.d.ts +2 -0
  146. package/lib/process/process.variable.css +3 -0
  147. package/lib/progress/progress.variable.css +3 -0
  148. package/lib/radio/index.d.ts +29 -0
  149. package/lib/radio/index.js +39 -21
  150. package/lib/radio/radio-button.d.ts +10 -0
  151. package/lib/radio/radio-group.d.ts +10 -0
  152. package/lib/radio/radio.d.ts +10 -0
  153. package/lib/radio/radio.variable.css +3 -0
  154. package/lib/rate/rate.variable.css +3 -0
  155. package/lib/rate/star.variable.css +3 -0
  156. package/lib/resize-layout/index.js +1 -1
  157. package/lib/resize-layout/resize-layout.variable.css +3 -0
  158. package/lib/scrollbar/index.d.ts +15 -0
  159. package/lib/scrollbar/index.js +18763 -0
  160. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  161. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  162. package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
  163. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  164. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  165. package/lib/scrollbar/scrollbar.css +75 -0
  166. package/lib/scrollbar/scrollbar.less +94 -0
  167. package/lib/scrollbar/scrollbar.variable.css +204 -0
  168. package/lib/search-select/index.d.ts +375 -16
  169. package/lib/search-select/index.js +701 -366
  170. package/lib/search-select/input.d.ts +14 -5
  171. package/lib/search-select/search-select.css +20 -6
  172. package/lib/search-select/search-select.d.ts +129 -7
  173. package/lib/search-select/search-select.less +16 -12
  174. package/lib/search-select/search-select.variable.css +23 -6
  175. package/lib/search-select/selected.d.ts +116 -6
  176. package/lib/search-select/utils.d.ts +19 -6
  177. package/lib/select/index.d.ts +124 -6
  178. package/lib/select/index.js +1336 -72
  179. package/lib/select/option.d.ts +3 -1
  180. package/lib/select/pinyin/core.d.ts +14 -0
  181. package/lib/select/pinyin/dict.d.ts +34 -0
  182. package/lib/select/pinyin/index.d.ts +2 -0
  183. package/lib/select/select.css +55 -12
  184. package/lib/select/select.d.ts +50 -2
  185. package/lib/select/select.less +69 -19
  186. package/lib/select/select.variable.css +58 -12
  187. package/lib/select/selectTagInput.d.ts +7 -0
  188. package/lib/select/type.d.ts +2 -3
  189. package/lib/shared/index.d.ts +0 -1
  190. package/lib/shared/index.js +70 -50
  191. package/lib/shared/utils.d.ts +12 -0
  192. package/lib/shared/vue-types.d.ts +5 -0
  193. package/lib/sideslider/index.d.ts +55 -185
  194. package/lib/sideslider/index.js +81 -55
  195. package/lib/sideslider/sideslider.css +26 -90
  196. package/lib/sideslider/sideslider.d.ts +25 -87
  197. package/lib/sideslider/sideslider.less +56 -132
  198. package/lib/sideslider/sideslider.variable.css +29 -90
  199. package/lib/slider/index.d.ts +19 -0
  200. package/lib/slider/index.js +45 -5
  201. package/lib/slider/slider.css +14 -0
  202. package/lib/slider/slider.d.ts +9 -0
  203. package/lib/slider/slider.less +15 -0
  204. package/lib/slider/slider.variable.css +17 -0
  205. package/lib/steps/steps.variable.css +3 -0
  206. package/lib/styles/mixins/animate.variable.css +3 -0
  207. package/lib/styles/mixins/popper.variable.css +3 -0
  208. package/lib/styles/mixins/scroll.variable.css +3 -0
  209. package/lib/styles/reset.css +1 -3
  210. package/lib/styles/reset.less +3 -6
  211. package/lib/styles/reset.variable.css +4 -3
  212. package/lib/styles/themes/themes.less +5 -0
  213. package/lib/swiper/swiper.variable.css +3 -0
  214. package/lib/switcher/switcher.variable.css +3 -0
  215. package/lib/tab/tab.variable.css +3 -0
  216. package/lib/table/cache.d.ts +11 -3
  217. package/lib/table/components/table-cell.d.ts +3 -2
  218. package/lib/table/components/table-column.d.ts +7 -17
  219. package/lib/table/const.d.ts +4 -4
  220. package/lib/table/index.d.ts +29 -64
  221. package/lib/table/index.js +18068 -613
  222. package/lib/table/plugins/head-filter.css +8 -4
  223. package/lib/table/plugins/head-filter.less +6 -3
  224. package/lib/table/plugins/head-filter.variable.css +11 -4
  225. package/lib/table/plugins/head-sort.variable.css +3 -0
  226. package/lib/table/plugins/settings.variable.css +3 -0
  227. package/lib/table/plugins/use-active-columns.d.ts +2 -2
  228. package/lib/table/plugins/use-column-template.d.ts +7 -0
  229. package/lib/table/plugins/use-draggable.d.ts +2 -2
  230. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  231. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  232. package/lib/table/plugins/use-pagination.d.ts +3 -1
  233. package/lib/table/plugins/use-shift-key.d.ts +11 -0
  234. package/lib/table/props.d.ts +17 -7
  235. package/lib/table/table.css +112 -58
  236. package/lib/table/table.d.ts +11 -0
  237. package/lib/table/table.less +46 -58
  238. package/lib/table/table.variable.css +115 -58
  239. package/lib/table/use-attributes.d.ts +6 -43
  240. package/lib/table/use-column.d.ts +9 -10
  241. package/lib/table/use-common.d.ts +1 -1
  242. package/lib/table/use-render.d.ts +1 -1
  243. package/lib/table/utils.d.ts +1 -1
  244. package/lib/table-column/index.d.ts +92 -266
  245. package/lib/table-column/index.js +24 -98
  246. package/lib/tag/tag.variable.css +3 -0
  247. package/lib/tag-input/index.d.ts +4 -4
  248. package/lib/tag-input/tag-input.d.ts +2 -2
  249. package/lib/tag-input/tag-input.variable.css +3 -0
  250. package/lib/tag-input/tag-props.d.ts +1 -1
  251. package/lib/tag-input/tag-render.d.ts +1 -1
  252. package/lib/time-picker/index.d.ts +38 -35
  253. package/lib/time-picker/time-picker.variable.css +3 -0
  254. package/lib/timeline/index.d.ts +80 -44
  255. package/lib/timeline/index.js +54 -65
  256. package/lib/timeline/timeline.d.ts +46 -29
  257. package/lib/timeline/timeline.variable.css +3 -0
  258. package/lib/transfer/transfer.variable.css +3 -0
  259. package/lib/tree/constant.d.ts +3 -1
  260. package/lib/tree/index.d.ts +44 -0
  261. package/lib/tree/index.js +17548 -25
  262. package/lib/tree/props.d.ts +18 -0
  263. package/lib/tree/tree.css +76 -2
  264. package/lib/tree/tree.d.ts +28 -2
  265. package/lib/tree/tree.variable.css +79 -2
  266. package/lib/tree/use-intersection-observer.d.ts +27 -0
  267. package/lib/tree/use-node-attribute.d.ts +9 -0
  268. package/lib/upload/index.d.ts +12 -0
  269. package/lib/upload/index.js +21 -30
  270. package/lib/upload/props.d.ts +3 -0
  271. package/lib/upload/upload-trigger.d.ts +6 -0
  272. package/lib/upload/upload.d.ts +6 -0
  273. package/lib/upload/upload.variable.css +3 -0
  274. package/lib/virtual-render/index.d.ts +36 -9
  275. package/lib/virtual-render/index.js +295 -80
  276. package/lib/virtual-render/props.d.ts +16 -0
  277. package/lib/virtual-render/use-fix-top.d.ts +2 -7
  278. package/lib/virtual-render/use-scrollbar.d.ts +24 -0
  279. package/lib/virtual-render/v-virtual-render.d.ts +2 -1
  280. package/lib/virtual-render/virtual-render.css +76 -2
  281. package/lib/virtual-render/virtual-render.d.ts +16 -3
  282. package/lib/virtual-render/virtual-render.less +3 -3
  283. package/lib/virtual-render/virtual-render.variable.css +79 -2
  284. package/package.json +1 -1
  285. package/lib/shared/mask.d.ts +0 -11
@@ -201,6 +201,7 @@ var useRadio = function useRadio() {
201
201
  var radioGroup = (0,external_vue_namespaceObject.inject)(radioGroupKey, shared_namespaceObject.EMPTY_OBJ);
202
202
  var isGroup = !(0,shared_namespaceObject.isEmptyObj)(radioGroup);
203
203
  var isChecked = (0,external_vue_namespaceObject.ref)(false);
204
+ var isPrechecking = (0,external_vue_namespaceObject.ref)(false);
204
205
  var size = (0,external_vue_namespaceObject.ref)('default');
205
206
  // 禁用状态
206
207
  var isDisabled = (0,external_vue_namespaceObject.computed)(function () {
@@ -237,23 +238,37 @@ var useRadio = function useRadio() {
237
238
  };
238
239
  // 值更新
239
240
  var handleChange = function handleChange(event) {
240
- if (isDisabled.value) {
241
+ var _radioGroup$props$bef, _beforeChangeFn;
242
+ if (isDisabled.value || isPrechecking.value) {
241
243
  return;
242
244
  }
243
245
  var $targetInput = event.target;
244
- isChecked.value = $targetInput.checked;
245
- var nextValue = isChecked.value ? props.label : '';
246
- emit('update:modelValue', nextValue);
247
- emit('change', nextValue);
248
- // 更新 radio-group
249
- if (isGroup) {
250
- radioGroup.handleChange(currentInstance.proxy);
251
- }
252
- (0,external_vue_namespaceObject.nextTick)(function () {
253
- // 选中状态保持同步
254
- if ($targetInput.checked !== isChecked.value) {
255
- $targetInput.checked = isChecked.value;
246
+ var newValue = $targetInput.checked;
247
+ var beforeChangeFn = (_radioGroup$props$bef = radioGroup === null || radioGroup === void 0 ? void 0 : radioGroup.props.beforeChange) !== null && _radioGroup$props$bef !== void 0 ? _radioGroup$props$bef : props.beforeChange;
248
+ var beforeChangeValue = (_beforeChangeFn = beforeChangeFn === null || beforeChangeFn === void 0 ? void 0 : beforeChangeFn(newValue, event, props)) !== null && _beforeChangeFn !== void 0 ? _beforeChangeFn : true;
249
+ Promise.resolve(beforeChangeValue).then(function (result) {
250
+ if (result) {
251
+ isChecked.value = $targetInput.checked;
252
+ var nextValue = isChecked.value ? props.label : '';
253
+ emit('update:modelValue', nextValue);
254
+ emit('change', nextValue);
255
+ // 更新 radio-group
256
+ if (isGroup) {
257
+ radioGroup.handleChange(currentInstance.proxy);
258
+ }
259
+ (0,external_vue_namespaceObject.nextTick)(function () {
260
+ // 选中状态保持同步
261
+ if ($targetInput.checked !== isChecked.value) {
262
+ $targetInput.checked = isChecked.value;
263
+ }
264
+ });
265
+ return Promise.resolve(true);
256
266
  }
267
+ return Promise.reject();
268
+ })["catch"](function () {
269
+ $targetInput.checked = isChecked.value;
270
+ })["finally"](function () {
271
+ isPrechecking.value = false;
257
272
  });
258
273
  };
259
274
  (0,external_vue_namespaceObject.onMounted)(function () {
@@ -309,10 +324,11 @@ var useRadio = function useRadio() {
309
324
 
310
325
  var radioProps = {
311
326
  name: shared_namespaceObject.PropTypes.string.def(''),
312
- label: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).isRequired,
313
- modelValue: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(''),
327
+ label: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).isRequired,
328
+ modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def(''),
314
329
  checked: shared_namespaceObject.PropTypes.bool.def(false),
315
- disabled: shared_namespaceObject.PropTypes.bool.def(false)
330
+ disabled: shared_namespaceObject.PropTypes.bool.def(false),
331
+ beforeChange: shared_namespaceObject.PropTypes.func
316
332
  };
317
333
  /* harmony default export */ const src_radio = ((0,external_vue_namespaceObject.defineComponent)({
318
334
  name: 'Radio',
@@ -414,11 +430,12 @@ var radioProps = {
414
430
 
415
431
  var radioButtonProps = {
416
432
  name: shared_namespaceObject.PropTypes.string.def(''),
417
- label: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).isRequired,
418
- modelValue: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]).def(''),
433
+ label: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).isRequired,
434
+ modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def(''),
419
435
  checked: shared_namespaceObject.PropTypes.bool.def(false),
420
436
  disabled: shared_namespaceObject.PropTypes.bool.def(false),
421
- size: shared_namespaceObject.PropTypes.size()
437
+ size: shared_namespaceObject.PropTypes.size(),
438
+ beforeChange: shared_namespaceObject.PropTypes.func
422
439
  };
423
440
  /* harmony default export */ const radio_button = ((0,external_vue_namespaceObject.defineComponent)({
424
441
  name: 'RadioButton',
@@ -518,11 +535,12 @@ var radioButtonProps = {
518
535
 
519
536
  var radioGroupProps = {
520
537
  name: shared_namespaceObject.PropTypes.string.def(''),
521
- modelValue: shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
538
+ modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]),
522
539
  disabled: shared_namespaceObject.PropTypes.bool,
523
540
  withValidate: shared_namespaceObject.PropTypes.bool.def(true),
524
541
  type: shared_namespaceObject.PropTypes.oneOf(['tab', 'capsule', 'card']).def('tab'),
525
- size: shared_namespaceObject.PropTypes.size()
542
+ size: shared_namespaceObject.PropTypes.size(),
543
+ beforeChange: shared_namespaceObject.PropTypes.func
526
544
  };
527
545
  /* harmony default export */ const radio_group = ((0,external_vue_namespaceObject.defineComponent)({
528
546
  name: 'RadioGroup',
@@ -22,6 +22,9 @@ declare const radioButtonProps: {
22
22
  default: boolean;
23
23
  };
24
24
  size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
25
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
26
+ default: (...args: any[]) => any;
27
+ };
25
28
  };
26
29
  export type RadioButtonProps = Readonly<ExtractPropTypes<typeof radioButtonProps>>;
27
30
  declare const _default: import("vue").DefineComponent<{
@@ -47,6 +50,9 @@ declare const _default: import("vue").DefineComponent<{
47
50
  default: boolean;
48
51
  };
49
52
  size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
53
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
54
+ default: (...args: any[]) => any;
55
+ };
50
56
  }, {
51
57
  isFocused: import("vue").Ref<boolean>;
52
58
  size: import("vue").Ref<string>;
@@ -83,6 +89,9 @@ declare const _default: import("vue").DefineComponent<{
83
89
  default: boolean;
84
90
  };
85
91
  size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
92
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
93
+ default: (...args: any[]) => any;
94
+ };
86
95
  }>> & {
87
96
  onChange?: (value: any) => any;
88
97
  "onUpdate:modelValue"?: (value: any) => any;
@@ -91,5 +100,6 @@ declare const _default: import("vue").DefineComponent<{
91
100
  disabled: boolean;
92
101
  modelValue: string | number | boolean;
93
102
  checked: boolean;
103
+ beforeChange: (...args: any[]) => any;
94
104
  }, {}>;
95
105
  export default _default;
@@ -18,6 +18,9 @@ declare const radioGroupProps: {
18
18
  default: string;
19
19
  };
20
20
  size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
21
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
22
+ default: (...args: any[]) => any;
23
+ };
21
24
  };
22
25
  export type RadioGroupProps = Readonly<ExtractPropTypes<typeof radioGroupProps>>;
23
26
  declare const _default: import("vue").DefineComponent<{
@@ -39,6 +42,9 @@ declare const _default: import("vue").DefineComponent<{
39
42
  default: string;
40
43
  };
41
44
  size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
45
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
46
+ default: (...args: any[]) => any;
47
+ };
42
48
  }, {
43
49
  resolveClassName: (cls: string) => string;
44
50
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -63,6 +69,9 @@ declare const _default: import("vue").DefineComponent<{
63
69
  default: string;
64
70
  };
65
71
  size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
72
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
73
+ default: (...args: any[]) => any;
74
+ };
66
75
  }>> & {
67
76
  onChange?: (value: any) => any;
68
77
  "onUpdate:modelValue"?: (value: any) => any;
@@ -71,5 +80,6 @@ declare const _default: import("vue").DefineComponent<{
71
80
  type: string;
72
81
  disabled: boolean;
73
82
  withValidate: boolean;
83
+ beforeChange: (...args: any[]) => any;
74
84
  }, {}>;
75
85
  export default _default;
@@ -21,6 +21,9 @@ declare const radioProps: {
21
21
  } & {
22
22
  default: boolean;
23
23
  };
24
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
25
+ default: (...args: any[]) => any;
26
+ };
24
27
  };
25
28
  export type RadioProps = Readonly<ExtractPropTypes<typeof radioProps>>;
26
29
  declare const _default: import("vue").DefineComponent<{
@@ -45,6 +48,9 @@ declare const _default: import("vue").DefineComponent<{
45
48
  } & {
46
49
  default: boolean;
47
50
  };
51
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
52
+ default: (...args: any[]) => any;
53
+ };
48
54
  }, {
49
55
  size: import("vue").Ref<string>;
50
56
  isFocused: import("vue").Ref<boolean>;
@@ -80,6 +86,9 @@ declare const _default: import("vue").DefineComponent<{
80
86
  } & {
81
87
  default: boolean;
82
88
  };
89
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
90
+ default: (...args: any[]) => any;
91
+ };
83
92
  }>> & {
84
93
  onChange?: (value: any) => any;
85
94
  "onUpdate:modelValue"?: (value: any) => any;
@@ -88,5 +97,6 @@ declare const _default: import("vue").DefineComponent<{
88
97
  disabled: boolean;
89
98
  modelValue: string | number | boolean;
90
99
  checked: boolean;
100
+ beforeChange: (...args: any[]) => any;
91
101
  }, {}>;
92
102
  export default _default;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-radio-group {
128
131
  display: inline-flex;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-rate {
128
131
  position: relative;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-rate-stars {
128
131
  padding: 0;
@@ -171,7 +171,7 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
171
171
  var asideStyle = (0,external_vue_namespaceObject.computed)(function () {
172
172
  var divide = initialDivide.value;
173
173
  if (typeof divide === 'number') {
174
- divide = "".concat(divide, "px");
174
+ divide = divide <= min.value ? "".concat(min.value, "px") : "".concat(divide, "px");
175
175
  }
176
176
  return _defineProperty({}, cssPropKey.value, divide);
177
177
  });
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-resize-layout {
128
131
  display: flex;
@@ -0,0 +1,15 @@
1
+ import BkScrollbarCore, { Options } from './scrollbar-core';
2
+ export default class BkScrollBar extends BkScrollbarCore {
3
+ static globalObserver: MutationObserver;
4
+ static instances: WeakMap<object, any>;
5
+ static removeObserver(): void;
6
+ constructor(...args: ConstructorParameters<typeof BkScrollbarCore>);
7
+ initDOM(): void;
8
+ unMount(): void;
9
+ scrollTo({ left, top }: {
10
+ left?: number;
11
+ top?: number;
12
+ }): void;
13
+ setOptions(options: Partial<Options>): void;
14
+ private createScrollElement;
15
+ }