bkui-vue 0.0.1-beta.99 → 0.0.2-beta.1
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/License.txt +14 -0
- package/dist/index.cjs.js +360 -36
- package/dist/index.esm.js +30199 -24465
- package/dist/index.umd.js +360 -36
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.d.ts +2 -2
- package/lib/affix/affix.variable.css +29 -6
- package/lib/affix/index.d.ts +60 -36
- package/lib/alert/alert.css +4 -0
- package/lib/alert/alert.d.ts +11 -9
- package/lib/alert/alert.less +24 -19
- package/lib/alert/alert.variable.css +33 -6
- package/lib/alert/index.d.ts +82 -58
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +2 -2
- package/lib/animate-number/index.d.ts +58 -25
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +4 -4
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +37 -6
- package/lib/backtop/index.d.ts +65 -47
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +2 -5
- package/lib/badge/badge.d.ts +3 -3
- package/lib/badge/badge.less +4 -5
- package/lib/badge/badge.variable.css +31 -11
- package/lib/badge/index.d.ts +67 -64
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +28 -3
- package/lib/breadcrumb/breadcrumb.css +43 -0
- package/lib/breadcrumb/breadcrumb.d.ts +27 -2
- package/lib/breadcrumb/breadcrumb.less +3 -4
- package/lib/breadcrumb/breadcrumb.variable.css +77 -11
- package/lib/breadcrumb/index.d.ts +67 -41
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +4 -4
- package/lib/button/button.css +21 -3
- package/lib/button/button.d.ts +46 -33
- package/lib/button/button.less +25 -5
- package/lib/button/button.variable.css +50 -9
- package/lib/button/index.d.ts +121 -96
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +45 -2
- package/lib/card/card.d.ts +2 -1
- package/lib/card/card.less +2 -2
- package/lib/card/card.variable.css +78 -12
- package/lib/card/index.d.ts +66 -64
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +60 -6
- package/lib/cascader/cascader.css +197 -11
- package/lib/cascader/cascader.d.ts +131 -25
- package/lib/cascader/cascader.less +148 -11
- package/lib/cascader/cascader.variable.css +234 -25
- package/lib/cascader/index.d.ts +415 -174
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/cascader/interface.d.ts +8 -1
- package/lib/cascader/node.d.ts +9 -2
- package/lib/cascader/store.d.ts +13 -1
- package/lib/checkbox/checkbox-group.d.ts +18 -2
- package/lib/checkbox/checkbox.css +38 -11
- package/lib/checkbox/checkbox.d.ts +40 -18
- package/lib/checkbox/checkbox.less +68 -33
- package/lib/checkbox/checkbox.variable.css +67 -17
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +133 -72
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +7 -7
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +56 -13
- package/lib/code-diff/index.d.ts +30 -43
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +104 -0
- package/lib/collapse/collapse.css +58 -19
- package/lib/collapse/collapse.d.ts +59 -42
- package/lib/collapse/collapse.less +106 -46
- package/lib/collapse/collapse.variable.css +87 -25
- package/lib/collapse/index.d.ts +271 -46
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +131 -0
- package/lib/collapse-transition/collapse-transition.css +93 -0
- package/lib/collapse-transition/collapse-transition.d.ts +15 -0
- package/lib/collapse-transition/collapse-transition.less +111 -0
- package/lib/collapse-transition/collapse-transition.variable.css +215 -0
- package/lib/collapse-transition/index.d.ts +2 -0
- package/lib/collapse-transition/index.js +1 -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 +397 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +255 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +13 -0
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +402 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/{popover2/popover2.variable.css → config-provider/config-provider.variable.css} +29 -31
- package/lib/config-provider/index.d.ts +646 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +128 -0
- package/lib/config-provider/use-global-config.d.ts +5 -0
- package/lib/config-provider/use-locale.d.ts +3 -0
- package/lib/config-provider/use-prefix.d.ts +9 -0
- package/lib/container/col.d.ts +3 -3
- package/lib/container/container.css +43 -0
- package/lib/container/container.d.ts +2 -2
- package/lib/container/container.less +4 -4
- package/lib/container/container.variable.css +72 -6
- package/lib/container/index.d.ts +30 -49
- package/lib/container/index.js +1 -1
- package/lib/container/interface.d.ts +7 -0
- package/lib/container/row.d.ts +2 -2
- package/lib/date-picker/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +96 -0
- package/lib/date-picker/base/month-table.d.ts +117 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
- package/lib/date-picker/base/time-spinner.d.ts +170 -0
- package/lib/date-picker/base/year-table.d.ts +117 -0
- package/lib/date-picker/date-picker.css +30 -1
- package/lib/date-picker/date-picker.d.ts +55 -35
- package/lib/date-picker/date-picker.less +109 -74
- package/lib/date-picker/date-picker.variable.css +59 -7
- package/lib/date-picker/index.d.ts +198 -218
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +20 -10
- package/lib/date-picker/panel/date-range.d.ts +345 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +495 -0
- package/lib/date-picker/panel/time.d.ts +451 -0
- package/lib/date-picker/props.d.ts +48 -5
- package/lib/date-picker/time-picker.d.ts +390 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +94 -34
- package/lib/dialog/dialog.d.ts +57 -93
- package/lib/dialog/dialog.less +85 -43
- package/lib/dialog/dialog.variable.css +216 -34
- package/lib/dialog/index.d.ts +194 -334
- package/lib/dialog/index.js +2 -1
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- package/lib/dialog/props.d.ts +122 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +2 -1
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.d.ts +17 -17
- package/lib/divider/divider.variable.css +29 -6
- package/lib/divider/index.d.ts +85 -61
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +2 -2
- package/lib/dropdown/dropdown.css +34 -7
- package/lib/dropdown/dropdown.d.ts +46 -15
- package/lib/dropdown/dropdown.less +42 -36
- package/lib/dropdown/dropdown.variable.css +63 -13
- package/lib/dropdown/index.d.ts +136 -65
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +33 -13
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +69 -20
- package/lib/exception/index.d.ts +91 -43
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -6
- package/lib/fixed-navbar/index.d.ts +60 -36
- package/lib/form/compose-form-item.d.ts +4 -2
- package/lib/form/form-item.d.ts +15 -9
- package/lib/form/form.css +32 -8
- package/lib/form/form.d.ts +25 -7
- package/lib/form/form.less +85 -53
- package/lib/form/form.variable.css +61 -14
- package/lib/form/index.d.ts +109 -51
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +5 -4
- package/lib/form/utils.d.ts +2 -0
- package/lib/hooks.d.ts +1 -0
- package/lib/hooks.js +1 -0
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.d.ts +4 -0
- package/lib/icon/copy-shape.js +1 -0
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/fix-line.d.ts +4 -0
- package/lib/icon/fix-line.js +1 -0
- package/lib/icon/fix-shape.d.ts +4 -0
- package/lib/icon/fix-shape.js +1 -0
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- 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 +83 -69
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- 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.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- 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 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.d.ts +4 -0
- package/lib/icon/transfer.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.d.ts +4 -0
- package/lib/icon/weixin-pro.js +1 -0
- package/lib/icon/weixin.js +1 -1
- 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 +252 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +2 -0
- package/lib/info-box/index.js.LICENSE.txt +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +29 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +159 -0
- package/lib/input/index.d.ts +178 -228
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +168 -23
- package/lib/input/input.d.ts +59 -37
- package/lib/input/input.less +104 -22
- package/lib/input/input.variable.css +228 -61
- package/lib/link/index.d.ts +80 -53
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +10 -8
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +41 -18
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +160 -56
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +72 -29
- package/lib/loading/loading.d.ts +91 -15
- package/lib/loading/loading.less +21 -19
- package/lib/loading/loading.variable.css +117 -51
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +126 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +75 -34
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +2 -2
- package/lib/menu/menu-item.d.ts +5 -1
- package/lib/menu/menu.css +43 -0
- package/lib/menu/menu.d.ts +2 -2
- package/lib/menu/menu.variable.css +90 -24
- package/lib/menu/submenu.d.ts +5 -1
- package/lib/menu/submenu.variable.css +29 -6
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.d.ts +1 -0
- package/lib/message/index.js +2 -1
- package/lib/message/index.js.LICENSE.txt +6 -0
- package/lib/message/message.css +166 -2
- package/lib/message/message.less +222 -7
- package/lib/message/message.variable.css +195 -8
- package/lib/message/messageConstructor.d.ts +136 -27
- package/lib/modal/index.d.ts +201 -246
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +39 -6
- package/lib/modal/modal.d.ts +54 -61
- package/lib/modal/modal.less +8 -10
- package/lib/modal/modal.variable.css +161 -6
- package/lib/modal/props.mixin.d.ts +16 -23
- package/lib/navigation/index.d.ts +90 -68
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +6 -3
- package/lib/navigation/navigation.d.ts +12 -4
- package/lib/navigation/navigation.variable.css +29 -6
- package/lib/notify/index.d.ts +1 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +8 -4
- package/lib/notify/notify.less +18 -13
- package/lib/notify/notify.variable.css +37 -10
- package/lib/notify/notifyConstructor.d.ts +19 -21
- package/lib/overflow-title/components/overflow-title.d.ts +57 -0
- package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +195 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/overflow.css +11 -0
- package/lib/overflow-title/overflow.less +13 -0
- package/lib/overflow-title/overflow.variable.css +11 -0
- package/lib/overflow-title/props.d.ts +43 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +89 -90
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +17 -6
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +83 -34
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.d.ts +249 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.css +28 -0
- package/lib/pop-confirm/pop-confirm.d.ts +95 -0
- package/lib/pop-confirm/pop-confirm.less +34 -0
- package/lib/pop-confirm/pop-confirm.variable.css +150 -0
- package/lib/pop-confirm/props.d.ts +67 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +43 -0
- package/lib/popover/index.d.ts +409 -173
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -53
- package/lib/popover/popover.d.ts +189 -58
- package/lib/popover/popover.less +19 -68
- package/lib/popover/popover.variable.css +40 -60
- package/lib/popover/props.d.ts +90 -37
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +27 -0
- package/lib/popover/use-floating.d.ts +34 -0
- package/lib/popover/use-platform.d.ts +30 -0
- package/lib/popover/use-popover-init.d.ts +23 -0
- package/lib/popover/use-popper-id.d.ts +6 -0
- package/lib/popover/utils.d.ts +8 -0
- package/lib/popover2/index.d.ts +54 -393
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +264 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.d.ts +69 -52
- package/lib/process/index.js +2 -1
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +5 -4
- package/lib/process/process.less +36 -8
- package/lib/process/process.variable.css +51 -6
- package/lib/progress/index.d.ts +114 -153
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +43 -0
- package/lib/progress/progress.d.ts +90 -32
- package/lib/progress/progress.less +8 -8
- package/lib/progress/progress.variable.css +76 -10
- package/lib/radio/index.d.ts +116 -58
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +12 -9
- package/lib/radio/radio-group.d.ts +36 -5
- package/lib/radio/radio.css +133 -62
- package/lib/radio/radio.d.ts +9 -5
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +166 -72
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +78 -28
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +14 -3
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +82 -80
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +6 -15
- package/lib/resize-layout/resize-layout.d.ts +10 -9
- package/lib/resize-layout/resize-layout.less +32 -41
- package/lib/resize-layout/resize-layout.variable.css +35 -21
- package/lib/search-select/index.d.ts +892 -0
- package/lib/search-select/index.js +2 -0
- package/lib/search-select/index.js.LICENSE.txt +1 -0
- package/lib/search-select/input.d.ts +101 -0
- package/lib/search-select/menu.d.ts +77 -0
- package/lib/search-select/search-select.css +427 -0
- package/lib/search-select/search-select.d.ts +361 -0
- package/lib/search-select/search-select.less +384 -0
- package/lib/search-select/search-select.variable.css +549 -0
- package/lib/search-select/selected.d.ts +155 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +4 -11
- package/lib/select/index.d.ts +1471 -918
- package/lib/select/index.js +2 -1
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/option.d.ts +17 -6
- package/lib/select/optionGroup.d.ts +2 -2
- package/lib/select/select.css +211 -140
- package/lib/select/select.d.ts +654 -205
- package/lib/select/select.less +331 -189
- package/lib/select/select.variable.css +240 -146
- package/lib/select/selectTagInput.d.ts +38 -15
- package/lib/select/type.d.ts +20 -14
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/helper.d.ts +9 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +16 -12
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +18 -5
- package/lib/shared/pop-manager.d.ts +13 -3
- package/lib/shared/popover.d.ts +1 -1
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +139 -13
- package/lib/sideslider/index.d.ts +158 -252
- package/lib/sideslider/index.js +2 -1
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/sideslider/sideslider.css +10 -8
- package/lib/sideslider/sideslider.d.ts +46 -71
- package/lib/sideslider/sideslider.less +19 -17
- package/lib/sideslider/sideslider.variable.css +39 -14
- package/lib/slider/index.d.ts +82 -112
- package/lib/slider/index.js +2 -1
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/slider/slider-button.d.ts +3 -2
- package/lib/slider/slider.d.ts +6 -6
- package/lib/slider/slider.variable.css +29 -6
- package/lib/steps/index.d.ts +105 -96
- package/lib/steps/index.js +2 -1
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/steps/steps.css +1 -0
- package/lib/steps/steps.d.ts +35 -34
- package/lib/steps/steps.less +63 -62
- package/lib/steps/steps.variable.css +30 -6
- package/lib/styles/index.d.ts +6 -2
- package/lib/styles/mixins/mixins.css +43 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +43 -0
- package/lib/styles/mixins/popper.css +1 -1
- package/lib/styles/mixins/popper.less +12 -11
- package/lib/styles/mixins/popper.variable.css +123 -1
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +139 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -2
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +37 -6
- package/lib/swiper/index.d.ts +60 -44
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.d.ts +1 -1
- package/lib/swiper/swiper.less +15 -13
- package/lib/swiper/swiper.variable.css +122 -0
- package/lib/switcher/index.d.ts +94 -87
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +44 -1
- package/lib/switcher/switcher.d.ts +17 -11
- package/lib/switcher/switcher.less +29 -52
- package/lib/switcher/switcher.variable.css +90 -24
- package/lib/tab/index.d.ts +163 -124
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +92 -43
- package/lib/tab/tab-nav.d.ts +46 -14
- package/lib/tab/tab-panel.d.ts +16 -9
- package/lib/tab/tab.css +135 -58
- package/lib/tab/tab.d.ts +42 -20
- package/lib/tab/tab.less +164 -77
- package/lib/tab/tab.variable.css +164 -64
- package/lib/table/cache.d.ts +6 -0
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +51 -0
- package/lib/table/components/table-column.d.ts +305 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +94 -6
- package/lib/table/index.d.ts +698 -169
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +36 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +30 -14
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +79 -52
- package/lib/table/plugins/head-filter.variable.css +59 -20
- package/lib/table/plugins/head-sort.css +7 -3
- package/lib/table/plugins/head-sort.d.ts +29 -0
- package/lib/table/plugins/head-sort.less +8 -4
- package/lib/table/plugins/head-sort.variable.css +36 -9
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +43 -6
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +52 -7
- package/lib/table/plugins/settings.variable.css +72 -12
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +26 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +271 -23
- package/lib/table/render.d.ts +32 -12
- package/lib/table/table.css +961 -69
- package/lib/table/table.d.ts +170 -27
- package/lib/table/table.less +195 -69
- package/lib/table/table.variable.css +990 -75
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +71 -11
- package/lib/table/utils.d.ts +33 -7
- package/lib/table-column/index.d.ts +797 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +89 -68
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +17 -12
- package/lib/tag/tag.less +58 -21
- package/lib/tag/tag.variable.css +75 -19
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +570 -269
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +2 -5
- package/lib/tag-input/tag-input.css +23 -27
- package/lib/tag-input/tag-input.d.ts +304 -45
- package/lib/tag-input/tag-input.less +103 -106
- package/lib/tag-input/tag-input.variable.css +52 -33
- package/lib/tag-input/tag-props.d.ts +142 -8
- package/lib/tag-input/tag-render.d.ts +31 -5
- package/lib/time-picker/index.d.ts +833 -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 +337 -0
- package/lib/timeline/index.d.ts +64 -32
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +11 -4
- package/lib/timeline/timeline.d.ts +4 -3
- package/lib/timeline/timeline.less +48 -36
- package/lib/timeline/timeline.variable.css +40 -10
- package/lib/transfer/index.d.ts +152 -81
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +5 -0
- package/lib/transfer/transfer.css +121 -41
- package/lib/transfer/transfer.d.ts +35 -3
- package/lib/transfer/transfer.less +103 -46
- package/lib/transfer/transfer.variable.css +155 -52
- package/lib/tree/constant.d.ts +22 -2
- package/lib/tree/index.d.ts +236 -141
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +68 -12
- package/lib/tree/tree.css +176 -7
- package/lib/tree/tree.d.ts +91 -20
- package/lib/tree/tree.less +49 -1
- package/lib/tree/tree.variable.css +205 -13
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +3 -2
- package/lib/tree/use-node-attribute.d.ts +11 -0
- package/lib/tree/use-node-drag.d.ts +1 -1
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +2 -0
- package/lib/upload/index.d.ts +508 -1
- package/lib/upload/index.js +2 -1
- package/lib/upload/index.js.LICENSE.txt +1 -0
- package/lib/upload/props.d.ts +0 -2
- package/lib/upload/upload-list.d.ts +3 -2
- package/lib/upload/upload-trigger.d.ts +1 -4
- package/lib/upload/upload.css +58 -5
- package/lib/upload/upload.d.ts +10 -16
- package/lib/upload/upload.less +19 -8
- package/lib/upload/upload.type.d.ts +12 -12
- package/lib/upload/upload.variable.css +113 -37
- package/lib/upload/use-file-handler.d.ts +2 -25
- package/lib/virtual-render/index.d.ts +100 -150
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +39 -4
- package/lib/virtual-render/virtual-render.less +2 -23
- package/lib/virtual-render/virtual-render.variable.css +139 -17
- package/lib/volar.components.d.ts +102 -0
- package/package.json +47 -41
- package/LICENSE.txt +0 -22
- package/lib/popover2/arrow.d.ts +0 -2
- package/lib/popover2/content.d.ts +0 -24
- package/lib/popover2/popover2.css +0 -25
- package/lib/popover2/popover2.d.ts +0 -180
- package/lib/popover2/popover2.less +0 -35
- package/lib/popover2/props.d.ts +0 -92
- package/lib/popover2/reference.d.ts +0 -2
- package/lib/popover2/use-floating.d.ts +0 -15
- package/lib/popover2/use-popper-id.d.ts +0 -5
@@ -2,87 +2,72 @@ declare const BkPagination: {
|
|
2
2
|
new (...args: any[]): {
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
|
-
$props:
|
6
|
-
small
|
7
|
-
type
|
8
|
-
disabled
|
9
|
-
|
10
|
-
|
11
|
-
count
|
12
|
-
modelValue
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
} & {
|
24
|
-
default: number;
|
25
|
-
};
|
26
|
-
count: import("vue-types").VueTypeValidableDef<number> & {
|
27
|
-
default: number;
|
28
|
-
} & {
|
29
|
-
default: number;
|
30
|
-
} & {
|
31
|
-
required: true;
|
32
|
-
};
|
33
|
-
limit: import("vue-types").VueTypeValidableDef<number> & {
|
34
|
-
default: number;
|
35
|
-
} & {
|
36
|
-
default: number;
|
37
|
-
};
|
38
|
-
limitList: import("vue-types").VueTypeDef<number[]> & {
|
39
|
-
default: () => number[];
|
40
|
-
};
|
41
|
-
showLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
|
-
default: boolean;
|
43
|
-
} & {
|
44
|
-
default: boolean;
|
45
|
-
};
|
46
|
-
type: import("vue-types").VueTypeDef<string> & {
|
47
|
-
default: string;
|
48
|
-
};
|
49
|
-
location: import("vue-types").VueTypeDef<string> & {
|
50
|
-
default: string;
|
51
|
-
};
|
52
|
-
align: import("vue-types").VueTypeDef<string> & {
|
53
|
-
default: string;
|
54
|
-
};
|
55
|
-
size: import("vue-types").VueTypeDef<string>;
|
56
|
-
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
57
|
-
default: boolean;
|
58
|
-
} & {
|
59
|
-
default: boolean;
|
60
|
-
};
|
61
|
-
showTotalCount: import("vue-types").VueTypeValidableDef<boolean> & {
|
62
|
-
default: boolean;
|
63
|
-
} & {
|
64
|
-
default: boolean;
|
65
|
-
};
|
66
|
-
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
67
|
-
default: string;
|
68
|
-
};
|
69
|
-
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
70
|
-
default: string;
|
71
|
-
};
|
72
|
-
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
73
|
-
default: boolean;
|
74
|
-
} & {
|
75
|
-
default: boolean;
|
76
|
-
};
|
77
|
-
layout: import("vue-types").VueTypeDef<string[]> & {
|
78
|
-
default: () => string[];
|
79
|
-
};
|
80
|
-
}>> & {
|
5
|
+
$props: {
|
6
|
+
small?: boolean;
|
7
|
+
type?: string;
|
8
|
+
disabled?: boolean;
|
9
|
+
layout?: string[];
|
10
|
+
location?: 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
|
+
class?: unknown;
|
22
|
+
style?: unknown;
|
81
23
|
onChange?: (...args: any[]) => any;
|
24
|
+
key?: string | number | symbol;
|
25
|
+
ref?: import("vue").VNodeRef;
|
26
|
+
ref_for?: boolean;
|
27
|
+
ref_key?: string;
|
28
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
29
|
+
[key: string]: any;
|
30
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
31
|
+
[key: string]: any;
|
32
|
+
}>) => void)[];
|
33
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
+
[key: string]: any;
|
35
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
36
|
+
[key: string]: any;
|
37
|
+
}>) => void)[];
|
38
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
39
|
+
[key: string]: any;
|
40
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
41
|
+
[key: string]: any;
|
42
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
+
[key: string]: any;
|
44
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
45
|
+
[key: string]: any;
|
46
|
+
}>) => void)[];
|
47
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
48
|
+
[key: string]: any;
|
49
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
50
|
+
[key: string]: any;
|
51
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
52
|
+
[key: string]: any;
|
53
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
+
[key: string]: any;
|
55
|
+
}>) => void)[];
|
56
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
57
|
+
[key: string]: any;
|
58
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
59
|
+
[key: string]: any;
|
60
|
+
}>) => void)[];
|
61
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
62
|
+
[key: string]: any;
|
63
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
64
|
+
[key: string]: any;
|
65
|
+
}>) => void)[];
|
66
|
+
readonly size?: "small" | "large" | "default";
|
82
67
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
83
68
|
"onUpdate:limit"?: (...args: any[]) => any;
|
84
69
|
onLimitChange?: (...args: any[]) => any;
|
85
|
-
}
|
70
|
+
};
|
86
71
|
$attrs: {
|
87
72
|
[x: string]: unknown;
|
88
73
|
};
|
@@ -90,10 +75,10 @@ declare const BkPagination: {
|
|
90
75
|
[x: string]: unknown;
|
91
76
|
};
|
92
77
|
$slots: Readonly<{
|
93
|
-
[name: string]: import("vue").Slot
|
78
|
+
[name: string]: import("vue").Slot<any>;
|
94
79
|
}>;
|
95
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
96
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
80
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
81
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
97
82
|
$emit: (event: "change" | "update:modelValue" | "update:limit" | "limitChange", ...args: any[]) => void;
|
98
83
|
$el: any;
|
99
84
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
@@ -131,7 +116,7 @@ declare const BkPagination: {
|
|
131
116
|
align: import("vue-types").VueTypeDef<string> & {
|
132
117
|
default: string;
|
133
118
|
};
|
134
|
-
size: import("vue-types").VueTypeDef<
|
119
|
+
size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
|
135
120
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
136
121
|
default: boolean;
|
137
122
|
} & {
|
@@ -153,6 +138,9 @@ declare const BkPagination: {
|
|
153
138
|
} & {
|
154
139
|
default: boolean;
|
155
140
|
};
|
141
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
142
|
+
default: (...args: any[]) => any;
|
143
|
+
};
|
156
144
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
157
145
|
default: () => string[];
|
158
146
|
};
|
@@ -176,14 +164,16 @@ declare const BkPagination: {
|
|
176
164
|
isLast: any;
|
177
165
|
}) => JSX.Element;
|
178
166
|
renderSmallList: () => JSX.Element;
|
167
|
+
resolveClassName: (cls: string) => string;
|
179
168
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], string, {
|
180
169
|
small: boolean;
|
181
170
|
type: string;
|
182
171
|
disabled: boolean;
|
183
|
-
location: string;
|
184
172
|
layout: string[];
|
173
|
+
location: string;
|
185
174
|
count: number;
|
186
175
|
modelValue: number;
|
176
|
+
beforeChange: (...args: any[]) => any;
|
187
177
|
prevText: string;
|
188
178
|
nextText: string;
|
189
179
|
align: string;
|
@@ -191,7 +181,7 @@ declare const BkPagination: {
|
|
191
181
|
limitList: number[];
|
192
182
|
showLimit: boolean;
|
193
183
|
showTotalCount: boolean;
|
194
|
-
}> & {
|
184
|
+
}, {}, string, {}> & {
|
195
185
|
beforeCreate?: (() => void) | (() => void)[];
|
196
186
|
created?: (() => void) | (() => void)[];
|
197
187
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -206,11 +196,11 @@ declare const BkPagination: {
|
|
206
196
|
unmounted?: (() => void) | (() => void)[];
|
207
197
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
208
198
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
209
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
199
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
210
200
|
};
|
211
201
|
$forceUpdate: () => void;
|
212
202
|
$nextTick: typeof import("vue").nextTick;
|
213
|
-
$watch
|
203
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
214
204
|
} & Readonly<import("vue").ExtractPropTypes<{
|
215
205
|
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
216
206
|
default: number;
|
@@ -246,7 +236,7 @@ declare const BkPagination: {
|
|
246
236
|
align: import("vue-types").VueTypeDef<string> & {
|
247
237
|
default: string;
|
248
238
|
};
|
249
|
-
size: import("vue-types").VueTypeDef<
|
239
|
+
size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
|
250
240
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
251
241
|
default: boolean;
|
252
242
|
} & {
|
@@ -268,6 +258,9 @@ declare const BkPagination: {
|
|
268
258
|
} & {
|
269
259
|
default: boolean;
|
270
260
|
};
|
261
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
262
|
+
default: (...args: any[]) => any;
|
263
|
+
};
|
271
264
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
272
265
|
default: () => string[];
|
273
266
|
};
|
@@ -291,7 +284,8 @@ declare const BkPagination: {
|
|
291
284
|
isLast: any;
|
292
285
|
}) => JSX.Element;
|
293
286
|
renderSmallList: () => JSX.Element;
|
294
|
-
|
287
|
+
resolveClassName: (cls: string) => string;
|
288
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
295
289
|
__isFragment?: never;
|
296
290
|
__isTeleport?: never;
|
297
291
|
__isSuspense?: never;
|
@@ -330,7 +324,7 @@ declare const BkPagination: {
|
|
330
324
|
align: import("vue-types").VueTypeDef<string> & {
|
331
325
|
default: string;
|
332
326
|
};
|
333
|
-
size: import("vue-types").VueTypeDef<
|
327
|
+
size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
|
334
328
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
335
329
|
default: boolean;
|
336
330
|
} & {
|
@@ -352,6 +346,9 @@ declare const BkPagination: {
|
|
352
346
|
} & {
|
353
347
|
default: boolean;
|
354
348
|
};
|
349
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
350
|
+
default: (...args: any[]) => any;
|
351
|
+
};
|
355
352
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
356
353
|
default: () => string[];
|
357
354
|
};
|
@@ -375,14 +372,16 @@ declare const BkPagination: {
|
|
375
372
|
isLast: any;
|
376
373
|
}) => JSX.Element;
|
377
374
|
renderSmallList: () => JSX.Element;
|
375
|
+
resolveClassName: (cls: string) => string;
|
378
376
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], "change" | "update:modelValue" | "update:limit" | "limitChange", {
|
379
377
|
small: boolean;
|
380
378
|
type: string;
|
381
379
|
disabled: boolean;
|
382
|
-
location: string;
|
383
380
|
layout: string[];
|
381
|
+
location: string;
|
384
382
|
count: number;
|
385
383
|
modelValue: number;
|
384
|
+
beforeChange: (...args: any[]) => any;
|
386
385
|
prevText: string;
|
387
386
|
nextText: string;
|
388
387
|
align: string;
|
@@ -390,6 +389,6 @@ declare const BkPagination: {
|
|
390
389
|
limitList: number[];
|
391
390
|
showLimit: boolean;
|
392
391
|
showTotalCount: boolean;
|
393
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
392
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
394
393
|
export default BkPagination;
|
395
394
|
export { BkPagination, };
|
package/lib/pagination/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../select","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../select"],e["../icon"],e["../popover"]);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},5537: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(5537),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),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<=5){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.LeftShape,null,null)]),(0,r.createVNode)(d(),{theme:"light",trigger:"click",arrow:!1,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.RightShape,null,null)])])}}}(),g=m.current,b=m.render,h=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,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}}}(),y=h.limit,N=h.render;return(0,r.watch)([u,y,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(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(y,(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})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../select"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../select","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../select"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../select"],e["../icon"],e["../popover"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r,o)=>(()=>{"use strict";var i={2717:e=>{e.exports=n},6870:e=>{e.exports=r},5537:e=>{e.exports=o},6422:e=>{e.exports=a},4212:t=>{t.exports=e},748:e=>{e.exports=t}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return i[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{BkPagination:()=>g,default:()=>y});var e=u(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,a){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,"string");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function a(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 r(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,o,i,l=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(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 o=u(748),i=u(2717),l=u(6422),s=u.n(l),f=u(6870),d=u(5537),v=u.n(d);var p={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 m=(0,o.defineComponent)({name:"Pagination",props:p,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var a=(0,i.useLocale)("pagination"),u=(0,o.ref)(0),c=(0,o.toRefs)(e),d=c.count,p=c.limit,m=function(e){return function(t){var a,r=t.isFirst,l=t.isLast,u=(0,o.getCurrentInstance)().props;if(!u.showTotalCount)return null;var c=(0,i.usePrefix)().resolveClassName;return(0,o.createVNode)("div",(0,o.mergeProps)({class:(a={},n(a,"".concat(c("pagination-total")),!0),n(a,"is-first",r),n(a,"is-last",l),a)},{disabled:u.disabled}),[e.value.total,(0,o.createVNode)("div",{class:"".concat(c("pagination-total-num"))},[u.count]),e.value.strip])}}(a),g=function(){var e=(0,o.getCurrentInstance)().proxy,t=(0,o.ref)(1),a=(0,o.computed)((function(){return 1===t.value})),r=(0,o.computed)((function(){return t.value===e.totalPageNum})),l=(0,o.ref)(!1),u=(0,o.ref)(!1),c=(0,o.computed)((function(){l.value=!1,u.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&&(l.value=t.value-r>2,u.value=t.value+r<e.totalPageNum-1);for(var o=Math.min(e.totalPageNum-5,Math.max(2,t.value-r)),i=o;i<o+5;i++)n.push(i);return n}));(0,o.watch)((function(){return e.modelValue}),(function(n){(0,o.nextTick)((function(){n>=1&&n<=e.totalPageNum?t.value=n:t.value=n<1?1:e.totalPageNum}))}),{immediate:!0}),(0,o.nextTick)((function(){(0,o.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var s=function(){a.value||(t.value=t.value-1)},d=function(){r.value||(t.value=t.value+1)},v=function(e){e!==t.value&&(t.value=e)},p=function(){t.value=Math.max(1,t.value-5)},m=function(){t.value=Math.min(e.totalPageNum,t.value+5)},g=(0,i.usePrefix)().resolveClassName;return{current:t,render:function(i){var y,b,h,N,P,x=i.isFirst,V=i.isLast;return(0,o.createVNode)("div",{class:(y={},n(y,"".concat(g("pagination-list")),!0),n(y,"is-first",x),n(y,"is-last",V),y)},[(0,o.createVNode)("div",{class:(b={},n(b,"".concat(g("pagination-list-pre")),!0),n(b,"is-disabled",a.value),b),onClick:s},[e.prevText||(0,o.createVNode)(f.AngleLeft,null,null)]),(0,o.createVNode)("div",{class:(h={},n(h,"".concat(g("pagination-list-item")),!0),n(h,"is-active",1===t.value),h),key:"1",onClick:function(){return v(1)}},[(0,o.createTextVNode)("1")]),l.value&&(0,o.createVNode)("div",{key:"pre-batch",class:"".concat(g("pagination-list-pre-batch")),onClick:p},[(0,o.createVNode)(f.Ellipsis,null,null)]),c.value.map((function(e){var a;return(0,o.createVNode)("div",{class:(a={},n(a,"".concat(g("pagination-list-item")),!0),n(a,"is-active",t.value===e),a),key:e,onClick:function(){return v(e)}},[e])})),u.value&&(0,o.createVNode)("div",{key:"next-batch",class:"".concat(g("pagination-list-next-batch")),onClick:m},[(0,o.createVNode)(f.Ellipsis,null,null)]),e.totalPageNum>1&&(0,o.createVNode)("div",{class:(N={},n(N,"".concat(g("pagination-list-item")),!0),n(N,"is-active",t.value===e.totalPageNum),N),key:"last",onClick:function(){return v(e.totalPageNum)}},[e.totalPageNum]),(0,o.createVNode)("div",{class:(P={},n(P,"".concat(g("pagination-list-pre")),!0),n(P,"is-disabled",r.value),P),onClick:d},[e.nextText||(0,o.createVNode)(f.AngleRight,null,null)])])}}}(),y=g.current,b=g.render,h=function(){var e=(0,o.getCurrentInstance)().proxy,t=(0,o.ref)(null),a=(0,o.ref)(!1),r=(0,o.ref)(1),l=(0,o.computed)((function(){return 1===r.value})),u=(0,o.computed)((function(){return r.value===e.totalPageNum})),c=0,s=(0,o.computed)((function(){for(var t=[],n=1;n<=e.totalPageNum;n++)t.push(n);return t}));(0,o.watch)((function(){return e.modelValue}),(function(t){(0,o.nextTick)((function(){t>=1&&t<=e.totalPageNum?r.value=t:r.value=t<1?1:e.totalPageNum,c=r.value}))}),{immediate:!0}),(0,o.nextTick)((function(){(0,o.watch)((function(){return e.totalPageNum}),(function(e){r.value>e&&(r.value=e)}))}));var d=function(){l.value||(r.value=r.value-1)},p=function(){u.value||(r.value=r.value+1)},m=function(){a.value=!0},g=function(){a.value=!1,t.value.textContent="".concat(c),c!==r.value&&(r.value=c)},y=function(t){var n=t.target,a=Number(n.textContent);!a||a<1||a>e.totalPageNum||a===r.value||(c=a)},b=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),g())},h=(0,i.usePrefix)().resolveClassName;return{current:r,render:function(){var i,N;return(0,o.createVNode)("div",{class:"bk-pagination-small-list"},[(0,o.createVNode)("div",{class:(i={},n(i,"".concat(h("pagination-btn-pre")),!0),n(i,"is-disabled",l.value),i),onClick:d},[(0,o.createVNode)(f.AngleLeft,null,null)]),(0,o.createVNode)(v(),{theme:"light",trigger:"click",arrow:!1,width:56,boundary:"body",placement:"bottom"},{default:function(){var i;return(0,o.createVNode)("div",{class:(i={},n(i,"".concat(h("pagination-picker")),!0),n(i,"is-focused",a.value),i)},[(0,o.createVNode)("span",{ref:t,class:"".concat(h("pagination-editor")),contenteditable:!0,spellcheck:"false",onFocus:m,onBlur:g,onInput:y,onKeydown:b},[r.value]),(0,o.createVNode)("span",null,[(0,o.createTextVNode)("/")]),(0,o.createVNode)("span",{class:"".concat(h("pagination-small-list-total"))},[e.totalPageNum])])},content:function(){return(0,o.createVNode)("div",{class:"".concat(h("pagination-picker-list"))},[s.value.map((function(e){return(0,o.createVNode)("div",{class:{item:!0,"is-actived":e===r.value},key:e,onClick:function(){return function(e){c=e,g()}(e)}},[e])}))])}}),(0,o.createVNode)("div",{class:(N={},n(N,"".concat(h("pagination-btn-next")),!0),n(N,"is-disabled",u.value),N),onClick:p},[(0,o.createVNode)(f.AngleRight,null,null)])])}}}(),N=h.current,P=h.render,x=function(e){var t=(0,o.getCurrentInstance)().proxy,a=(0,o.ref)(t.limit);(0,o.watch)((function(){return t.limit}),(function(e){a.value=e})),(0,o.watch)((function(){return t.limitList}),(function(e){(0,o.nextTick)((function(){if(!e.includes(a.value)){var t=r(e,1);a.value=t[0]}}))}),{immediate:!0});var u=function(e){a.value=e},c=(0,i.usePrefix)().resolveClassName;return{limit:a,render:function(r){var i,f,d,v=r.isFirst,p=r.isLast;return t.showLimit?(0,o.createVNode)("div",(0,o.mergeProps)({class:(f={},n(f,c("pagination-limit"),!0),n(f,"is-first",v),n(f,"is-last",p),f)},{disabled:t.disabled}),[(0,o.createVNode)("div",null,[e.value.eachPage]),(0,o.createVNode)(s(),{class:"".concat(c("pagination-limit-select")),clearable:!1,size:"small",withValidate:!1,modelValue:a.value,onChange:u,disabled:t.disabled},(d=i=t.limitList.map((function(e,t){return(0,o.createVNode)(l.BkOption,{id:e,name:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof d||"[object Object]"===Object.prototype.toString.call(d)&&!(0,o.isVNode)(d)?i:{default:function(){return[i]}})),(0,o.createVNode)("div",null,[e.value.strip])]):null}}}(a),V=x.limit,T=x.render;(0,o.watch)([d,V,p],(function(e){var t=r(e,2),n=t[0],a=t[1],o=Math.ceil(n/a);u.value=o<1?1:o}),{immediate:!0}),(0,o.watch)(y,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,o.watch)(N,(function(n){e.small&&(t.emit("update:modelValue",n),t.emit("change",n))})),(0,o.watch)(V,(function(e){t.emit("limitChange",e)}));var C=(0,i.usePrefix)().resolveClassName;return{totalPageNum:u,renderTotal:m,renderList:b,renderLimit:T,renderSmallList:P,resolveClassName:C}},render:function(){var t,a=this,r=(0,e.classes)((n(t={},"".concat(this.resolveClassName("pagination")),!0),n(t,"".concat(this.resolveClassName("pagination--".concat(this.size))),!0),n(t,"is-align-".concat(this.align),!0),t)),i={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,o.createVNode)("div",{class:r},[this.layout.map((function(e,t){return i[e]({isFirst:0===t,isLast:t===a.layout.length-1})}))])}});var g=(0,e.withInstall)(m);const y=g})(),c})()));
|
@@ -33,11 +33,12 @@
|
|
33
33
|
}
|
34
34
|
.bk-pagination-total-num {
|
35
35
|
padding: 0 2px;
|
36
|
-
color: #3f4046;
|
37
36
|
}
|
38
37
|
.bk-pagination-list {
|
39
38
|
display: flex;
|
40
39
|
}
|
40
|
+
.bk-pagination-list-pre-batch,
|
41
|
+
.bk-pagination-list-next-batch,
|
41
42
|
.bk-pagination-list-pre,
|
42
43
|
.bk-pagination-list-next,
|
43
44
|
.bk-pagination-list-item {
|
@@ -52,19 +53,26 @@
|
|
52
53
|
color: #63656e;
|
53
54
|
cursor: pointer;
|
54
55
|
background: #fff;
|
55
|
-
border: 1px solid #c4c6cc;
|
56
56
|
border-radius: 2px;
|
57
57
|
user-select: none;
|
58
58
|
}
|
59
|
-
.bk-pagination-list-pre
|
60
|
-
.bk-pagination-list-next
|
61
|
-
.bk-pagination-list-item:hover,
|
59
|
+
.bk-pagination-list-pre-batch.is-active,
|
60
|
+
.bk-pagination-list-next-batch.is-active,
|
62
61
|
.bk-pagination-list-pre.is-active,
|
63
62
|
.bk-pagination-list-next.is-active,
|
64
63
|
.bk-pagination-list-item.is-active {
|
65
64
|
color: #3a84ff;
|
66
|
-
|
65
|
+
background: #e1ecff;
|
66
|
+
}
|
67
|
+
.bk-pagination-list-pre-batch:hover,
|
68
|
+
.bk-pagination-list-next-batch:hover,
|
69
|
+
.bk-pagination-list-pre:hover,
|
70
|
+
.bk-pagination-list-next:hover,
|
71
|
+
.bk-pagination-list-item:hover {
|
72
|
+
background: #f0f1f5;
|
67
73
|
}
|
74
|
+
.bk-pagination-list-pre-batch.is-disabled,
|
75
|
+
.bk-pagination-list-next-batch.is-disabled,
|
68
76
|
.bk-pagination-list-pre.is-disabled,
|
69
77
|
.bk-pagination-list-next.is-disabled,
|
70
78
|
.bk-pagination-list-item.is-disabled {
|
@@ -73,26 +81,20 @@
|
|
73
81
|
background-color: #fafbfd;
|
74
82
|
border-color: #dcdee5;
|
75
83
|
}
|
76
|
-
.bk-pagination-list-pre-batch,
|
77
|
-
.bk-pagination-list-next-batch {
|
78
|
-
display: flex;
|
79
|
-
align-items: center;
|
80
|
-
justify-content: center;
|
81
|
-
height: 32px;
|
82
|
-
cursor: pointer;
|
83
|
-
user-select: none;
|
84
|
-
}
|
85
|
-
.bk-pagination-list-pre-batch:hover,
|
86
|
-
.bk-pagination-list-next-batch:hover {
|
87
|
-
color: #3a84ff;
|
88
|
-
}
|
89
84
|
.bk-pagination-list-pre,
|
90
85
|
.bk-pagination-list-next {
|
91
|
-
font-size:
|
86
|
+
font-size: 20px;
|
87
|
+
color: #979ba5;
|
88
|
+
}
|
89
|
+
.bk-pagination-list-pre.is-disabled,
|
90
|
+
.bk-pagination-list-next.is-disabled {
|
91
|
+
color: #dcdee5;
|
92
|
+
cursor: not-allowed;
|
93
|
+
background-color: transparent;
|
92
94
|
}
|
93
95
|
.bk-pagination-list-item {
|
94
|
-
margin-right:
|
95
|
-
margin-left:
|
96
|
+
margin-right: 2px;
|
97
|
+
margin-left: 2px;
|
96
98
|
}
|
97
99
|
.bk-pagination-limit {
|
98
100
|
display: flex;
|
@@ -103,12 +105,32 @@
|
|
103
105
|
width: 60px;
|
104
106
|
margin: 0 4px;
|
105
107
|
}
|
108
|
+
.bk-pagination-limit-select .bk-input {
|
109
|
+
border-color: #f0f1f5;
|
110
|
+
}
|
111
|
+
.bk-pagination-limit-select .bk-input--text {
|
112
|
+
background-color: #f0f1f5;
|
113
|
+
}
|
114
|
+
.bk-pagination-limit-select:hover .bk-input {
|
115
|
+
border-color: #eaebf0;
|
116
|
+
}
|
117
|
+
.bk-pagination-limit-select:hover .bk-input--text {
|
118
|
+
background-color: #eaebf0;
|
119
|
+
}
|
120
|
+
.bk-pagination-limit-select .bk-input.is-focused {
|
121
|
+
border-color: #3a84ff;
|
122
|
+
}
|
123
|
+
.bk-pagination-limit-select .bk-input.is-focused .bk-input--text {
|
124
|
+
background-color: #fff;
|
125
|
+
}
|
106
126
|
.bk-pagination-small-list {
|
107
127
|
display: flex;
|
128
|
+
align-items: center;
|
108
129
|
}
|
109
130
|
.bk-pagination-small-list .bk-pagination-picker {
|
110
131
|
display: flex;
|
111
|
-
height:
|
132
|
+
height: 26px;
|
133
|
+
margin: 0 4px;
|
112
134
|
cursor: pointer;
|
113
135
|
background-color: #f0f1f5;
|
114
136
|
border: 1px solid #f0f1f5;
|
@@ -116,8 +138,8 @@
|
|
116
138
|
align-items: center;
|
117
139
|
}
|
118
140
|
.bk-pagination-small-list .bk-pagination-picker:hover {
|
119
|
-
background-color: #
|
120
|
-
border-color: #
|
141
|
+
background-color: #eaebf0;
|
142
|
+
border-color: #eaebf0;
|
121
143
|
}
|
122
144
|
.bk-pagination-small-list .bk-pagination-picker.is-focused {
|
123
145
|
background-color: #fff;
|
@@ -126,7 +148,7 @@
|
|
126
148
|
}
|
127
149
|
.bk-pagination-editor {
|
128
150
|
height: 16px;
|
129
|
-
min-width:
|
151
|
+
min-width: 23px;
|
130
152
|
padding-right: 4px;
|
131
153
|
padding-left: 8px;
|
132
154
|
line-height: 16px;
|
@@ -144,14 +166,18 @@
|
|
144
166
|
.bk-pagination-btn-pre,
|
145
167
|
.bk-pagination-btn-next {
|
146
168
|
display: flex;
|
169
|
+
width: 26px;
|
170
|
+
height: 26px;
|
171
|
+
font-size: 20px;
|
172
|
+
color: #979ba5;
|
173
|
+
cursor: pointer;
|
147
174
|
justify-content: center;
|
148
175
|
align-items: center;
|
149
|
-
width: 24px;
|
150
|
-
cursor: pointer;
|
151
176
|
}
|
152
177
|
.bk-pagination-btn-pre:hover,
|
153
178
|
.bk-pagination-btn-next:hover {
|
154
179
|
color: #3a84ff;
|
180
|
+
background: #f0f1f5;
|
155
181
|
}
|
156
182
|
.bk-pagination-btn-pre.is-disabled,
|
157
183
|
.bk-pagination-btn-next.is-disabled {
|
@@ -34,7 +34,7 @@ export declare const paginationProps: {
|
|
34
34
|
align: import("vue-types").VueTypeDef<string> & {
|
35
35
|
default: string;
|
36
36
|
};
|
37
|
-
size: import("vue-types").VueTypeDef<
|
37
|
+
size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
|
38
38
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
39
39
|
default: boolean;
|
40
40
|
} & {
|
@@ -56,11 +56,14 @@ export declare const paginationProps: {
|
|
56
56
|
} & {
|
57
57
|
default: boolean;
|
58
58
|
};
|
59
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
60
|
+
default: (...args: any[]) => any;
|
61
|
+
};
|
59
62
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
60
63
|
default: () => string[];
|
61
64
|
};
|
62
65
|
};
|
63
|
-
export
|
66
|
+
export type PaginationProps = Readonly<ExtractPropTypes<typeof paginationProps>>;
|
64
67
|
declare const _default: import("vue").DefineComponent<{
|
65
68
|
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
66
69
|
default: number;
|
@@ -96,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
96
99
|
align: import("vue-types").VueTypeDef<string> & {
|
97
100
|
default: string;
|
98
101
|
};
|
99
|
-
size: import("vue-types").VueTypeDef<
|
102
|
+
size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
|
100
103
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
101
104
|
default: boolean;
|
102
105
|
} & {
|
@@ -118,6 +121,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
118
121
|
} & {
|
119
122
|
default: boolean;
|
120
123
|
};
|
124
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
125
|
+
default: (...args: any[]) => any;
|
126
|
+
};
|
121
127
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
122
128
|
default: () => string[];
|
123
129
|
};
|
@@ -136,6 +142,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
136
142
|
isLast: any;
|
137
143
|
}) => JSX.Element;
|
138
144
|
renderSmallList: () => JSX.Element;
|
145
|
+
resolveClassName: (cls: string) => string;
|
139
146
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], "change" | "update:modelValue" | "update:limit" | "limitChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
140
147
|
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
141
148
|
default: number;
|
@@ -171,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
171
178
|
align: import("vue-types").VueTypeDef<string> & {
|
172
179
|
default: string;
|
173
180
|
};
|
174
|
-
size: import("vue-types").VueTypeDef<
|
181
|
+
size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
|
175
182
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
176
183
|
default: boolean;
|
177
184
|
} & {
|
@@ -193,6 +200,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
193
200
|
} & {
|
194
201
|
default: boolean;
|
195
202
|
};
|
203
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
204
|
+
default: (...args: any[]) => any;
|
205
|
+
};
|
196
206
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
197
207
|
default: () => string[];
|
198
208
|
};
|
@@ -205,10 +215,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
205
215
|
small: boolean;
|
206
216
|
type: string;
|
207
217
|
disabled: boolean;
|
208
|
-
location: string;
|
209
218
|
layout: string[];
|
219
|
+
location: string;
|
210
220
|
count: number;
|
211
221
|
modelValue: number;
|
222
|
+
beforeChange: (...args: any[]) => any;
|
212
223
|
prevText: string;
|
213
224
|
nextText: string;
|
214
225
|
align: string;
|
@@ -216,5 +227,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
216
227
|
limitList: number[];
|
217
228
|
showLimit: boolean;
|
218
229
|
showTotalCount: boolean;
|
219
|
-
}>;
|
230
|
+
}, {}>;
|
220
231
|
export default _default;
|