bkui-vue 2.0.1-beta.8 → 2.0.1-beta.80
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 +15 -0
- package/dist/index.cjs.js +167 -167
- package/dist/index.esm.js +32462 -31824
- package/dist/index.umd.js +167 -167
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +262 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.d.ts +5 -12
- package/lib/alert/alert.variable.css +262 -1
- package/lib/alert/index.d.ts +11 -26
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +395 -4
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +262 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +397 -6
- package/lib/button/button.css +417 -243
- package/lib/button/button.d.ts +8 -8
- package/lib/button/button.less +74 -71
- package/lib/button/button.variable.css +450 -145
- package/lib/button/index.d.ts +11 -11
- package/lib/button/index.js +6 -7
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +396 -5
- package/lib/cascader/cascader-panel.d.ts +6 -1
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.d.ts +5 -1
- package/lib/cascader/cascader.variable.css +415 -24
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +110 -40
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +0 -16
- package/lib/checkbox/checkbox.css +147 -9
- package/lib/checkbox/checkbox.d.ts +39 -7
- package/lib/checkbox/checkbox.less +12 -0
- package/lib/checkbox/checkbox.variable.css +270 -1
- package/lib/checkbox/index.d.ts +57 -22
- package/lib/checkbox/index.js +21 -8
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +262 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +262 -1
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +262 -1
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/color-picker.variable.css +262 -1
- package/lib/color-picker/index.d.ts +23 -0
- package/lib/color-picker/index.js +52 -45
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +262 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/container.css +130 -0
- package/lib/container/container.variable.css +392 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.d.ts +0 -10
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/date-picker/index.d.ts +0 -22
- package/lib/date-picker/index.js +256 -219
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +5 -5
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -10
- package/lib/date-picker/panel/time.d.ts +2 -11
- package/lib/date-picker/props.d.ts +1 -5
- package/lib/date-picker/time-picker.d.ts +0 -9
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.d.ts +42 -26
- package/lib/dialog/dialog.variable.css +400 -9
- package/lib/dialog/index.d.ts +90 -56
- package/lib/dialog/index.js +25 -23
- package/lib/dialog/props.d.ts +18 -11
- package/lib/directives/index.d.ts +4 -3
- package/lib/directives/index.js +198 -176
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +262 -1
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/dropdown/index.d.ts +13 -13
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +262 -1
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +7 -19
- package/lib/form/form.css +130 -0
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +262 -1
- package/lib/form/index.d.ts +7 -14
- package/lib/form/index.js +22 -21
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +262 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +392 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +17 -18
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/info-box/info-box.variable.css +262 -1
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +63 -516
- package/lib/input/input.css +225 -73
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.less +30 -1
- package/lib/input/input.variable.css +487 -74
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.css +146 -16
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +262 -1
- package/lib/loading/index.d.ts +12 -11
- package/lib/loading/index.js +10 -8
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.d.ts +8 -8
- package/lib/loading/loading.variable.css +408 -17
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.css +148 -18
- package/lib/menu/menu.variable.css +410 -19
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +262 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.css +153 -22
- package/lib/message/message.less +3 -2
- package/lib/message/message.variable.css +264 -2
- package/lib/message/messageConstructor.d.ts +16 -16
- package/lib/modal/index.d.ts +49 -8
- package/lib/modal/index.js +49 -28
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.d.ts +19 -3
- package/lib/modal/modal.variable.css +396 -5
- package/lib/modal/props.mixin.d.ts +8 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +262 -1
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +262 -1
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/overflow-title/components/overflow-title.d.ts +9 -16
- package/lib/overflow-title/index.d.ts +19 -34
- package/lib/overflow-title/index.js +75 -18
- package/lib/overflow-title/props.d.ts +18 -21
- package/lib/pagination/index.d.ts +0 -19
- package/lib/pagination/index.js +61 -23
- package/lib/pagination/pagination.css +139 -9
- package/lib/pagination/pagination.d.ts +0 -13
- package/lib/pagination/pagination.less +14 -13
- package/lib/pagination/pagination.variable.css +270 -9
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +20 -21
- package/lib/pop-confirm/index.d.ts +11 -43
- package/lib/pop-confirm/index.js +27 -28
- package/lib/pop-confirm/pop-confirm.css +133 -1
- package/lib/pop-confirm/pop-confirm.d.ts +5 -19
- package/lib/pop-confirm/pop-confirm.less +3 -1
- package/lib/pop-confirm/pop-confirm.variable.css +265 -2
- package/lib/pop-confirm/props.d.ts +5 -11
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +20 -21
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.variable.css +262 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +262 -1
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +396 -5
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +28 -17
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +262 -1
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +262 -1
- package/lib/resize-layout/index.d.ts +34 -11
- package/lib/resize-layout/index.js +33 -14
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.d.ts +16 -5
- package/lib/resize-layout/resize-layout.variable.css +262 -1
- package/lib/scrollbar/css/scrollbar.css +239 -0
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/css/scrollbar.variable.css +499 -0
- package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
- package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
- package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
- package/lib/scrollbar/handlers/touch.d.ts +4 -0
- package/lib/scrollbar/helper/class-names.d.ts +21 -0
- package/lib/scrollbar/helper/css.d.ts +3 -0
- package/lib/scrollbar/helper/dom.d.ts +4 -0
- package/lib/scrollbar/helper/event-manager.d.ts +20 -0
- package/lib/scrollbar/helper/util.d.ts +11 -0
- package/lib/scrollbar/index.d.ts +133 -13
- package/lib/scrollbar/index.js +1332 -18434
- package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
- package/lib/scrollbar/update-geometry.d.ts +8 -0
- package/lib/search-select/index.d.ts +100 -78
- package/lib/search-select/index.js +343 -213
- package/lib/search-select/input.d.ts +17 -6
- package/lib/search-select/menu.d.ts +13 -1
- package/lib/search-select/search-select.css +163 -35
- package/lib/search-select/search-select.d.ts +33 -43
- package/lib/search-select/search-select.less +2 -2
- package/lib/search-select/search-select.variable.css +425 -36
- package/lib/search-select/selected.d.ts +35 -10
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +155 -77
- package/lib/select/index.js +296 -197
- package/lib/select/option.d.ts +5 -6
- package/lib/select/select.css +175 -43
- package/lib/select/select.d.ts +62 -28
- package/lib/select/select.less +7 -4
- package/lib/select/select.variable.css +437 -44
- package/lib/select/selectTagInput.d.ts +7 -6
- package/lib/select/type.d.ts +10 -11
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +2 -1
- package/lib/shared/index.js +110 -47
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +48 -48
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +41 -7
- package/lib/sideslider/index.js +12 -11
- package/lib/sideslider/sideslider.css +138 -9
- package/lib/sideslider/sideslider.d.ts +19 -3
- package/lib/sideslider/sideslider.less +7 -8
- package/lib/sideslider/sideslider.variable.css +269 -9
- package/lib/slider/index.js +21 -23
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +262 -1
- package/lib/steps/index.d.ts +14 -29
- package/lib/steps/index.js +3 -4
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.d.ts +8 -18
- package/lib/steps/steps.variable.css +262 -1
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +262 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +262 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +262 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +262 -1
- package/lib/{scrollbar/scrollbar.variable.css → styles/themes/themes.css} +2 -76
- package/lib/styles/themes/themes.less +299 -129
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +262 -1
- package/lib/switcher/index.d.ts +11 -11
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.d.ts +9 -9
- package/lib/switcher/switcher.variable.css +409 -18
- package/lib/tab/index.d.ts +44 -114
- package/lib/tab/index.js +60 -49
- package/lib/tab/props.d.ts +25 -50
- package/lib/tab/tab-nav.d.ts +26 -66
- package/lib/tab/tab-panel.d.ts +22 -0
- package/lib/tab/tab.css +211 -17
- package/lib/tab/tab.d.ts +10 -54
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +326 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-cell.d.ts +22 -0
- package/lib/table/components/table-column.d.ts +23 -126
- package/lib/table/const.d.ts +23 -10
- package/lib/table/events.d.ts +16 -112
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +69 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +16 -0
- package/lib/table/hooks/use-layout.d.ts +25 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +21 -0
- package/lib/table/hooks/use-rows.d.ts +30 -0
- package/lib/table/hooks/use-settings.d.ts +136 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +112 -634
- package/lib/table/index.js +4089 -3559
- package/lib/table/plugins/head-filter.css +135 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.less +4 -0
- package/lib/table/plugins/head-filter.variable.css +267 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +262 -1
- package/lib/table/plugins/settings.css +131 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +263 -1
- package/lib/table/props.d.ts +125 -62
- package/lib/table/table.css +753 -431
- package/lib/table/table.d.ts +51 -185
- package/lib/table/table.less +244 -112
- package/lib/table/table.variable.css +1058 -475
- package/lib/table/utils.d.ts +49 -21
- package/lib/table-column/index.d.ts +30 -289
- package/lib/table-column/index.js +17385 -46
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -3
- package/lib/tag/tag.css +136 -6
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +263 -2
- package/lib/tag-input/common.d.ts +2 -2
- package/lib/tag-input/index.d.ts +14 -11
- package/lib/tag-input/index.js +72 -52
- package/lib/tag-input/tag-input.css +157 -27
- package/lib/tag-input/tag-input.d.ts +8 -19
- package/lib/tag-input/tag-input.less +9 -9
- package/lib/tag-input/tag-input.variable.css +271 -10
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/time-picker/index.d.ts +0 -19
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +262 -1
- package/lib/timeline/index.js +2 -2
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +262 -1
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +262 -1
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +41 -27
- package/lib/tree/index.js +109 -58
- package/lib/tree/props.d.ts +18 -11
- package/lib/tree/tree.css +242 -78
- package/lib/tree/tree.d.ts +17 -17
- package/lib/tree/tree.variable.css +504 -79
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +10 -9
- package/lib/tree/use-node-async.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +42 -34
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +8 -5
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +27 -4
- package/lib/upload/index.js +86 -42
- package/lib/upload/props.d.ts +7 -2
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.d.ts +13 -2
- package/lib/upload/upload.type.d.ts +12 -6
- package/lib/upload/upload.variable.css +419 -28
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +12 -46
- package/lib/virtual-render/index.js +17468 -148
- package/lib/virtual-render/props.d.ts +2 -9
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +4 -17
- package/lib/virtual-render/v-virtual-render.d.ts +7 -1
- package/lib/virtual-render/virtual-render.css +225 -69
- package/lib/virtual-render/virtual-render.d.ts +6 -22
- package/lib/virtual-render/virtual-render.less +2 -11
- package/lib/virtual-render/virtual-render.variable.css +487 -70
- package/lib/volar.components.d.ts +2 -0
- package/package.json +17 -55
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -75
- package/lib/scrollbar/scrollbar.less +0 -94
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -275
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -4,6 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
6
6
|
import "../popover/popover.less";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
8
9
|
/******/ // The require scope
|
9
10
|
/******/ var __webpack_require__ = {};
|
@@ -54,30 +55,59 @@ const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
54
55
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
55
56
|
var popover_less_y = x => () => x
|
56
57
|
const popover_less_namespaceObject = popover_less_x({ });
|
58
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
59
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
60
|
+
var merge_y = x => () => x
|
61
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
57
62
|
;// CONCATENATED MODULE: external "vue-types"
|
58
63
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
59
64
|
var external_vue_types_y = x => () => x
|
60
65
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.string });
|
61
66
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/props.ts
|
67
|
+
/*
|
68
|
+
* Tencent is pleased to support the open source community by making
|
69
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
70
|
+
*
|
71
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
72
|
+
*
|
73
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
74
|
+
*
|
75
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
76
|
+
*
|
77
|
+
* ---------------------------------------------------
|
78
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
79
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
80
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
81
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
82
|
+
*
|
83
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
84
|
+
* the Software.
|
85
|
+
*
|
86
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
87
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
88
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
89
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
90
|
+
* IN THE SOFTWARE.
|
91
|
+
*/
|
62
92
|
|
63
93
|
|
64
94
|
var PlacementEnum;
|
65
95
|
(function (PlacementEnum) {
|
66
96
|
PlacementEnum["AUTO"] = "auto";
|
67
|
-
PlacementEnum["AUTO_START"] = "auto-start";
|
68
97
|
PlacementEnum["AUTO_END"] = "auto-end";
|
69
|
-
PlacementEnum["
|
70
|
-
PlacementEnum["RIGHT"] = "right";
|
98
|
+
PlacementEnum["AUTO_START"] = "auto-start";
|
71
99
|
PlacementEnum["BOTTOM"] = "bottom";
|
72
|
-
PlacementEnum["LEFT"] = "left";
|
73
|
-
PlacementEnum["TOP_START"] = "top-start";
|
74
|
-
PlacementEnum["TOP_END"] = "top-end";
|
75
|
-
PlacementEnum["BOTTOM_START"] = "bottom-start";
|
76
100
|
PlacementEnum["BOTTOM_END"] = "bottom-end";
|
77
|
-
PlacementEnum["
|
78
|
-
PlacementEnum["
|
79
|
-
PlacementEnum["LEFT_START"] = "left-start";
|
101
|
+
PlacementEnum["BOTTOM_START"] = "bottom-start";
|
102
|
+
PlacementEnum["LEFT"] = "left";
|
80
103
|
PlacementEnum["LEFT_END"] = "left-end";
|
104
|
+
PlacementEnum["LEFT_START"] = "left-start";
|
105
|
+
PlacementEnum["RIGHT"] = "right";
|
106
|
+
PlacementEnum["RIGHT_END"] = "right-end";
|
107
|
+
PlacementEnum["RIGHT_START"] = "right-start";
|
108
|
+
PlacementEnum["TOP"] = "top";
|
109
|
+
PlacementEnum["TOP_END"] = "top-end";
|
110
|
+
PlacementEnum["TOP_START"] = "top-start";
|
81
111
|
})(PlacementEnum || (PlacementEnum = {}));
|
82
112
|
function placementType() {
|
83
113
|
return (0,external_vue_types_namespaceObject.string)().def(PlacementEnum.BOTTOM);
|
@@ -85,7 +115,6 @@ function placementType() {
|
|
85
115
|
/* harmony default export */ const props = ({
|
86
116
|
content: shared_namespaceObject.PropTypes.string,
|
87
117
|
type: shared_namespaceObject.PropTypes.oneOf(['tips', 'title']).def('title'),
|
88
|
-
calType: shared_namespaceObject.PropTypes.oneOf(['dom', 'canvas']).def('dom'),
|
89
118
|
boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]).def(document.body),
|
90
119
|
placement: placementType().def(PlacementEnum.TOP_START),
|
91
120
|
resizeable: shared_namespaceObject.PropTypes.bool,
|
@@ -93,6 +122,32 @@ function placementType() {
|
|
93
122
|
});
|
94
123
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/components/overflow-title.tsx
|
95
124
|
|
125
|
+
/*
|
126
|
+
* Tencent is pleased to support the open source community by making
|
127
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
128
|
+
*
|
129
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
130
|
+
*
|
131
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
132
|
+
*
|
133
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
134
|
+
*
|
135
|
+
* ---------------------------------------------------
|
136
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
137
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
138
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
139
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
140
|
+
*
|
141
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
142
|
+
* the Software.
|
143
|
+
*
|
144
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
145
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
146
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
147
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
148
|
+
* IN THE SOFTWARE.
|
149
|
+
*/
|
150
|
+
|
96
151
|
|
97
152
|
|
98
153
|
|
@@ -158,16 +213,18 @@ function placementType() {
|
|
158
213
|
},
|
159
214
|
render: function render() {
|
160
215
|
var _this = this;
|
216
|
+
/** popover 基础配置 */
|
217
|
+
var basePopoverOptions = {
|
218
|
+
boundary: this.boundary || document.body,
|
219
|
+
placement: this.placement,
|
220
|
+
popoverDelay: [200, 0],
|
221
|
+
disabled: this.type === 'title' || !this.isShowTips
|
222
|
+
};
|
223
|
+
var popoverOptions = (0,merge_namespaceObject["default"])(basePopoverOptions, this.popoverOptions);
|
161
224
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
162
225
|
"ref": "boxRef",
|
163
226
|
"class": "position-relative"
|
164
|
-
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"],
|
165
|
-
"placement": this.placement,
|
166
|
-
"boundary": this.boundary || document.body,
|
167
|
-
"popoverDelay": [200, 0]
|
168
|
-
}, props.popoverOptions, {
|
169
|
-
"disabled": this.type === 'title' || !this.isShowTips
|
170
|
-
}), {
|
227
|
+
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], popoverOptions, {
|
171
228
|
"default": function _default() {
|
172
229
|
return (0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
|
173
230
|
"ref": "textRef",
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import { PropType } from 'vue/dist/vue';
|
2
2
|
export type TipsType = 'tips' | 'title';
|
3
|
-
export type CalType = '
|
3
|
+
export type CalType = 'canvas' | 'dom';
|
4
4
|
export declare enum PlacementEnum {
|
5
5
|
AUTO = "auto",
|
6
|
-
AUTO_START = "auto-start",
|
7
6
|
AUTO_END = "auto-end",
|
8
|
-
|
9
|
-
RIGHT = "right",
|
7
|
+
AUTO_START = "auto-start",
|
10
8
|
BOTTOM = "bottom",
|
11
|
-
LEFT = "left",
|
12
|
-
TOP_START = "top-start",
|
13
|
-
TOP_END = "top-end",
|
14
|
-
BOTTOM_START = "bottom-start",
|
15
9
|
BOTTOM_END = "bottom-end",
|
16
|
-
|
17
|
-
|
10
|
+
BOTTOM_START = "bottom-start",
|
11
|
+
LEFT = "left",
|
12
|
+
LEFT_END = "left-end",
|
18
13
|
LEFT_START = "left-start",
|
19
|
-
|
14
|
+
RIGHT = "right",
|
15
|
+
RIGHT_END = "right-end",
|
16
|
+
RIGHT_START = "right-start",
|
17
|
+
TOP = "top",
|
18
|
+
TOP_END = "top-end",
|
19
|
+
TOP_START = "top-start"
|
20
20
|
}
|
21
|
-
export declare function placementType(): import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
22
|
-
default: "auto" | "auto-
|
21
|
+
export declare function placementType(): import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
22
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
23
23
|
};
|
24
24
|
declare const _default: {
|
25
25
|
content: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -28,19 +28,16 @@ declare const _default: {
|
|
28
28
|
type: import("vue-types").VueTypeDef<string> & {
|
29
29
|
default: string;
|
30
30
|
};
|
31
|
-
calType: import("vue-types").VueTypeDef<string> & {
|
32
|
-
default: string;
|
33
|
-
};
|
34
31
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
35
32
|
default: string | (() => HTMLElement);
|
36
33
|
};
|
37
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
38
|
-
default: "auto" | "auto-
|
34
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
35
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
39
36
|
};
|
40
37
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
41
38
|
default: boolean;
|
42
39
|
};
|
43
|
-
popoverOptions: PropType<Partial<Readonly<import("vue").ExtractPropTypes<{
|
40
|
+
popoverOptions: PropType<Partial<Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
44
41
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
42
|
default: boolean;
|
46
43
|
} & {
|
@@ -77,8 +74,8 @@ declare const _default: {
|
|
77
74
|
} & {
|
78
75
|
default: boolean;
|
79
76
|
};
|
80
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
81
|
-
default: "auto" | "auto-
|
77
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
78
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
82
79
|
};
|
83
80
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
84
81
|
default: string;
|
@@ -34,7 +34,6 @@ declare const BkPagination: {
|
|
34
34
|
align: import("vue-types").VueTypeDef<string> & {
|
35
35
|
default: string;
|
36
36
|
};
|
37
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
38
37
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
39
38
|
default: boolean;
|
40
39
|
} & {
|
@@ -56,9 +55,6 @@ declare const BkPagination: {
|
|
56
55
|
} & {
|
57
56
|
default: boolean;
|
58
57
|
};
|
59
|
-
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
60
|
-
default: (...args: any[]) => any;
|
61
|
-
};
|
62
58
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
63
59
|
default: () => string[];
|
64
60
|
};
|
@@ -118,7 +114,6 @@ declare const BkPagination: {
|
|
118
114
|
align: import("vue-types").VueTypeDef<string> & {
|
119
115
|
default: string;
|
120
116
|
};
|
121
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
122
117
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
123
118
|
default: boolean;
|
124
119
|
} & {
|
@@ -140,9 +135,6 @@ declare const BkPagination: {
|
|
140
135
|
} & {
|
141
136
|
default: boolean;
|
142
137
|
};
|
143
|
-
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
144
|
-
default: (...args: any[]) => any;
|
145
|
-
};
|
146
138
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
147
139
|
default: () => string[];
|
148
140
|
};
|
@@ -159,7 +151,6 @@ declare const BkPagination: {
|
|
159
151
|
location: string;
|
160
152
|
count: number;
|
161
153
|
modelValue: number;
|
162
|
-
beforeChange: (...args: any[]) => any;
|
163
154
|
prevText: string;
|
164
155
|
nextText: string;
|
165
156
|
align: string;
|
@@ -209,7 +200,6 @@ declare const BkPagination: {
|
|
209
200
|
align: import("vue-types").VueTypeDef<string> & {
|
210
201
|
default: string;
|
211
202
|
};
|
212
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
213
203
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
214
204
|
default: boolean;
|
215
205
|
} & {
|
@@ -231,9 +221,6 @@ declare const BkPagination: {
|
|
231
221
|
} & {
|
232
222
|
default: boolean;
|
233
223
|
};
|
234
|
-
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
235
|
-
default: (...args: any[]) => any;
|
236
|
-
};
|
237
224
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
238
225
|
default: () => string[];
|
239
226
|
};
|
@@ -266,7 +253,6 @@ declare const BkPagination: {
|
|
266
253
|
location: string;
|
267
254
|
count: number;
|
268
255
|
modelValue: number;
|
269
|
-
beforeChange: (...args: any[]) => any;
|
270
256
|
prevText: string;
|
271
257
|
nextText: string;
|
272
258
|
align: string;
|
@@ -313,7 +299,6 @@ declare const BkPagination: {
|
|
313
299
|
align: import("vue-types").VueTypeDef<string> & {
|
314
300
|
default: string;
|
315
301
|
};
|
316
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
317
302
|
small: import("vue-types").VueTypeValidableDef<boolean> & {
|
318
303
|
default: boolean;
|
319
304
|
} & {
|
@@ -335,9 +320,6 @@ declare const BkPagination: {
|
|
335
320
|
} & {
|
336
321
|
default: boolean;
|
337
322
|
};
|
338
|
-
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
339
|
-
default: (...args: any[]) => any;
|
340
|
-
};
|
341
323
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
342
324
|
default: () => string[];
|
343
325
|
};
|
@@ -370,7 +352,6 @@ declare const BkPagination: {
|
|
370
352
|
location: string;
|
371
353
|
count: number;
|
372
354
|
modelValue: number;
|
373
|
-
beforeChange: (...args: any[]) => any;
|
374
355
|
prevText: string;
|
375
356
|
nextText: string;
|
376
357
|
align: string;
|
package/lib/pagination/index.js
CHANGED
@@ -242,24 +242,22 @@ function _isSlot(s) {
|
|
242
242
|
if (!proxy.showLimit) {
|
243
243
|
return null;
|
244
244
|
}
|
245
|
-
return (0,external_vue_namespaceObject.createVNode)("div",
|
245
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
246
246
|
"class": _defineProperty(_defineProperty(_defineProperty({}, resolveClassName('pagination-limit'), true), 'is-first', isFirst), 'is-last', isLast)
|
247
|
-
}, {
|
248
|
-
disabled: proxy.disabled
|
249
|
-
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(select_namespaceObject["default"], {
|
247
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(select_namespaceObject["default"], {
|
250
248
|
"class": "".concat(resolveClassName('pagination-limit-select')),
|
251
249
|
"clearable": false,
|
250
|
+
"disabled": proxy.disabled,
|
251
|
+
"filterable": false,
|
252
|
+
"modelValue": localLimit.value,
|
252
253
|
"size": "small",
|
253
254
|
"withValidate": false,
|
254
|
-
"
|
255
|
-
"onChange": handleLimitChange,
|
256
|
-
"disabled": proxy.disabled,
|
257
|
-
"filterable": false
|
255
|
+
"onChange": handleLimitChange
|
258
256
|
}, _isSlot(_slot = proxy.limitList.map(function (num, index) {
|
259
257
|
return (0,external_vue_namespaceObject.createVNode)(select_namespaceObject.BkOption, {
|
260
258
|
"id": num,
|
261
|
-
"
|
262
|
-
"
|
259
|
+
"key": "".concat(index, "_").concat(num),
|
260
|
+
"name": "".concat(num)
|
263
261
|
}, null);
|
264
262
|
})) ? _slot : {
|
265
263
|
"default": function _default() {
|
@@ -371,6 +369,9 @@ var PAGE_ITEMS_NUM = 5;
|
|
371
369
|
* @desc 上一页
|
372
370
|
*/
|
373
371
|
var handlePrePage = function handlePrePage() {
|
372
|
+
if (proxy.disabled) {
|
373
|
+
return;
|
374
|
+
}
|
374
375
|
if (isPagePreDisabled.value) {
|
375
376
|
return;
|
376
377
|
}
|
@@ -380,6 +381,9 @@ var PAGE_ITEMS_NUM = 5;
|
|
380
381
|
* @desc 下一页
|
381
382
|
*/
|
382
383
|
var handleNextPage = function handleNextPage() {
|
384
|
+
if (proxy.disabled) {
|
385
|
+
return;
|
386
|
+
}
|
383
387
|
if (isPageNextDisabled.value) {
|
384
388
|
return;
|
385
389
|
}
|
@@ -390,6 +394,9 @@ var PAGE_ITEMS_NUM = 5;
|
|
390
394
|
* @param { Number } totalPageNum
|
391
395
|
*/
|
392
396
|
var handleItemClick = function handleItemClick(totalPageNum) {
|
397
|
+
if (proxy.disabled) {
|
398
|
+
return;
|
399
|
+
}
|
393
400
|
if (totalPageNum === localCurrent.value) {
|
394
401
|
return;
|
395
402
|
}
|
@@ -399,12 +406,18 @@ var PAGE_ITEMS_NUM = 5;
|
|
399
406
|
* @desc 上一批分页
|
400
407
|
*/
|
401
408
|
var handlePreBatch = function handlePreBatch() {
|
409
|
+
if (proxy.disabled) {
|
410
|
+
return;
|
411
|
+
}
|
402
412
|
localCurrent.value = Math.max(1, localCurrent.value - PAGE_ITEMS_NUM);
|
403
413
|
};
|
404
414
|
/**
|
405
415
|
* @desc 下一批分页
|
406
416
|
*/
|
407
417
|
var handleNextBatch = function handleNextBatch() {
|
418
|
+
if (proxy.disabled) {
|
419
|
+
return;
|
420
|
+
}
|
408
421
|
localCurrent.value = Math.min(proxy.totalPageNum, localCurrent.value + PAGE_ITEMS_NUM);
|
409
422
|
};
|
410
423
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
@@ -418,8 +431,8 @@ var PAGE_ITEMS_NUM = 5;
|
|
418
431
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
419
432
|
"onClick": handlePrePage
|
420
433
|
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
421
|
-
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === 1),
|
422
434
|
"key": "1",
|
435
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === 1),
|
423
436
|
"onClick": function onClick() {
|
424
437
|
return handleItemClick(1);
|
425
438
|
}
|
@@ -429,8 +442,8 @@ var PAGE_ITEMS_NUM = 5;
|
|
429
442
|
"onClick": handlePreBatch
|
430
443
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), list.value.map(function (num) {
|
431
444
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
432
|
-
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === num),
|
433
445
|
"key": num,
|
446
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === num),
|
434
447
|
"onClick": function onClick() {
|
435
448
|
return handleItemClick(num);
|
436
449
|
}
|
@@ -440,8 +453,8 @@ var PAGE_ITEMS_NUM = 5;
|
|
440
453
|
"class": "".concat(resolveClassName('pagination-list-next-batch')),
|
441
454
|
"onClick": handleNextBatch
|
442
455
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), proxy.totalPageNum > 1 && (0,external_vue_namespaceObject.createVNode)("div", {
|
443
|
-
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === proxy.totalPageNum),
|
444
456
|
"key": "last",
|
457
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === proxy.totalPageNum),
|
445
458
|
"onClick": function onClick() {
|
446
459
|
return handleItemClick(proxy.totalPageNum);
|
447
460
|
}
|
@@ -502,6 +515,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
502
515
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
503
516
|
var isFocused = (0,external_vue_namespaceObject.ref)(false);
|
504
517
|
var localCurrent = (0,external_vue_namespaceObject.ref)(1);
|
518
|
+
var isPopoverShow = (0,external_vue_namespaceObject.ref)(false);
|
505
519
|
var isPagePreDisabled = (0,external_vue_namespaceObject.computed)(function () {
|
506
520
|
return localCurrent.value === 1;
|
507
521
|
});
|
@@ -549,6 +563,9 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
549
563
|
* @desc 上一页
|
550
564
|
*/
|
551
565
|
var handlePrePage = function handlePrePage() {
|
566
|
+
if (proxy.disabled) {
|
567
|
+
return;
|
568
|
+
}
|
552
569
|
if (isPagePreDisabled.value) {
|
553
570
|
return;
|
554
571
|
}
|
@@ -558,6 +575,9 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
558
575
|
* @desc 下一页
|
559
576
|
*/
|
560
577
|
var handleNextPage = function handleNextPage() {
|
578
|
+
if (proxy.disabled) {
|
579
|
+
return;
|
580
|
+
}
|
561
581
|
if (isPageNextDisabled.value) {
|
562
582
|
return;
|
563
583
|
}
|
@@ -567,6 +587,9 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
567
587
|
* @desc 获得焦点
|
568
588
|
*/
|
569
589
|
var handlePageEditorFocus = function handlePageEditorFocus() {
|
590
|
+
if (proxy.disabled) {
|
591
|
+
return;
|
592
|
+
}
|
570
593
|
isFocused.value = true;
|
571
594
|
};
|
572
595
|
/**
|
@@ -574,6 +597,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
574
597
|
*/
|
575
598
|
var handlePageEditorBlur = function handlePageEditorBlur() {
|
576
599
|
isFocused.value = false;
|
600
|
+
isPopoverShow.value = false;
|
577
601
|
if (inputMemo !== localCurrent.value) {
|
578
602
|
localCurrent.value = inputMemo;
|
579
603
|
}
|
@@ -609,6 +633,13 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
609
633
|
inputMemo = item;
|
610
634
|
handlePageEditorBlur();
|
611
635
|
};
|
636
|
+
/**
|
637
|
+
* @desc 点击关闭popover事件
|
638
|
+
* @param { boolean } isShow
|
639
|
+
*/
|
640
|
+
var handlePopShow = function handlePopShow(isShow) {
|
641
|
+
isPopoverShow.value = isShow;
|
642
|
+
};
|
612
643
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
613
644
|
resolveClassName = _usePrefix.resolveClassName;
|
614
645
|
var render = function render() {
|
@@ -618,12 +649,20 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
618
649
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-btn-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
619
650
|
"onClick": handlePrePage
|
620
651
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
621
|
-
"theme": "light",
|
622
|
-
"trigger": "click",
|
623
|
-
"arrow": false,
|
624
652
|
"width": 56,
|
653
|
+
"arrow": false,
|
625
654
|
"boundary": "body",
|
626
|
-
"
|
655
|
+
"disabled": proxy.disabled,
|
656
|
+
"isShow": isPopoverShow.value,
|
657
|
+
"placement": "bottom",
|
658
|
+
"theme": "light",
|
659
|
+
"trigger": "click",
|
660
|
+
"onAfterHidden": function onAfterHidden() {
|
661
|
+
return handlePopShow(false);
|
662
|
+
},
|
663
|
+
"onAfterShow": function onAfterShow() {
|
664
|
+
return handlePopShow(true);
|
665
|
+
}
|
627
666
|
}, {
|
628
667
|
"default": function _default() {
|
629
668
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -631,10 +670,11 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
631
670
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
632
671
|
"ref": inputRef,
|
633
672
|
"class": "".concat(resolveClassName('pagination-editor')),
|
634
|
-
"contenteditable":
|
673
|
+
"contenteditable": !proxy.disabled,
|
674
|
+
"innerHTML": String(localCurrent.value),
|
635
675
|
"spellcheck": "false",
|
636
|
-
"onFocus": handlePageEditorFocus,
|
637
676
|
"onBlur": handlePageEditorBlur,
|
677
|
+
"onFocus": handlePageEditorFocus,
|
638
678
|
"onInput": handlePageEditorInput,
|
639
679
|
"onKeydown": handlePageEditorKeydown
|
640
680
|
}, [localCurrent.value]), (0,external_vue_namespaceObject.createVNode)("span", null, [(0,external_vue_namespaceObject.createTextVNode)("/")]), (0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -646,11 +686,11 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
646
686
|
"class": "".concat(resolveClassName('pagination-picker-list'))
|
647
687
|
}, [list.value.map(function (item) {
|
648
688
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
689
|
+
"key": item,
|
649
690
|
"class": {
|
650
691
|
item: true,
|
651
692
|
'is-actived': item === localCurrent.value
|
652
693
|
},
|
653
|
-
"key": item,
|
654
694
|
"onClick": function onClick() {
|
655
695
|
return handlePageChange(item);
|
656
696
|
}
|
@@ -762,13 +802,11 @@ var paginationProps = {
|
|
762
802
|
type: shared_namespaceObject.PropTypes.oneOf(['default', 'compact']).def('default'),
|
763
803
|
location: shared_namespaceObject.PropTypes.oneOf(['left', 'right']).def('right'),
|
764
804
|
align: shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']).def('left'),
|
765
|
-
size: shared_namespaceObject.PropTypes.size(),
|
766
805
|
small: shared_namespaceObject.PropTypes.bool.def(false),
|
767
806
|
showTotalCount: shared_namespaceObject.PropTypes.bool.def(true),
|
768
807
|
prevText: shared_namespaceObject.PropTypes.string,
|
769
808
|
nextText: shared_namespaceObject.PropTypes.string,
|
770
809
|
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
771
|
-
beforeChange: shared_namespaceObject.PropTypes.func,
|
772
810
|
layout: shared_namespaceObject.PropTypes.custom(function (value) {
|
773
811
|
var layoutNameMap = {
|
774
812
|
total: true,
|
@@ -836,7 +874,7 @@ var paginationProps = {
|
|
836
874
|
},
|
837
875
|
render: function render() {
|
838
876
|
var _this = this;
|
839
|
-
var paginationClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('pagination')), true), "".concat(this.
|
877
|
+
var paginationClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('pagination')), true), "is-align-".concat(this.align), true), 'is-disabled', this.disabled));
|
840
878
|
var layoutMap = {
|
841
879
|
total: this.renderTotal,
|
842
880
|
list: this.small ? this.renderSmallList : this.renderList,
|