bkui-vue 0.0.1-beta.17 → 0.0.1-beta.18

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 (78) hide show
  1. package/dist/bkui-vue.cjs.js +330 -28
  2. package/dist/bkui-vue.esm.js +329 -29
  3. package/dist/bkui-vue.umd.js +330 -28
  4. package/dist/style.css +182 -1
  5. package/lib/alert/alert.variable.css +1 -0
  6. package/lib/backtop/backtop.variable.css +1 -0
  7. package/lib/badge/badge.variable.css +1 -0
  8. package/lib/breadcrumb/breadcrumb.variable.css +1 -0
  9. package/lib/button/button.variable.css +1 -0
  10. package/lib/card/card.variable.css +1 -0
  11. package/lib/checkbox/checkbox.variable.css +1 -0
  12. package/lib/components.d.ts +1 -0
  13. package/lib/date-picker/date-picker.variable.css +1 -0
  14. package/lib/divider/divider.variable.css +1 -0
  15. package/lib/dropdown/dropdown.variable.css +1 -0
  16. package/lib/exception/exception.variable.css +1 -0
  17. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
  18. package/lib/form/form.d.ts +1 -1
  19. package/lib/form/index.d.ts +285 -3
  20. package/lib/form/index.js +1 -1
  21. package/lib/icon/angle-double-down-line.d.ts +4 -0
  22. package/lib/icon/angle-double-down-line.js +15 -0
  23. package/lib/icon/angle-double-left-line.d.ts +4 -0
  24. package/lib/icon/angle-double-left-line.js +15 -0
  25. package/lib/icon/angle-double-right-line.d.ts +4 -0
  26. package/lib/icon/angle-double-right-line.js +15 -0
  27. package/lib/icon/angle-double-up-line.d.ts +4 -0
  28. package/lib/icon/angle-double-up-line.js +15 -0
  29. package/lib/icon/ellipsis.d.ts +4 -0
  30. package/lib/icon/ellipsis.js +15 -0
  31. package/lib/icon/index.d.ts +7 -0
  32. package/lib/icon/index.js +1 -1
  33. package/lib/icon/left-shape.d.ts +4 -0
  34. package/lib/icon/left-shape.js +15 -0
  35. package/lib/icon/up-shape.d.ts +4 -0
  36. package/lib/icon/up-shape.js +15 -0
  37. package/lib/input/input.variable.css +1 -0
  38. package/lib/link/link.variable.css +1 -0
  39. package/lib/loading/loading.variable.css +1 -0
  40. package/lib/menu/menu.variable.css +1 -0
  41. package/lib/menu/submenu.variable.css +1 -0
  42. package/lib/message/message.variable.css +1 -0
  43. package/lib/navigation/navigation.variable.css +1 -0
  44. package/lib/notify/notify.variable.css +1 -0
  45. package/lib/pagination/index.d.ts +395 -0
  46. package/lib/pagination/index.js +1 -0
  47. package/lib/pagination/pagination.css +179 -0
  48. package/lib/pagination/pagination.d.ts +220 -0
  49. package/lib/pagination/pagination.less +201 -0
  50. package/lib/pagination/pagination.variable.css +272 -0
  51. package/lib/pagination/type.d.ts +6 -0
  52. package/lib/pagination/use-limit.d.ts +8 -0
  53. package/lib/pagination/use-list.d.ts +8 -0
  54. package/lib/pagination/use-small-list.d.ts +5 -0
  55. package/lib/pagination/use-total.d.ts +5 -0
  56. package/lib/popover/popover.css +1 -0
  57. package/lib/popover/popover.less +2 -0
  58. package/lib/popover/popover.variable.css +2 -0
  59. package/lib/process/process.variable.css +1 -0
  60. package/lib/progress/progress.variable.css +1 -0
  61. package/lib/radio/radio.variable.css +1 -0
  62. package/lib/select/select.css +2 -1
  63. package/lib/select/select.less +2 -1
  64. package/lib/select/select.variable.css +3 -1
  65. package/lib/shared/index.js +1 -1
  66. package/lib/sideslider/sideslider.variable.css +1 -0
  67. package/lib/slider/slider.variable.css +1 -0
  68. package/lib/steps/steps.variable.css +1 -0
  69. package/lib/styles/index.d.ts +1 -0
  70. package/lib/styles/index.js +1 -1
  71. package/lib/styles/themes/themes.less +1 -0
  72. package/lib/switcher/switcher.variable.css +1 -0
  73. package/lib/tab/tab.variable.css +1 -0
  74. package/lib/table/table.variable.css +1 -0
  75. package/lib/tag/tag.variable.css +1 -0
  76. package/lib/timeline/timeline.variable.css +1 -0
  77. package/lib/use-form.d.ts +3 -0
  78. package/package.json +1 -1
@@ -51,12 +51,12 @@ var link = ".bk-link {\n font-size: 14px;\n text-decoration: none;\n}\n.bk-lin
51
51
  var dropdown = ".bk-dropdown {\n display: inline-block;\n}\n.bk-dropdown .bk-dropdown-content {\n display: none;\n box-shadow: 0 2px 6px rgba(51, 60, 72, 0.1);\n}\n.bk-dropdown .bk-dropdown-content[data-show] {\n display: block;\n}\n.bk-dropdown-menu {\n min-width: 100%;\n padding: 5px 0;\n margin: 0;\n background: #fff;\n border: 1px solid #dcdee5;\n border-radius: 2px;\n box-sizing: border-box;\n}\n.bk-dropdown-menu::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.bk-dropdown-menu::-webkit-scrollbar-thumb {\n background: #dde4eb;\n border-radius: 20px;\n box-shadow: inset 0 0 6px hsla(0, 0%, 80%, 0.3);\n}\n.bk-dropdown-item {\n display: block;\n height: 32px;\n padding: 0 16px;\n font-size: 12px;\n line-height: 33px;\n color: #63656e;\n white-space: nowrap;\n list-style: none;\n cursor: pointer;\n}\n.bk-dropdown-item:hover {\n color: #3a84ff;\n background-color: #eaf3ff;\n}\n";
52
52
  var loading = "@keyframes loading-scale-animate {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.6);\n }\n}\n@keyframes fade {\n 100% {\n background-color: transparent;\n }\n}\n.bk-fade-transtion .bk-fade-enter-active,\n.bk-fade-transtion .bk-fade-leave-active {\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n}\n.bk-fade-transtion .bk-fade-enter,\n.bk-fade-transtion .bk-fade-leave-to {\n opacity: 0;\n}\n.bk-loading-wrapper {\n position: static;\n display: inline-block;\n font-size: 0;\n}\n.bk-loading-wrapper.bk-nested-loading {\n position: relative;\n}\n.bk-loading-wrapper.bk-nested-loading .bk-loading-indicator {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 4;\n transform: translate(-50%, -50%);\n}\n.bk-loading-wrapper .bk-loading-mask {\n opacity: 0.5;\n}\n.bk-loading-wrapper .bk-loading-mask::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 10;\n width: 100%;\n height: 100%;\n background-color: rgba(255, 255, 255, 0.9);\n content: '';\n}\n.bk-loading-wrapper .bk-loading-indicator {\n font-size: 14px;\n}\n.bk-loading-wrapper .bk-loading-indicator .dot-1 {\n background-color: #ea3636;\n animation-delay: 0.1s;\n}\n.bk-loading-wrapper .bk-loading-indicator .dot-2 {\n background-color: #ff9c01;\n animation-delay: 0.25s;\n}\n.bk-loading-wrapper .bk-loading-indicator .dot-3 {\n background-color: #2dcb56;\n animation-delay: 0.4s;\n}\n.bk-loading-wrapper .bk-loading-indicator .dot-4 {\n background-color: #3a84ff;\n animation-delay: 0.55s;\n margin-right: 0;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-1 {\n transform: rotate(-135deg);\n animation-delay: 0.6s;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-2 {\n transform: rotate(-90deg);\n animation-delay: 0.75s;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-3 {\n transform: rotate(-45deg);\n animation-delay: 0.9s;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-4 {\n transform: rotate(0deg);\n animation-delay: 1.05s;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-5 {\n transform: rotate(45deg);\n animation-delay: 1.2s;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-6 {\n transform: rotate(90deg);\n animation-delay: 1.35s;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-7 {\n transform: rotate(135deg);\n animation-delay: 1.5s;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval-8 {\n transform: rotate(180deg);\n animation-delay: 1.65s;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .oval,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot1,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot2,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot3,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot4 {\n background-color: #2dcb56;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .oval,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot1,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot2,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot3,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot4 {\n background-color: #ea3636;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .oval,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot1,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot2,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot3,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot4 {\n background-color: #ff9c01;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .oval,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot1,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot2,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot3,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot4 {\n background-color: #3a84ff;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .oval,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot1,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot2,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot3,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot4 {\n background-color: white;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .oval,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot1,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot2,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot3,\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot4 {\n background-color: #c4c6cc;\n}\n.bk-loading-wrapper .bk-loading-indicator .bk-spin-indicator {\n height: 40px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .bk-spin-indicator {\n height: 22px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .dot {\n width: 6px;\n height: 6px;\n margin-right: 6px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .dot.dot-4 {\n margin-right: 0;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .oval {\n width: 4px;\n height: 5px;\n border-radius: 5px;\n transform-origin: center 11px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .bk-loading-title {\n font-size: 12px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .bk-spin-indicator {\n height: 52px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .dot {\n width: 20px;\n height: 20px;\n margin-right: 12px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .dot.dot-4 {\n margin-right: 0;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .oval {\n width: 8px;\n height: 12px;\n border-radius: 12px;\n transform-origin: center 26px;\n}\n.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .bk-loading-title {\n font-size: 14px;\n}\n.bk-loading-wrapper .bk-loading-indicator .bk-loading-title {\n margin-top: 8px;\n font-size: 14px;\n line-height: normal;\n color: #63656e;\n text-align: center;\n}\n.bk-loading-wrapper .bk-loading-indicator .dot {\n display: inline-block;\n width: 14px;\n height: 14px;\n margin-right: 10px;\n border-radius: 50%;\n transform: scale(0.6);\n animation-duration: 0.8s;\n animation-iteration-count: infinite;\n animation-name: loading-scale-animate;\n animation-direction: normal;\n}\n.bk-loading-wrapper .bk-loading-indicator .oval {\n position: absolute;\n width: 6px;\n height: 8px;\n background-color: #63656e;\n border-radius: 8px;\n animation-duration: 1.2s;\n animation-iteration-count: infinite;\n animation-name: fade;\n transform-origin: center 20px;\n animation-direction: normal;\n}\n";
53
53
  var modal = ".bk-modal-wrapper {\n position: absolute;\n top: 50%;\n left: 50%;\n background: #fff;\n transform: translate(-50%, -50%);\n}\n.bk-modal-wrapper .bk-modal-body {\n height: 100%;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n}\n";
54
- var popover = ".bk-popover .bk-popover-reference {\n display: inline-block;\n}\n.bk-popover .fade-in-enter-active,\n.bk-popover .fade-in-linear-leave-active {\n transition: opacity 200ms linear;\n}\n.bk-popover .fade-in-enter,\n.bk-popover .fade-in-leave,\n.bk-popover .fade-in-leave-active {\n opacity: 0;\n}\n.bk-popover-content {\n display: none;\n padding: 7px 14px;\n font-size: 12px;\n color: #fff;\n background: #26323d;\n border-radius: 4px;\n box-sizing: border-box;\n}\n.bk-popover-content[data-theme^='dark'] {\n color: #fff;\n background: #26323d;\n}\n.bk-popover-content[data-theme^='light'] {\n color: #26323d;\n background-color: #fff;\n box-shadow: 0 0 6px 0 #dcdee5;\n}\n.bk-popover-content[data-theme^='light'][data-show] {\n box-shadow: 0 0 6px 0 #dcdee5;\n}\n.bk-popover-content[data-show] {\n display: block;\n}\n.bk-popover-content .arrow {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n visibility: hidden;\n}\n.bk-popover-content .arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n content: '';\n visibility: visible;\n transform: rotate(45deg);\n}\n.bk-popover-content[data-popper-placement^='top'] > .arrow {\n bottom: -4px;\n}\n.bk-popover-content[data-popper-placement^='bottom'] > .arrow {\n top: -4px;\n}\n.bk-popover-content[data-popper-placement^='left'] > .arrow {\n right: -4px;\n}\n.bk-popover-content[data-popper-placement^='right'] > .arrow {\n left: -4px;\n}\n";
54
+ var popover = ".bk-popover .bk-popover-reference {\n display: inline-block;\n}\n.bk-popover .fade-in-enter-active,\n.bk-popover .fade-in-linear-leave-active {\n transition: opacity 200ms linear;\n}\n.bk-popover .fade-in-enter,\n.bk-popover .fade-in-leave,\n.bk-popover .fade-in-leave-active {\n opacity: 0;\n}\n.bk-popover-content {\n display: none;\n padding: 7px 14px;\n font-size: 12px;\n color: #fff;\n background: #26323d;\n border-radius: 4px;\n box-sizing: border-box;\n}\n.bk-popover-content[data-theme^='dark'] {\n color: #fff;\n background: #26323d;\n}\n.bk-popover-content[data-theme^='light'] {\n color: #26323d;\n background-color: #fff;\n box-shadow: 0 0 6px 0 #dcdee5;\n}\n.bk-popover-content[data-theme^='light'][data-show] {\n box-shadow: 0 0 6px 0 #dcdee5;\n}\n.bk-popover-content[data-show] {\n display: block;\n}\n.bk-popover-content .arrow {\n position: absolute;\n z-index: -1;\n width: 8px;\n height: 8px;\n background: inherit;\n visibility: hidden;\n}\n.bk-popover-content .arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n content: '';\n visibility: visible;\n transform: rotate(45deg);\n}\n.bk-popover-content[data-popper-placement^='top'] > .arrow {\n bottom: -4px;\n}\n.bk-popover-content[data-popper-placement^='bottom'] > .arrow {\n top: -4px;\n}\n.bk-popover-content[data-popper-placement^='left'] > .arrow {\n right: -4px;\n}\n.bk-popover-content[data-popper-placement^='right'] > .arrow {\n left: -4px;\n}\n";
55
55
  var progress = "@keyframes loading-scale-animate {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.6);\n }\n}\n@keyframes fade {\n 100% {\n background-color: transparent;\n }\n}\n.bk-fade-transtion .bk-fade-enter-active,\n.bk-fade-transtion .bk-fade-leave-active {\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n}\n.bk-fade-transtion .bk-fade-enter,\n.bk-fade-transtion .bk-fade-leave-to {\n opacity: 0;\n}\n.bk-progress {\n display: inline-block;\n}\n.bk-progress .progress-outer {\n display: flex;\n width: 100%;\n align-items: center;\n}\n.bk-progress .progress-bar {\n position: relative;\n width: 100%;\n height: 4px;\n text-align: center;\n vertical-align: middle;\n background: #f0f1f5;\n border-radius: 50px;\n}\n.bk-progress .progress-bar.bk-progress-small {\n height: 2px;\n}\n.bk-progress .progress-bar.bk-progress-normal {\n height: 4px;\n}\n.bk-progress .progress-bar.bk-progress-large {\n height: 12px;\n}\n.bk-progress .progress-inner {\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n border-radius: 50px;\n transition: width 0.5s ease;\n}\n.bk-progress .progress-inner.bk-primary {\n background: #3a84ff;\n}\n.bk-progress .progress-inner.bk-success {\n background: #2dcb56;\n}\n.bk-progress .progress-inner.bk-warning {\n background: #ff9c01;\n}\n.bk-progress .progress-inner.bk-danger {\n background: #ea3636;\n}\n.bk-progress .inner-text {\n width: 100%;\n height: 100%;\n color: #fff;\n text-align: center;\n}\n.bk-progress .progress-text {\n width: 7%;\n text-align: center;\n}\n.bk-progress .progress-circle-text {\n position: absolute;\n top: 50%;\n left: 0;\n width: 100%;\n margin: 0;\n text-align: center;\n transform: translateY(-50%);\n}\n.bk-progress-line {\n width: 100%;\n}\n.bk-progress-circle,\n.bk-progress-dashboard {\n position: relative;\n}\n";
56
56
  var radio = ".bk-radio {\n display: inline-block;\n margin-right: 30px;\n font-size: 12px;\n font-weight: normal;\n line-height: 1;\n letter-spacing: normal;\n color: #63656e;\n white-space: nowrap;\n cursor: pointer;\n outline: none;\n user-select: none;\n}\n.bk-radio:last-child {\n margin-right: 0;\n}\n.bk-radio.is-checked .bk-radio-input {\n padding: 3px;\n color: #3a84ff;\n background-color: #3a84ff;\n border-color: #3a84ff;\n}\n.bk-radio.is-disabled {\n color: #dcdee5;\n cursor: not-allowed;\n}\n.bk-radio.is-disabled.is-checked .bk-radio-input {\n background-color: #dcdee5;\n}\n.bk-radio.is-disabled .bk-radio-input {\n cursor: not-allowed;\n border-color: #dcdee5;\n}\n.bk-radio.is-disabled .bk-radio-text {\n cursor: not-allowed;\n}\n.bk-radio.is-focus .bk-radio-input {\n border-color: #3a84ff;\n}\n.bk-radio .bk-radio-text {\n font-size: 12px;\n font-style: normal;\n font-weight: normal;\n color: #63656e;\n vertical-align: middle;\n cursor: pointer;\n}\n.bk-radio .bk-radio-input {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n margin: 0 5px 0 0;\n color: #fff;\n vertical-align: middle;\n cursor: pointer;\n background-color: #fff;\n border: 1px solid #63656e;\n border-radius: 50%;\n outline: none;\n visibility: visible;\n transition: all 0.3s;\n background-clip: content-box;\n appearance: none;\n}\n.bk-radio-button {\n position: relative;\n z-index: 1;\n display: inline-block;\n font-size: 0;\n font-weight: normal;\n line-height: 1;\n letter-spacing: normal;\n color: #63656e;\n white-space: nowrap;\n cursor: pointer;\n outline: none;\n opacity: 1;\n user-select: none;\n}\n.bk-radio-button:nth-child(n+2) {\n margin-left: -1px;\n}\n.bk-radio-button:first-child .bk-radio-button-text {\n border-bottom-left-radius: 2px;\n border-top-left-radius: 2px;\n}\n.bk-radio-button:last-child .bk-radio-button-text {\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.bk-radio-button.is-checked {\n z-index: 2;\n}\n.bk-radio-button.is-checked .bk-radio-button-text {\n color: #fff;\n background: #3a84ff;\n border-color: #3a84ff;\n}\n.bk-radio-button.is-disabled {\n z-index: 0;\n color: #dcdee5;\n cursor: not-allowed;\n}\n.bk-radio-button.is-disabled .bk-radio-button-text {\n cursor: not-allowed;\n background: #dcdee5;\n border-color: #dcdee5;\n}\n.bk-radio-button.is-focus .bk-radio-button-text {\n border-color: #3a84ff;\n}\n.bk-radio-button .bk-radio-button-input {\n position: absolute;\n z-index: -1;\n outline: none;\n opacity: 0;\n}\n.bk-radio-button .bk-radio-button-text {\n height: 32px;\n padding: 0 18px;\n font-size: 12px;\n font-style: normal;\n font-weight: normal;\n line-height: 32px;\n color: #63656e;\n text-align: center;\n vertical-align: middle;\n cursor: pointer;\n border: 1px solid #63656e;\n transition: all 0.3s;\n}\n.bk-radio-group {\n display: inline-block;\n font-size: 0;\n line-height: 0;\n letter-spacing: normal;\n}\n";
57
57
  var rate = ".bk-rate {\n position: relative;\n}\n.bk-rate .bk-score-real {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n overflow: hidden;\n}\n";
58
58
  var star$1 = ".bk-rate-stars {\n padding: 0;\n margin: 0;\n}\n.bk-rate-stars .bk-is-edit {\n cursor: pointer;\n}\n.bk-rate-stars:after {\n display: table;\n clear: both;\n content: '';\n}\n.bk-rate-stars .bk-rate-star {\n float: left;\n margin-right: 3px;\n enable-background: new 0 0 64 64;\n fill: #c5c7d1;\n}\n.bk-rate-stars .bk-rate-star.bk-is-select {\n fill: #ffb848;\n}\n.bk-rate-stars .bk-rate-star:last-child {\n margin-right: 0;\n}\n";
59
- var select = ".bk-select {\n display: inline-block;\n}\n.bk-select ul {\n padding: 0;\n margin: 0;\n font-weight: normal;\n list-style: none;\n}\n.bk-select .bk-popover-content {\n padding: 0;\n}\n.bk-select.is-focus .bk-select-trigger .bk-select-input {\n border-color: #3a84ff;\n box-shadow: 0px 0px 3px 0px #a3c5fd;\n}\n.bk-select.is-disabled .bk-select-trigger .bk-select-input {\n cursor: not-allowed;\n background: #fafbfd;\n border-color: #dcdee5;\n box-shadow: unset;\n}\n.bk-select.popover-show .bk-select-trigger .angle-up {\n transform: rotate(0);\n}\n.bk-select .bk-select-trigger {\n position: relative;\n cursor: pointer;\n}\n.bk-select .bk-select-trigger .bk-select-input {\n height: 32px;\n padding: 0 28px 0 10px;\n font-size: 12px;\n line-height: normal;\n color: #63656e;\n text-align: left;\n vertical-align: middle;\n cursor: pointer;\n background-color: white;\n border: 1px solid #c4c6cc;\n border-radius: 2px;\n outline: none;\n box-sizing: border-box;\n transition: all 0.1s;\n resize: none;\n}\n.bk-select .bk-select-trigger .bk-select-input::placeholder {\n color: #c4c6cc;\n}\n.bk-select .bk-select-trigger .bk-select-prefix {\n position: absolute;\n top: 6px;\n left: 4px;\n font-size: 14px;\n}\n.bk-select .bk-select-trigger .angle-up {\n transform: rotate(180deg);\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n font-size: 20px;\n color: #979ba5;\n position: absolute;\n top: 6px;\n right: 4px;\n}\n.bk-select .bk-select-trigger .clear-icon {\n transition: all 0.1s;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n font-size: 14px;\n color: #c4c6cc;\n position: absolute;\n top: 6px;\n right: 4px;\n}\n.bk-select .bk-select-trigger .clear-icon:hover {\n color: #979ba5;\n}\n.bk-select .bk-select-trigger .spinner {\n position: absolute;\n top: 6px;\n right: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n font-size: 16px;\n color: #3A84FF;\n}\n.bk-select .bk-select-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 56px;\n color: #63656e;\n}\n.bk-select .bk-select-empty .spinner {\n display: flex;\n width: 14px;\n height: 14px;\n margin-right: 4px;\n font-size: 14px;\n color: #c4c6cc;\n align-items: center;\n justify-content: center;\n}\n.bk-select .bk-select-dropdown {\n overflow: auto;\n}\n.bk-select .bk-select-dropdown .bk-select-search {\n position: relative;\n padding: 0 5px;\n}\n.bk-select .bk-select-dropdown .bk-select-search-icon {\n position: absolute;\n top: 50%;\n left: 8px;\n font-size: 16px;\n color: #979ba5;\n transform: translateY(-50%);\n}\n.bk-select .bk-select-dropdown .bk-select-search-input {\n width: 100%;\n height: 32px;\n padding: 0 10px 0 26px;\n font-size: 12px;\n cursor: text;\n border: none;\n border-bottom: 1px solid #dcdee5;\n outline: 0;\n}\n.bk-select .bk-select-extension {\n display: flex;\n height: 40px;\n background-color: #fafbfd;\n align-items: center;\n}\n.bk-select .bk-select-options {\n padding: 8px 0;\n}\n.bk-select .bk-select-option {\n position: relative;\n height: 32px;\n padding: 0 20px 0 12px;\n line-height: 32px;\n color: #63656e;\n text-align: left;\n cursor: pointer;\n user-select: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bk-select .bk-select-option:hover {\n color: #3a84ff;\n background-color: #f5f7fa;\n}\n.bk-select .bk-select-option.is-selected {\n color: #3a84ff;\n}\n.bk-select .bk-select-option.is-selected.is-multiple::after {\n position: absolute;\n right: 12px;\n font-size: 12px;\n font-weight: 700;\n content: '\\2713';\n}\n.bk-select .bk-select-option.is-disabled {\n color: #c4c6cc;\n cursor: not-allowed;\n background-color: transparent;\n}\n.bk-select .bk-option-group-label {\n height: 32px;\n padding: 0 8px;\n line-height: 32px;\n color: #979ba5;\n text-align: left;\n}\n.bk-select .bk-option-group-label.collapsible {\n cursor: pointer;\n}\n.bk-select .bk-option-group.collapsible .bk-select-option {\n padding-left: 40px;\n}\n.bk-select .bk-option-group .default-group-label {\n display: flex;\n user-select: none;\n align-items: center;\n}\n.bk-select .bk-option-group .default-group-label-icon {\n display: flex;\n width: 12px;\n height: 12px;\n margin-right: 8px;\n font-size: 12px;\n transition: all 0.1s;\n align-items: center;\n justify-content: center;\n}\n.bk-select .bk-option-group .default-group-label-icon.collapse {\n transform: rotate(-90deg);\n}\n.bk-select .bk-option-group .bk-select-option {\n padding-left: 24px;\n}\n";
59
+ var select = ".bk-select {\n display: inline-block;\n}\n.bk-select ul {\n padding: 0;\n margin: 0;\n font-weight: normal;\n list-style: none;\n}\n.bk-select .bk-popover-content {\n padding: 0;\n}\n.bk-select.is-focus .bk-select-trigger .bk-select-input {\n border-color: #3a84ff;\n box-shadow: 0px 0px 3px 0px #a3c5fd;\n}\n.bk-select.is-disabled .bk-select-trigger .bk-select-input {\n cursor: not-allowed;\n background: #fafbfd;\n border-color: #dcdee5;\n box-shadow: unset;\n}\n.bk-select.popover-show .bk-select-trigger .angle-up {\n transform: rotate(0);\n}\n.bk-select .bk-select-trigger {\n position: relative;\n cursor: pointer;\n}\n.bk-select .bk-select-trigger .bk-select-input {\n width: 100%;\n height: 32px;\n padding: 0 28px 0 10px;\n font-size: 12px;\n line-height: normal;\n color: #63656e;\n text-align: left;\n vertical-align: middle;\n cursor: pointer;\n background-color: white;\n border: 1px solid #c4c6cc;\n border-radius: 2px;\n outline: none;\n box-sizing: border-box;\n transition: all 0.1s;\n resize: none;\n}\n.bk-select .bk-select-trigger .bk-select-input::placeholder {\n color: #c4c6cc;\n}\n.bk-select .bk-select-trigger .bk-select-prefix {\n position: absolute;\n top: 6px;\n left: 4px;\n font-size: 14px;\n}\n.bk-select .bk-select-trigger .angle-up {\n transform: rotate(180deg);\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n font-size: 20px;\n color: #979ba5;\n position: absolute;\n top: 6px;\n right: 4px;\n}\n.bk-select .bk-select-trigger .clear-icon {\n transition: all 0.1s;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n font-size: 14px;\n color: #c4c6cc;\n position: absolute;\n top: 6px;\n right: 4px;\n}\n.bk-select .bk-select-trigger .clear-icon:hover {\n color: #979ba5;\n}\n.bk-select .bk-select-trigger .spinner {\n position: absolute;\n top: 6px;\n right: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n font-size: 16px;\n color: #3A84FF;\n}\n.bk-select .bk-select-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 56px;\n color: #63656e;\n}\n.bk-select .bk-select-empty .spinner {\n display: flex;\n width: 14px;\n height: 14px;\n margin-right: 4px;\n font-size: 14px;\n color: #c4c6cc;\n align-items: center;\n justify-content: center;\n}\n.bk-select .bk-select-dropdown {\n overflow: auto;\n}\n.bk-select .bk-select-dropdown .bk-select-search {\n position: relative;\n padding: 0 5px;\n}\n.bk-select .bk-select-dropdown .bk-select-search-icon {\n position: absolute;\n top: 50%;\n left: 8px;\n font-size: 16px;\n color: #979ba5;\n transform: translateY(-50%);\n}\n.bk-select .bk-select-dropdown .bk-select-search-input {\n width: 100%;\n height: 32px;\n padding: 0 10px 0 26px;\n font-size: 12px;\n cursor: text;\n border: none;\n border-bottom: 1px solid #dcdee5;\n outline: 0;\n}\n.bk-select .bk-select-extension {\n display: flex;\n height: 40px;\n background-color: #fafbfd;\n align-items: center;\n}\n.bk-select .bk-select-options {\n padding: 8px 0;\n}\n.bk-select .bk-select-option {\n position: relative;\n height: 32px;\n padding: 0 12px;\n line-height: 32px;\n color: #63656e;\n text-align: left;\n cursor: pointer;\n user-select: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bk-select .bk-select-option:hover {\n color: #3a84ff;\n background-color: #f5f7fa;\n}\n.bk-select .bk-select-option.is-selected {\n color: #3a84ff;\n}\n.bk-select .bk-select-option.is-selected.is-multiple::after {\n position: absolute;\n right: 12px;\n font-size: 12px;\n font-weight: 700;\n content: '\\2713';\n}\n.bk-select .bk-select-option.is-disabled {\n color: #c4c6cc;\n cursor: not-allowed;\n background-color: transparent;\n}\n.bk-select .bk-option-group-label {\n height: 32px;\n padding: 0 8px;\n line-height: 32px;\n color: #979ba5;\n text-align: left;\n}\n.bk-select .bk-option-group-label.collapsible {\n cursor: pointer;\n}\n.bk-select .bk-option-group.collapsible .bk-select-option {\n padding-left: 40px;\n}\n.bk-select .bk-option-group .default-group-label {\n display: flex;\n user-select: none;\n align-items: center;\n}\n.bk-select .bk-option-group .default-group-label-icon {\n display: flex;\n width: 12px;\n height: 12px;\n margin-right: 8px;\n font-size: 12px;\n transition: all 0.1s;\n align-items: center;\n justify-content: center;\n}\n.bk-select .bk-option-group .default-group-label-icon.collapse {\n transform: rotate(-90deg);\n}\n.bk-select .bk-option-group .bk-select-option {\n padding-left: 24px;\n}\n";
60
60
  var sideslider = ".bk-modal-wrapper.bk-sideslider-wrapper {\n position: fixed;\n top: 0;\n bottom: 0;\n left: auto;\n background: #fff;\n transform: initial;\n box-shadow: -5px 0 8px -5px rgba(0, 0, 0, 0.2);\n}\n.bk-modal-wrapper.bk-sideslider-wrapper.scroll-able .bk-modal-content {\n overflow: auto;\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header {\n width: 100%;\n height: 60px;\n background: #fff;\n border-bottom: 1px solid #dcdee5;\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-close {\n position: absolute;\n top: 0;\n width: 30px;\n height: 60px;\n font-size: 24px;\n line-height: 60px;\n color: #fff;\n text-align: center;\n cursor: pointer;\n background-color: #3a84ff;\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-close.right {\n left: 0;\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-close.right::before {\n top: 50%;\n left: 50%;\n display: inline-block;\n width: 8px;\n height: 8px;\n border-top: solid 2px #fff;\n border-right: solid 2px #fff;\n content: '';\n transform: translate(-50%, -50%) rotate(45deg);\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-close.left {\n right: 0;\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-close.left::before {\n top: 50%;\n left: 50%;\n display: inline-block;\n width: 8px;\n height: 8px;\n border-top: solid 2px #fff;\n border-left: solid 2px #fff;\n content: '';\n transform: translate(50%, -50%) rotate(-45deg);\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-title {\n height: 60px;\n padding-left: 30px;\n font-size: 16px;\n font-weight: 700;\n line-height: 60px;\n color: #666;\n}\n.bk-modal-wrapper.bk-sideslider-wrapper .bk-sideslider-header .bk-sideslider-title.right {\n padding: 0px 0px 0px 50px;\n}\n";
61
61
  var switcher = "@keyframes loading-scale-animate {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.6);\n }\n}\n@keyframes fade {\n 100% {\n background-color: transparent;\n }\n}\n.bk-fade-transtion .bk-fade-enter-active,\n.bk-fade-transtion .bk-fade-leave-active {\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n}\n.bk-fade-transtion .bk-fade-enter,\n.bk-fade-transtion .bk-fade-leave-to {\n opacity: 0;\n}\n.bk-switcher {\n position: relative;\n display: inline-block;\n height: 20px;\n /* \u9ED8\u8BA4\u5C3A\u5BF8 */\n min-width: 36px;\n padding: 0;\n margin: 0;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n vertical-align: middle;\n list-style: none;\n cursor: pointer;\n background-color: #c4c6cc;\n border: 1px solid transparent;\n border-radius: 50px;\n border-radius: 100px;\n box-sizing: border-box;\n transition: all 0.4s ease;\n transition: all 0.36s;\n user-select: none;\n /* \u663E\u793A\u6587\u672C\u65F6\u56FA\u5B9A\u5C3A\u5BF8 */\n}\n.bk-switcher:after {\n position: absolute;\n top: 1px;\n left: 1px;\n width: 16px;\n height: 16px;\n cursor: pointer;\n background: #fff;\n background-color: #fff;\n border-radius: 18px;\n content: ' ';\n transition: all 0.3s ease;\n}\n.bk-switcher .switcher-text {\n display: block;\n margin-right: 6px;\n margin-left: 28px;\n font-size: 12px;\n font-weight: 400;\n color: #fff;\n text-align: center;\n transition: all 0.3s ease;\n}\n.bk-switcher .animating-node {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n pointer-events: none;\n border-radius: inherit;\n content: '';\n opacity: 0.2;\n box-shadow: 0 0 0 0 #1890ff;\n animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);\n animation-fill-mode: forwards;\n}\n.bk-switcher .bk-switcher-loading {\n position: absolute;\n top: 1px;\n left: 1px;\n z-index: 1;\n width: 16px;\n height: 16px;\n font-size: 12px;\n color: #c4c6cc;\n cursor: pointer;\n background: transparent;\n border-radius: 16px;\n content: ' ';\n transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.bk-switcher .bk-switcher-loading svg {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n animation: loading 1s linear infinite;\n}\n.bk-switcher.is-loading {\n cursor: defalt;\n}\n.bk-switcher.is-loading input[type=checkbox] {\n cursor: default;\n}\n.bk-switcher.show-label {\n height: 28px;\n min-width: 60px;\n line-height: 28px;\n}\n.bk-switcher.show-label::after {\n width: 24px;\n height: 24px;\n}\n.bk-switcher.show-label .bk-switcher-loading {\n width: 24px;\n height: 24px;\n font-size: 20px;\n}\n.bk-switcher.show-label.is-checked .bk-switcher-loading {\n left: 100%;\n margin-left: -25px;\n}\n.bk-switcher.is-disabled {\n cursor: not-allowed;\n opacity: 0.3;\n}\n.bk-switcher.is-disabled .bk-switcher-loading {\n cursor: not-allowed;\n}\n.bk-switcher.is-disabled::after {\n cursor: not-allowed;\n}\n.bk-switcher.is-checked {\n background: #2dcb56;\n}\n.bk-switcher.is-checked .bk-switcher-loading svg {\n color: #2dcb56;\n}\n.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary {\n background: #3a84ff;\n}\n.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary .bk-switcher-loading svg {\n color: #3a84ff;\n}\n.bk-switcher.is-checked:after {\n left: 100%;\n margin-left: -1px;\n transform: translateX(-100%);\n}\n.bk-switcher.is-checked .switcher-text {\n margin-right: 28px;\n margin-left: 6px;\n}\n.bk-switcher:not(.show-label).is-checked .bk-switcher-loading {\n left: 100%;\n margin-left: -17px;\n}\n.bk-switcher.bk-switcher-outline {\n background: #fff;\n border: 1px solid #c4c6cc;\n}\n.bk-switcher.bk-switcher-outline:after {\n width: 24px;\n height: 24px;\n background-color: #c4c6cc;\n box-shadow: none;\n}\n.bk-switcher.bk-switcher-outline .switcher-text {\n color: #c4c6cc;\n}\n.bk-switcher.bk-switcher-outline.is-checked {\n border: 1px solid #2dcb56;\n}\n.bk-switcher.bk-switcher-outline.is-checked:after {\n background-color: #2dcb56;\n}\n.bk-switcher.bk-switcher-outline.is-checked .switcher-text {\n color: #2dcb56;\n}\n.bk-switcher.bk-switcher-outline .bk-switcher-loading svg {\n color: #fff;\n}\n.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked {\n border: 1px solid #3a84ff;\n}\n.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked:after {\n background: #3a84ff;\n}\n.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked .switcher-text {\n color: #3a84ff;\n}\n.bk-switcher.bk-switcher-square {\n border-radius: 2px;\n}\n.bk-switcher.bk-switcher-square:after {\n border-radius: 2px;\n}\n.bk-switcher.bk-switcher-large {\n height: 24px;\n min-width: 42px;\n line-height: 22px;\n}\n.bk-switcher.bk-switcher-large:after {\n width: 20px;\n height: 20px;\n}\n.bk-switcher.bk-switcher-large .bk-switcher-loading {\n width: 20px;\n height: 20px;\n font-size: 16px;\n}\n.bk-switcher.bk-switcher-large.is-checked .bk-switcher-loading {\n margin-left: -21px;\n}\n.bk-switcher.bk-switcher-small {\n height: 16px;\n min-width: 26px;\n line-height: 22px;\n}\n.bk-switcher.bk-switcher-small:after {\n width: 12px;\n height: 12px;\n}\n.bk-switcher.bk-switcher-small .bk-switcher-loading {\n width: 12px;\n height: 12px;\n font-weight: 700;\n transform: scale(0.66667);\n}\n.bk-switcher.bk-switcher-small.is-checked .bk-switcher-loading {\n margin-left: -13px;\n}\n:not(.show-label).bk-switcher-nomal.bk-switcher-outline::after {\n width: 16px;\n height: 16px;\n}\n:not(.show-label).bk-switcher-outline.is-checked.bk-switcher-small::after {\n width: 12px;\n height: 12px;\n}\n:not(.show-label).bk-switcher-outline.is-checked.bk-switcher-large::after {\n width: 20px;\n height: 20px;\n}\n:not(.show-label).bk-switcher-outline.is-checked::after {\n width: 16px;\n height: 16px;\n}\n@keyframes fadeEffect {\n 100% {\n opacity: 0;\n }\n}\n@keyframes waveEffect {\n 100% {\n box-shadow: 0 0 0 #1890ff;\n }\n}\n@keyframes loading {\n 100% {\n transform: rotate(1turn);\n }\n}\n";
62
62
  var table = ".bk-table {\n overflow: auto;\n border-top: 1px solid #dcdee5;\n border-bottom: 1px solid #dcdee5;\n}\n.bk-table .bk-table-head,\n.bk-table .bk-table-body {\n background: white;\n}\n.bk-table .bk-table-head table,\n.bk-table .bk-table-body table {\n width: 100%;\n border-collapse: collapse;\n}\n.bk-table .bk-table-head table th,\n.bk-table .bk-table-body table th,\n.bk-table .bk-table-head table td,\n.bk-table .bk-table-body table td {\n min-width: 80px;\n}\n.bk-table .bk-table-head table th .cell,\n.bk-table .bk-table-body table th .cell,\n.bk-table .bk-table-head table td .cell,\n.bk-table .bk-table-body table td .cell {\n height: var(--row-height);\n padding: 0 15px;\n overflow: hidden;\n line-height: var(--row-height);\n color: #575961;\n text-align: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bk-table .bk-table-head table thead th,\n.bk-table .bk-table-body table thead th {\n position: sticky;\n top: 0;\n z-index: 1;\n color: #313238;\n background-color: #fafbfd;\n}\n.bk-table .bk-table-head table thead th.active,\n.bk-table .bk-table-body table thead th.active,\n.bk-table .bk-table-head table thead th:hover,\n.bk-table .bk-table-body table thead th:hover {\n background: #f0f1f5;\n}\n.bk-table .bk-table-head table tbody tr:hover td,\n.bk-table .bk-table-body table tbody tr:hover td {\n background: #f5f7fa;\n}\n.bk-table.bordered-row .cell {\n border-bottom: 1px solid #dcdee5;\n}\n.bk-table.bordered-outer {\n border-right: 1px solid #dcdee5;\n border-left: 1px solid #dcdee5;\n}\n.bk-table.bordered-col th .cell,\n.bk-table.bordered-col td .cell {\n border-right: 1px solid #dcdee5;\n}\n.bk-table.bordered-col th:last-child .cell,\n.bk-table.bordered-col td:last-child .cell {\n border-right: none;\n}\n.bk-table.bordered-none th .cell,\n.bk-table.bordered-none td .cell {\n border-top: none;\n border-right: none;\n border-bottom: none;\n border-left: none;\n}\n.bk-table .bk-table-fixed {\n width: 100%;\n}\n.bk-table colgroup col {\n background: white;\n}\n.bk-table colgroup col.active {\n position: relative;\n background: #f0f1f5;\n}\n";
@@ -74,6 +74,7 @@ var divider = ".bk-divider {\n position: relative;\n background: #c4c6cc;\n}\n
74
74
  var tab = ".bk-tab {\n position: relative;\n display: flex;\n width: 100%;\n}\n.bk-tab--top {\n flex-direction: column;\n}\n.bk-tab--right {\n flex-direction: row-reverse;\n}\n.bk-tab-header {\n display: flex;\n color: #63656e;\n}\n.bk-tab-header > div {\n display: flex;\n margin-bottom: -1px;\n flex-wrap: nowrap;\n}\n.bk-tab--card .bk-tab-header > div,\n.bk-tab--border-card .bk-tab-header > div {\n border-right: 1px solid #dcdee5;\n}\n.bk-tab--top .bk-tab-header-nav {\n overflow-x: auto;\n overflow-y: visible;\n}\n.bk-tab--left .bk-tab-header-nav,\n.bk-tab--right .bk-tab-header-nav {\n overflow-x: visible;\n overflow-y: auto;\n}\n.bk-tab--card .bk-tab-header-nav,\n.bk-tab--border-card .bk-tab-header-nav {\n border-left: 1px solid #dcdee5;\n}\n.bk-tab-header-nav::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n}\n.bk-tab-header-operation .bk-tab-header-item {\n padding: 0 12px;\n}\n.bk-tab--left .bk-tab-header {\n border-right: 1px solid #dcdee5;\n}\n.bk-tab--right .bk-tab-header {\n border-left: 1px solid #dcdee5;\n}\n.bk-tab--left .bk-tab-header,\n.bk-tab--right .bk-tab-header {\n flex-direction: column;\n}\n.bk-tab--left .bk-tab-header > div,\n.bk-tab--right .bk-tab-header > div {\n flex-direction: column;\n}\n.bk-tab--card .bk-tab-header {\n border-bottom: 1px solid #dcdee5;\n}\n.bk-tab--border-card .bk-tab-header {\n background: #FAFBFD;\n border: solid #dcdee5;\n border-width: 1px 1px 1px 0;\n}\n.bk-tab--unborder-card .bk-tab-header {\n border-bottom: 1px solid #dcdee5;\n}\n.bk-tab-header-item {\n display: flex;\n white-space: nowrap;\n cursor: pointer;\n justify-content: center;\n align-items: center;\n}\n.bk-tab-header-item:hover {\n color: #3a84ff;\n}\n.bk-tab-header-item:hover .bk-tab-header-item-close {\n display: block;\n margin-left: 10px;\n color: #ea3636;\n}\n.bk-tab--top .bk-tab-header-item {\n padding: 0 20px;\n}\n.bk-tab--left .bk-tab-header-item,\n.bk-tab--right .bk-tab-header-item {\n padding: 0 12px;\n}\n.bk-tab--left .bk-tab-header-item {\n text-align: right;\n}\n.bk-tab--card .bk-tab-header-item {\n border-top: 1px solid #dcdee5;\n}\n.bk-tab--card .bk-tab-header-item,\n.bk-tab--border-card .bk-tab-header-item {\n border-right: 1px solid #dcdee5;\n border-bottom: 1px solid #dcdee5;\n}\n.bk-tab--card .bk-tab-header-item:last-of-type,\n.bk-tab--border-card .bk-tab-header-item:last-of-type {\n border-right: none;\n}\n.bk-tab-header-operation .bk-tab-header-item {\n padding-right: 12px;\n padding-left: 12px;\n}\n.bk-tab-header-item-close {\n display: none;\n color: #c4c6cc;\n}\n.bk-tab-header--active {\n color: #3a84ff;\n}\n.bk-tab--card .bk-tab-header--active,\n.bk-tab--border-card .bk-tab-header--active {\n border-bottom-color: white;\n}\n.bk-tab--unborder-card .bk-tab-header--active {\n border-bottom: 2px solid #3a84ff;\n}\n.bk-tab--left .bk-tab-header--active {\n border-right: 2px solid #3a84ff;\n}\n.bk-tab--right .bk-tab-header--active {\n border-left: 2px solid #3a84ff;\n}\n.bk-tab-header--disabled {\n color: #aaa;\n pointer-events: none;\n cursor: not-allowed;\n}\n.bk-tab-content {\n flex: 1;\n padding: 10px;\n}\n.bk-tab--border-card .bk-tab-content {\n border: solid #dcdee5;\n border-width: 0 1px 1px;\n}\n.bk-tab-panel {\n height: 100%;\n}\n";
75
75
  var process = "* {\n box-sizing: border-box;\n}\n.bk-process {\n position: relative;\n display: flex;\n}\n@keyframes loadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n.bk-process .bk-process-toggle {\n position: relative;\n left: 15px;\n width: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n color: #63656e;\n text-align: center;\n text-decoration: none;\n border: 1px solid #c4c6cc;\n border-radius: 50%;\n}\n.bk-process .bk-process-toggle.active,\n.bk-process .bk-process-toggle:hover {\n color: #fff;\n background: #3a84ff;\n border-color: #3a84ff;\n}\n.bk-process .bk-process-icon-done {\n display: inline-block;\n font-size: 22px;\n line-height: 18px;\n}\n.bk-process .bk-icon.icon-loading {\n display: inline-block;\n font-size: 14px;\n animation: loadingCircle 1s infinite linear;\n}\n.bk-process > ul {\n -ms-display: flex;\n -moz-display: flex;\n -webkit-display: flex;\n display: table;\n display: flex;\n width: 100%;\n padding: 0;\n margin: auto;\n}\n.bk-process li {\n position: relative;\n display: table-cell;\n height: 24px;\n font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;\n font-size: 12px;\n line-height: 24px;\n color: #63656e;\n text-align: center;\n background-color: #f0f1f5;\n flex: 1;\n}\n.bk-process li i {\n display: none;\n}\n.bk-process li:first-of-type {\n border-radius: 13px 0 0 13px;\n}\n.bk-process li:last-of-type {\n border-radius: 0 13px 13px 0;\n}\n.bk-process li:last-of-type::before {\n display: none;\n}\n.bk-process li:last-of-type::after {\n display: none;\n}\n.bk-process li::before {\n position: absolute;\n top: 0;\n right: -25px;\n z-index: 1;\n width: 0;\n height: 0;\n border: 12px solid;\n border-color: transparent transparent transparent #fff;\n content: '';\n}\n.bk-process li::after {\n position: absolute;\n top: 0;\n right: -23px;\n z-index: 1;\n width: 0;\n height: 0;\n border: 12px solid;\n border-color: transparent transparent transparent #f0f1f5;\n content: '';\n}\n.bk-process li .bk-process-step {\n font-size: 12px;\n}\n.bk-process li .bk-process-step dd {\n margin: 0;\n line-height: 32px;\n}\n.bk-process li .bk-process-step i {\n display: none;\n}\n.bk-process li .bk-process-step .success i {\n display: inline-block;\n color: #2dcb56;\n}\n.bk-process li .bk-process-step .steps-loading {\n top: -2px;\n}\n.bk-process li.success {\n color: #fff;\n background: #2dcb56;\n}\n.bk-process li.success::after {\n border-color: transparent transparent transparent #2dcb56;\n}\n.bk-process li.success .icon-done {\n font-size: 22px;\n line-height: 18px;\n}\n.bk-process li.current {\n color: #fff;\n background: #3a84ff;\n}\n.bk-process li.current::after {\n border-color: transparent transparent transparent #3a84ff;\n}\n.bk-process li.current > .bk-spin-loading {\n vertical-align: -3px;\n}\n";
76
76
  var virtualRender$1 = ".bk-virtual-render {\n position: relative;\n}\n.bk-virtual-render .bk-virtual-content,\n.bk-virtual-render.bk-virtual-content {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.bk-virtual-render .bk-virtual-section {\n width: 1px;\n background: transparent;\n}\n.bk-virtual-render.bk-scroll-x {\n overflow-x: auto;\n scrollbar-color: #a0a0a0 transparent;\n scrollbar-width: thin;\n}\n.bk-virtual-render.bk-scroll-x::-webkit-scrollbar {\n height: 8px;\n background-color: transparent;\n}\n.bk-virtual-render.bk-scroll-x::-webkit-scrollbar-thumb {\n background-color: #a0a0a0;\n border-radius: 8px;\n}\n.bk-virtual-render.bk-scroll-y {\n overflow-y: auto;\n}\n.bk-virtual-render.bk-scroll-y::-webkit-scrollbar {\n width: 6px;\n background-color: transparent;\n}\n.bk-virtual-render.bk-scroll-y::-webkit-scrollbar-thumb {\n background-color: #dcdee5;\n border-radius: 6px;\n}\n";
77
+ var pagination = ".bk-pagination {\n display: flex;\n align-items: center;\n font-size: 12px;\n letter-spacing: normal;\n color: #63656e;\n user-select: none;\n}\n.bk-pagination.is-disabled {\n cursor: not-allowed;\n}\n.bk-pagination.is-align-left {\n justify-content: flex-start;\n}\n.bk-pagination.is-align-center {\n justify-content: center;\n}\n.bk-pagination.is-align-right {\n justify-content: flex-end;\n}\n.bk-pagination > * {\n margin: 0 6px;\n}\n.bk-pagination > .is-first {\n margin-left: 0;\n}\n.bk-pagination > .is-last {\n margin-right: 0;\n}\n.bk-pagination-total {\n display: flex;\n user-select: none;\n}\n.bk-pagination-total-num {\n padding: 0 2px;\n color: #3f4046;\n}\n.bk-pagination-list {\n display: flex;\n}\n.bk-pagination-list-pre,\n.bk-pagination-list-next,\n.bk-pagination-list-item {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n min-width: 32px;\n padding: 0 4px;\n margin-right: 2px;\n margin-left: 2px;\n color: #63656e;\n cursor: pointer;\n background: #fff;\n border: 1px solid #c4c6cc;\n border-radius: 2px;\n user-select: none;\n}\n.bk-pagination-list-pre:hover,\n.bk-pagination-list-next:hover,\n.bk-pagination-list-item:hover,\n.bk-pagination-list-pre.is-active,\n.bk-pagination-list-next.is-active,\n.bk-pagination-list-item.is-active {\n color: #3a84ff;\n border-color: #3a84ff;\n}\n.bk-pagination-list-pre.is-disabled,\n.bk-pagination-list-next.is-disabled,\n.bk-pagination-list-item.is-disabled {\n color: #c4c6cc;\n cursor: not-allowed;\n background-color: #fafbfd;\n border-color: #dcdee5;\n}\n.bk-pagination-list-pre-batch,\n.bk-pagination-list-next-batch {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n cursor: pointer;\n user-select: none;\n}\n.bk-pagination-list-pre-batch:hover,\n.bk-pagination-list-next-batch:hover {\n color: #3a84ff;\n}\n.bk-pagination-list-pre,\n.bk-pagination-list-next {\n font-size: 14px;\n}\n.bk-pagination-list-item {\n margin-right: 4px;\n margin-left: 4px;\n}\n.bk-pagination-limit {\n display: flex;\n align-items: center;\n user-select: none;\n}\n.bk-pagination-limit-select {\n width: 60px;\n margin: 0 4px;\n}\n.bk-pagination-small-list {\n display: flex;\n}\n.bk-pagination-small-list .bk-pagination-picker {\n display: flex;\n height: 24px;\n cursor: pointer;\n background-color: #f0f1f5;\n border: 1px solid #f0f1f5;\n border-radius: 2px;\n align-items: center;\n}\n.bk-pagination-small-list .bk-pagination-picker:hover {\n background-color: #e1ecff;\n border-color: #e1ecff;\n}\n.bk-pagination-small-list .bk-pagination-picker.is-focused {\n background-color: #fff;\n border-color: #3a84ff;\n box-shadow: 0px 0px 4px rgba(58, 132, 255, 0.4);\n}\n.bk-pagination-editor {\n height: 16px;\n min-width: 14px;\n padding-right: 4px;\n padding-left: 8px;\n line-height: 16px;\n text-align: center;\n background-color: transparent;\n border: 0;\n border-radius: 2px;\n outline: none;\n transition: all 0.15s;\n}\n.bk-pagination-small-list-total {\n padding-right: 8px;\n padding-left: 4px;\n}\n.bk-pagination-btn-pre,\n.bk-pagination-btn-next {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 24px;\n cursor: pointer;\n}\n.bk-pagination-btn-pre:hover,\n.bk-pagination-btn-next:hover {\n color: #3a84ff;\n}\n.bk-pagination-btn-pre.is-disabled,\n.bk-pagination-btn-next.is-disabled {\n color: #dcdee5;\n cursor: not-allowed;\n}\n.bk-pagination-picker-list {\n max-height: 216px;\n padding: 7px 0;\n margin: -7px -14px;\n overflow: auto;\n}\n.bk-pagination-picker-list .item {\n height: 32px;\n padding: 0 10px;\n font-size: 12px;\n line-height: 32px;\n color: #63656e;\n cursor: pointer;\n}\n.bk-pagination-picker-list .item:hover,\n.bk-pagination-picker-list .item.is-actived {\n color: #3a84ff;\n background: #f4f6fa;\n}\n";
77
78
  var timeline = "* {\n box-sizing: border-box;\n}\n.bk-timeline {\n padding: 0;\n margin: 16px 0 0;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n text-align: left;\n list-style: none;\n}\n.bk-timeline .bk-timeline-dot {\n position: relative;\n padding-bottom: 24px;\n padding-left: 16px;\n /* spacing 1px */\n margin-top: 13px;\n font-size: 0;\n border-left: 1px solid #d8d8d8;\n}\n.bk-timeline .bk-timeline-dot::before {\n position: absolute;\n top: calc((11px + 1px) * -1);\n left: -6px;\n display: inline-block;\n width: 11px;\n height: 11px;\n background: #fff;\n border: 2px solid #d8d8d8;\n border-radius: 50%;\n content: '';\n box-sizing: border-box;\n}\n.bk-timeline .bk-timeline-dot:last-child {\n padding-bottom: 0;\n /* \u4FDD\u7559border\u4F7F\u7528\u95F4\u8DDD\u4FDD\u6301\u4E00\u81F4 */\n border-left: 1px solid transparent;\n}\n.bk-timeline .bk-timeline-dot .bk-timeline-title {\n display: inline-block;\n padding-bottom: 10px;\n margin-top: -3px;\n font-size: 14px;\n color: #63656e;\n cursor: pointer;\n}\n.bk-timeline .bk-timeline-dot .bk-timeline-content {\n max-width: 300px;\n font-size: 14px;\n color: #666;\n word-break: break-all;\n}\n.bk-timeline .bk-timeline-dot .bk-timeline-icon {\n position: absolute;\n top: calc((15px + 1px) * -1);\n left: -8px;\n display: inline-block;\n width: 15px;\n height: 15px;\n background: #fff;\n border: 2px solid #d8d8d8;\n border-radius: 50%;\n box-sizing: border-box;\n}\n.bk-timeline .bk-timeline-dot .bk-timeline-icon .bk-timeline-icon-inner {\n display: inline-block;\n transform: scale(1) translate(-0.5px, -4px);\n}\n.bk-timeline .bk-timeline-dot .bk-timeline-icon .bk-timeline-icon-inner > :first-child {\n font-size: 12px;\n}\n.bk-timeline .bk-timeline-dot .bk-timeline-section {\n position: relative;\n top: calc((11px + 2px) * -1);\n}\n.bk-timeline .bk-timeline-dot.bk-timeline-large {\n margin-top: calc(15px + 2px);\n}\n.bk-timeline .bk-timeline-dot.bk-timeline-large::before {\n top: calc((15px + 1px) * -1);\n left: -8px;\n width: 15px;\n height: 15px;\n}\n.bk-timeline .bk-timeline-dot.bk-timeline-large > .bk-timeline-section {\n top: calc((15px + 1px) * -1);\n}\n.bk-timeline .bk-timeline-dot.bk-timeline-item-custom-icon {\n margin-top: calc(15px + 2px);\n}\n.bk-timeline .bk-timeline-dot.bk-timeline-item-custom-icon::before {\n display: none;\n}\n.bk-timeline .bk-timeline-dot.bk-timeline-item-custom-icon > .bk-timeline-section {\n top: calc((15px + 1px) * -1);\n}\n.bk-timeline .bk-timeline-dot:first-child {\n margin-top: 0;\n}\n.bk-timeline .bk-timeline-primary {\n border-left: 1px solid #3a84ff;\n}\n.bk-timeline .bk-timeline-primary::before,\n.bk-timeline .bk-timeline-primary .bk-timeline-icon {\n color: #3a84ff;\n border: 2px solid #3a84ff;\n}\n.bk-timeline .bk-timeline-primary.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-primary.bk-timeline-filled .bk-timeline-icon {\n background: #3a84ff;\n}\n.bk-timeline .bk-timeline-warning {\n border-left: 1px solid #ff9c01;\n}\n.bk-timeline .bk-timeline-warning::before,\n.bk-timeline .bk-timeline-warning .bk-timeline-icon {\n color: #ff9c01;\n border: 2px solid #ff9c01;\n}\n.bk-timeline .bk-timeline-warning.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-warning.bk-timeline-filled .bk-timeline-icon {\n background: #ff9c01;\n}\n.bk-timeline .bk-timeline-success {\n border-left: 1px solid #2dcb56;\n}\n.bk-timeline .bk-timeline-success::before,\n.bk-timeline .bk-timeline-success .bk-timeline-icon {\n color: #2dcb56;\n border: 2px solid #2dcb56;\n}\n.bk-timeline .bk-timeline-success.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-success.bk-timeline-filled .bk-timeline-icon {\n background: #2dcb56;\n}\n.bk-timeline .bk-timeline-danger {\n border-left: 1px solid #ea3636;\n}\n.bk-timeline .bk-timeline-danger::before,\n.bk-timeline .bk-timeline-danger .bk-timeline-icon {\n color: #ea3636;\n border: 2px solid #ea3636;\n}\n.bk-timeline .bk-timeline-danger.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-danger.bk-timeline-filled .bk-timeline-icon {\n background: #ea3636;\n}\n.bk-timeline .bk-timeline-blue::before,\n.bk-timeline .bk-timeline-blue .bk-timeline-icon {\n color: #3a84ff;\n border: 2px solid #3a84ff;\n}\n.bk-timeline .bk-timeline-blue.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-blue.bk-timeline-filled .bk-timeline-icon {\n background: #3a84ff;\n}\n.bk-timeline .bk-timeline-red::before,\n.bk-timeline .bk-timeline-red .bk-timeline-icon {\n color: #ea3636;\n border: 2px solid #ea3636;\n}\n.bk-timeline .bk-timeline-red.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-red.bk-timeline-filled .bk-timeline-icon {\n background: #ea3636;\n}\n.bk-timeline .bk-timeline-green::before,\n.bk-timeline .bk-timeline-green .bk-timeline-icon {\n color: #2dcb56;\n border: 2px solid #2dcb56;\n}\n.bk-timeline .bk-timeline-green.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-green.bk-timeline-filled .bk-timeline-icon {\n background: #2dcb56;\n}\n.bk-timeline .bk-timeline-yellow::before,\n.bk-timeline .bk-timeline-yellow .bk-timeline-icon {\n color: #ff9c01;\n border: 2px solid #ff9c01;\n}\n.bk-timeline .bk-timeline-yellow.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-yellow.bk-timeline-filled .bk-timeline-icon {\n background: #ff9c01;\n}\n.bk-timeline .bk-timeline-gray::before,\n.bk-timeline .bk-timeline-gray .bk-timeline-icon {\n color: #63656e;\n border: 2px solid #63656e;\n}\n.bk-timeline .bk-timeline-gray.bk-timeline-filled::before,\n.bk-timeline .bk-timeline-gray.bk-timeline-filled .bk-timeline-icon {\n background: #63656e;\n}\n.bk-timeline-dashed .bk-step .bk-step-title::after,\n.bk-timeline-dashed .bk-step .bk-step-indicator::after {\n background-image: linear-gradient(to right, #c4c6cc 50%, transparent 0%);\n background-position: bottom;\n background-repeat: repeat-x;\n background-size: 6px 1px;\n}\n.bk-timeline-solid .bk-step .bk-step-title::after,\n.bk-timeline-solid .bk-step .bk-step-indicator::after {\n background-color: #c4c6cc;\n}\n.bk-timeline-vertical {\n height: 100%;\n flex-direction: column;\n}\n.bk-timeline-vertical .bk-step {\n margin-right: 0;\n margin-bottom: 8px;\n}\n.bk-timeline-vertical .bk-step .bk-step-title::after,\n.bk-timeline-vertical .bk-step .bk-step-indicator::after {\n display: none;\n}\n.bk-timeline-vertical .bk-step::after {\n position: absolute;\n top: 32px;\n left: 12px;\n width: 1px;\n height: 100%;\n background-image: linear-gradient(#c4c6cc 50%, transparent 0%);\n background-position: right;\n background-repeat: repeat-y;\n background-size: 1px 6px;\n content: '';\n}\n.bk-timeline-vertical .bk-step .bk-step-title {\n display: flex;\n height: 100%;\n margin-top: 0;\n text-align: left;\n align-items: center;\n}\n";
78
79
  var BKLAYERTYPE;
79
80
  (function(BKLAYERTYPE2) {
@@ -2227,7 +2228,7 @@ var Placements;
2227
2228
  Placements2["Bottom"] = "bottom";
2228
2229
  })(Placements || (Placements = {}));
2229
2230
  class PropTypes extends propTypesNS {
2230
- static size(sizes = ["small", "large"]) {
2231
+ static size(sizes = ["small", "default", "large"]) {
2231
2232
  return j("Size", {
2232
2233
  type: String,
2233
2234
  validator: (val) => {
@@ -2237,7 +2238,7 @@ class PropTypes extends propTypesNS {
2237
2238
  console.error(`invalid size, ${val}, the size must be one of \u3010${sizes.join(" | ")}\u3011`);
2238
2239
  return false;
2239
2240
  },
2240
- default: ""
2241
+ default: "default"
2241
2242
  });
2242
2243
  }
2243
2244
  static theme(themes = ["primary", "warning", "success", "danger"]) {
@@ -2250,7 +2251,7 @@ class PropTypes extends propTypesNS {
2250
2251
  console.error(`invalid theme, ${val}, the theme must be one of \u3010${themes.join(" | ")}\u3011`);
2251
2252
  return false;
2252
2253
  },
2253
- default: ""
2254
+ default: "primary"
2254
2255
  });
2255
2256
  }
2256
2257
  static placement(placements2 = ["top", "left", "right", "bottom"]) {
@@ -2351,6 +2352,8 @@ const bkIcon = (props, context) => {
2351
2352
  };
2352
2353
  bkIcon.inheritAttrs = false;
2353
2354
  bkIcon.displayName = "bkIcon";
2355
+ JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 744.64L789.6 462.72 880 554.56 512 928 144 554.56 234.4 462.72 512 744.64z"}},{"type":"element","name":"path","attributes":{"d":"M144 187.68L234.4 96 512 377.76 789.6 96 880 187.68 512 561.28 144 187.68z"}}]}');
2356
+ JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M279.36 512L561.28 789.6 469.44 880 96 512 469.44 144 561.28 234.4 279.36 512z"}},{"type":"element","name":"path","attributes":{"d":"M836.32 144L928 234.4 646.08 512 928 789.6 836.32 880 462.72 512 836.32 144z"}}]}');
2354
2357
  const data$t = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M697.6 281.6l48 48-176 176 176 176-48 48-224-224L697.6 281.6z"}},{"type":"element","name":"path","attributes":{"d":"M505.6 281.6l48 48-176 176 176 176-48 48-224-224L505.6 281.6z"}}]}');
2355
2358
  const angleDoubleLeft = (props, context) => {
2356
2359
  const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
@@ -2361,6 +2364,7 @@ const angleDoubleLeft = (props, context) => {
2361
2364
  };
2362
2365
  angleDoubleLeft.displayName = "angleDoubleLeft";
2363
2366
  angleDoubleLeft.inheritAttrs = false;
2367
+ JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M744.64 512L462.72 789.6 554.56 880 928 512 554.56 144 462.72 234.4 744.64 512z"}},{"type":"element","name":"path","attributes":{"d":"M187.68 144L96 234.4 377.76 512 96 789.6 187.68 880 561.28 512 187.68 144z"}}]}');
2364
2368
  const data$s = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M358.4 729.6l-48-48 176-176-176-176 48-48 224 224L358.4 729.6z"}},{"type":"element","name":"path","attributes":{"d":"M550.4 729.6l-48-48 176-176-176-176 48-48 224 224L550.4 729.6z"}}]}');
2365
2369
  const angleDoubleRight = (props, context) => {
2366
2370
  const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
@@ -2371,6 +2375,7 @@ const angleDoubleRight = (props, context) => {
2371
2375
  };
2372
2376
  angleDoubleRight.displayName = "angleDoubleRight";
2373
2377
  angleDoubleRight.inheritAttrs = false;
2378
+ JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 279.36L789.6 561.28 880 469.44 512 96 144 469.44 234.4 561.28 512 279.36z"}},{"type":"element","name":"path","attributes":{"d":"M144 836.32L234.4 928 512 646.08 789.6 928 880 836.32 512 462.72 144 836.32z"}}]}');
2374
2379
  JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 256L96 704 187.04 704 512 704 836.96 704 928 704 512 256z"}}]}');
2375
2380
  JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 762.56L98.72 349.28 189.28 258.72 512 581.44 834.72 258.72 925.28 349.28 512 762.56z"}}]}');
2376
2381
  const data$r = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M288 448L336 400 512 576 688 400 736 448 512 672z"}}]}');
@@ -2496,6 +2501,7 @@ const downSmall = (props, context) => {
2496
2501
  };
2497
2502
  downSmall.displayName = "downSmall";
2498
2503
  downSmall.inheritAttrs = false;
2504
+ JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M320 512c0 35.199999999999996-28.8 64-64 64s-64-28.8-64-64c0-35.199999999999996 28.8-64 64-64s64 28.8 64 64zM512 448c-35.199999999999996 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64c0-35.199999999999996-28.8-64-64-64zM768 448c-35.199999999999996 0-64 28.8-64 64s28.8 64 64 64 64-28.8 64-64c0-35.199999999999996-28.8-64-64-64z"}}]}');
2499
2505
  const data$f = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"fill-rule":"evenodd","d":"M452.7573333333333 510.91200000000003L225.83338666666668 737.8346666666666 286.1730133333333 798.1738666666666 513.0965333333334 571.2511999999999 739.8399999999999 797.9946666666666 797.9946666666666 739.8399999999999 571.2511999999999 513.0965333333334 798.1738666666666 286.1730133333333 737.8346666666666 225.83338666666668 510.91200000000003 452.7573333333333 283.9867733333333 225.83338666666668 225.83338666666668 283.9867733333333 452.7573333333333 510.91200000000003Z","clip-rule":"evenodd"}}]}');
2500
2506
  const error = (props, context) => {
2501
2507
  const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
@@ -2561,6 +2567,7 @@ const info = (props, context) => {
2561
2567
  };
2562
2568
  info.displayName = "info";
2563
2569
  info.inheritAttrs = false;
2570
+ JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M680.96 129.92c-14.08-3.84-30.08-1.2799999999999998-40.31999999999999 7.04l-439.03999999999996 356.48c-12.799999999999999 10.239999999999998-12.799999999999999 26.88 0 37.12l439.03999999999996 356.48c7.04 5.76 16.64 8.959999999999999 26.88 8.959999999999999 4.4799999999999995 0 8.959999999999999-0.6399999999999999 13.44-1.92 14.08-3.84 23.04-14.08 23.04-25.599999999999998v-712.96c0-11.52-8.959999999999999-21.759999999999998-23.04-25.599999999999998z"}}]}');
2564
2571
  JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M827.9893333333332 482.73066666666665l-585.1306666666667-474.7093333333333c-6.229333333333333-5.418666666666667-14.421333333333333-8.746666666666666-23.381333333333334-8.789333333333332-20.223999999999997 0-36.56533333333333 16.384-36.56533333333333 36.56533333333333v950.8693333333333c0 20.18133333333333 16.384 36.56533333333333 36.56533333333333 36.56533333333333 0 0 0.042666666666666665 0 0.042666666666666665 0 8.618666666666666 0 16.512-3.0293333333333328 22.698666666666668-8.106666666666666l585.088-474.66666666666663c8.874666666666666-6.741333333333333 14.506666666666668-17.28 14.506666666666668-29.184 0-11.562666666666667-5.333333333333333-21.845333333333333-13.696-28.544z"}}]}');
2565
2572
  const data$9 = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M736 480L544 480 544 288 480 288 480 480 288 480 288 544 480 544 480 736 544 736 544 544 736 544z"}}]}');
2566
2573
  const plus = (props, context) => {
@@ -2653,6 +2660,7 @@ const unvisible = (props, context) => {
2653
2660
  };
2654
2661
  unvisible.displayName = "unvisible";
2655
2662
  unvisible.inheritAttrs = false;
2663
+ JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M896 671.3599999999999c0-2.5599999999999996-0.6399999999999999-4.4799999999999995-1.2799999999999998-7.04-0.6399999999999999-1.92-0.6399999999999999-3.84-1.2799999999999998-5.119999999999999s-1.2799999999999998-2.5599999999999996-1.92-3.1999999999999997c-1.2799999999999998-2.5599999999999996-2.5599999999999996-4.4799999999999995-4.4799999999999995-6.3999999999999995 0 0 0 0 0-0.6399999999999999l-356.48-384c-10.239999999999998-11.52-26.88-11.52-37.12 0l-356.48 384c0 0 0 0.6399999999999999 0 0.6399999999999999-1.92 1.92-2.5599999999999996 3.84-3.84 6.3999999999999995-0.6399999999999999 1.2799999999999998-1.92 2.5599999999999996-2.5599999999999996 3.84s-0.6399999999999999 3.1999999999999997-1.2799999999999998 5.119999999999999c-0.6399999999999999 1.2799999999999998-1.2799999999999998 3.84-1.2799999999999998 6.3999999999999995 0 0 0 0.6399999999999999 0 0.6399999999999999 0 1.92 0.6399999999999999 3.1999999999999997 0.6399999999999999 4.4799999999999995 0 2.5599999999999996 0.6399999999999999 4.4799999999999995 1.2799999999999998 7.04s1.92 4.4799999999999995 3.1999999999999997 6.3999999999999995c0.6399999999999999 1.2799999999999998 1.2799999999999998 2.5599999999999996 1.92 3.84 0 0 0 0 0.6399999999999999 0.6399999999999999 1.2799999999999998 1.92 3.1999999999999997 3.1999999999999997 5.119999999999999 4.4799999999999995 1.2799999999999998 0.6399999999999999 2.5599999999999996 1.92 3.84 2.5599999999999996s2.5599999999999996 0.6399999999999999 3.84 1.2799999999999998c1.92 0 3.84 1.2799999999999998 6.3999999999999995 1.2799999999999998 0 0 0.6399999999999999 0 0.6399999999999999 0h712.96c3.84 0 7.68-0.6399999999999999 10.879999999999999-2.5599999999999996 0.6399999999999999 0 0.6399999999999999-0.6399999999999999 1.2799999999999998-0.6399999999999999 3.1999999999999997-1.92 5.76-3.84 8.32-6.3999999999999995 0 0 0 0 0.6399999999999999 0 0.6399999999999999-1.2799999999999998 1.2799999999999998-2.5599999999999996 1.92-3.84 1.2799999999999998-1.92 2.5599999999999996-3.84 3.1999999999999997-6.3999999999999995 0.6399999999999999-1.92 0.6399999999999999-4.4799999999999995 1.2799999999999998-7.04 0-1.92 0.6399999999999999-3.1999999999999997 0.6399999999999999-4.4799999999999995-0.6399999999999999-0.6399999999999999-0.6399999999999999-1.2799999999999998-0.6399999999999999-1.2799999999999998z"}}]}');
2656
2664
  const data = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM544 704h-64v-64h64V704zM544 576h-64V320h64V576z"}}]}');
2657
2665
  const warn = (props, context) => {
2658
2666
  const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
@@ -6135,12 +6143,12 @@ function getMatchedIndex(maxCount, maxHeight, groupItemCount, callback) {
6135
6143
  }
6136
6144
  return { startIndex, height, diffHeight };
6137
6145
  }
6138
- function computedVirtualIndex(lineHeight, callback, pagination, el, event) {
6146
+ function computedVirtualIndex(lineHeight, callback, pagination2, el, event) {
6139
6147
  if (!el) {
6140
6148
  return;
6141
6149
  }
6142
6150
  const elScrollTop = el.scrollTop;
6143
- const { scrollTop, count, groupItemCount, startIndex, endIndex } = pagination;
6151
+ const { scrollTop, count, groupItemCount, startIndex, endIndex } = pagination2;
6144
6152
  const { offsetHeight } = el;
6145
6153
  let targetStartIndex = 0;
6146
6154
  let targetEndIndex = 0;
@@ -6162,8 +6170,8 @@ function computedVirtualIndex(lineHeight, callback, pagination, el, event) {
6162
6170
  }
6163
6171
  }
6164
6172
  function visibleRender(e2, wrapper, binding) {
6165
- const { lineHeight = 30, handleScrollCallback, pagination = {} } = binding.value;
6166
- const { startIndex, endIndex, groupItemCount, count, scrollTop } = pagination;
6173
+ const { lineHeight = 30, handleScrollCallback, pagination: pagination2 = {} } = binding.value;
6174
+ const { startIndex, endIndex, groupItemCount, count, scrollTop } = pagination2;
6167
6175
  computedVirtualIndex(lineHeight, handleScrollCallback, { scrollTop, startIndex, endIndex, groupItemCount, count }, wrapper, e2);
6168
6176
  }
6169
6177
  const throttledRender = (delay = 60) => throttle((e2, wrapper, binding) => visibleRender(e2, wrapper, binding), delay);
@@ -6234,7 +6242,7 @@ var Component$5 = defineComponent({
6234
6242
  };
6235
6243
  }
6236
6244
  const refRoot = ref(null);
6237
- const pagination = reactive({
6245
+ const pagination2 = reactive({
6238
6246
  startIndex: 0,
6239
6247
  endIndex: 0,
6240
6248
  scrollTop: 1,
@@ -6243,11 +6251,11 @@ var Component$5 = defineComponent({
6243
6251
  groupItemCount: props.groupItemCount
6244
6252
  });
6245
6253
  const handleScrollCallback = (event, startIndex, endIndex, scrollTop, translateY) => {
6246
- pagination.startIndex = startIndex;
6247
- pagination.endIndex = endIndex;
6248
- pagination.scrollTop = scrollTop;
6249
- pagination.translateY = translateY;
6250
- ctx.emit("content-scroll", [event, pagination]);
6254
+ pagination2.startIndex = startIndex;
6255
+ pagination2.endIndex = endIndex;
6256
+ pagination2.scrollTop = scrollTop;
6257
+ pagination2.translateY = translateY;
6258
+ ctx.emit("content-scroll", [event, pagination2]);
6251
6259
  };
6252
6260
  onMounted(() => {
6253
6261
  nextTick(() => {
@@ -6272,11 +6280,11 @@ var Component$5 = defineComponent({
6272
6280
  const innerHeight = reactive(ref(0));
6273
6281
  const handleListChanged = (list) => {
6274
6282
  listLength.value = Math.ceil((list || []).length / props.groupItemCount);
6275
- pagination.count = listLength.value;
6276
- pagination.startIndex = 0;
6277
- pagination.endIndex = 0;
6278
- pagination.translateY = 0;
6279
- pagination.scrollTop = 0;
6283
+ pagination2.count = listLength.value;
6284
+ pagination2.startIndex = 0;
6285
+ pagination2.endIndex = 0;
6286
+ pagination2.translateY = 0;
6287
+ pagination2.scrollTop = 0;
6280
6288
  const isAuto = typeof props.abosuteHeight === "string" && props.abosuteHeight === "auto";
6281
6289
  if (isAuto) {
6282
6290
  if (typeof props.lineHeight === "function") {
@@ -6296,15 +6304,15 @@ var Component$5 = defineComponent({
6296
6304
  };
6297
6305
  const afterListDataReset = () => {
6298
6306
  const el = (refRoot.value || {}).parentNode;
6299
- computedVirtualIndex(props.lineHeight, handleScrollCallback, pagination, el, null);
6307
+ computedVirtualIndex(props.lineHeight, handleScrollCallback, pagination2, el, null);
6300
6308
  };
6301
6309
  const localList = computed(() => (props.list || []).map((item, index) => Object.assign(item, {
6302
6310
  $index: index
6303
6311
  })));
6304
- const calcList = computed(() => localList.value.slice(pagination.startIndex * props.groupItemCount, (pagination.endIndex + props.preloadItemCount) * props.groupItemCount));
6312
+ const calcList = computed(() => localList.value.slice(pagination2.startIndex * props.groupItemCount, (pagination2.endIndex + props.preloadItemCount) * props.groupItemCount));
6305
6313
  const innerContentStyle = computed(() => props.scrollPosition === "content" ? {
6306
- top: `${pagination.scrollTop + props.scrollOffsetTop}px`,
6307
- transform: `translateY(-${pagination.translateY}px)`
6314
+ top: `${pagination2.scrollTop + props.scrollOffsetTop}px`,
6315
+ transform: `translateY(-${pagination2.translateY}px)`
6308
6316
  } : {});
6309
6317
  const wrapperStyle = computed(() => __spreadValues({
6310
6318
  height: typeof props.height === "number" ? `${props.height}px` : props.height,
@@ -6324,7 +6332,7 @@ var Component$5 = defineComponent({
6324
6332
  const dirModifier = {
6325
6333
  lineHeight: props.lineHeight,
6326
6334
  handleScrollCallback,
6327
- pagination,
6335
+ pagination: pagination2,
6328
6336
  throttleDelay: props.throttleDelay
6329
6337
  };
6330
6338
  return () => {
@@ -6400,8 +6408,8 @@ var Component$4 = defineComponent({
6400
6408
  [resolveClassName("table-body")]: true
6401
6409
  });
6402
6410
  const handleScrollChanged = (args) => {
6403
- const pagination = args[1];
6404
- reactiveProp.scrollTranslateY = pagination.translateY;
6411
+ const pagination2 = args[1];
6412
+ reactiveProp.scrollTranslateY = pagination2.translateY;
6405
6413
  };
6406
6414
  onMounted(() => {
6407
6415
  observerIns = observerResize(root.value, () => {
@@ -11943,6 +11951,296 @@ var Component = defineComponent({
11943
11951
  }
11944
11952
  });
11945
11953
  const BkTree = withInstall(Component);
11954
+ const formKey$1 = Symbol("form");
11955
+ const getFormKey = () => formKey$1;
11956
+ const formKey = getFormKey();
11957
+ const formProps = {
11958
+ formType: PropTypes.string,
11959
+ labelWidth: PropTypes.number,
11960
+ labelPosition: PropTypes.string.def("right"),
11961
+ model: PropTypes.object,
11962
+ rules: PropTypes.array
11963
+ };
11964
+ var Form = defineComponent({
11965
+ name: "BKForm",
11966
+ props: formProps,
11967
+ setup(props) {
11968
+ let formItemInstanceList = [];
11969
+ const register = (formItemInstance) => {
11970
+ formItemInstanceList.push(formItemInstance);
11971
+ };
11972
+ const unregister = (formItemInstance) => {
11973
+ formItemInstanceList = formItemInstanceList.reduce((result, item) => {
11974
+ if (item !== formItemInstance) {
11975
+ result.push(item);
11976
+ }
11977
+ return result;
11978
+ }, []);
11979
+ };
11980
+ provide(formKey, {
11981
+ props,
11982
+ register,
11983
+ unregister
11984
+ });
11985
+ const validate = (fields) => {
11986
+ let fieldMap = {};
11987
+ if (fields) {
11988
+ const fieldList = typeof fields === "string" ? [fields] : fields;
11989
+ fieldMap = fieldList.reduce((result, item) => __spreadProps(__spreadValues({}, result), {
11990
+ [item]: true
11991
+ }), {});
11992
+ } else {
11993
+ fieldMap = formItemInstanceList.reduce((result, item) => {
11994
+ if (item.property) {
11995
+ return __spreadProps(__spreadValues({}, result), {
11996
+ [item.property]: true
11997
+ });
11998
+ }
11999
+ return result;
12000
+ }, {});
12001
+ }
12002
+ return Promise.all(formItemInstanceList.reduce((result, formItem) => {
12003
+ if (fieldMap[formItem.property]) {
12004
+ result.push(formItem.validate());
12005
+ }
12006
+ return result;
12007
+ }, [])).then(() => Promise.resolve(props.model));
12008
+ };
12009
+ const clearValidate = (fields) => {
12010
+ let fieldMap = {};
12011
+ if (fields) {
12012
+ const fieldList = typeof fields === "string" ? [fields] : fields;
12013
+ fieldMap = fieldList.reduce((result, item) => __spreadProps(__spreadValues({}, result), {
12014
+ [item]: true
12015
+ }), {});
12016
+ } else {
12017
+ fieldMap = formItemInstanceList.reduce((result, item) => __spreadProps(__spreadValues({}, result), {
12018
+ [item.property]: true
12019
+ }), {});
12020
+ }
12021
+ formItemInstanceList.forEach((formItem) => fieldMap[formItem.property] && formItem.clearValidate());
12022
+ };
12023
+ return {
12024
+ validate,
12025
+ clearValidate
12026
+ };
12027
+ },
12028
+ render() {
12029
+ var _a, _b;
12030
+ const formClasses = classes({
12031
+ "bk-form": true,
12032
+ [`bk-form--${this.formType}`]: true
12033
+ });
12034
+ return createVNode("form", {
12035
+ "class": formClasses
12036
+ }, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]);
12037
+ }
12038
+ });
12039
+ var validator = {
12040
+ required: (value) => {
12041
+ console.log("required");
12042
+ return value !== "";
12043
+ },
12044
+ min: (value, min2) => {
12045
+ console.log("min");
12046
+ return value >= min2;
12047
+ },
12048
+ max: (value, max2) => {
12049
+ console.log("max");
12050
+ return max2 >= value;
12051
+ },
12052
+ email: (value) => {
12053
+ console.log("email");
12054
+ return /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(value);
12055
+ },
12056
+ maxlength: (value, maxlength) => {
12057
+ console.log("maxlength");
12058
+ return value.length <= maxlength;
12059
+ }
12060
+ };
12061
+ const formItemProps = {
12062
+ label: PropTypes.string,
12063
+ labelWidth: PropTypes.number,
12064
+ labelPosition: PropTypes.string,
12065
+ property: PropTypes.string.def(""),
12066
+ required: PropTypes.bool.def(false),
12067
+ email: PropTypes.bool.def(false),
12068
+ max: PropTypes.number,
12069
+ min: PropTypes.number,
12070
+ maxlength: PropTypes.number,
12071
+ rules: PropTypes.array,
12072
+ autoCheck: PropTypes.bool.def(false),
12073
+ description: PropTypes.string
12074
+ };
12075
+ const hasOwn = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
12076
+ const mergeRules = (configRules, propsRules) => {
12077
+ const formatConfigRules = configRules.map((rule) => {
12078
+ let rulevalidator;
12079
+ if (rule.required) {
12080
+ rulevalidator = validator.required;
12081
+ } else if (rule.email) {
12082
+ rulevalidator = validator.email;
12083
+ } else if (Number(rule.max) > -1) {
12084
+ rulevalidator = (value) => validator.max(value, rule.max);
12085
+ } else if (Number(rule.min) > -1) {
12086
+ rulevalidator = (value) => validator.min(value, rule.max);
12087
+ } else if (Number(rule.maxlength) > -1) {
12088
+ rulevalidator = (value) => validator.min(value, rule.max);
12089
+ } else {
12090
+ rulevalidator = () => true;
12091
+ }
12092
+ return {
12093
+ validator: rulevalidator,
12094
+ message: rule.message,
12095
+ trigger: rule.trigger
12096
+ };
12097
+ });
12098
+ return [...propsRules, ...formatConfigRules];
12099
+ };
12100
+ const getRulesFromProps = (props) => {
12101
+ const rules = [];
12102
+ if (props.required) {
12103
+ rules.push({
12104
+ validator: validator.required,
12105
+ message: `${props.label}\u4E0D\u80FD\u4E3A\u7A7A`,
12106
+ trigger: "blur"
12107
+ });
12108
+ }
12109
+ if (props.email) {
12110
+ rules.push({
12111
+ validator: validator.email,
12112
+ message: `${props.label}\u683C\u5F0F\u4E0D\u6B63\u786E`,
12113
+ trigger: "blur"
12114
+ });
12115
+ }
12116
+ if (Number(props.max) > -1) {
12117
+ rules.push({
12118
+ validator: (value) => validator.max(value, props.max),
12119
+ message: `${props.label}\u6700\u5927\u503C${props.max}`,
12120
+ trigger: "blur"
12121
+ });
12122
+ }
12123
+ if (Number(props.min) > -1) {
12124
+ rules.push({
12125
+ validator: (value) => validator.min(value, props.min),
12126
+ message: `${props.label}\u6700\u5C0F\u503C${props.min}`,
12127
+ trigger: "blur"
12128
+ });
12129
+ }
12130
+ if (Number(props.maxlength) > -1) {
12131
+ rules.push({
12132
+ validator: (value) => validator.maxlength(value, props.maxlength),
12133
+ message: `${props.label}\u6700\u5927\u957F\u5EA6${props.maxlength}`,
12134
+ trigger: "blur"
12135
+ });
12136
+ }
12137
+ return rules;
12138
+ };
12139
+ var FormItem = defineComponent({
12140
+ name: "BKFormItem",
12141
+ props: formItemProps,
12142
+ setup(props) {
12143
+ const currentInstance = getCurrentInstance();
12144
+ const state = reactive({
12145
+ isError: false,
12146
+ errorMessage: ""
12147
+ });
12148
+ const form2 = inject(formKey);
12149
+ const isForm = Boolean(form2);
12150
+ const labelStyles = computed(() => {
12151
+ const styles = {
12152
+ width: "",
12153
+ textAlign: ""
12154
+ };
12155
+ const labelWidth = props.labelWidth || isForm && form2.props.labelWidth;
12156
+ if (labelWidth) {
12157
+ styles.width = `${labelWidth}px`;
12158
+ }
12159
+ const labelPosition = props.labelPosition || isForm && form2.props.labelPosition;
12160
+ if (labelPosition) {
12161
+ styles["text-align"] = "labelPosition";
12162
+ }
12163
+ return styles;
12164
+ });
12165
+ const validate = () => {
12166
+ if (!props.property || isForm && !form2.props.model) {
12167
+ return Promise.resolve();
12168
+ }
12169
+ let rules = [];
12170
+ if (isForm && form2.props.rules && hasOwn(form2.props.rules, props.property)) {
12171
+ rules = form2.props.rules[props.property];
12172
+ }
12173
+ if (props.rules) {
12174
+ rules = props.rules;
12175
+ }
12176
+ rules = mergeRules(rules, getRulesFromProps(props));
12177
+ const value = form2.props.model[props.property];
12178
+ const doValidate = (() => {
12179
+ let stepIndex = -1;
12180
+ return () => {
12181
+ stepIndex = stepIndex + 1;
12182
+ if (stepIndex >= rules.length) {
12183
+ return Promise.resolve();
12184
+ }
12185
+ const rule = rules[stepIndex];
12186
+ return Promise.resolve().then(() => {
12187
+ const result = rule.validator(value);
12188
+ if (typeof result !== "boolean" && typeof result.then === "function") {
12189
+ return result.then(() => doValidate, () => {
12190
+ state.isError = true;
12191
+ state.errorMessage = rule.message;
12192
+ return Promise.reject(rule.message);
12193
+ });
12194
+ }
12195
+ if (!result) {
12196
+ state.isError = true;
12197
+ state.errorMessage = rule.message;
12198
+ return Promise.reject(rule.message);
12199
+ }
12200
+ return doValidate();
12201
+ });
12202
+ };
12203
+ })();
12204
+ return doValidate();
12205
+ };
12206
+ const clearValidate = () => {
12207
+ state.isError = false;
12208
+ state.errorMessage = "";
12209
+ };
12210
+ onMounted(() => {
12211
+ if (isForm) {
12212
+ form2.register(currentInstance.proxy);
12213
+ }
12214
+ });
12215
+ onBeforeUnmount(() => {
12216
+ if (isForm) {
12217
+ form2.unregister(currentInstance.proxy);
12218
+ }
12219
+ });
12220
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
12221
+ labelStyles,
12222
+ validate,
12223
+ clearValidate
12224
+ });
12225
+ },
12226
+ render() {
12227
+ const itemClassees = classes({
12228
+ "is-error": this.isError,
12229
+ "is-required": this.required
12230
+ }, "bk-form-item");
12231
+ return createVNode("div", {
12232
+ "class": itemClassees
12233
+ }, [createVNode("div", {
12234
+ "class": "bk-form-label",
12235
+ "style": this.labelStyles
12236
+ }, [this.label]), createVNode("div", {
12237
+ "class": "bk-form-content"
12238
+ }, [this.$slots.default(), this.isError && createVNode("div", {
12239
+ "class": "bk-form-error"
12240
+ }, [this.errorMessage])])]);
12241
+ }
12242
+ });
12243
+ const BkForm = withInstallProps(Form, { FormItem });
11946
12244
  var components = /* @__PURE__ */ Object.freeze({
11947
12245
  __proto__: null,
11948
12246
  [Symbol.toStringTag]: "Module",
@@ -11988,7 +12286,9 @@ var components = /* @__PURE__ */ Object.freeze({
11988
12286
  Navigation,
11989
12287
  DatePicker: BkDatePicker,
11990
12288
  Tree: BkTree,
11991
- VirtualRender: BkVirtualRender
12289
+ VirtualRender: BkVirtualRender,
12290
+ Form: BkForm,
12291
+ FormItem
11992
12292
  });
11993
12293
  const createInstall = (prefix = "Bk") => (app) => {
11994
12294
  const pre = app.config.globalProperties.bkUIPrefix || prefix;
@@ -12006,4 +12306,4 @@ var preset = {
12006
12306
  install: createInstall(),
12007
12307
  version: "0.0.1"
12008
12308
  };
12009
- export { BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, Option as BkOption, OptionGroup as BkOptionGroup, BkBreadcrumb as Breadcrumb, BreadcrumbItem, BkButton as Button, ButtonGroup, BkCard as Card, BkCheckbox as Checkbox, CheckboxGroup, BkCollaspe as Collapse, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkException as Exception, BkFixedNavbar as FixedNavbar, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPopover as Popover, BkProgress as Progress, BkRadio as Radio, RadioButton, RadioGroup, BkRate as Rate, BkSelect as Select, BkSideslider as Sideslider, BkSteps as Steps, BkSwitcher as Switcher, BKTab as Tab, BKTabPanel as TabPanel, BkTable as Table, BkTag as Tag, BkTree as Tree, BkVirtualRender as VirtualRender, tooltips as bkTooltips, clickoutside, preset as default, mousewheel };
12309
+ export { BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, Option as BkOption, OptionGroup as BkOptionGroup, BkBreadcrumb as Breadcrumb, BreadcrumbItem, BkButton as Button, ButtonGroup, BkCard as Card, BkCheckbox as Checkbox, CheckboxGroup, BkCollaspe as Collapse, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, FormItem, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPopover as Popover, BkProgress as Progress, BkRadio as Radio, RadioButton, RadioGroup, BkRate as Rate, BkSelect as Select, BkSideslider as Sideslider, BkSteps as Steps, BkSwitcher as Switcher, BKTab as Tab, BKTabPanel as TabPanel, BkTable as Table, BkTag as Tag, BkTree as Tree, BkVirtualRender as VirtualRender, tooltips as bkTooltips, clickoutside, preset as default, mousewheel };