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.
- package/dist/bkui-vue.cjs.js +330 -28
- package/dist/bkui-vue.esm.js +329 -29
- package/dist/bkui-vue.umd.js +330 -28
- package/dist/style.css +182 -1
- package/lib/alert/alert.variable.css +1 -0
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/badge/badge.variable.css +1 -0
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/button/button.variable.css +1 -0
- package/lib/card/card.variable.css +1 -0
- package/lib/checkbox/checkbox.variable.css +1 -0
- package/lib/components.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/divider/divider.variable.css +1 -0
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/exception/exception.variable.css +1 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +285 -3
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/index.d.ts +7 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/input/input.variable.css +1 -0
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/loading.variable.css +1 -0
- package/lib/menu/menu.variable.css +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/message/message.variable.css +1 -0
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/notify.variable.css +1 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/popover.css +1 -0
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +2 -0
- package/lib/process/process.variable.css +1 -0
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/radio.variable.css +1 -0
- package/lib/select/select.css +2 -1
- package/lib/select/select.less +2 -1
- package/lib/select/select.variable.css +3 -1
- package/lib/shared/index.js +1 -1
- package/lib/sideslider/sideslider.variable.css +1 -0
- package/lib/slider/slider.variable.css +1 -0
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/themes/themes.less +1 -0
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/tab.variable.css +1 -0
- package/lib/table/table.variable.css +1 -0
- package/lib/tag/tag.variable.css +1 -0
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/use-form.d.ts +3 -0
- package/package.json +1 -1
package/dist/bkui-vue.umd.js
CHANGED
@@ -54,12 +54,12 @@ var __publicField = (obj, key, value) => {
|
|
54
54
|
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";
|
55
55
|
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";
|
56
56
|
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";
|
57
|
-
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";
|
57
|
+
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";
|
58
58
|
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";
|
59
59
|
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";
|
60
60
|
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";
|
61
61
|
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";
|
62
|
-
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
|
62
|
+
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";
|
63
63
|
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";
|
64
64
|
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";
|
65
65
|
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";
|
@@ -77,6 +77,7 @@ var __publicField = (obj, key, value) => {
|
|
77
77
|
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";
|
78
78
|
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";
|
79
79
|
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";
|
80
|
+
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";
|
80
81
|
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";
|
81
82
|
var BKLAYERTYPE;
|
82
83
|
(function(BKLAYERTYPE2) {
|
@@ -2230,7 +2231,7 @@ ${$(r2)}`), n2;
|
|
2230
2231
|
Placements2["Bottom"] = "bottom";
|
2231
2232
|
})(Placements || (Placements = {}));
|
2232
2233
|
class PropTypes extends propTypesNS {
|
2233
|
-
static size(sizes = ["small", "large"]) {
|
2234
|
+
static size(sizes = ["small", "default", "large"]) {
|
2234
2235
|
return j("Size", {
|
2235
2236
|
type: String,
|
2236
2237
|
validator: (val) => {
|
@@ -2240,7 +2241,7 @@ ${$(r2)}`), n2;
|
|
2240
2241
|
console.error(`invalid size, ${val}, the size must be one of \u3010${sizes.join(" | ")}\u3011`);
|
2241
2242
|
return false;
|
2242
2243
|
},
|
2243
|
-
default: ""
|
2244
|
+
default: "default"
|
2244
2245
|
});
|
2245
2246
|
}
|
2246
2247
|
static theme(themes = ["primary", "warning", "success", "danger"]) {
|
@@ -2253,7 +2254,7 @@ ${$(r2)}`), n2;
|
|
2253
2254
|
console.error(`invalid theme, ${val}, the theme must be one of \u3010${themes.join(" | ")}\u3011`);
|
2254
2255
|
return false;
|
2255
2256
|
},
|
2256
|
-
default: ""
|
2257
|
+
default: "primary"
|
2257
2258
|
});
|
2258
2259
|
}
|
2259
2260
|
static placement(placements2 = ["top", "left", "right", "bottom"]) {
|
@@ -2354,6 +2355,8 @@ ${$(r2)}`), n2;
|
|
2354
2355
|
};
|
2355
2356
|
bkIcon.inheritAttrs = false;
|
2356
2357
|
bkIcon.displayName = "bkIcon";
|
2358
|
+
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"}}]}');
|
2359
|
+
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"}}]}');
|
2357
2360
|
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"}}]}');
|
2358
2361
|
const angleDoubleLeft = (props, context) => {
|
2359
2362
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
@@ -2364,6 +2367,7 @@ ${$(r2)}`), n2;
|
|
2364
2367
|
};
|
2365
2368
|
angleDoubleLeft.displayName = "angleDoubleLeft";
|
2366
2369
|
angleDoubleLeft.inheritAttrs = false;
|
2370
|
+
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"}}]}');
|
2367
2371
|
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"}}]}');
|
2368
2372
|
const angleDoubleRight = (props, context) => {
|
2369
2373
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
@@ -2374,6 +2378,7 @@ ${$(r2)}`), n2;
|
|
2374
2378
|
};
|
2375
2379
|
angleDoubleRight.displayName = "angleDoubleRight";
|
2376
2380
|
angleDoubleRight.inheritAttrs = false;
|
2381
|
+
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"}}]}');
|
2377
2382
|
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"}}]}');
|
2378
2383
|
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"}}]}');
|
2379
2384
|
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"}}]}');
|
@@ -2499,6 +2504,7 @@ ${$(r2)}`), n2;
|
|
2499
2504
|
};
|
2500
2505
|
downSmall.displayName = "downSmall";
|
2501
2506
|
downSmall.inheritAttrs = false;
|
2507
|
+
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"}}]}');
|
2502
2508
|
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"}}]}');
|
2503
2509
|
const error = (props, context) => {
|
2504
2510
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
@@ -2564,6 +2570,7 @@ ${$(r2)}`), n2;
|
|
2564
2570
|
};
|
2565
2571
|
info.displayName = "info";
|
2566
2572
|
info.inheritAttrs = false;
|
2573
|
+
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"}}]}');
|
2567
2574
|
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"}}]}');
|
2568
2575
|
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"}}]}');
|
2569
2576
|
const plus = (props, context) => {
|
@@ -2656,6 +2663,7 @@ ${$(r2)}`), n2;
|
|
2656
2663
|
};
|
2657
2664
|
unvisible.displayName = "unvisible";
|
2658
2665
|
unvisible.inheritAttrs = false;
|
2666
|
+
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"}}]}');
|
2659
2667
|
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"}}]}');
|
2660
2668
|
const warn = (props, context) => {
|
2661
2669
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
@@ -6138,12 +6146,12 @@ ${$(r2)}`), n2;
|
|
6138
6146
|
}
|
6139
6147
|
return { startIndex, height, diffHeight };
|
6140
6148
|
}
|
6141
|
-
function computedVirtualIndex(lineHeight, callback,
|
6149
|
+
function computedVirtualIndex(lineHeight, callback, pagination2, el, event) {
|
6142
6150
|
if (!el) {
|
6143
6151
|
return;
|
6144
6152
|
}
|
6145
6153
|
const elScrollTop = el.scrollTop;
|
6146
|
-
const { scrollTop, count, groupItemCount, startIndex, endIndex } =
|
6154
|
+
const { scrollTop, count, groupItemCount, startIndex, endIndex } = pagination2;
|
6147
6155
|
const { offsetHeight } = el;
|
6148
6156
|
let targetStartIndex = 0;
|
6149
6157
|
let targetEndIndex = 0;
|
@@ -6165,8 +6173,8 @@ ${$(r2)}`), n2;
|
|
6165
6173
|
}
|
6166
6174
|
}
|
6167
6175
|
function visibleRender(e2, wrapper, binding) {
|
6168
|
-
const { lineHeight = 30, handleScrollCallback, pagination = {} } = binding.value;
|
6169
|
-
const { startIndex, endIndex, groupItemCount, count, scrollTop } =
|
6176
|
+
const { lineHeight = 30, handleScrollCallback, pagination: pagination2 = {} } = binding.value;
|
6177
|
+
const { startIndex, endIndex, groupItemCount, count, scrollTop } = pagination2;
|
6170
6178
|
computedVirtualIndex(lineHeight, handleScrollCallback, { scrollTop, startIndex, endIndex, groupItemCount, count }, wrapper, e2);
|
6171
6179
|
}
|
6172
6180
|
const throttledRender = (delay = 60) => throttle((e2, wrapper, binding) => visibleRender(e2, wrapper, binding), delay);
|
@@ -6237,7 +6245,7 @@ ${$(r2)}`), n2;
|
|
6237
6245
|
};
|
6238
6246
|
}
|
6239
6247
|
const refRoot = vue.ref(null);
|
6240
|
-
const
|
6248
|
+
const pagination2 = vue.reactive({
|
6241
6249
|
startIndex: 0,
|
6242
6250
|
endIndex: 0,
|
6243
6251
|
scrollTop: 1,
|
@@ -6246,11 +6254,11 @@ ${$(r2)}`), n2;
|
|
6246
6254
|
groupItemCount: props.groupItemCount
|
6247
6255
|
});
|
6248
6256
|
const handleScrollCallback = (event, startIndex, endIndex, scrollTop, translateY) => {
|
6249
|
-
|
6250
|
-
|
6251
|
-
|
6252
|
-
|
6253
|
-
ctx.emit("content-scroll", [event,
|
6257
|
+
pagination2.startIndex = startIndex;
|
6258
|
+
pagination2.endIndex = endIndex;
|
6259
|
+
pagination2.scrollTop = scrollTop;
|
6260
|
+
pagination2.translateY = translateY;
|
6261
|
+
ctx.emit("content-scroll", [event, pagination2]);
|
6254
6262
|
};
|
6255
6263
|
vue.onMounted(() => {
|
6256
6264
|
vue.nextTick(() => {
|
@@ -6275,11 +6283,11 @@ ${$(r2)}`), n2;
|
|
6275
6283
|
const innerHeight = vue.reactive(vue.ref(0));
|
6276
6284
|
const handleListChanged = (list) => {
|
6277
6285
|
listLength.value = Math.ceil((list || []).length / props.groupItemCount);
|
6278
|
-
|
6279
|
-
|
6280
|
-
|
6281
|
-
|
6282
|
-
|
6286
|
+
pagination2.count = listLength.value;
|
6287
|
+
pagination2.startIndex = 0;
|
6288
|
+
pagination2.endIndex = 0;
|
6289
|
+
pagination2.translateY = 0;
|
6290
|
+
pagination2.scrollTop = 0;
|
6283
6291
|
const isAuto = typeof props.abosuteHeight === "string" && props.abosuteHeight === "auto";
|
6284
6292
|
if (isAuto) {
|
6285
6293
|
if (typeof props.lineHeight === "function") {
|
@@ -6299,15 +6307,15 @@ ${$(r2)}`), n2;
|
|
6299
6307
|
};
|
6300
6308
|
const afterListDataReset = () => {
|
6301
6309
|
const el = (refRoot.value || {}).parentNode;
|
6302
|
-
computedVirtualIndex(props.lineHeight, handleScrollCallback,
|
6310
|
+
computedVirtualIndex(props.lineHeight, handleScrollCallback, pagination2, el, null);
|
6303
6311
|
};
|
6304
6312
|
const localList = vue.computed(() => (props.list || []).map((item, index) => Object.assign(item, {
|
6305
6313
|
$index: index
|
6306
6314
|
})));
|
6307
|
-
const calcList = vue.computed(() => localList.value.slice(
|
6315
|
+
const calcList = vue.computed(() => localList.value.slice(pagination2.startIndex * props.groupItemCount, (pagination2.endIndex + props.preloadItemCount) * props.groupItemCount));
|
6308
6316
|
const innerContentStyle = vue.computed(() => props.scrollPosition === "content" ? {
|
6309
|
-
top: `${
|
6310
|
-
transform: `translateY(-${
|
6317
|
+
top: `${pagination2.scrollTop + props.scrollOffsetTop}px`,
|
6318
|
+
transform: `translateY(-${pagination2.translateY}px)`
|
6311
6319
|
} : {});
|
6312
6320
|
const wrapperStyle = vue.computed(() => __spreadValues({
|
6313
6321
|
height: typeof props.height === "number" ? `${props.height}px` : props.height,
|
@@ -6327,7 +6335,7 @@ ${$(r2)}`), n2;
|
|
6327
6335
|
const dirModifier = {
|
6328
6336
|
lineHeight: props.lineHeight,
|
6329
6337
|
handleScrollCallback,
|
6330
|
-
pagination,
|
6338
|
+
pagination: pagination2,
|
6331
6339
|
throttleDelay: props.throttleDelay
|
6332
6340
|
};
|
6333
6341
|
return () => {
|
@@ -6403,8 +6411,8 @@ ${$(r2)}`), n2;
|
|
6403
6411
|
[resolveClassName("table-body")]: true
|
6404
6412
|
});
|
6405
6413
|
const handleScrollChanged = (args) => {
|
6406
|
-
const
|
6407
|
-
reactiveProp.scrollTranslateY =
|
6414
|
+
const pagination2 = args[1];
|
6415
|
+
reactiveProp.scrollTranslateY = pagination2.translateY;
|
6408
6416
|
};
|
6409
6417
|
vue.onMounted(() => {
|
6410
6418
|
observerIns = observerResize(root.value, () => {
|
@@ -11946,6 +11954,296 @@ ${$(r2)}`), n2;
|
|
11946
11954
|
}
|
11947
11955
|
});
|
11948
11956
|
const BkTree = withInstall(Component);
|
11957
|
+
const formKey$1 = Symbol("form");
|
11958
|
+
const getFormKey = () => formKey$1;
|
11959
|
+
const formKey = getFormKey();
|
11960
|
+
const formProps = {
|
11961
|
+
formType: PropTypes.string,
|
11962
|
+
labelWidth: PropTypes.number,
|
11963
|
+
labelPosition: PropTypes.string.def("right"),
|
11964
|
+
model: PropTypes.object,
|
11965
|
+
rules: PropTypes.array
|
11966
|
+
};
|
11967
|
+
var Form = vue.defineComponent({
|
11968
|
+
name: "BKForm",
|
11969
|
+
props: formProps,
|
11970
|
+
setup(props) {
|
11971
|
+
let formItemInstanceList = [];
|
11972
|
+
const register = (formItemInstance) => {
|
11973
|
+
formItemInstanceList.push(formItemInstance);
|
11974
|
+
};
|
11975
|
+
const unregister = (formItemInstance) => {
|
11976
|
+
formItemInstanceList = formItemInstanceList.reduce((result, item) => {
|
11977
|
+
if (item !== formItemInstance) {
|
11978
|
+
result.push(item);
|
11979
|
+
}
|
11980
|
+
return result;
|
11981
|
+
}, []);
|
11982
|
+
};
|
11983
|
+
vue.provide(formKey, {
|
11984
|
+
props,
|
11985
|
+
register,
|
11986
|
+
unregister
|
11987
|
+
});
|
11988
|
+
const validate = (fields) => {
|
11989
|
+
let fieldMap = {};
|
11990
|
+
if (fields) {
|
11991
|
+
const fieldList = typeof fields === "string" ? [fields] : fields;
|
11992
|
+
fieldMap = fieldList.reduce((result, item) => __spreadProps(__spreadValues({}, result), {
|
11993
|
+
[item]: true
|
11994
|
+
}), {});
|
11995
|
+
} else {
|
11996
|
+
fieldMap = formItemInstanceList.reduce((result, item) => {
|
11997
|
+
if (item.property) {
|
11998
|
+
return __spreadProps(__spreadValues({}, result), {
|
11999
|
+
[item.property]: true
|
12000
|
+
});
|
12001
|
+
}
|
12002
|
+
return result;
|
12003
|
+
}, {});
|
12004
|
+
}
|
12005
|
+
return Promise.all(formItemInstanceList.reduce((result, formItem) => {
|
12006
|
+
if (fieldMap[formItem.property]) {
|
12007
|
+
result.push(formItem.validate());
|
12008
|
+
}
|
12009
|
+
return result;
|
12010
|
+
}, [])).then(() => Promise.resolve(props.model));
|
12011
|
+
};
|
12012
|
+
const clearValidate = (fields) => {
|
12013
|
+
let fieldMap = {};
|
12014
|
+
if (fields) {
|
12015
|
+
const fieldList = typeof fields === "string" ? [fields] : fields;
|
12016
|
+
fieldMap = fieldList.reduce((result, item) => __spreadProps(__spreadValues({}, result), {
|
12017
|
+
[item]: true
|
12018
|
+
}), {});
|
12019
|
+
} else {
|
12020
|
+
fieldMap = formItemInstanceList.reduce((result, item) => __spreadProps(__spreadValues({}, result), {
|
12021
|
+
[item.property]: true
|
12022
|
+
}), {});
|
12023
|
+
}
|
12024
|
+
formItemInstanceList.forEach((formItem) => fieldMap[formItem.property] && formItem.clearValidate());
|
12025
|
+
};
|
12026
|
+
return {
|
12027
|
+
validate,
|
12028
|
+
clearValidate
|
12029
|
+
};
|
12030
|
+
},
|
12031
|
+
render() {
|
12032
|
+
var _a, _b;
|
12033
|
+
const formClasses = classes({
|
12034
|
+
"bk-form": true,
|
12035
|
+
[`bk-form--${this.formType}`]: true
|
12036
|
+
});
|
12037
|
+
return vue.createVNode("form", {
|
12038
|
+
"class": formClasses
|
12039
|
+
}, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]);
|
12040
|
+
}
|
12041
|
+
});
|
12042
|
+
var validator = {
|
12043
|
+
required: (value) => {
|
12044
|
+
console.log("required");
|
12045
|
+
return value !== "";
|
12046
|
+
},
|
12047
|
+
min: (value, min2) => {
|
12048
|
+
console.log("min");
|
12049
|
+
return value >= min2;
|
12050
|
+
},
|
12051
|
+
max: (value, max2) => {
|
12052
|
+
console.log("max");
|
12053
|
+
return max2 >= value;
|
12054
|
+
},
|
12055
|
+
email: (value) => {
|
12056
|
+
console.log("email");
|
12057
|
+
return /^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(value);
|
12058
|
+
},
|
12059
|
+
maxlength: (value, maxlength) => {
|
12060
|
+
console.log("maxlength");
|
12061
|
+
return value.length <= maxlength;
|
12062
|
+
}
|
12063
|
+
};
|
12064
|
+
const formItemProps = {
|
12065
|
+
label: PropTypes.string,
|
12066
|
+
labelWidth: PropTypes.number,
|
12067
|
+
labelPosition: PropTypes.string,
|
12068
|
+
property: PropTypes.string.def(""),
|
12069
|
+
required: PropTypes.bool.def(false),
|
12070
|
+
email: PropTypes.bool.def(false),
|
12071
|
+
max: PropTypes.number,
|
12072
|
+
min: PropTypes.number,
|
12073
|
+
maxlength: PropTypes.number,
|
12074
|
+
rules: PropTypes.array,
|
12075
|
+
autoCheck: PropTypes.bool.def(false),
|
12076
|
+
description: PropTypes.string
|
12077
|
+
};
|
12078
|
+
const hasOwn = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
|
12079
|
+
const mergeRules = (configRules, propsRules) => {
|
12080
|
+
const formatConfigRules = configRules.map((rule) => {
|
12081
|
+
let rulevalidator;
|
12082
|
+
if (rule.required) {
|
12083
|
+
rulevalidator = validator.required;
|
12084
|
+
} else if (rule.email) {
|
12085
|
+
rulevalidator = validator.email;
|
12086
|
+
} else if (Number(rule.max) > -1) {
|
12087
|
+
rulevalidator = (value) => validator.max(value, rule.max);
|
12088
|
+
} else if (Number(rule.min) > -1) {
|
12089
|
+
rulevalidator = (value) => validator.min(value, rule.max);
|
12090
|
+
} else if (Number(rule.maxlength) > -1) {
|
12091
|
+
rulevalidator = (value) => validator.min(value, rule.max);
|
12092
|
+
} else {
|
12093
|
+
rulevalidator = () => true;
|
12094
|
+
}
|
12095
|
+
return {
|
12096
|
+
validator: rulevalidator,
|
12097
|
+
message: rule.message,
|
12098
|
+
trigger: rule.trigger
|
12099
|
+
};
|
12100
|
+
});
|
12101
|
+
return [...propsRules, ...formatConfigRules];
|
12102
|
+
};
|
12103
|
+
const getRulesFromProps = (props) => {
|
12104
|
+
const rules = [];
|
12105
|
+
if (props.required) {
|
12106
|
+
rules.push({
|
12107
|
+
validator: validator.required,
|
12108
|
+
message: `${props.label}\u4E0D\u80FD\u4E3A\u7A7A`,
|
12109
|
+
trigger: "blur"
|
12110
|
+
});
|
12111
|
+
}
|
12112
|
+
if (props.email) {
|
12113
|
+
rules.push({
|
12114
|
+
validator: validator.email,
|
12115
|
+
message: `${props.label}\u683C\u5F0F\u4E0D\u6B63\u786E`,
|
12116
|
+
trigger: "blur"
|
12117
|
+
});
|
12118
|
+
}
|
12119
|
+
if (Number(props.max) > -1) {
|
12120
|
+
rules.push({
|
12121
|
+
validator: (value) => validator.max(value, props.max),
|
12122
|
+
message: `${props.label}\u6700\u5927\u503C${props.max}`,
|
12123
|
+
trigger: "blur"
|
12124
|
+
});
|
12125
|
+
}
|
12126
|
+
if (Number(props.min) > -1) {
|
12127
|
+
rules.push({
|
12128
|
+
validator: (value) => validator.min(value, props.min),
|
12129
|
+
message: `${props.label}\u6700\u5C0F\u503C${props.min}`,
|
12130
|
+
trigger: "blur"
|
12131
|
+
});
|
12132
|
+
}
|
12133
|
+
if (Number(props.maxlength) > -1) {
|
12134
|
+
rules.push({
|
12135
|
+
validator: (value) => validator.maxlength(value, props.maxlength),
|
12136
|
+
message: `${props.label}\u6700\u5927\u957F\u5EA6${props.maxlength}`,
|
12137
|
+
trigger: "blur"
|
12138
|
+
});
|
12139
|
+
}
|
12140
|
+
return rules;
|
12141
|
+
};
|
12142
|
+
var FormItem = vue.defineComponent({
|
12143
|
+
name: "BKFormItem",
|
12144
|
+
props: formItemProps,
|
12145
|
+
setup(props) {
|
12146
|
+
const currentInstance = vue.getCurrentInstance();
|
12147
|
+
const state = vue.reactive({
|
12148
|
+
isError: false,
|
12149
|
+
errorMessage: ""
|
12150
|
+
});
|
12151
|
+
const form2 = vue.inject(formKey);
|
12152
|
+
const isForm = Boolean(form2);
|
12153
|
+
const labelStyles = vue.computed(() => {
|
12154
|
+
const styles = {
|
12155
|
+
width: "",
|
12156
|
+
textAlign: ""
|
12157
|
+
};
|
12158
|
+
const labelWidth = props.labelWidth || isForm && form2.props.labelWidth;
|
12159
|
+
if (labelWidth) {
|
12160
|
+
styles.width = `${labelWidth}px`;
|
12161
|
+
}
|
12162
|
+
const labelPosition = props.labelPosition || isForm && form2.props.labelPosition;
|
12163
|
+
if (labelPosition) {
|
12164
|
+
styles["text-align"] = "labelPosition";
|
12165
|
+
}
|
12166
|
+
return styles;
|
12167
|
+
});
|
12168
|
+
const validate = () => {
|
12169
|
+
if (!props.property || isForm && !form2.props.model) {
|
12170
|
+
return Promise.resolve();
|
12171
|
+
}
|
12172
|
+
let rules = [];
|
12173
|
+
if (isForm && form2.props.rules && hasOwn(form2.props.rules, props.property)) {
|
12174
|
+
rules = form2.props.rules[props.property];
|
12175
|
+
}
|
12176
|
+
if (props.rules) {
|
12177
|
+
rules = props.rules;
|
12178
|
+
}
|
12179
|
+
rules = mergeRules(rules, getRulesFromProps(props));
|
12180
|
+
const value = form2.props.model[props.property];
|
12181
|
+
const doValidate = (() => {
|
12182
|
+
let stepIndex = -1;
|
12183
|
+
return () => {
|
12184
|
+
stepIndex = stepIndex + 1;
|
12185
|
+
if (stepIndex >= rules.length) {
|
12186
|
+
return Promise.resolve();
|
12187
|
+
}
|
12188
|
+
const rule = rules[stepIndex];
|
12189
|
+
return Promise.resolve().then(() => {
|
12190
|
+
const result = rule.validator(value);
|
12191
|
+
if (typeof result !== "boolean" && typeof result.then === "function") {
|
12192
|
+
return result.then(() => doValidate, () => {
|
12193
|
+
state.isError = true;
|
12194
|
+
state.errorMessage = rule.message;
|
12195
|
+
return Promise.reject(rule.message);
|
12196
|
+
});
|
12197
|
+
}
|
12198
|
+
if (!result) {
|
12199
|
+
state.isError = true;
|
12200
|
+
state.errorMessage = rule.message;
|
12201
|
+
return Promise.reject(rule.message);
|
12202
|
+
}
|
12203
|
+
return doValidate();
|
12204
|
+
});
|
12205
|
+
};
|
12206
|
+
})();
|
12207
|
+
return doValidate();
|
12208
|
+
};
|
12209
|
+
const clearValidate = () => {
|
12210
|
+
state.isError = false;
|
12211
|
+
state.errorMessage = "";
|
12212
|
+
};
|
12213
|
+
vue.onMounted(() => {
|
12214
|
+
if (isForm) {
|
12215
|
+
form2.register(currentInstance.proxy);
|
12216
|
+
}
|
12217
|
+
});
|
12218
|
+
vue.onBeforeUnmount(() => {
|
12219
|
+
if (isForm) {
|
12220
|
+
form2.unregister(currentInstance.proxy);
|
12221
|
+
}
|
12222
|
+
});
|
12223
|
+
return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
|
12224
|
+
labelStyles,
|
12225
|
+
validate,
|
12226
|
+
clearValidate
|
12227
|
+
});
|
12228
|
+
},
|
12229
|
+
render() {
|
12230
|
+
const itemClassees = classes({
|
12231
|
+
"is-error": this.isError,
|
12232
|
+
"is-required": this.required
|
12233
|
+
}, "bk-form-item");
|
12234
|
+
return vue.createVNode("div", {
|
12235
|
+
"class": itemClassees
|
12236
|
+
}, [vue.createVNode("div", {
|
12237
|
+
"class": "bk-form-label",
|
12238
|
+
"style": this.labelStyles
|
12239
|
+
}, [this.label]), vue.createVNode("div", {
|
12240
|
+
"class": "bk-form-content"
|
12241
|
+
}, [this.$slots.default(), this.isError && vue.createVNode("div", {
|
12242
|
+
"class": "bk-form-error"
|
12243
|
+
}, [this.errorMessage])])]);
|
12244
|
+
}
|
12245
|
+
});
|
12246
|
+
const BkForm = withInstallProps(Form, { FormItem });
|
11949
12247
|
var components = /* @__PURE__ */ Object.freeze({
|
11950
12248
|
__proto__: null,
|
11951
12249
|
[Symbol.toStringTag]: "Module",
|
@@ -11991,7 +12289,9 @@ ${$(r2)}`), n2;
|
|
11991
12289
|
Navigation,
|
11992
12290
|
DatePicker: BkDatePicker,
|
11993
12291
|
Tree: BkTree,
|
11994
|
-
VirtualRender: BkVirtualRender
|
12292
|
+
VirtualRender: BkVirtualRender,
|
12293
|
+
Form: BkForm,
|
12294
|
+
FormItem
|
11995
12295
|
});
|
11996
12296
|
const createInstall = (prefix = "Bk") => (app) => {
|
11997
12297
|
const pre = app.config.globalProperties.bkUIPrefix || prefix;
|
@@ -12028,6 +12328,8 @@ ${$(r2)}`), n2;
|
|
12028
12328
|
exports2.Divider = BkDivider;
|
12029
12329
|
exports2.Exception = BkException;
|
12030
12330
|
exports2.FixedNavbar = BkFixedNavbar;
|
12331
|
+
exports2.Form = BkForm;
|
12332
|
+
exports2.FormItem = FormItem;
|
12031
12333
|
exports2.Input = BkInput;
|
12032
12334
|
exports2.Link = BkLink;
|
12033
12335
|
exports2.Loading = BkLoading;
|