bkui-vue 0.0.1-beta.17 → 0.0.1-beta.172
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/README.md +7 -3
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +35527 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4602
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +116 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +29 -6
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +32 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +29 -8
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +29 -8
- package/lib/badge/index.d.ts +71 -21
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +75 -3
- package/lib/breadcrumb/index.d.ts +5 -5
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +51 -6
- package/lib/button/button.less +88 -47
- package/lib/button/button.variable.css +116 -48
- package/lib/button/index.d.ts +85 -14
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +120 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +66 -0
- package/lib/cascader/cascader.css +150 -0
- package/lib/cascader/cascader.d.ts +289 -0
- package/lib/cascader/cascader.less +170 -0
- package/lib/cascader/cascader.variable.css +263 -0
- package/lib/cascader/index.d.ts +792 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +47 -0
- package/lib/cascader/node.d.ts +25 -0
- package/lib/cascader/store.d.ts +19 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +38 -6
- package/lib/checkbox/checkbox.d.ts +16 -14
- package/lib/checkbox/checkbox.less +48 -6
- package/lib/checkbox/checkbox.variable.css +62 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +40 -23
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +3 -7
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +299 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +75 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +11 -52
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +141 -12
- package/lib/collapse/index.d.ts +116 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +123 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +388 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +26 -6
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +204 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +54 -137
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +42 -5
- package/lib/date-picker/index.d.ts +93 -32
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -1
- package/lib/date-picker/props.d.ts +161 -0
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +78 -21
- package/lib/dialog/dialog.d.ts +264 -52
- package/lib/dialog/dialog.less +56 -22
- package/lib/dialog/dialog.variable.css +78 -21
- package/lib/dialog/index.d.ts +581 -115
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +132 -0
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/ellipsis.d.ts +4 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +24 -3
- package/lib/divider/index.d.ts +4 -4
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +35 -4
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +37 -10
- package/lib/dropdown/index.d.ts +75 -14
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +10 -3
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +64 -17
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +24 -3
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +21 -24
- package/lib/form/form.css +102 -10
- package/lib/form/form.d.ts +38 -41
- package/lib/form/form.less +145 -34
- package/lib/form/form.variable.css +215 -10
- package/lib/form/index.d.ts +303 -3
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -15
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +36 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original .d.ts +4 -0
- package/lib/icon/original .js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -15
- package/lib/icon/plus.js +1 -15
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.js +1 -15
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -15
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -15
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +23 -0
- package/lib/info-box/index.js +1 -0
- package/lib/input/index.d.ts +212 -47
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -17
- package/lib/input/input.d.ts +143 -13
- package/lib/input/input.less +180 -18
- package/lib/input/input.variable.css +253 -16
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +36 -15
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +96 -12
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +201 -101
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +75 -3
- package/lib/menu/submenu.variable.css +24 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +48 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +473 -60
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +25 -1
- package/lib/modal/modal.d.ts +181 -23
- package/lib/modal/modal.less +33 -1
- package/lib/modal/modal.variable.css +25 -1
- package/lib/modal/props.mixin.d.ts +77 -10
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +10 -1
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +25 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +48 -7
- package/lib/notify/notifyConstructor.d.ts +50 -6
- package/lib/pagination/index.d.ts +410 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +205 -0
- package/lib/pagination/pagination.d.ts +230 -0
- package/lib/pagination/pagination.less +228 -0
- package/lib/pagination/pagination.variable.css +318 -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/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/index.d.ts +111 -11
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +4 -0
- package/lib/popover/popover.d.ts +52 -4
- package/lib/popover/popover.less +4 -0
- package/lib/popover/popover.variable.css +28 -3
- package/lib/popover/props.d.ts +28 -1
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +509 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/plugin-popover.d.ts +12 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +214 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +112 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +20 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popover-init.d.ts +13 -0
- package/lib/popover2/use-popper-id.d.ts +7 -0
- package/lib/popover2/utils.d.ts +1 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +7 -7
- package/lib/process/index.js +1 -15
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.variable.css +24 -3
- package/lib/progress/index.d.ts +16 -16
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +5 -5
- package/lib/progress/progress.variable.css +75 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +30 -19
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +16 -0
- package/lib/radio/radio.css +62 -57
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +88 -62
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +24 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +11 -0
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +302 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1095 -458
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +16 -4
- package/lib/select/optionGroup.d.ts +1 -77
- package/lib/select/select.css +265 -81
- package/lib/select/select.d.ts +435 -126
- package/lib/select/select.less +364 -184
- package/lib/select/select.variable.css +290 -85
- package/lib/select/selectTagInput.d.ts +92 -0
- package/lib/select/type.d.ts +38 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
- package/lib/shared/index.d.ts +17 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +11 -7
- package/lib/sideslider/index.d.ts +365 -61
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +54 -10
- package/lib/sideslider/sideslider.d.ts +169 -26
- package/lib/sideslider/sideslider.less +71 -13
- package/lib/sideslider/sideslider.variable.css +78 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +5 -0
- package/lib/slider/slider.d.ts +14 -2
- package/lib/slider/slider.variable.css +24 -3
- package/lib/steps/index.d.ts +7 -7
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +2 -2
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +38 -6
- package/lib/styles/index.d.ts +13 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +130 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -0
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +30 -3
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +37 -14
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +16 -5
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +81 -9
- package/lib/tab/index.d.ts +110 -222
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +66 -87
- package/lib/tab/tab-panel.d.ts +40 -15
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +18 -42
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +49 -4
- package/lib/table/const.d.ts +66 -1
- package/lib/table/index.d.ts +347 -12
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +72 -0
- package/lib/table/plugins/head-filter.less +93 -0
- package/lib/table/plugins/head-filter.variable.css +185 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +135 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +242 -0
- package/lib/table/props.d.ts +210 -4
- package/lib/table/render.d.ts +61 -6
- package/lib/table/table.css +1128 -15
- package/lib/table/table.d.ts +154 -8
- package/lib/table/table.less +223 -24
- package/lib/table/table.variable.css +1163 -29
- package/lib/table/use-common.d.ts +72 -0
- package/lib/table/utils.d.ts +58 -3
- package/lib/tag/index.d.ts +189 -22
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +112 -0
- package/lib/tag/tag.d.ts +83 -7
- package/lib/tag/tag.less +127 -2
- package/lib/tag/tag.variable.css +136 -3
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +913 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +383 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +322 -0
- package/lib/tag-input/tag-props.d.ts +135 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +328 -0
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +5 -5
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +6 -5
- package/lib/timeline/timeline.variable.css +29 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +365 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +139 -0
- package/lib/transfer/transfer.d.ts +160 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +252 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +340 -44
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +114 -0
- package/lib/tree/tree.css +175 -14
- package/lib/tree/tree.d.ts +157 -15
- package/lib/tree/tree.less +70 -26
- package/lib/tree/tree.variable.css +288 -14
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +31 -13
- package/lib/upload/index.d.ts +580 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +422 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +461 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +535 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +30 -7
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -24
- package/lib/virtual-render/virtual-render.d.ts +15 -4
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +130 -24
- package/lib/volar.components.d.ts +100 -0
- package/package.json +104 -84
- package/README_EN.md +0 -89
- package/dist/bkui-vue.cjs.js +0 -12058
- package/dist/bkui-vue.esm.js +0 -12009
- package/dist/bkui-vue.umd.js +0 -12061
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/help.js +0 -15
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
:root {
|
2
2
|
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
3
4
|
--primary-color: #3a84ff;
|
4
5
|
--success-color: #2dcb56;
|
5
6
|
--warning-color: #ff9c01;
|
@@ -8,6 +9,7 @@
|
|
8
9
|
--gray-color: #979ba5;
|
9
10
|
--light-gray: #c4c6cc;
|
10
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
11
13
|
--disable-color: #dcdee5;
|
12
14
|
--font-size-base: 12px;
|
13
15
|
--font-size-medium: 14px;
|
@@ -17,7 +19,7 @@
|
|
17
19
|
--line-height-large: 18px;
|
18
20
|
--component-size-small: 26px;
|
19
21
|
--component-size-base: 32px;
|
20
|
-
--component-size-large:
|
22
|
+
--component-size-large: 40px;
|
21
23
|
--border-width-base: 1px;
|
22
24
|
--border-style-base: solid;
|
23
25
|
--border-radius-base: 2px;
|
@@ -30,8 +32,9 @@
|
|
30
32
|
--input-broder-radius: 3px;
|
31
33
|
--input-shadow-color: #a3c5fd;
|
32
34
|
--input-horizontal-padding: 10px;
|
33
|
-
--input-block-color: #
|
34
|
-
--input-
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
37
|
+
--input-icon-size: var(--font-size-medium);
|
35
38
|
--input-maxlength-color: #979ba5;
|
36
39
|
--button-primary-hover-color: #5594fa;
|
37
40
|
--button-danger-hover-color: #ff5656;
|
@@ -42,6 +45,15 @@
|
|
42
45
|
--button-danger-active-color: #db2626;
|
43
46
|
--button-success-active-color: #1ab943;
|
44
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
50
|
+
--radio-font-color: #63656e;
|
51
|
+
--radio-active-color: #5594fa;
|
52
|
+
--radio-hover-border-color: #979ba5;
|
53
|
+
--radio-disabled-border: #dcdee5;
|
54
|
+
--radio-disabled-font-color: #c4c6c;
|
55
|
+
--radio-distable-checked-bg: #fafbfd;
|
56
|
+
--radio-button-checked-bg: #e1ecff;
|
45
57
|
--fixed-navbar-background: #fff;
|
46
58
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
47
59
|
--switch-default-color: #fff;
|
@@ -62,12 +74,16 @@
|
|
62
74
|
--message-color: var(--default-color);
|
63
75
|
--message-primary-bg-color: #f0f8ff;
|
64
76
|
--message-primary-border-color: #e1ecff;
|
77
|
+
--message-primary-shadow-color: #e1e8f4;
|
65
78
|
--message-warning-bg-color: #fff4e2;
|
66
79
|
--message-warning-border-color: #ffe8c3;
|
80
|
+
--message-warning-shadow-color: #ede6db;
|
67
81
|
--message-success-bg-color: #f2fff4;
|
68
82
|
--message-success-border-color: #dcffe2;
|
83
|
+
--message-success-shadow-color: #cef0d7;
|
69
84
|
--message-danger-bg-color: #ffeded;
|
70
85
|
--message-danger-border-color: #ffdddd;
|
86
|
+
--message-danger-shadow-color: #f6dada;
|
71
87
|
--slider-default-bg: #dcdee5;
|
72
88
|
--slider-disable-bar-bg: #979ba5;
|
73
89
|
--menu-bg-color: #182132;
|
@@ -89,6 +105,11 @@
|
|
89
105
|
--table-head-font-color: #313238;
|
90
106
|
--table-body-font-color: #575961;
|
91
107
|
--table-row-hover-bg-color: #f5f7fa;
|
108
|
+
--table-row-active-bg-color: #f0f1f5;
|
109
|
+
--cascader-panel-border-color: #dcdee5;
|
110
|
+
--cascader-panel-hover: #f5f7fa;
|
111
|
+
--cascader-panel-active: #e1ecff;
|
112
|
+
--cascader-panel-disabled-bg: #fff;
|
92
113
|
}
|
93
114
|
.bk-notify {
|
94
115
|
position: fixed;
|
@@ -116,7 +137,7 @@
|
|
116
137
|
.bk-notify.bk-notify-success .bk-notify-icon {
|
117
138
|
color: var(--success-color);
|
118
139
|
}
|
119
|
-
.bk-notify.bk-notify-
|
140
|
+
.bk-notify.bk-notify-error .bk-notify-icon {
|
120
141
|
color: var(--danger-color);
|
121
142
|
}
|
122
143
|
.bk-notify .bk-notify-icon.bk-notify-close {
|
@@ -124,18 +145,38 @@
|
|
124
145
|
right: 12px;
|
125
146
|
margin-right: 0;
|
126
147
|
font-size: 18px;
|
127
|
-
color: var(--gray
|
148
|
+
color: var(--light-gray);
|
128
149
|
cursor: pointer;
|
129
150
|
}
|
151
|
+
.bk-notify .bk-notify-icon.bk-notify-close:hover {
|
152
|
+
color: var(--gray-color);
|
153
|
+
}
|
130
154
|
.bk-notify .bk-notify-content-header {
|
131
155
|
display: inline-block;
|
132
156
|
padding-left: 23px;
|
133
157
|
margin-top: 0;
|
134
|
-
margin-bottom:
|
135
|
-
font-size:
|
158
|
+
margin-bottom: 7px;
|
159
|
+
font-size: 16px;
|
136
160
|
font-weight: 700;
|
161
|
+
color: #313238;
|
137
162
|
}
|
138
163
|
.bk-notify .bk-notify-content-text {
|
139
164
|
display: inline-block;
|
140
165
|
padding-left: 23px;
|
141
166
|
}
|
167
|
+
.bk-notify-fade-enter-active,
|
168
|
+
.bk-notify-fade-leave-active {
|
169
|
+
transition: transform 0.3s linear, opacity 0.2s linear;
|
170
|
+
}
|
171
|
+
.bk-notify-fade-enter-from,
|
172
|
+
.bk-notify-fade-leave-to {
|
173
|
+
opacity: 0;
|
174
|
+
}
|
175
|
+
.bk-notify-fade-enter-from.right,
|
176
|
+
.bk-notify-fade-leave-to.right {
|
177
|
+
transform: translateX(100%);
|
178
|
+
}
|
179
|
+
.bk-notify-fade-enter-from.left,
|
180
|
+
.bk-notify-fade-leave-to.left {
|
181
|
+
transform: translateX(-100%);
|
182
|
+
}
|
@@ -25,11 +25,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
} & {
|
26
26
|
default: number;
|
27
27
|
};
|
28
|
-
|
28
|
+
dismissable: import("vue-types").VueTypeValidableDef<boolean> & {
|
29
|
+
default: boolean;
|
30
|
+
} & {
|
31
|
+
default: boolean;
|
32
|
+
};
|
33
|
+
offsetX: import("vue-types").VueTypeValidableDef<number> & {
|
34
|
+
default: number;
|
35
|
+
} & {
|
36
|
+
default: number;
|
37
|
+
};
|
38
|
+
offsetY: import("vue-types").VueTypeValidableDef<number> & {
|
29
39
|
default: number;
|
30
40
|
} & {
|
31
41
|
default: number;
|
32
42
|
};
|
43
|
+
spacing: import("vue-types").VueTypeValidableDef<number> & {
|
44
|
+
default: number;
|
45
|
+
} & {
|
46
|
+
default: number;
|
47
|
+
};
|
48
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
} & {
|
51
|
+
default: string;
|
52
|
+
};
|
33
53
|
onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
34
54
|
default: (...args: any[]) => any;
|
35
55
|
};
|
@@ -41,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
61
|
}>;
|
42
62
|
visible: import("vue").Ref<boolean>;
|
43
63
|
handleClose: () => void;
|
44
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "destroy"[], "destroy", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
65
|
id: import("vue-types").VueTypeValidableDef<string> & {
|
46
66
|
default: string;
|
47
67
|
} & {
|
@@ -68,24 +88,48 @@ declare const _default: import("vue").DefineComponent<{
|
|
68
88
|
} & {
|
69
89
|
default: number;
|
70
90
|
};
|
71
|
-
|
91
|
+
dismissable: import("vue-types").VueTypeValidableDef<boolean> & {
|
92
|
+
default: boolean;
|
93
|
+
} & {
|
94
|
+
default: boolean;
|
95
|
+
};
|
96
|
+
offsetX: import("vue-types").VueTypeValidableDef<number> & {
|
97
|
+
default: number;
|
98
|
+
} & {
|
99
|
+
default: number;
|
100
|
+
};
|
101
|
+
offsetY: import("vue-types").VueTypeValidableDef<number> & {
|
72
102
|
default: number;
|
73
103
|
} & {
|
74
104
|
default: number;
|
75
105
|
};
|
106
|
+
spacing: import("vue-types").VueTypeValidableDef<number> & {
|
107
|
+
default: number;
|
108
|
+
} & {
|
109
|
+
default: number;
|
110
|
+
};
|
111
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
112
|
+
default: string;
|
113
|
+
} & {
|
114
|
+
default: string;
|
115
|
+
};
|
76
116
|
onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
77
117
|
default: (...args: any[]) => any;
|
78
118
|
};
|
79
119
|
}>> & {
|
80
|
-
|
120
|
+
onDestroy?: (...args: any[]) => any;
|
81
121
|
}, {
|
82
122
|
title: string;
|
83
|
-
offset: number;
|
84
123
|
id: string;
|
85
|
-
onClose: (...args: any[]) => any;
|
86
124
|
theme: string;
|
125
|
+
extCls: string;
|
87
126
|
position: string;
|
127
|
+
offsetX: number;
|
128
|
+
offsetY: number;
|
129
|
+
onClose: (...args: any[]) => any;
|
88
130
|
message: string;
|
131
|
+
spacing: number;
|
89
132
|
delay: number;
|
133
|
+
dismissable: boolean;
|
90
134
|
}>;
|
91
135
|
export default _default;
|
@@ -0,0 +1,410 @@
|
|
1
|
+
declare const BkPagination: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
small: boolean;
|
7
|
+
type: string;
|
8
|
+
disabled: boolean;
|
9
|
+
location: string;
|
10
|
+
layout: string[];
|
11
|
+
count: number;
|
12
|
+
modelValue: number;
|
13
|
+
beforeChange: (...args: any[]) => any;
|
14
|
+
prevText: string;
|
15
|
+
nextText: string;
|
16
|
+
align: string;
|
17
|
+
limit: number;
|
18
|
+
limitList: number[];
|
19
|
+
showLimit: boolean;
|
20
|
+
showTotalCount: boolean;
|
21
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
22
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
23
|
+
default: number;
|
24
|
+
} & {
|
25
|
+
default: number;
|
26
|
+
};
|
27
|
+
count: import("vue-types").VueTypeValidableDef<number> & {
|
28
|
+
default: number;
|
29
|
+
} & {
|
30
|
+
default: number;
|
31
|
+
} & {
|
32
|
+
required: true;
|
33
|
+
};
|
34
|
+
limit: import("vue-types").VueTypeValidableDef<number> & {
|
35
|
+
default: number;
|
36
|
+
} & {
|
37
|
+
default: number;
|
38
|
+
};
|
39
|
+
limitList: import("vue-types").VueTypeDef<number[]> & {
|
40
|
+
default: () => number[];
|
41
|
+
};
|
42
|
+
showLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
43
|
+
default: boolean;
|
44
|
+
} & {
|
45
|
+
default: boolean;
|
46
|
+
};
|
47
|
+
type: import("vue-types").VueTypeDef<string> & {
|
48
|
+
default: string;
|
49
|
+
};
|
50
|
+
location: import("vue-types").VueTypeDef<string> & {
|
51
|
+
default: string;
|
52
|
+
};
|
53
|
+
align: import("vue-types").VueTypeDef<string> & {
|
54
|
+
default: string;
|
55
|
+
};
|
56
|
+
size: import("vue-types").VueTypeDef<string>;
|
57
|
+
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
58
|
+
default: boolean;
|
59
|
+
} & {
|
60
|
+
default: boolean;
|
61
|
+
};
|
62
|
+
showTotalCount: import("vue-types").VueTypeValidableDef<boolean> & {
|
63
|
+
default: boolean;
|
64
|
+
} & {
|
65
|
+
default: boolean;
|
66
|
+
};
|
67
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
71
|
+
default: string;
|
72
|
+
};
|
73
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
74
|
+
default: boolean;
|
75
|
+
} & {
|
76
|
+
default: boolean;
|
77
|
+
};
|
78
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
79
|
+
default: (...args: any[]) => any;
|
80
|
+
};
|
81
|
+
layout: import("vue-types").VueTypeDef<string[]> & {
|
82
|
+
default: () => string[];
|
83
|
+
};
|
84
|
+
}>> & {
|
85
|
+
onChange?: (...args: any[]) => any;
|
86
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
87
|
+
"onUpdate:limit"?: (...args: any[]) => any;
|
88
|
+
onLimitChange?: (...args: any[]) => any;
|
89
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "small" | "type" | "disabled" | "location" | "layout" | "count" | "modelValue" | "beforeChange" | "prevText" | "nextText" | "align" | "limit" | "limitList" | "showLimit" | "showTotalCount">;
|
90
|
+
$attrs: {
|
91
|
+
[x: string]: unknown;
|
92
|
+
};
|
93
|
+
$refs: {
|
94
|
+
[x: string]: unknown;
|
95
|
+
};
|
96
|
+
$slots: Readonly<{
|
97
|
+
[name: string]: import("vue").Slot;
|
98
|
+
}>;
|
99
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
100
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
101
|
+
$emit: (event: "change" | "update:modelValue" | "update:limit" | "limitChange", ...args: any[]) => void;
|
102
|
+
$el: any;
|
103
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
104
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
105
|
+
default: number;
|
106
|
+
} & {
|
107
|
+
default: number;
|
108
|
+
};
|
109
|
+
count: import("vue-types").VueTypeValidableDef<number> & {
|
110
|
+
default: number;
|
111
|
+
} & {
|
112
|
+
default: number;
|
113
|
+
} & {
|
114
|
+
required: true;
|
115
|
+
};
|
116
|
+
limit: import("vue-types").VueTypeValidableDef<number> & {
|
117
|
+
default: number;
|
118
|
+
} & {
|
119
|
+
default: number;
|
120
|
+
};
|
121
|
+
limitList: import("vue-types").VueTypeDef<number[]> & {
|
122
|
+
default: () => number[];
|
123
|
+
};
|
124
|
+
showLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
125
|
+
default: boolean;
|
126
|
+
} & {
|
127
|
+
default: boolean;
|
128
|
+
};
|
129
|
+
type: import("vue-types").VueTypeDef<string> & {
|
130
|
+
default: string;
|
131
|
+
};
|
132
|
+
location: import("vue-types").VueTypeDef<string> & {
|
133
|
+
default: string;
|
134
|
+
};
|
135
|
+
align: import("vue-types").VueTypeDef<string> & {
|
136
|
+
default: string;
|
137
|
+
};
|
138
|
+
size: import("vue-types").VueTypeDef<string>;
|
139
|
+
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
140
|
+
default: boolean;
|
141
|
+
} & {
|
142
|
+
default: boolean;
|
143
|
+
};
|
144
|
+
showTotalCount: import("vue-types").VueTypeValidableDef<boolean> & {
|
145
|
+
default: boolean;
|
146
|
+
} & {
|
147
|
+
default: boolean;
|
148
|
+
};
|
149
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
150
|
+
default: string;
|
151
|
+
};
|
152
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
153
|
+
default: string;
|
154
|
+
};
|
155
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
156
|
+
default: boolean;
|
157
|
+
} & {
|
158
|
+
default: boolean;
|
159
|
+
};
|
160
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
161
|
+
default: (...args: any[]) => any;
|
162
|
+
};
|
163
|
+
layout: import("vue-types").VueTypeDef<string[]> & {
|
164
|
+
default: () => string[];
|
165
|
+
};
|
166
|
+
}>> & {
|
167
|
+
onChange?: (...args: any[]) => any;
|
168
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
169
|
+
"onUpdate:limit"?: (...args: any[]) => any;
|
170
|
+
onLimitChange?: (...args: any[]) => any;
|
171
|
+
}, {
|
172
|
+
totalPageNum: import("vue").Ref<number>;
|
173
|
+
renderTotal: ({ isFirst, isLast }: {
|
174
|
+
isFirst: any;
|
175
|
+
isLast: any;
|
176
|
+
}) => JSX.Element;
|
177
|
+
renderList: ({ isFirst, isLast }: {
|
178
|
+
isFirst: any;
|
179
|
+
isLast: any;
|
180
|
+
}) => JSX.Element;
|
181
|
+
renderLimit: ({ isFirst, isLast }: {
|
182
|
+
isFirst: any;
|
183
|
+
isLast: any;
|
184
|
+
}) => JSX.Element;
|
185
|
+
renderSmallList: () => JSX.Element;
|
186
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], string, {
|
187
|
+
small: boolean;
|
188
|
+
type: string;
|
189
|
+
disabled: boolean;
|
190
|
+
location: string;
|
191
|
+
layout: string[];
|
192
|
+
count: number;
|
193
|
+
modelValue: number;
|
194
|
+
beforeChange: (...args: any[]) => any;
|
195
|
+
prevText: string;
|
196
|
+
nextText: string;
|
197
|
+
align: string;
|
198
|
+
limit: number;
|
199
|
+
limitList: number[];
|
200
|
+
showLimit: boolean;
|
201
|
+
showTotalCount: boolean;
|
202
|
+
}> & {
|
203
|
+
beforeCreate?: (() => void) | (() => void)[];
|
204
|
+
created?: (() => void) | (() => void)[];
|
205
|
+
beforeMount?: (() => void) | (() => void)[];
|
206
|
+
mounted?: (() => void) | (() => void)[];
|
207
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
208
|
+
updated?: (() => void) | (() => void)[];
|
209
|
+
activated?: (() => void) | (() => void)[];
|
210
|
+
deactivated?: (() => void) | (() => void)[];
|
211
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
212
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
213
|
+
destroyed?: (() => void) | (() => void)[];
|
214
|
+
unmounted?: (() => void) | (() => void)[];
|
215
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
216
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
217
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
218
|
+
};
|
219
|
+
$forceUpdate: () => void;
|
220
|
+
$nextTick: typeof import("vue").nextTick;
|
221
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
222
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
223
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
224
|
+
default: number;
|
225
|
+
} & {
|
226
|
+
default: number;
|
227
|
+
};
|
228
|
+
count: import("vue-types").VueTypeValidableDef<number> & {
|
229
|
+
default: number;
|
230
|
+
} & {
|
231
|
+
default: number;
|
232
|
+
} & {
|
233
|
+
required: true;
|
234
|
+
};
|
235
|
+
limit: import("vue-types").VueTypeValidableDef<number> & {
|
236
|
+
default: number;
|
237
|
+
} & {
|
238
|
+
default: number;
|
239
|
+
};
|
240
|
+
limitList: import("vue-types").VueTypeDef<number[]> & {
|
241
|
+
default: () => number[];
|
242
|
+
};
|
243
|
+
showLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
244
|
+
default: boolean;
|
245
|
+
} & {
|
246
|
+
default: boolean;
|
247
|
+
};
|
248
|
+
type: import("vue-types").VueTypeDef<string> & {
|
249
|
+
default: string;
|
250
|
+
};
|
251
|
+
location: import("vue-types").VueTypeDef<string> & {
|
252
|
+
default: string;
|
253
|
+
};
|
254
|
+
align: import("vue-types").VueTypeDef<string> & {
|
255
|
+
default: string;
|
256
|
+
};
|
257
|
+
size: import("vue-types").VueTypeDef<string>;
|
258
|
+
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
259
|
+
default: boolean;
|
260
|
+
} & {
|
261
|
+
default: boolean;
|
262
|
+
};
|
263
|
+
showTotalCount: import("vue-types").VueTypeValidableDef<boolean> & {
|
264
|
+
default: boolean;
|
265
|
+
} & {
|
266
|
+
default: boolean;
|
267
|
+
};
|
268
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
269
|
+
default: string;
|
270
|
+
};
|
271
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
272
|
+
default: string;
|
273
|
+
};
|
274
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
275
|
+
default: boolean;
|
276
|
+
} & {
|
277
|
+
default: boolean;
|
278
|
+
};
|
279
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
280
|
+
default: (...args: any[]) => any;
|
281
|
+
};
|
282
|
+
layout: import("vue-types").VueTypeDef<string[]> & {
|
283
|
+
default: () => string[];
|
284
|
+
};
|
285
|
+
}>> & {
|
286
|
+
onChange?: (...args: any[]) => any;
|
287
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
288
|
+
"onUpdate:limit"?: (...args: any[]) => any;
|
289
|
+
onLimitChange?: (...args: any[]) => any;
|
290
|
+
} & import("vue").ShallowUnwrapRef<{
|
291
|
+
totalPageNum: import("vue").Ref<number>;
|
292
|
+
renderTotal: ({ isFirst, isLast }: {
|
293
|
+
isFirst: any;
|
294
|
+
isLast: any;
|
295
|
+
}) => JSX.Element;
|
296
|
+
renderList: ({ isFirst, isLast }: {
|
297
|
+
isFirst: any;
|
298
|
+
isLast: any;
|
299
|
+
}) => JSX.Element;
|
300
|
+
renderLimit: ({ isFirst, isLast }: {
|
301
|
+
isFirst: any;
|
302
|
+
isLast: any;
|
303
|
+
}) => JSX.Element;
|
304
|
+
renderSmallList: () => JSX.Element;
|
305
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
306
|
+
__isFragment?: never;
|
307
|
+
__isTeleport?: never;
|
308
|
+
__isSuspense?: never;
|
309
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
310
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
311
|
+
default: number;
|
312
|
+
} & {
|
313
|
+
default: number;
|
314
|
+
};
|
315
|
+
count: import("vue-types").VueTypeValidableDef<number> & {
|
316
|
+
default: number;
|
317
|
+
} & {
|
318
|
+
default: number;
|
319
|
+
} & {
|
320
|
+
required: true;
|
321
|
+
};
|
322
|
+
limit: import("vue-types").VueTypeValidableDef<number> & {
|
323
|
+
default: number;
|
324
|
+
} & {
|
325
|
+
default: number;
|
326
|
+
};
|
327
|
+
limitList: import("vue-types").VueTypeDef<number[]> & {
|
328
|
+
default: () => number[];
|
329
|
+
};
|
330
|
+
showLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
331
|
+
default: boolean;
|
332
|
+
} & {
|
333
|
+
default: boolean;
|
334
|
+
};
|
335
|
+
type: import("vue-types").VueTypeDef<string> & {
|
336
|
+
default: string;
|
337
|
+
};
|
338
|
+
location: import("vue-types").VueTypeDef<string> & {
|
339
|
+
default: string;
|
340
|
+
};
|
341
|
+
align: import("vue-types").VueTypeDef<string> & {
|
342
|
+
default: string;
|
343
|
+
};
|
344
|
+
size: import("vue-types").VueTypeDef<string>;
|
345
|
+
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
346
|
+
default: boolean;
|
347
|
+
} & {
|
348
|
+
default: boolean;
|
349
|
+
};
|
350
|
+
showTotalCount: import("vue-types").VueTypeValidableDef<boolean> & {
|
351
|
+
default: boolean;
|
352
|
+
} & {
|
353
|
+
default: boolean;
|
354
|
+
};
|
355
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
356
|
+
default: string;
|
357
|
+
};
|
358
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
359
|
+
default: string;
|
360
|
+
};
|
361
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
362
|
+
default: boolean;
|
363
|
+
} & {
|
364
|
+
default: boolean;
|
365
|
+
};
|
366
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
367
|
+
default: (...args: any[]) => any;
|
368
|
+
};
|
369
|
+
layout: import("vue-types").VueTypeDef<string[]> & {
|
370
|
+
default: () => string[];
|
371
|
+
};
|
372
|
+
}>> & {
|
373
|
+
onChange?: (...args: any[]) => any;
|
374
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
375
|
+
"onUpdate:limit"?: (...args: any[]) => any;
|
376
|
+
onLimitChange?: (...args: any[]) => any;
|
377
|
+
}, {
|
378
|
+
totalPageNum: import("vue").Ref<number>;
|
379
|
+
renderTotal: ({ isFirst, isLast }: {
|
380
|
+
isFirst: any;
|
381
|
+
isLast: any;
|
382
|
+
}) => JSX.Element;
|
383
|
+
renderList: ({ isFirst, isLast }: {
|
384
|
+
isFirst: any;
|
385
|
+
isLast: any;
|
386
|
+
}) => JSX.Element;
|
387
|
+
renderLimit: ({ isFirst, isLast }: {
|
388
|
+
isFirst: any;
|
389
|
+
isLast: any;
|
390
|
+
}) => JSX.Element;
|
391
|
+
renderSmallList: () => JSX.Element;
|
392
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], "change" | "update:modelValue" | "update:limit" | "limitChange", {
|
393
|
+
small: boolean;
|
394
|
+
type: string;
|
395
|
+
disabled: boolean;
|
396
|
+
location: string;
|
397
|
+
layout: string[];
|
398
|
+
count: number;
|
399
|
+
modelValue: number;
|
400
|
+
beforeChange: (...args: any[]) => any;
|
401
|
+
prevText: string;
|
402
|
+
nextText: string;
|
403
|
+
align: string;
|
404
|
+
limit: number;
|
405
|
+
limitList: number[];
|
406
|
+
showLimit: boolean;
|
407
|
+
showTotalCount: boolean;
|
408
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
409
|
+
export default BkPagination;
|
410
|
+
export { BkPagination, };
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover2"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../select","../icon","../popover2"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover2")):t(e["../shared"],e.vue,e["../select"],e["../icon"],e["../popover2"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r)=>(()=>{"use strict";var i={6870:e=>{e.exports=a},6175:e=>{e.exports=r},6422:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{l.r(u),l.d(u,{BkPagination:()=>v,default:()=>m});var e=l(4212);function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r=l(748),i=l(6422),o=l.n(i),c=l(6870),s=l(6175),d=l.n(s);var f={modelValue:e.PropTypes.number.def(1),count:e.PropTypes.number.def(0).isRequired,limit:e.PropTypes.number.def(10),limitList:e.PropTypes.arrayOf(Number).def([10,20,50,100]),showLimit:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["default","compact"]).def("default"),location:e.PropTypes.oneOf(["left","right"]).def("right"),align:e.PropTypes.oneOf(["left","center","right"]).def("left"),size:e.PropTypes.size(),small:e.PropTypes.bool.def(!1),showTotalCount:e.PropTypes.bool.def(!0),prevText:e.PropTypes.string,nextText:e.PropTypes.string,disabled:e.PropTypes.bool.def(!1),beforeChange:e.PropTypes.func,layout:e.PropTypes.custom((function(e){var t={total:!0,list:!0,limit:!0};return e.some((function(e){return t[e]}))}),"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])};const p=(0,r.defineComponent)({name:"Pagination",props:f,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var n=(0,r.ref)(0),l=(0,r.toRefs)(e),u=l.count,s=l.limit,f=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(1),n=(0,r.computed)((function(){return 1===t.value})),a=(0,r.computed)((function(){return t.value===e.totalPageNum})),i=(0,r.ref)(!1),o=(0,r.ref)(!1),l=(0,r.computed)((function(){i.value=!1,o.value=!1;var n=[];if(e.totalPageNum<=7){for(var a=2;a<=e.totalPageNum-1;a++)n.push(a);return n}var r=Math.floor(2.5);e.totalPageNum>5&&(i.value=t.value-r>2,o.value=t.value+r<e.totalPageNum-1);for(var l=Math.min(e.totalPageNum-5,Math.max(2,t.value-r)),u=l;u<l+5;u++)n.push(u);return n}));(0,r.watch)((function(){return e.modelValue}),(function(n){(0,r.nextTick)((function(){n>=1&&n<=e.totalPageNum?t.value=n:t.value=n<1?1:e.totalPageNum}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var u=function(){n.value||(t.value=t.value-1)},s=function(){a.value||(t.value=t.value+1)},d=function(e){e!==t.value&&(t.value=e)},f=function(){t.value=Math.max(1,t.value-5)},p=function(){t.value=Math.min(e.totalPageNum,t.value+5)};return{current:t,render:function(v){var m=v.isFirst,g=v.isLast;return(0,r.createVNode)("div",{class:{"bk-pagination-list":!0,"is-first":m,"is-last":g}},[(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":n.value},onClick:u},[e.prevText||(0,r.createVNode)(c.AngleLeft,null,null)]),(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":1===t.value},key:"1",onClick:function(){return d(1)}},[(0,r.createTextVNode)("1")]),i.value&&(0,r.createVNode)("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:f},[(0,r.createVNode)(c.Ellipsis,null,null)]),l.value.map((function(e){return(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e},key:e,onClick:function(){return d(e)}},[e])})),o.value&&(0,r.createVNode)("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:p},[(0,r.createVNode)(c.Ellipsis,null,null)]),e.totalPageNum>1&&(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e.totalPageNum},key:"last",onClick:function(){return d(e.totalPageNum)}},[e.totalPageNum]),(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":a.value},onClick:s},[e.nextText||(0,r.createVNode)(c.AngleRight,null,null)])])}}}(),p=f.current,v=f.render,m=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(null),n=(0,r.ref)(!1),a=(0,r.ref)(1),i=(0,r.computed)((function(){return 1===a.value})),o=(0,r.computed)((function(){return a.value===e.totalPageNum})),l=0,u=(0,r.computed)((function(){for(var t=[],n=1;n<=e.totalPageNum;n++)t.push(n);return t}));(0,r.watch)((function(){return e.modelValue}),(function(t){(0,r.nextTick)((function(){t>=1&&t<=e.totalPageNum?a.value=t:a.value=t<1?1:e.totalPageNum,l=a.value}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){a.value>e&&(a.value=e)}))}));var s=function(){i.value||(a.value=a.value-1)},f=function(){o.value||(a.value=a.value+1)},p=function(){n.value=!0},v=function(){n.value=!1,t.value.textContent="".concat(l),l!==a.value&&(a.value=l)},m=function(t){var n=t.target,r=Number(n.textContent);!r||r<1||r>e.totalPageNum||r===a.value||(l=r)},g=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),v())};return{current:a,render:function(){return(0,r.createVNode)("div",{class:"bk-pagination-small-list"},[(0,r.createVNode)("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":i.value},onClick:s},[(0,r.createVNode)(c.AngleLeft,null,null)]),(0,r.createVNode)(d(),{theme:"light",trigger:"click",arrow:!1,width:56,boundary:"body",placement:"bottom"},{default:function(){return(0,r.createVNode)("div",{class:{"bk-pagination-picker":!0,"is-focused":n.value}},[(0,r.createVNode)("span",{ref:t,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:p,onBlur:v,onInput:m,onKeydown:g},[a.value]),(0,r.createVNode)("span",null,[(0,r.createTextVNode)("/")]),(0,r.createVNode)("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])])},content:function(){return(0,r.createVNode)("div",{class:"bk-pagination-picker-list"},[u.value.map((function(e){return(0,r.createVNode)("div",{class:{item:!0,"is-actived":e===a.value},key:e,onClick:function(){return function(e){l=e,v()}(e)}},[e])}))])}}),(0,r.createVNode)("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":o.value},onClick:f},[(0,r.createVNode)(c.AngleRight,null,null)])])}}}(),g=m.current,b=m.render,y=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(e.limit);(0,r.watch)((function(){return e.limit}),(function(e){t.value=e})),(0,r.watch)((function(){return e.limitList}),(function(e){(0,r.nextTick)((function(){if(!e.includes(t.value)){var n=a(e,1);t.value=n[0]}}))}),{immediate:!0});var n=function(e){t.value=e};return{limit:t,render:function(a){var l,u,c=a.isFirst,s=a.isLast;return e.showLimit?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-limit":!0,"is-first":c,"is-last":s}},{disabled:e.disabled}),[(0,r.createVNode)("div",null,[(0,r.createTextVNode)("每页")]),(0,r.createVNode)(o(),{class:"bk-pagination-limit-select",clearable:!1,size:"small",modelValue:t.value,onChange:n,disabled:e.disabled},(u=l=e.limitList.map((function(e,t){return(0,r.createVNode)(i.BkOption,{value:e,label:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!(0,r.isVNode)(u)?l:{default:function(){return[l]}})),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("条")])]):null}}}(),h=y.limit,N=y.render;return(0,r.watch)([u,h,s],(function(e){var t=a(e,2),r=t[0],i=t[1],o=Math.ceil(r/i);n.value=o<1?1:o}),{immediate:!0}),(0,r.watch)(p,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(g,(function(n){e.small&&(t.emit("update:modelValue",n),t.emit("change",n))})),(0,r.watch)(h,(function(e){t.emit("limitChange",e)})),{totalPageNum:n,renderTotal:function(e){var t=e.isFirst,n=e.isLast,a=(0,r.getCurrentInstance)().props;return a.showTotalCount?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-total":!0,"is-first":t,"is-last":n}},{disabled:a.disabled}),[(0,r.createTextVNode)("共计"),(0,r.createVNode)("div",{class:"bk-pagination-total-num"},[a.count]),(0,r.createTextVNode)("条")]):null},renderList:v,renderLimit:N,renderSmallList:b}},render:function(){var n,a=this,i=(0,e.classes)((t(n={"bk-pagination":!0},"bk-pagination--".concat(this.size),!0),t(n,"is-align-".concat(this.align),!0),n)),o={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,r.createVNode)("div",{class:i},[this.layout.map((function(e,t){return o[e]({isFirst:0===t,isLast:t===a.layout.length-1})}))])}});var v=(0,e.withInstall)(p);const m=v})(),u})()));
|