bkui-vue 2.0.1-beta.9 → 2.0.1-beta.90
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 +32331 -31642
- 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-panel.d.ts +5 -5
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +262 -1
- package/lib/collapse/index.d.ts +5 -5
- package/lib/collapse/index.js +4 -2
- package/lib/collapse/props.d.ts +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 +30 -32
- package/lib/components.js +29 -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 +3 -11
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/date-picker/index.d.ts +10 -24
- package/lib/date-picker/index.js +258 -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 +3 -10
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.d.ts +47 -31
- package/lib/dialog/dialog.variable.css +400 -9
- package/lib/dialog/index.d.ts +101 -67
- package/lib/dialog/index.js +25 -23
- package/lib/dialog/props.d.ts +20 -13
- 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 +11 -11
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/dropdown/index.d.ts +26 -26
- package/lib/dropdown/index.js +10 -8
- 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.d.ts +1 -0
- package/lib/menu/index.js +2 -3
- 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.d.ts +1 -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 +62 -21
- package/lib/modal/index.js +49 -28
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.d.ts +24 -8
- package/lib/modal/modal.variable.css +396 -5
- package/lib/modal/props.mixin.d.ts +10 -3
- 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 +29 -20
- package/lib/overflow-title/index.d.ts +59 -42
- package/lib/overflow-title/index.js +75 -18
- package/lib/overflow-title/props.d.ts +28 -23
- package/lib/pagination/index.d.ts +0 -19
- package/lib/pagination/index.js +76 -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 +92 -49
- 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/content.d.ts +5 -2
- package/lib/popover/index.d.ts +74 -30
- package/lib/popover/index.js +92 -49
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.d.ts +32 -12
- package/lib/popover/popover.variable.css +262 -1
- package/lib/popover/props.d.ts +14 -6
- package/lib/popover/use-floating.d.ts +5 -2
- 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 +344 -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 +251 -91
- package/lib/select/index.js +313 -200
- package/lib/select/option.d.ts +5 -6
- package/lib/select/select.css +175 -43
- package/lib/select/select.d.ts +104 -34
- 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 +111 -47
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +53 -52
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +52 -18
- package/lib/sideslider/index.js +12 -11
- package/lib/sideslider/sideslider.css +138 -9
- package/lib/sideslider/sideslider.d.ts +24 -8
- 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 +49 -119
- package/lib/tab/index.js +60 -49
- package/lib/tab/props.d.ts +27 -52
- package/lib/tab/tab-nav.d.ts +26 -66
- package/lib/tab/tab-panel.d.ts +27 -5
- 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 +4090 -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 +77 -19
- package/lib/tag-input/index.js +78 -54
- package/lib/tag-input/tag-input.css +157 -27
- package/lib/tag-input/tag-input.d.ts +39 -23
- 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 +17 -4
- package/lib/time-picker/index.d.ts +10 -21
- 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 +102 -55
- 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 +52 -6
- package/lib/upload/index.js +134 -55
- package/lib/upload/props.d.ts +11 -2
- package/lib/upload/upload-list.d.ts +11 -1
- package/lib/upload/upload-trigger.d.ts +11 -1
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.d.ts +24 -3
- 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
@@ -85,7 +85,7 @@ const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_
|
|
85
85
|
;// CONCATENATED MODULE: external "../shared"
|
86
86
|
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
87
87
|
var shared_y = x => () => x
|
88
|
-
const shared_namespaceObject = shared_x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType });
|
88
|
+
const shared_namespaceObject = shared_x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType });
|
89
89
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
90
90
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
91
91
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -284,14 +284,13 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
284
284
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
285
285
|
* IN THE SOFTWARE.
|
286
286
|
*/
|
287
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
288
287
|
var EMIT_EVENTS;
|
289
288
|
(function (EMIT_EVENTS) {
|
290
289
|
EMIT_EVENTS["CLICK_OUTSIDE"] = "clickoutside";
|
291
|
-
EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
|
292
|
-
EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
|
293
290
|
EMIT_EVENTS["CONTENT_AfterHidden"] = "afterHidden";
|
294
291
|
EMIT_EVENTS["CONTENT_AfterShow"] = "afterShow";
|
292
|
+
EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
|
293
|
+
EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
|
295
294
|
})(EMIT_EVENTS || (EMIT_EVENTS = {}));
|
296
295
|
var EVENT_SHOW_HIDE_FN = function EVENT_SHOW_HIDE_FN(_args) {
|
297
296
|
return true;
|
@@ -344,7 +343,9 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
344
343
|
visible: shared_namespaceObject.PropTypes.bool.def(false),
|
345
344
|
eventDelay: shared_namespaceObject.PropTypes.number.def(0)
|
346
345
|
},
|
347
|
-
|
346
|
+
emits: ['click'],
|
347
|
+
setup: function setup(props, _ref) {
|
348
|
+
var emit = _ref.emit;
|
348
349
|
var resolveValToPix = function resolveValToPix(val) {
|
349
350
|
if (/^\d+\.?\d*$/.test("".concat(val))) {
|
350
351
|
return "".concat(val, "px");
|
@@ -361,6 +362,10 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
361
362
|
});
|
362
363
|
var refContent = (0,external_vue_namespaceObject.ref)(null);
|
363
364
|
var refTimer = (0,external_vue_namespaceObject.ref)(null);
|
365
|
+
var handleClick = function handleClick(evt) {
|
366
|
+
evt.stopPropagation();
|
367
|
+
emit('click', evt);
|
368
|
+
};
|
364
369
|
var resetPointerEvent = function resetPointerEvent() {
|
365
370
|
var _props$eventDelay;
|
366
371
|
if (props.eventDelay === 0) {
|
@@ -387,6 +392,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
387
392
|
style: style,
|
388
393
|
refContent: refContent,
|
389
394
|
contentClassName: contentClassName,
|
395
|
+
handleClick: handleClick,
|
390
396
|
resetPointerEvent: resetPointerEvent,
|
391
397
|
setContentPointerEvent: setContentPointerEvent
|
392
398
|
};
|
@@ -413,9 +419,10 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
413
419
|
};
|
414
420
|
var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
|
415
421
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
416
|
-
"
|
422
|
+
"ref": "refContent",
|
417
423
|
"style": style,
|
418
|
-
"
|
424
|
+
"class": this.contentClassName,
|
425
|
+
"onClick": this.handleClick
|
419
426
|
}, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
|
420
427
|
}
|
421
428
|
}));
|
@@ -434,11 +441,13 @@ var PopoverProps = {
|
|
434
441
|
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
435
442
|
always: shared_namespaceObject.PropTypes.bool.def(false),
|
436
443
|
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
444
|
+
clickContentAutoHide: shared_namespaceObject.PropTypes.bool.def(false),
|
437
445
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
438
446
|
height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
439
447
|
maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
440
448
|
maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
441
449
|
content: (0,external_vue_types_namespaceObject.toType)('IContent', {}).def(''),
|
450
|
+
renderDirective: (0,shared_namespaceObject.renderDirectiveType)().def('if'),
|
442
451
|
target: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.instanceOf(HTMLElement), shared_namespaceObject.PropTypes.instanceOf(PointerEvent)]),
|
443
452
|
allowHtml: shared_namespaceObject.PropTypes.bool.def(false),
|
444
453
|
/**
|
@@ -453,7 +462,6 @@ var PopoverProps = {
|
|
453
462
|
* 支持 click hover manual
|
454
463
|
* manual: 通过isShow控制显示、隐藏
|
455
464
|
*/
|
456
|
-
// trigger: triggerType(),
|
457
465
|
trigger: (0,shared_namespaceObject.triggerType)(),
|
458
466
|
/**
|
459
467
|
* content 渲染方式
|
@@ -650,10 +658,27 @@ function _nonIterableRest() {
|
|
650
658
|
function _slicedToArray(arr, i) {
|
651
659
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
652
660
|
}
|
653
|
-
;// CONCATENATED MODULE:
|
654
|
-
|
655
|
-
|
656
|
-
|
661
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
662
|
+
|
663
|
+
function _arrayWithoutHoles(arr) {
|
664
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
665
|
+
}
|
666
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
667
|
+
function _iterableToArray(iter) {
|
668
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
669
|
+
}
|
670
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
671
|
+
function _nonIterableSpread() {
|
672
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
673
|
+
}
|
674
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
function _toConsumableArray(arr) {
|
680
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
681
|
+
}
|
657
682
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
658
683
|
/**
|
659
684
|
* Custom positioning reference element.
|
@@ -2604,6 +2629,10 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
|
|
2604
2629
|
|
2605
2630
|
|
2606
2631
|
|
2632
|
+
;// CONCATENATED MODULE: external "lodash/isElement"
|
2633
|
+
var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2634
|
+
var isElement_y = x => () => x
|
2635
|
+
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
2607
2636
|
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
2608
2637
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
2609
2638
|
/* harmony default export */ const esm_browser_native = ({
|
@@ -2759,6 +2788,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2759
2788
|
;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
|
2760
2789
|
|
2761
2790
|
|
2791
|
+
|
2762
2792
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
2763
2793
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2764
2794
|
/*
|
@@ -3131,7 +3161,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3131
3161
|
triggerPopover();
|
3132
3162
|
};
|
3133
3163
|
var handlePopContentMouseEnter = function handlePopContentMouseEnter(e) {
|
3134
|
-
if (
|
3164
|
+
if (!['hover', 'click-hover'].includes(props.trigger)) {
|
3135
3165
|
return;
|
3136
3166
|
}
|
3137
3167
|
if (popHideTimerId) {
|
@@ -3142,7 +3172,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3142
3172
|
emitPopContentMouseEnter(e);
|
3143
3173
|
};
|
3144
3174
|
var handlePopContentMouseLeave = function handlePopContentMouseLeave(e) {
|
3145
|
-
|
3175
|
+
// 处理底部触发mouseleave事件,popShowTimerId有值代表处于hover状态
|
3176
|
+
if (isMouseenter && !popShowTimerId) {
|
3146
3177
|
hidePopover();
|
3147
3178
|
isMouseenter = false;
|
3148
3179
|
emitPopContentMouseLeave(e);
|
@@ -3165,17 +3196,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3165
3196
|
var resolveTriggerEvents = function resolveTriggerEvents() {
|
3166
3197
|
var _triggerEvents$props$;
|
3167
3198
|
var triggerEvents = {
|
3168
|
-
hover: {
|
3199
|
+
hover: [{
|
3169
3200
|
content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
|
3170
3201
|
reference: [['mouseenter', showPopover], ['mouseleave', hidePopover], ['focus', showPopover], ['blur', hidePopover]]
|
3171
|
-
},
|
3172
|
-
click: [['click', handleClickRef]],
|
3173
|
-
manual: {
|
3202
|
+
}],
|
3203
|
+
click: [[['click', handleClickRef]]],
|
3204
|
+
manual: [{
|
3174
3205
|
content: [['mouseenter', emitPopContentMouseEnter], ['mouseleave', emitPopContentMouseLeave]],
|
3175
3206
|
reference: [[]]
|
3176
|
-
}
|
3207
|
+
}]
|
3177
3208
|
};
|
3178
|
-
return (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
|
3209
|
+
return props.trigger === 'click-hover' ? [].concat(_toConsumableArray(triggerEvents.click), _toConsumableArray(triggerEvents.hover)) : (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
|
3179
3210
|
};
|
3180
3211
|
var updateFullscreenTarget = function updateFullscreenTarget(val) {
|
3181
3212
|
fullScreenTarget.value = val;
|
@@ -3388,15 +3419,16 @@ var parentNodeReferId = null;
|
|
3388
3419
|
elReference = _resolvePopElements.elReference,
|
3389
3420
|
elContent = _resolvePopElements.elContent;
|
3390
3421
|
storeEvents = resolveTriggerEvents();
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
content =
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3422
|
+
storeEvents.forEach(function (storeEvent) {
|
3423
|
+
if (Array.isArray(storeEvent)) {
|
3424
|
+
addEventToTargetEl(elReference, storeEvent);
|
3425
|
+
} else {
|
3426
|
+
var content = storeEvent.content,
|
3427
|
+
reference = storeEvent.reference;
|
3428
|
+
addEventToTargetEl(elReference, reference);
|
3429
|
+
addEventToTargetEl(elContent, content);
|
3430
|
+
}
|
3431
|
+
});
|
3400
3432
|
};
|
3401
3433
|
var addEventToTargetEl = function addEventToTargetEl(target, evets) {
|
3402
3434
|
evets.forEach(function (_ref2) {
|
@@ -3409,8 +3441,8 @@ var parentNodeReferId = null;
|
|
3409
3441
|
});
|
3410
3442
|
};
|
3411
3443
|
var removeEventListener = function removeEventListener() {
|
3412
|
-
var
|
3413
|
-
if ((
|
3444
|
+
var _storeEvents;
|
3445
|
+
if ((_storeEvents = storeEvents) !== null && _storeEvents !== void 0 && _storeEvents.length) {
|
3414
3446
|
var _resolvePopElements2 = resolvePopElements(),
|
3415
3447
|
elReference = _resolvePopElements2.elReference;
|
3416
3448
|
if (elReference) {
|
@@ -3567,7 +3599,6 @@ function _isSlot(s) {
|
|
3567
3599
|
/* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
|
3568
3600
|
name: 'Popover',
|
3569
3601
|
components: {
|
3570
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
3571
3602
|
Content: content,
|
3572
3603
|
Arrow: src_arrow,
|
3573
3604
|
Root: root
|
@@ -3629,8 +3660,17 @@ function _isSlot(s) {
|
|
3629
3660
|
updateBoundary();
|
3630
3661
|
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
3631
3662
|
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
3663
|
+
var isRenderModeShow = (0,external_vue_namespaceObject.computed)(function () {
|
3664
|
+
return props.renderDirective === 'show';
|
3665
|
+
});
|
3632
3666
|
var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
|
3633
|
-
return localIsShow.value && !props.disableTeleport;
|
3667
|
+
return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
|
3668
|
+
});
|
3669
|
+
var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
|
3670
|
+
if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
|
3671
|
+
return true;
|
3672
|
+
}
|
3673
|
+
return localIsShow.value;
|
3634
3674
|
});
|
3635
3675
|
var show = function show() {
|
3636
3676
|
showFn();
|
@@ -3638,12 +3678,12 @@ function _isSlot(s) {
|
|
3638
3678
|
var hide = function hide() {
|
3639
3679
|
hideFn();
|
3640
3680
|
};
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3681
|
+
// 点击 content 收起面板
|
3682
|
+
var handleClickContent = function handleClickContent() {
|
3683
|
+
if (props.trigger !== 'manual' && !props.always && props.clickContentAutoHide) {
|
3684
|
+
localIsShow.value = false;
|
3644
3685
|
}
|
3645
|
-
|
3646
|
-
});
|
3686
|
+
};
|
3647
3687
|
var renderContent = function renderContent() {
|
3648
3688
|
if (props.allowHtml) {
|
3649
3689
|
var _contentAsHTMLElement = contentAsHTMLElement(props.content),
|
@@ -3660,7 +3700,9 @@ function _isSlot(s) {
|
|
3660
3700
|
refArrow: refArrow,
|
3661
3701
|
content: props.content,
|
3662
3702
|
theme: props.theme,
|
3703
|
+
isRenderModeShow: isRenderModeShow,
|
3663
3704
|
transBoundary: transBoundary,
|
3705
|
+
handleClickContent: handleClickContent,
|
3664
3706
|
handleClickOutside: handleClickOutside,
|
3665
3707
|
updatePopover: updatePopover,
|
3666
3708
|
resetPopover: resetPopover,
|
@@ -3699,23 +3741,24 @@ function _isSlot(s) {
|
|
3699
3741
|
return [_slot];
|
3700
3742
|
}
|
3701
3743
|
}), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
3702
|
-
"
|
3703
|
-
"
|
3744
|
+
"disabled": !_this.transBoundary,
|
3745
|
+
"to": _this.boundary
|
3704
3746
|
}, {
|
3705
3747
|
"default": function _default() {
|
3706
3748
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
|
3707
3749
|
"ref": "refContent",
|
3708
|
-
"visible": _this.localIsShow,
|
3709
|
-
"data-theme": _this.theme,
|
3710
|
-
"extCls": _this.extCls,
|
3711
3750
|
"width": _this.width,
|
3712
3751
|
"height": _this.height,
|
3713
|
-
"
|
3752
|
+
"extCls": _this.extCls,
|
3753
|
+
"data-theme": _this.theme,
|
3754
|
+
"eventDelay": _this.componentEventDelay,
|
3714
3755
|
"maxHeight": _this.maxHeight,
|
3715
|
-
"
|
3756
|
+
"maxWidth": _this.maxWidth,
|
3757
|
+
"visible": _this.localIsShow,
|
3758
|
+
"onClick": _this.handleClickContent
|
3716
3759
|
}, {
|
3717
3760
|
"default": function _default() {
|
3718
|
-
return [_this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots3 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots3)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
|
3761
|
+
return [_this.isRenderModeShow || _this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots3 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots3)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
|
3719
3762
|
},
|
3720
3763
|
arrow: function arrow() {
|
3721
3764
|
var _this$$slots$arrow, _this$$slots2;
|
@@ -3843,10 +3886,10 @@ function createPopoverComponent(options) {
|
|
3843
3886
|
return function () {
|
3844
3887
|
return (0,external_vue_namespaceObject.createVNode)(popover, (0,external_vue_namespaceObject.mergeProps)(refProps, {
|
3845
3888
|
"ref": refReference,
|
3846
|
-
"onContentMouseenter": handleContentMouseenter,
|
3847
|
-
"onContentMouseleave": handleContentMouseleave,
|
3848
3889
|
"onAfterHidden": handlePopoverHidden,
|
3849
|
-
"onAfterShow": handlePopoverShow
|
3890
|
+
"onAfterShow": handlePopoverShow,
|
3891
|
+
"onContentMouseenter": handleContentMouseenter,
|
3892
|
+
"onContentMouseleave": handleContentMouseleave
|
3850
3893
|
}), null);
|
3851
3894
|
};
|
3852
3895
|
}
|
@@ -23,19 +23,14 @@ declare const BKPopConfirm: {
|
|
23
23
|
} & {
|
24
24
|
default: string;
|
25
25
|
};
|
26
|
-
placement: import("vue-types").
|
27
|
-
default:
|
26
|
+
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"> & {
|
27
|
+
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";
|
28
28
|
};
|
29
29
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
30
30
|
default: string;
|
31
31
|
} & {
|
32
32
|
default: string;
|
33
33
|
};
|
34
|
-
icon: import("vue-types").VueTypeValidableDef<string> & {
|
35
|
-
default: string;
|
36
|
-
} & {
|
37
|
-
default: string;
|
38
|
-
};
|
39
34
|
width: import("vue-types").VueTypeDef<string | number> & {
|
40
35
|
default: string | number;
|
41
36
|
};
|
@@ -49,9 +44,6 @@ declare const BKPopConfirm: {
|
|
49
44
|
ok: string;
|
50
45
|
cancel: string;
|
51
46
|
}>;
|
52
|
-
icon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
53
|
-
[key: string]: any;
|
54
|
-
}>[];
|
55
47
|
resolveClassName: (cls: string) => string;
|
56
48
|
ensure: (e: Event) => void;
|
57
49
|
cancel: (e: Event) => void;
|
@@ -79,19 +71,14 @@ declare const BKPopConfirm: {
|
|
79
71
|
} & {
|
80
72
|
default: string;
|
81
73
|
};
|
82
|
-
placement: import("vue-types").
|
83
|
-
default:
|
74
|
+
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"> & {
|
75
|
+
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";
|
84
76
|
};
|
85
77
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
86
78
|
default: string;
|
87
79
|
} & {
|
88
80
|
default: string;
|
89
81
|
};
|
90
|
-
icon: import("vue-types").VueTypeValidableDef<string> & {
|
91
|
-
default: string;
|
92
|
-
} & {
|
93
|
-
default: string;
|
94
|
-
};
|
95
82
|
width: import("vue-types").VueTypeDef<string | number> & {
|
96
83
|
default: string | number;
|
97
84
|
};
|
@@ -102,10 +89,9 @@ declare const BKPopConfirm: {
|
|
102
89
|
title: string;
|
103
90
|
width: string | number;
|
104
91
|
content: string;
|
105
|
-
placement:
|
92
|
+
placement: "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";
|
106
93
|
theme: string;
|
107
94
|
trigger: "click" | "hover";
|
108
|
-
icon: string;
|
109
95
|
confirmText: string;
|
110
96
|
cancelText: string;
|
111
97
|
}, true, {}, {}, {
|
@@ -139,19 +125,14 @@ declare const BKPopConfirm: {
|
|
139
125
|
} & {
|
140
126
|
default: string;
|
141
127
|
};
|
142
|
-
placement: import("vue-types").
|
143
|
-
default:
|
128
|
+
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"> & {
|
129
|
+
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";
|
144
130
|
};
|
145
131
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
146
132
|
default: string;
|
147
133
|
} & {
|
148
134
|
default: string;
|
149
135
|
};
|
150
|
-
icon: import("vue-types").VueTypeValidableDef<string> & {
|
151
|
-
default: string;
|
152
|
-
} & {
|
153
|
-
default: string;
|
154
|
-
};
|
155
136
|
width: import("vue-types").VueTypeDef<string | number> & {
|
156
137
|
default: string | number;
|
157
138
|
};
|
@@ -165,9 +146,6 @@ declare const BKPopConfirm: {
|
|
165
146
|
ok: string;
|
166
147
|
cancel: string;
|
167
148
|
}>;
|
168
|
-
icon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
169
|
-
[key: string]: any;
|
170
|
-
}>[];
|
171
149
|
resolveClassName: (cls: string) => string;
|
172
150
|
ensure: (e: Event) => void;
|
173
151
|
cancel: (e: Event) => void;
|
@@ -175,10 +153,9 @@ declare const BKPopConfirm: {
|
|
175
153
|
title: string;
|
176
154
|
width: string | number;
|
177
155
|
content: string;
|
178
|
-
placement:
|
156
|
+
placement: "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";
|
179
157
|
theme: string;
|
180
158
|
trigger: "click" | "hover";
|
181
|
-
icon: string;
|
182
159
|
confirmText: string;
|
183
160
|
cancelText: string;
|
184
161
|
}>;
|
@@ -209,19 +186,14 @@ declare const BKPopConfirm: {
|
|
209
186
|
} & {
|
210
187
|
default: string;
|
211
188
|
};
|
212
|
-
placement: import("vue-types").
|
213
|
-
default:
|
189
|
+
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"> & {
|
190
|
+
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";
|
214
191
|
};
|
215
192
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
216
193
|
default: string;
|
217
194
|
} & {
|
218
195
|
default: string;
|
219
196
|
};
|
220
|
-
icon: import("vue-types").VueTypeValidableDef<string> & {
|
221
|
-
default: string;
|
222
|
-
} & {
|
223
|
-
default: string;
|
224
|
-
};
|
225
197
|
width: import("vue-types").VueTypeDef<string | number> & {
|
226
198
|
default: string | number;
|
227
199
|
};
|
@@ -235,9 +207,6 @@ declare const BKPopConfirm: {
|
|
235
207
|
ok: string;
|
236
208
|
cancel: string;
|
237
209
|
}>;
|
238
|
-
icon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
239
|
-
[key: string]: any;
|
240
|
-
}>[];
|
241
210
|
resolveClassName: (cls: string) => string;
|
242
211
|
ensure: (e: Event) => void;
|
243
212
|
cancel: (e: Event) => void;
|
@@ -245,10 +214,9 @@ declare const BKPopConfirm: {
|
|
245
214
|
title: string;
|
246
215
|
width: string | number;
|
247
216
|
content: string;
|
248
|
-
placement:
|
217
|
+
placement: "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";
|
249
218
|
theme: string;
|
250
219
|
trigger: "click" | "hover";
|
251
|
-
icon: string;
|
252
220
|
confirmText: string;
|
253
221
|
cancelText: string;
|
254
222
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
package/lib/pop-confirm/index.js
CHANGED
@@ -99,8 +99,8 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: ()
|
|
99
99
|
|
100
100
|
var TriggerEnum;
|
101
101
|
(function (TriggerEnum) {
|
102
|
-
TriggerEnum["HOVER"] = "hover";
|
103
102
|
TriggerEnum["CLICK"] = "click";
|
103
|
+
TriggerEnum["HOVER"] = "hover";
|
104
104
|
})(TriggerEnum || (TriggerEnum = {}));
|
105
105
|
function triggerType() {
|
106
106
|
return (0,external_vue_types_namespaceObject.toType)('trigger', {}).def(TriggerEnum.HOVER);
|
@@ -123,20 +123,19 @@ var PopConfirmEvent = {
|
|
123
123
|
var PopConfirmProps = {
|
124
124
|
/**
|
125
125
|
* 触发方式
|
126
|
-
* 支持 click hover
|
127
|
-
* manual: 通过isShow控制显示、隐藏
|
126
|
+
* 支持 click hover
|
128
127
|
*/
|
129
128
|
trigger: triggerType(),
|
130
129
|
title: shared_namespaceObject.PropTypes.string.def(''),
|
131
130
|
content: shared_namespaceObject.PropTypes.string.def(''),
|
132
131
|
confirmText: shared_namespaceObject.PropTypes.string.def(''),
|
133
132
|
cancelText: shared_namespaceObject.PropTypes.string.def(''),
|
134
|
-
placement:
|
135
|
-
theme: shared_namespaceObject.PropTypes.string.def('light
|
133
|
+
placement: (0,shared_namespaceObject.placementType)().def(shared_namespaceObject.PlacementEnum.TOP_START),
|
134
|
+
theme: shared_namespaceObject.PropTypes.string.def('light'),
|
136
135
|
/**
|
137
136
|
* 自定义icon:根据确认框中提示文字的语境来选择 icon的样式,当确认操作存在风险时,可选择带警示的icon来引起用户的注意。
|
138
137
|
*/
|
139
|
-
icon:
|
138
|
+
// icon: PropTypes.string.def(''),
|
140
139
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto')
|
141
140
|
};
|
142
141
|
/* harmony default export */ const props = (PopConfirmProps);
|
@@ -178,9 +177,8 @@ var PopConfirmProps = {
|
|
178
177
|
name: 'PopConfirm',
|
179
178
|
props: props,
|
180
179
|
emits: ['confirm', 'cancel'],
|
181
|
-
setup: function setup(
|
182
|
-
var emit = _ref.emit
|
183
|
-
slots = _ref.slots;
|
180
|
+
setup: function setup(_props, _ref) {
|
181
|
+
var emit = _ref.emit;
|
184
182
|
var visible = (0,external_vue_namespaceObject.ref)(false);
|
185
183
|
var t = (0,config_provider_namespaceObject.useLocale)('popConfirm');
|
186
184
|
function ensure(e) {
|
@@ -193,13 +191,13 @@ var PopConfirmProps = {
|
|
193
191
|
emit('cancel');
|
194
192
|
e.stopPropagation();
|
195
193
|
}
|
196
|
-
function renderIcon() {
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
}
|
202
|
-
|
194
|
+
// function renderIcon() {
|
195
|
+
// if (typeof slots.icon === 'function') {
|
196
|
+
// return slots.icon();
|
197
|
+
// }
|
198
|
+
// return props.icon;
|
199
|
+
// }
|
200
|
+
// const icon = renderIcon();
|
203
201
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
204
202
|
resolveClassName = _usePrefix.resolveClassName;
|
205
203
|
var popoverRef = (0,external_vue_namespaceObject.ref)(null);
|
@@ -207,7 +205,7 @@ var PopConfirmProps = {
|
|
207
205
|
popoverRef: popoverRef,
|
208
206
|
visible: visible,
|
209
207
|
t: t,
|
210
|
-
|
208
|
+
// icon,
|
211
209
|
resolveClassName: resolveClassName,
|
212
210
|
ensure: ensure,
|
213
211
|
cancel: cancel
|
@@ -218,20 +216,21 @@ var PopConfirmProps = {
|
|
218
216
|
var titleRender = function titleRender() {
|
219
217
|
return _this.title ? (0,external_vue_namespaceObject.createVNode)("div", {
|
220
218
|
"class": "".concat(_this.resolveClassName('pop-confirm-title'))
|
221
|
-
}, [_this.icon ? (0,external_vue_namespaceObject.createVNode)("span", {
|
219
|
+
}, [typeof _this.$slots.icon === 'function' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
222
220
|
"class": "".concat(_this.resolveClassName('pop-confirm-icon'))
|
223
|
-
}, [_this.icon]) :
|
221
|
+
}, [_this.$slots.icon()]) : null, (0,external_vue_namespaceObject.createVNode)("span", null, [_this.title])]) : '';
|
224
222
|
};
|
225
223
|
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
226
224
|
"ref": "popoverRef",
|
225
|
+
"width": this.width,
|
226
|
+
"extCls": "".concat(this.resolveClassName('pop-confirm-box')),
|
227
227
|
"isShow": this.visible,
|
228
|
-
"
|
228
|
+
"placement": this.placement,
|
229
229
|
"theme": this.theme,
|
230
|
-
"
|
230
|
+
"trigger": this.trigger,
|
231
231
|
"onAfterShow": function onAfterShow() {
|
232
232
|
return _this.visible = true;
|
233
|
-
}
|
234
|
-
"extCls": "".concat(this.resolveClassName('pop-confirm-box'))
|
233
|
+
}
|
235
234
|
}, {
|
236
235
|
"default": function _default() {
|
237
236
|
return _this.$slots["default"]();
|
@@ -241,19 +240,19 @@ var PopConfirmProps = {
|
|
241
240
|
"class": "".concat(_this.resolveClassName('pop-confirm'))
|
242
241
|
}, [typeof _this.$slots.content === 'function' ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [titleRender(), _this.$slots.content()]) : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [titleRender(), (0,external_vue_namespaceObject.createVNode)("div", {
|
243
242
|
"class": "".concat(_this.resolveClassName('pop-confirm-content'))
|
244
|
-
}, [
|
243
|
+
}, [_this.content])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
245
244
|
"class": "".concat(_this.resolveClassName('pop-confirm-footer'))
|
246
245
|
}, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
247
|
-
"onClick": _this.ensure,
|
248
246
|
"size": "small",
|
249
|
-
"theme": "primary"
|
247
|
+
"theme": "primary",
|
248
|
+
"onClick": _this.ensure
|
250
249
|
}, {
|
251
250
|
"default": function _default() {
|
252
251
|
return [_this.confirmText || _this.t.ok];
|
253
252
|
}
|
254
253
|
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
255
|
-
"
|
256
|
-
"
|
254
|
+
"size": "small",
|
255
|
+
"onClick": _this.cancel
|
257
256
|
}, {
|
258
257
|
"default": function _default() {
|
259
258
|
return [_this.cancelText || _this.t.cancel];
|