bkui-vue 0.0.1-beta.45 → 0.0.1-beta.450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +14 -0
- package/dist/index.cjs.js +160 -35
- package/dist/index.esm.js +35568 -14524
- package/dist/index.umd.js +160 -35
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +125 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +9 -3
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +29 -20
- package/lib/alert/alert.variable.css +41 -7
- package/lib/alert/index.d.ts +11 -11
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +3 -3
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +40 -4
- package/lib/backtop/index.d.ts +10 -10
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +7 -10
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +9 -11
- package/lib/badge/badge.variable.css +39 -14
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +4 -2
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +88 -9
- package/lib/breadcrumb/index.d.ts +4 -2
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +85 -50
- package/lib/button/button.d.ts +44 -24
- package/lib/button/button.less +72 -42
- package/lib/button/button.variable.css +117 -54
- package/lib/button/index.d.ts +74 -44
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +97 -2
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +133 -10
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +101 -0
- package/lib/cascader/cascader.css +316 -0
- package/lib/cascader/cascader.d.ts +342 -0
- package/lib/cascader/cascader.less +283 -0
- package/lib/cascader/cascader.variable.css +438 -0
- package/lib/cascader/index.d.ts +961 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +25 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +51 -11
- package/lib/checkbox/checkbox.d.ts +36 -24
- package/lib/checkbox/checkbox.less +85 -32
- package/lib/checkbox/checkbox.variable.css +83 -15
- package/lib/checkbox/common.d.ts +4 -3
- package/lib/checkbox/index.d.ts +70 -38
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +1 -1
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +59 -11
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +103 -0
- package/lib/collapse/collapse.css +69 -14
- package/lib/collapse/collapse.d.ts +66 -52
- package/lib/collapse/collapse.less +112 -30
- package/lib/collapse/collapse.variable.css +191 -14
- package/lib/collapse/index.d.ts +266 -20
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +131 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/collapse-transition/collapse-transition.css +93 -0
- package/lib/collapse-transition/collapse-transition.d.ts +15 -0
- package/lib/collapse-transition/collapse-transition.less +111 -0
- package/lib/collapse-transition/collapse-transition.variable.css +215 -0
- package/lib/collapse-transition/index.d.ts +2 -0
- package/lib/collapse-transition/index.js +1 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +397 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +31 -8
- package/lib/components.js +1 -0
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +384 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/config-provider/config-provider.variable.css +122 -0
- package/lib/config-provider/index.d.ts +585 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +122 -0
- package/lib/config-provider/use-global-config.d.ts +5 -0
- package/lib/config-provider/use-locale.d.ts +3 -0
- package/lib/config-provider/use-prefix.d.ts +9 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +213 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +96 -0
- package/lib/date-picker/base/month-table.d.ts +117 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
- package/lib/date-picker/base/time-spinner.d.ts +170 -0
- package/lib/date-picker/base/year-table.d.ts +117 -0
- package/lib/date-picker/date-picker.css +28 -1
- package/lib/date-picker/date-picker.d.ts +49 -20
- package/lib/date-picker/date-picker.less +106 -74
- package/lib/date-picker/date-picker.variable.css +60 -5
- package/lib/date-picker/index.d.ts +121 -54
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +11 -1
- package/lib/date-picker/panel/date-range.d.ts +328 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +489 -0
- package/lib/date-picker/panel/time.d.ts +448 -0
- package/lib/date-picker/props.d.ts +55 -5
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +136 -24
- package/lib/dialog/dialog.d.ts +245 -58
- package/lib/dialog/dialog.less +100 -38
- package/lib/dialog/dialog.variable.css +258 -24
- package/lib/dialog/index.d.ts +545 -126
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +122 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +2 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +15 -15
- package/lib/divider/divider.variable.css +32 -4
- package/lib/divider/index.d.ts +34 -34
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +46 -14
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +45 -11
- package/lib/dropdown/index.d.ts +99 -35
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +31 -11
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +72 -18
- package/lib/exception/index.d.ts +43 -26
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +22 -7
- package/lib/form/form.css +103 -15
- package/lib/form/form.d.ts +48 -14
- package/lib/form/form.less +152 -46
- package/lib/form/form.variable.css +225 -15
- package/lib/form/index.d.ts +121 -35
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +11 -8
- package/lib/form/utils.d.ts +2 -0
- package/lib/form/validator.d.ts +1 -0
- package/lib/hooks.d.ts +1 -0
- package/lib/hooks.js +1 -0
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +79 -53
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original.d.ts +4 -0
- package/lib/icon/original.js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/transfer.d.ts +4 -0
- package/lib/icon/transfer.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +28 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +159 -0
- package/lib/input/index.d.ts +175 -90
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +183 -19
- package/lib/input/input.d.ts +119 -36
- package/lib/input/input.less +112 -18
- package/lib/input/input.variable.css +246 -55
- package/lib/link/index.d.ts +29 -21
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +10 -8
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +44 -16
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +86 -33
- package/lib/loading/loading.d.ts +94 -12
- package/lib/loading/loading.less +27 -23
- package/lib/loading/loading.variable.css +134 -53
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +120 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +101 -22
- package/lib/menu/submenu.variable.css +32 -4
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +17 -5
- package/lib/message/message.less +21 -6
- package/lib/message/message.variable.css +49 -9
- package/lib/message/messageConstructor.d.ts +14 -11
- package/lib/modal/index.d.ts +470 -78
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +177 -30
- package/lib/modal/modal.less +39 -3
- package/lib/modal/modal.variable.css +185 -1
- package/lib/modal/props.mixin.d.ts +74 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +11 -2
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +33 -5
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +25 -5
- package/lib/notify/notify.less +29 -6
- package/lib/notify/notify.variable.css +57 -9
- package/lib/notify/notifyConstructor.d.ts +62 -21
- package/lib/overflow-title/components/overflow-title.d.ts +57 -0
- package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +170 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/overflow.css +11 -0
- package/lib/overflow-title/overflow.less +13 -0
- package/lib/overflow-title/overflow.variable.css +11 -0
- package/lib/overflow-title/props.d.ts +43 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +18 -8
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +86 -32
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.d.ts +246 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.css +28 -0
- package/lib/pop-confirm/pop-confirm.d.ts +95 -0
- package/lib/pop-confirm/pop-confirm.less +34 -0
- package/lib/pop-confirm/pop-confirm.variable.css +150 -0
- package/lib/pop-confirm/props.d.ts +67 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +43 -0
- package/lib/popover/index.d.ts +504 -97
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -50
- package/lib/popover/popover.d.ts +222 -43
- package/lib/popover/popover.less +19 -66
- package/lib/popover/popover.variable.css +42 -54
- package/lib/popover/props.d.ts +110 -30
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +16 -0
- package/lib/popover/use-floating.d.ts +34 -0
- package/lib/popover/use-platform.d.ts +30 -0
- package/lib/popover/use-popover-init.d.ts +23 -0
- package/lib/popover/use-popper-id.d.ts +6 -0
- package/lib/popover/utils.d.ts +8 -0
- package/lib/popover2/index.d.ts +44 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +252 -2
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +30 -2
- package/lib/process/process.variable.css +54 -4
- package/lib/progress/index.d.ts +31 -31
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +12 -12
- package/lib/progress/progress.variable.css +87 -8
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +36 -18
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +26 -0
- package/lib/radio/radio.css +137 -66
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +172 -73
- package/lib/radio/type.d.ts +9 -4
- package/lib/rate/index.d.ts +28 -5
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -2
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +18 -18
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +6 -15
- package/lib/resize-layout/resize-layout.d.ts +7 -7
- package/lib/resize-layout/resize-layout.less +10 -19
- package/lib/resize-layout/resize-layout.variable.css +38 -19
- package/lib/search-select/index.d.ts +891 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +101 -0
- package/lib/search-select/menu.d.ts +77 -0
- package/lib/search-select/search-select.css +427 -0
- package/lib/search-select/search-select.d.ts +361 -0
- package/lib/search-select/search-select.less +384 -0
- package/lib/search-select/search-select.variable.css +549 -0
- package/lib/search-select/selected.d.ts +155 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +5 -12
- package/lib/select/index.d.ts +1816 -691
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +18 -4
- package/lib/select/optionGroup.d.ts +1 -1
- package/lib/select/select.css +202 -113
- package/lib/select/select.d.ts +715 -147
- package/lib/select/select.less +335 -197
- package/lib/select/select.variable.css +234 -117
- package/lib/select/selectTagInput.d.ts +94 -0
- package/lib/select/type.d.ts +21 -13
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/helper.d.ts +9 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +32 -7
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +13 -5
- package/lib/shared/pop-manager.d.ts +19 -5
- package/lib/shared/popover.d.ts +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +107 -7
- package/lib/sideslider/index.d.ts +343 -69
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +58 -11
- package/lib/sideslider/sideslider.d.ts +160 -31
- package/lib/sideslider/sideslider.less +75 -14
- package/lib/sideslider/sideslider.variable.css +90 -15
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider-button.d.ts +2 -1
- package/lib/slider/slider.d.ts +4 -4
- package/lib/slider/slider.variable.css +32 -4
- package/lib/steps/index.d.ts +52 -52
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +15 -3
- package/lib/steps/steps.d.ts +32 -32
- package/lib/steps/steps.less +24 -3
- package/lib/steps/steps.variable.css +47 -7
- package/lib/styles/index.d.ts +10 -1
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/popper.css +1 -1
- package/lib/styles/mixins/popper.less +12 -11
- package/lib/styles/mixins/popper.variable.css +123 -1
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +139 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -2
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +42 -4
- package/lib/switcher/index.d.ts +42 -30
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +19 -13
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +106 -27
- package/lib/tab/index.d.ts +121 -67
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +93 -41
- package/lib/tab/tab-nav.d.ts +50 -14
- package/lib/tab/tab-panel.d.ts +14 -7
- package/lib/tab/tab.css +151 -55
- package/lib/tab/tab.d.ts +42 -21
- package/lib/tab/tab.less +179 -86
- package/lib/tab/tab.variable.css +183 -59
- package/lib/table/cache.d.ts +6 -0
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +51 -0
- package/lib/table/components/table-column.d.ts +299 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +125 -1
- package/lib/table/index.d.ts +1375 -48
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +36 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +84 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +110 -0
- package/lib/table/plugins/head-filter.variable.css +206 -0
- package/lib/table/plugins/head-sort.css +26 -0
- package/lib/table/plugins/head-sort.d.ts +29 -0
- package/lib/table/plugins/head-sort.less +32 -0
- package/lib/table/plugins/head-sort.variable.css +148 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +147 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +181 -0
- package/lib/table/plugins/settings.variable.css +269 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +26 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +358 -11
- package/lib/table/render.d.ts +54 -31
- package/lib/table/table.css +1250 -38
- package/lib/table/table.d.ts +258 -18
- package/lib/table/table.less +314 -42
- package/lib/table/table.variable.css +1291 -51
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +113 -0
- package/lib/table/utils.d.ts +60 -13
- package/lib/table-column/index.d.ts +790 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +29 -29
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +12 -12
- package/lib/tag/tag.less +46 -10
- package/lib/tag/tag.variable.css +78 -17
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +1406 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +0 -3
- package/lib/tag-input/tag-input.css +23 -26
- package/lib/tag-input/tag-input.d.ts +303 -44
- package/lib/tag-input/tag-input.less +102 -104
- package/lib/tag-input/tag-input.variable.css +55 -30
- package/lib/tag-input/tag-props.d.ts +141 -7
- package/lib/tag-input/tag-render.d.ts +30 -4
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +337 -0
- package/lib/timeline/index.d.ts +6 -6
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +16 -9
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +22 -9
- package/lib/timeline/timeline.variable.css +48 -13
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +247 -150
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +59 -0
- package/lib/transfer/transfer.css +153 -92
- package/lib/transfer/transfer.d.ts +101 -95
- package/lib/transfer/transfer.less +142 -112
- package/lib/transfer/transfer.variable.css +191 -102
- package/lib/tree/constant.d.ts +62 -0
- package/lib/tree/index.d.ts +379 -60
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +124 -0
- package/lib/tree/tree.css +181 -9
- package/lib/tree/tree.d.ts +172 -19
- package/lib/tree/tree.less +54 -3
- package/lib/tree/tree.variable.css +213 -13
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +4 -6
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +427 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +466 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +549 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +50 -4
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +23 -1
- package/lib/virtual-render/virtual-render.less +2 -23
- package/lib/virtual-render/virtual-render.variable.css +139 -17
- package/lib/volar.components.d.ts +102 -0
- package/package.json +59 -26
- package/LICENSE.txt +0 -22
- package/lib/form/common.d.ts +0 -3
- package/lib/use-form.d.ts +0 -3
@@ -0,0 +1,37 @@
|
|
1
|
+
.bk-image {
|
2
|
+
position: relative;
|
3
|
+
display: inline-block;
|
4
|
+
overflow: hidden;
|
5
|
+
}
|
6
|
+
.bk-image-inner {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
vertical-align: top;
|
10
|
+
}
|
11
|
+
.bk-image-inner-center {
|
12
|
+
position: relative;
|
13
|
+
top: 50%;
|
14
|
+
left: 50%;
|
15
|
+
display: block;
|
16
|
+
transform: translate(-50%, -50%);
|
17
|
+
}
|
18
|
+
.bk-image-placeholder {
|
19
|
+
position: absolute;
|
20
|
+
top: 0;
|
21
|
+
left: 0;
|
22
|
+
display: flex;
|
23
|
+
width: 100%;
|
24
|
+
height: 100%;
|
25
|
+
font-size: 24px;
|
26
|
+
color: #c4c6cc;
|
27
|
+
vertical-align: middle;
|
28
|
+
background: #f0f1f5;
|
29
|
+
justify-content: center;
|
30
|
+
align-items: center;
|
31
|
+
}
|
32
|
+
.bk-image-placeholder img {
|
33
|
+
width: 100%;
|
34
|
+
}
|
35
|
+
.bk-image-preview {
|
36
|
+
cursor: pointer;
|
37
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
import './image-viewer.less';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
4
|
+
default: string;
|
5
|
+
} & {
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
fallback: import("vue-types").VueTypeValidableDef<string> & {
|
9
|
+
default: string;
|
10
|
+
} & {
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
14
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
15
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
16
|
+
};
|
17
|
+
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
18
|
+
default: boolean;
|
19
|
+
};
|
20
|
+
urlList: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
21
|
+
default: () => unknown[];
|
22
|
+
} & {
|
23
|
+
default: () => unknown[];
|
24
|
+
};
|
25
|
+
isShowPreviewTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
|
+
default: boolean;
|
27
|
+
} & {
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
+
default: boolean;
|
32
|
+
} & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
36
|
+
default: number;
|
37
|
+
} & {
|
38
|
+
default: number;
|
39
|
+
};
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "error" | "loaded")[], "change" | "close" | "error" | "loaded", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
41
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
42
|
+
default: string;
|
43
|
+
} & {
|
44
|
+
default: string;
|
45
|
+
};
|
46
|
+
fallback: import("vue-types").VueTypeValidableDef<string> & {
|
47
|
+
default: string;
|
48
|
+
} & {
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
52
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
53
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
54
|
+
};
|
55
|
+
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
56
|
+
default: boolean;
|
57
|
+
};
|
58
|
+
urlList: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
59
|
+
default: () => unknown[];
|
60
|
+
} & {
|
61
|
+
default: () => unknown[];
|
62
|
+
};
|
63
|
+
isShowPreviewTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
64
|
+
default: boolean;
|
65
|
+
} & {
|
66
|
+
default: boolean;
|
67
|
+
};
|
68
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
69
|
+
default: boolean;
|
70
|
+
} & {
|
71
|
+
default: boolean;
|
72
|
+
};
|
73
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
74
|
+
default: number;
|
75
|
+
} & {
|
76
|
+
default: number;
|
77
|
+
};
|
78
|
+
}>> & {
|
79
|
+
onChange?: (...args: any[]) => any;
|
80
|
+
onError?: (...args: any[]) => any;
|
81
|
+
onClose?: (...args: any[]) => any;
|
82
|
+
onLoaded?: (...args: any[]) => any;
|
83
|
+
}, {
|
84
|
+
zIndex: number;
|
85
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
86
|
+
urlList: unknown[];
|
87
|
+
maskClose: boolean;
|
88
|
+
src: string;
|
89
|
+
fallback: string;
|
90
|
+
lazy: boolean;
|
91
|
+
isShowPreviewTitle: boolean;
|
92
|
+
}>;
|
93
|
+
export default _default;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.bk-image {
|
2
|
+
position: relative;
|
3
|
+
display: inline-block;
|
4
|
+
overflow: hidden;
|
5
|
+
|
6
|
+
&-inner {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
vertical-align: top;
|
10
|
+
|
11
|
+
&-center {
|
12
|
+
position: relative;
|
13
|
+
top: 50%;
|
14
|
+
left: 50%;
|
15
|
+
display: block;
|
16
|
+
transform: translate(-50%, -50%)
|
17
|
+
}
|
18
|
+
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
&-placeholder {
|
23
|
+
position: absolute;
|
24
|
+
top: 0;
|
25
|
+
left: 0;
|
26
|
+
display: flex;
|
27
|
+
width: 100%;
|
28
|
+
height: 100%;
|
29
|
+
font-size: 24px;
|
30
|
+
color: #c4c6cc;
|
31
|
+
vertical-align: middle;
|
32
|
+
background: #f0f1f5;
|
33
|
+
justify-content: center;
|
34
|
+
align-items: center;
|
35
|
+
|
36
|
+
img {
|
37
|
+
width: 100%;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&-preview {
|
42
|
+
cursor: pointer
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.bk-image {
|
2
|
+
position: relative;
|
3
|
+
display: inline-block;
|
4
|
+
overflow: hidden;
|
5
|
+
}
|
6
|
+
.bk-image-inner {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
vertical-align: top;
|
10
|
+
}
|
11
|
+
.bk-image-inner-center {
|
12
|
+
position: relative;
|
13
|
+
top: 50%;
|
14
|
+
left: 50%;
|
15
|
+
display: block;
|
16
|
+
transform: translate(-50%, -50%);
|
17
|
+
}
|
18
|
+
.bk-image-placeholder {
|
19
|
+
position: absolute;
|
20
|
+
top: 0;
|
21
|
+
left: 0;
|
22
|
+
display: flex;
|
23
|
+
width: 100%;
|
24
|
+
height: 100%;
|
25
|
+
font-size: 24px;
|
26
|
+
color: #c4c6cc;
|
27
|
+
vertical-align: middle;
|
28
|
+
background: #f0f1f5;
|
29
|
+
justify-content: center;
|
30
|
+
align-items: center;
|
31
|
+
}
|
32
|
+
.bk-image-placeholder img {
|
33
|
+
width: 100%;
|
34
|
+
}
|
35
|
+
.bk-image-preview {
|
36
|
+
cursor: pointer;
|
37
|
+
}
|
@@ -0,0 +1,246 @@
|
|
1
|
+
import Image from './image';
|
2
|
+
import ImageViewer from './image-viewer';
|
3
|
+
export { Image, ImageViewer };
|
4
|
+
declare const BkImage: {
|
5
|
+
new (...args: any[]): {
|
6
|
+
$: import("vue").ComponentInternalInstance;
|
7
|
+
$data: {};
|
8
|
+
$props: Partial<{
|
9
|
+
zIndex: number;
|
10
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
11
|
+
urlList: unknown[];
|
12
|
+
maskClose: boolean;
|
13
|
+
src: string;
|
14
|
+
fallback: string;
|
15
|
+
lazy: boolean;
|
16
|
+
isShowPreviewTitle: boolean;
|
17
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
18
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
19
|
+
default: string;
|
20
|
+
} & {
|
21
|
+
default: string;
|
22
|
+
};
|
23
|
+
fallback: import("vue-types").VueTypeValidableDef<string> & {
|
24
|
+
default: string;
|
25
|
+
} & {
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
29
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
30
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
31
|
+
};
|
32
|
+
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
urlList: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
36
|
+
default: () => unknown[];
|
37
|
+
} & {
|
38
|
+
default: () => unknown[];
|
39
|
+
};
|
40
|
+
isShowPreviewTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
41
|
+
default: boolean;
|
42
|
+
} & {
|
43
|
+
default: boolean;
|
44
|
+
};
|
45
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
46
|
+
default: boolean;
|
47
|
+
} & {
|
48
|
+
default: boolean;
|
49
|
+
};
|
50
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
51
|
+
default: number;
|
52
|
+
} & {
|
53
|
+
default: number;
|
54
|
+
};
|
55
|
+
}>> & {
|
56
|
+
onChange?: (...args: any[]) => any;
|
57
|
+
onError?: (...args: any[]) => any;
|
58
|
+
onClose?: (...args: any[]) => any;
|
59
|
+
onLoaded?: (...args: any[]) => any;
|
60
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "zIndex" | "fit" | "urlList" | "maskClose" | "src" | "fallback" | "lazy" | "isShowPreviewTitle">;
|
61
|
+
$attrs: {
|
62
|
+
[x: string]: unknown;
|
63
|
+
};
|
64
|
+
$refs: {
|
65
|
+
[x: string]: unknown;
|
66
|
+
};
|
67
|
+
$slots: Readonly<{
|
68
|
+
[name: string]: import("vue").Slot;
|
69
|
+
}>;
|
70
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
71
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
72
|
+
$emit: (event: "change" | "close" | "error" | "loaded", ...args: any[]) => void;
|
73
|
+
$el: any;
|
74
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
75
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
76
|
+
default: string;
|
77
|
+
} & {
|
78
|
+
default: string;
|
79
|
+
};
|
80
|
+
fallback: import("vue-types").VueTypeValidableDef<string> & {
|
81
|
+
default: string;
|
82
|
+
} & {
|
83
|
+
default: string;
|
84
|
+
};
|
85
|
+
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
86
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
87
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
88
|
+
};
|
89
|
+
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
urlList: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
93
|
+
default: () => unknown[];
|
94
|
+
} & {
|
95
|
+
default: () => unknown[];
|
96
|
+
};
|
97
|
+
isShowPreviewTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
|
+
default: boolean;
|
99
|
+
} & {
|
100
|
+
default: boolean;
|
101
|
+
};
|
102
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
103
|
+
default: boolean;
|
104
|
+
} & {
|
105
|
+
default: boolean;
|
106
|
+
};
|
107
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
108
|
+
default: number;
|
109
|
+
} & {
|
110
|
+
default: number;
|
111
|
+
};
|
112
|
+
}>> & {
|
113
|
+
onChange?: (...args: any[]) => any;
|
114
|
+
onError?: (...args: any[]) => any;
|
115
|
+
onClose?: (...args: any[]) => any;
|
116
|
+
onLoaded?: (...args: any[]) => any;
|
117
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "error" | "loaded")[], string, {
|
118
|
+
zIndex: number;
|
119
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
120
|
+
urlList: unknown[];
|
121
|
+
maskClose: boolean;
|
122
|
+
src: string;
|
123
|
+
fallback: string;
|
124
|
+
lazy: boolean;
|
125
|
+
isShowPreviewTitle: boolean;
|
126
|
+
}> & {
|
127
|
+
beforeCreate?: (() => void) | (() => void)[];
|
128
|
+
created?: (() => void) | (() => void)[];
|
129
|
+
beforeMount?: (() => void) | (() => void)[];
|
130
|
+
mounted?: (() => void) | (() => void)[];
|
131
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
132
|
+
updated?: (() => void) | (() => void)[];
|
133
|
+
activated?: (() => void) | (() => void)[];
|
134
|
+
deactivated?: (() => void) | (() => void)[];
|
135
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
136
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
137
|
+
destroyed?: (() => void) | (() => void)[];
|
138
|
+
unmounted?: (() => void) | (() => void)[];
|
139
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
140
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
141
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
142
|
+
};
|
143
|
+
$forceUpdate: () => void;
|
144
|
+
$nextTick: typeof import("vue").nextTick;
|
145
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
146
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
147
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
148
|
+
default: string;
|
149
|
+
} & {
|
150
|
+
default: string;
|
151
|
+
};
|
152
|
+
fallback: import("vue-types").VueTypeValidableDef<string> & {
|
153
|
+
default: string;
|
154
|
+
} & {
|
155
|
+
default: string;
|
156
|
+
};
|
157
|
+
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
158
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
159
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
160
|
+
};
|
161
|
+
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
162
|
+
default: boolean;
|
163
|
+
};
|
164
|
+
urlList: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
165
|
+
default: () => unknown[];
|
166
|
+
} & {
|
167
|
+
default: () => unknown[];
|
168
|
+
};
|
169
|
+
isShowPreviewTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
170
|
+
default: boolean;
|
171
|
+
} & {
|
172
|
+
default: boolean;
|
173
|
+
};
|
174
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
175
|
+
default: boolean;
|
176
|
+
} & {
|
177
|
+
default: boolean;
|
178
|
+
};
|
179
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
180
|
+
default: number;
|
181
|
+
} & {
|
182
|
+
default: number;
|
183
|
+
};
|
184
|
+
}>> & {
|
185
|
+
onChange?: (...args: any[]) => any;
|
186
|
+
onError?: (...args: any[]) => any;
|
187
|
+
onClose?: (...args: any[]) => any;
|
188
|
+
onLoaded?: (...args: any[]) => any;
|
189
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
190
|
+
__isFragment?: never;
|
191
|
+
__isTeleport?: never;
|
192
|
+
__isSuspense?: never;
|
193
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
194
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
195
|
+
default: string;
|
196
|
+
} & {
|
197
|
+
default: string;
|
198
|
+
};
|
199
|
+
fallback: import("vue-types").VueTypeValidableDef<string> & {
|
200
|
+
default: string;
|
201
|
+
} & {
|
202
|
+
default: string;
|
203
|
+
};
|
204
|
+
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
205
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
206
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
207
|
+
};
|
208
|
+
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
209
|
+
default: boolean;
|
210
|
+
};
|
211
|
+
urlList: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
212
|
+
default: () => unknown[];
|
213
|
+
} & {
|
214
|
+
default: () => unknown[];
|
215
|
+
};
|
216
|
+
isShowPreviewTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
217
|
+
default: boolean;
|
218
|
+
} & {
|
219
|
+
default: boolean;
|
220
|
+
};
|
221
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
222
|
+
default: boolean;
|
223
|
+
} & {
|
224
|
+
default: boolean;
|
225
|
+
};
|
226
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
227
|
+
default: number;
|
228
|
+
} & {
|
229
|
+
default: number;
|
230
|
+
};
|
231
|
+
}>> & {
|
232
|
+
onChange?: (...args: any[]) => any;
|
233
|
+
onError?: (...args: any[]) => any;
|
234
|
+
onClose?: (...args: any[]) => any;
|
235
|
+
onLoaded?: (...args: any[]) => any;
|
236
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "error" | "loaded")[], "change" | "close" | "error" | "loaded", {
|
237
|
+
zIndex: number;
|
238
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
239
|
+
urlList: unknown[];
|
240
|
+
maskClose: boolean;
|
241
|
+
src: string;
|
242
|
+
fallback: string;
|
243
|
+
lazy: boolean;
|
244
|
+
isShowPreviewTitle: boolean;
|
245
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
246
|
+
export default BkImage;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("vue"),require("../icon"),require("vue-types"),require("lodash"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon","vue-types","lodash","../directives"],n);else{var t="object"==typeof exports?n(require("../shared"),require("vue"),require("../icon"),require("vue-types"),require("lodash"),require("../directives")):n(e["../shared"],e.vue,e["../icon"],e["vue-types"],e.lodash,e["../directives"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,n,t,o,r,i)=>(()=>{"use strict";var a={5458:(e,n,t)=>{var o=t(9601),r=t.n(o),i=t(2609);t.n(i)()(r()).push([e.id,".bk-image-viewer-wrapper {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n background: rgba(0, 0, 0, 0.6);\n flex-direction: column;\n}\n.bk-image-viewer-mask {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.bk-image-viewer-header {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 9;\n display: flex;\n width: 100%;\n height: 52px;\n color: #c4c6cc;\n background: rgba(0, 0, 0, 0.7);\n justify-content: space-between;\n align-items: center;\n}\n.bk-image-viewer-header > div {\n padding: 0 25px;\n overflow: hidden;\n font-size: 14px;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 1;\n}\n.bk-image-viewer-header .quit-box {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}\n.bk-image-viewer-header .quit-tips {\n font-size: 14px;\n color: #979ba5;\n}\n.bk-image-viewer-btn {\n position: absolute;\n z-index: 1;\n display: flex;\n color: #dcdee5;\n background-color: rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n opacity: 0.8;\n box-sizing: border-box;\n user-select: none;\n align-items: center;\n justify-content: center;\n}\n.bk-image-viewer-btn:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.4);\n}\n.bk-image-viewer-close {\n height: 52px;\n font-size: 32px;\n line-height: 48px;\n color: #c4c6cc;\n text-align: center;\n cursor: pointer;\n}\n.bk-image-viewer-close:hover {\n color: #fff;\n}\n.bk-image-viewer-canvas {\n display: flex;\n width: 100%;\n height: 100%;\n justify-content: center;\n align-items: center;\n}\n.bk-image-viewer-has-header {\n padding-top: 52px;\n}\n.bk-image-viewer-error {\n font-size: 14px;\n color: #313238;\n text-align: center;\n}\n.bk-image-viewer-error .bk-icon {\n margin-bottom: 15px;\n font-size: 85px;\n line-height: 1;\n}\n.bk-image-viewer-actions {\n bottom: 30px;\n left: 50%;\n width: 282px;\n height: 44px;\n padding: 0 23px;\n background-color: rgba(0, 0, 0, 0.4);\n border-color: #fff;\n border-radius: 22px;\n transform: translateX(-50%);\n}\n.bk-image-viewer-actions:hover {\n background: rgba(0, 0, 0, 0.5);\n}\n.bk-image-viewer-actions-inner {\n display: flex;\n width: 100%;\n height: 100%;\n font-size: 23px;\n color: #c4c6cc;\n text-align: justify;\n align-items: center;\n justify-content: space-around;\n}\n.bk-image-viewer-actions-inner .bk-icon {\n cursor: pointer;\n}\n.bk-image-viewer-actions-inner .bk-icon:hover {\n color: #fff;\n}\n.bk-image-viewer-next,\n.bk-image-viewer-prev {\n top: 50%;\n width: 80px;\n height: 80px;\n font-size: 40px;\n cursor: pointer;\n}\n.bk-image-viewer-prev {\n left: 40px;\n transform: translateY(-50%);\n}\n.bk-image-viewer-next {\n right: 40px;\n text-indent: 2px;\n transform: translateY(-50%);\n}\n",""])},2609:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",o=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),o&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),o&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);o&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),t&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=t):u[2]=t),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),n.push(u))}},n}},9601:e=>{e.exports=function(e){return e[1]}},4061:e=>{e.exports=i},6870:e=>{e.exports=t},4212:n=>{n.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=n},210:e=>{e.exports=o}},l={};function c(e){var n=l[e];if(void 0!==n)return n.exports;var t=l[e]={id:e,exports:{}};return a[e](t,t.exports,c),t.exports}c.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return c.d(n,{a:n}),n},c.d=(e,n)=>{for(var t in n)c.o(n,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},c.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{c.r(s),c.d(s,{Image:()=>l,ImageViewer:()=>v,default:()=>f});var e,n=c(4212),t=c(748),o=c(6870),r=c(210);!function(e){e.FILL="fill",e.CONTAIN="contain",e.COVER="cover",e.NONE="none",e.SCALE_DOWN="scale-down"}(e||(e={}));var i={src:n.PropTypes.string.def(""),fallback:n.PropTypes.string.def(""),placeholder:n.PropTypes.any,fit:(0,r.toType)("fit",{}).def(e.FILL),lazy:n.PropTypes.bool,urlList:n.PropTypes.array.def([]),isShowPreviewTitle:n.PropTypes.bool.def(!0),maskClose:n.PropTypes.bool.def(!0),zIndex:n.PropTypes.number.def(2e3)},a={urlList:{type:Array,default:function(){return[]}},zIndex:n.PropTypes.number.def(2e3),initialIndex:n.PropTypes.number.def(0),isShowTitle:n.PropTypes.bool.def(!0),loops:n.PropTypes.bool.def(!0),maskClose:n.PropTypes.bool.def(!0)};c(5458);const l=(0,t.defineComponent)({name:"Image",props:i,emits:["loaded","error","close","change"],setup:function(e,n){var r=n.emit,i=n.slots,a=(0,t.ref)(!0),l=(0,t.ref)(!0),c=(0,t.ref)(!1),s=(0,t.ref)(""),u=(0,t.ref)("");function d(){}(0,t.watch)((function(){return e.src}),(function(){a.value=!0,l.value=!1,u.value=e.src}));var f=(0,t.computed)((function(){var n;return(null===(n=null==e?void 0:e.urlList)||void 0===n?void 0:n.length)>0}));function p(){document.body.style.overflow=s.value,c.value=!1,r("close")}function m(e){r("change",e)}return function(){return(0,t.createVNode)("div",{class:"bk-image"},[a.value?(0,t.createVNode)("div",{class:"bk-image-placeholder"},[(0,t.createVNode)(o.Spinner,null,null)]):l.value?i.error?"function"==typeof i.error?i.error():i.error:(0,t.createVNode)("div",{class:"bk-image-placeholder"},[e.fallback?(0,t.createVNode)("img",{src:e.fallback,alt:"图片加载错误"},null):"",(0,t.withDirectives)((0,t.createVNode)("i",{class:"bk-icon icon-image-fail"},null),[[(0,t.resolveDirective)("else")]])]):(0,t.createVNode)("img",{src:e.src,onClick:d,style:{objectFit:fit}},null),f.value&&c.value?(0,t.createVNode)(v,{zIndex:e.zIndex,maskClose:e.maskClose,"is-show-title":e.isShowPreviewTitle,"url-list":e.urlList,onClose:p,onChange:m},null):""])}}});var u=c(467),d=c(4061);const v=(0,t.defineComponent)({name:"ImageViewer",directives:{bkTooltips:d.bkTooltips},props:a,emits:["close","change"],setup:function(e,r){var i=r.emit,a=(0,t.effectScope)(),l=(0,t.ref)(),c=(0,t.ref)([]),s=(0,t.ref)(""),d=(0,t.ref)(e.initialIndex),v=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.shallowRef)({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=(0,t.computed)((function(){var n;return(null===(n=null==e?void 0:e.urlList)||void 0===n?void 0:n.length)<2})),b=(0,t.computed)((function(){return 0===d.value})),g=(0,t.computed)((function(){return d.value===e.urlList.length-1})),h=(0,t.computed)((function(){return e.urlList[d.value]})),k=(0,t.computed)((function(){var e=h.value.split("/");return e[e.length-1]})),x=(0,t.computed)((function(){var e=p.value,n=e.scale,t=e.deg,o=e.offsetX,r=e.offsetY,i=e.enableTransition,a=o/n,l=r/n;switch(t%360){case 90:case-270:var c=[l,-a];a=c[0],l=c[1];break;case 180:case-180:var u=[-a,-l];a=u[0],l=u[1];break;case 270:case-90:var d=[-l,a];a=d[0],l=d[1]}var v={transform:"scale(".concat(n,") rotate(").concat(t,"deg) translate(").concat(a,"px, ").concat(l,"px)"),transition:i?"transform .3s":""};return"contain"===s.value&&(v.maxWidth="100%",v.maxHeight="100%"),v})),w=(0,t.computed)((function(){var t=2e3;return e.zIndex?t=e.zIndex:t+=n.bkZIndexManager.getModalNextIndex()||1,{zIndex:t}})),y=(0,u.throttle)((function(e){switch(Number(e.code)){case 27:V();break;case 32:v.value||(s.value="original",p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1});break;case 37:T();break;case 38:L("zoomIn");break;case 39:z();break;case 40:L("zoomOut")}})),N=(0,u.throttle)((function(e){L((e.wheelDelta?e.wheelDelta:-e.detail)>0?"zoomIn":"zoomOut",{zoomRate:1.2,enableTransition:!1})}));function V(){document.removeEventListener("keydown",y),document.removeEventListener("mousewheel",N),a.stop(),i("close")}function T(){if(!b.value||e.loops){var n=e.urlList.length;d.value=(d.value-1+n)%n}}function z(){if(!g.value||e.loops){var n=e.urlList.length;d.value=(d.value+1)%n}}function L(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!v.value){var t=Object.assign({zoomRate:.2,rotateDeg:90,enableTransition:!0},n),o=t.zoomRate,r=t.rotateDeg,i=t.enableTransition;switch(e){case"zoomOut":p.value.scale>.2&&(p.value.scale=Number.parseFloat((p.value.scale-o).toFixed(3)));break;case"zoomIn":p.value.scale<7&&(p.value.scale=Number.parseFloat((p.value.scale+o).toFixed(3)));break;case"clockwise":p.value.deg+=r;break;case"anticlockwise":p.value.deg-=r}p.value.enableTransition=i}}function C(){f.value=!1,v.value=!1}function I(e){f.value=!0,v.value=!1,e.target.alt="加载失败"}function j(e){if(!v.value&&0===e.button&&l.value){p.value.enableTransition=!1;var n=p.value,t=n.offsetX,o=n.offsetY,r=e.pageX,i=e.pageY,a=(0,u.throttle)((function(e){p.value=Object.assign(Object.assign({},p.value),{offsetX:t+e.pageX-r,offsetY:o+e.pageY-i})}));document.addEventListener("mousemove",a),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",e)})),e.preventDefault()}}return a.run((function(){document.addEventListener("keydown",y),document.addEventListener("mousewheel",N)})),function(){return(0,t.createVNode)(t.Teleport,{to:"body"},{default:function(){return[(0,t.createVNode)(t.Transition,null,{default:function(){return[(0,t.createVNode)("div",{tabindex:"-1",ref:"wrapper",class:"bk-image-viewer-wrapper",style:w.value},[(0,t.createVNode)("div",{class:"bk-image-viewer-mask",onClick:function(){e.maskClose&&V()}},null),e.isShowTitle&&e.urlList.length?(0,t.createVNode)("div",{class:"bk-image-viewer-header"},[(0,t.createVNode)("div",null,[k]),(0,t.createVNode)("div",{class:"tc "},[d.value+1,(0,t.createTextVNode)("/"),e.urlList.length]),(0,t.createVNode)("div",{class:"quit-box tr"},[(0,t.createVNode)("div",{class:"quit-tips mr10"},[(0,t.createTextVNode)("ESC 可以退出全屏")]),(0,t.createVNode)("div",{class:"bk-image-viewer-close",onClick:V},[(0,t.createVNode)(o.Close,null,null)])])]):"",m.value?"":(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)("div",{onClick:T,class:"bk-image-viewer-btn bk-image-viewer-prev ".concat(!e.loops&&b?"is-disabled":"")},[(0,t.createVNode)(o.AngleLeft,null,null)]),(0,t.createVNode)("div",{onClick:z,class:"bk-image-viewer-btn bk-image-viewer-prev ".concat(!e.loops&&g?"is-disabled":"")},[(0,t.createVNode)(o.AngleRight,null,null)]),(0,t.createVNode)("div",{class:"bk-image-viewer-actions-inner"},[(0,t.withDirectives)((0,t.createVNode)(o.AngleLeft,{onClick:function(){return L("zoomOut")}},null),[[(0,t.resolveDirective)("bk-tooltips"),"{content: '提示信息', placement: 'top'}"]]),(0,t.withDirectives)((0,t.createVNode)("i",{class:"",onClick:function(){return L("zoomOut")}},null),[[(0,t.resolveDirective)("bk-tooltips"),"{content: '提示信息', placement: 'top'}"]]),(0,t.withDirectives)((0,t.createVNode)("i",{class:"bk-icon icon-narrow-line",onClick:function(){return L("zoomOut")}},null),[[(0,t.resolveDirective)("bk-tooltips"),"{content: '提示信息', placement: 'top'}"]])])]),(0,t.createVNode)("div",{class:"bk-image-viewer-canvas ".concat(e.isShowTitle?"bk-image-viewer-has-header":"")},[f.value?(0,t.createVNode)("div",{class:"bk-image-viewer-error"},[(0,t.createVNode)("div",null,[(0,t.createVNode)("i",{class:"bk-icon icon-image-fail"},null)]),(0,t.createVNode)("div",null,[(0,t.createTextVNode)("抱歉,图片加载失败")])]):e.urlList.map((function(e,n){return n===d.value?"":(0,t.createVNode)("img",{key:n,ref:function(e){return c[n]=e},class:"bk-image-viewer-img",style:x.value,src:e,onLoad:C,onError:I,onMousedown:j},null)}))])])]}})]}})}}}),f=(0,n.withInstall)(l)})(),s})()));
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
export declare const propsImage: {
|
3
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
4
|
+
default: string;
|
5
|
+
} & {
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
fallback: import("vue-types").VueTypeValidableDef<string> & {
|
9
|
+
default: string;
|
10
|
+
} & {
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
14
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
15
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
16
|
+
};
|
17
|
+
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
18
|
+
default: boolean;
|
19
|
+
};
|
20
|
+
urlList: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
21
|
+
default: () => unknown[];
|
22
|
+
} & {
|
23
|
+
default: () => unknown[];
|
24
|
+
};
|
25
|
+
isShowPreviewTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
|
+
default: boolean;
|
27
|
+
} & {
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
+
default: boolean;
|
32
|
+
} & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
36
|
+
default: number;
|
37
|
+
} & {
|
38
|
+
default: number;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
export declare const propsImageViever: {
|
42
|
+
urlList: {
|
43
|
+
type: PropType<string[]>;
|
44
|
+
default: () => any[];
|
45
|
+
};
|
46
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
47
|
+
default: number;
|
48
|
+
} & {
|
49
|
+
default: number;
|
50
|
+
};
|
51
|
+
initialIndex: import("vue-types").VueTypeValidableDef<number> & {
|
52
|
+
default: number;
|
53
|
+
} & {
|
54
|
+
default: number;
|
55
|
+
};
|
56
|
+
isShowTitle: import("vue-types").VueTypeValidableDef<boolean> & {
|
57
|
+
default: boolean;
|
58
|
+
} & {
|
59
|
+
default: boolean;
|
60
|
+
};
|
61
|
+
loops: import("vue-types").VueTypeValidableDef<boolean> & {
|
62
|
+
default: boolean;
|
63
|
+
} & {
|
64
|
+
default: boolean;
|
65
|
+
};
|
66
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
67
|
+
default: boolean;
|
68
|
+
} & {
|
69
|
+
default: boolean;
|
70
|
+
};
|
71
|
+
};
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("./preset"),require("./components"),require("./directives"),require("./plugins"),require("./config-provider"),require("./hooks"));else if("function"==typeof define&&define.amd)define(["./preset","./components","./directives","./plugins","./config-provider","./hooks"],r);else{var o="object"==typeof exports?r(require("./preset"),require("./components"),require("./directives"),require("./plugins"),require("./config-provider"),require("./hooks")):r(e["./preset"],e["./components"],e["./directives"],e["./plugins"],e["./config-provider"],e["./hooks"]);for(var t in o)("object"==typeof exports?exports:e)[t]=o[t]}}(self,((e,r,o,t,i,n)=>(()=>{"use strict";var s={4689:e=>{e.exports=r},7623:e=>{e.exports=i},7257:e=>{e.exports=o},5737:e=>{e.exports=n},368:e=>{e.exports=t},9887:r=>{r.exports=e}},p={};function u(e){var r=p[e];if(void 0!==r)return r.exports;var o=p[e]={exports:{}};return s[e](o,o.exports,u),o.exports}u.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return u.d(r,{a:r}),r},u.d=(e,r)=>{for(var o in r)u.o(r,o)&&!u.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},u.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{u.r(d),u.d(d,{default:()=>r.a,plugins:()=>n});var e=u(9887),r=u.n(e),o=u(4689),t={};for(const e in o)["default","plugins"].indexOf(e)<0&&(t[e]=()=>o[e]);u.d(d,t);var i=u(7257);t={};for(const e in i)["default","plugins"].indexOf(e)<0&&(t[e]=()=>i[e]);u.d(d,t);var n=u(368),s=u(7623);t={};for(const e in s)["default","plugins"].indexOf(e)<0&&(t[e]=()=>s[e]);u.d(d,t);var p=u(5737);t={};for(const e in p)["default","plugins"].indexOf(e)<0&&(t[e]=()=>p[e]);u.d(d,t)})(),d})()));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
declare const BkInfoBox: ((config: Partial<import("./info-box").ModalFuncProps>) => {
|
2
|
+
show: () => void;
|
3
|
+
hide: () => void;
|
4
|
+
update: (config: Partial<import("./info-box").ModalFuncProps>) => void;
|
5
|
+
destroy: () => void;
|
6
|
+
}) & import("@vue/runtime-core").Plugin;
|
7
|
+
export default BkInfoBox;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../icon"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../config-provider","../icon","../modal"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../icon"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../config-provider"],e["../icon"],e["../modal"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n,o,r,i)=>(()=>{var a={7162:(e,t,n)=>{e.exports=n(5047)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof m?t:m,i=Object.create(r.prototype),a=new j(o||[]);return i._invoke=function(e,t,n){var o=f;return function(r,i){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===r)throw i;return k()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=s(e,t,n);if("normal"===c.type){if(o=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function m(){}function y(){}function g(){}var x={};c(x,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(P([])));b&&b!==n&&o.call(b,i)&&(x=b);var T=g.prototype=m.prototype=Object.create(x);function N(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,i,a,l){var c=s(e[r],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var r;this._invoke=function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}}function S(e,n){var o=e.iterator[n.method];if(o===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=s(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return y.prototype=g,c(T,"constructor",g),c(g,"constructor",y),y.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},N(C.prototype),c(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new C(u(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(T),c(T,l,"Generator"),c(T,i,(function(){return this})),c(T,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(o,r){return l.type="throw",l.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:P(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4976:e=>{"use strict";e.exports=n},2717:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},8014:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,c),n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";c.r(u),c.d(u,{default:()=>m});var e=c(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n=c(7162),o=c.n(n);function r(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((o=o.apply(e,t||[])).next())}))}Object.create,Object.create;var i=c(748),a=c(4976),l=c.n(a),s=c(2717),f=c(6870),d=c(8014),p=c.n(d);const h=Object.assign(Object.assign({},d.propsMixin),{width:e.PropTypes.oneOfType([String,Number]).def(""),height:e.PropTypes.oneOfType([String,Number]).def(""),confirmText:e.PropTypes.string,cancelText:e.PropTypes.string,prevText:e.PropTypes.string,nextText:e.PropTypes.string,current:e.PropTypes.number.def(1),totalStep:e.PropTypes.number,title:e.PropTypes.string.def("title"),headerAlign:(0,e.alignType)().def(e.AlignEnum.LEFT),footerAlign:(0,e.alignType)().def(e.AlignEnum.RIGHT),theme:e.PropTypes.theme().def(e.ThemeEnum.PRIMARY),dialogType:(0,e.dialogTypeUnion)(),isLoading:e.PropTypes.bool.def(!1)}),v=(0,i.defineComponent)({name:"Dialog",components:{BkModal:p(),BkButton:l()},props:h,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,t){var n=t.emit,o=(0,s.useLocale)("dialog"),r=(0,i.computed)((function(){return void 0===e.confirmText?o.value.ok:e.confirmText})),a=(0,i.computed)((function(){return void 0===e.cancelText?o.value.cancel:e.cancelText})),l=(0,i.computed)((function(){return void 0===e.prevText?o.value.prev:e.prevText})),c=(0,i.computed)((function(){return void 0===e.nextText?o.value.next:e.nextText})),u=(0,i.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),f=(0,i.ref)(e.isShow);(0,i.onMounted)((function(){e.escClose&&addEventListener("keydown",h)})),(0,i.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",h)})),(0,i.watch)((function(){return e.isShow}),(function(e){e?f.value=!0:setTimeout((function(){u.moveStyle={top:"50%",left:"50%"},u.positionX=0,u.positionY=0,f.value=!1}),250),n("value-change",e)}));var d=function(){n("update:isShow",!1),n("closed"),f.value=!1},p=(0,i.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),h=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&d()};return{data:u,handleClose:d,handleConfirm:function(){n("update:isShow",!1),n("confirm")},escCloseHandler:h,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var n,o,r=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==u.positionX&&0!==u.positionY?(n=t.clientX-u.positionX,o=t.clientY-u.positionY):(n=t.clientX-r.offsetLeft,o=t.clientY-r.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,r=window.innerHeight-i,l=e.clientX-n,c=e.clientY-o;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),r/2-c<=0?c=r/2:r/2+c<=0&&(c=-r/2),u.positionX=l,u.positionY=c,u.moveStyle.left="calc(50% + ".concat(l,"px)"),u.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){n("prev")},handleNextStep:function(){n("next")},hasFooter:p,isModalShow:f,localConfirmText:r,localCancelText:a,localPrevText:l,localNextText:c}},render:function(){var t,n=this,o={header:function(){var t,o,r,a,l,c;return[(0,i.createVNode)("div",{class:[(0,e.resolveClassName)("dialog-tool"),n.fullscreen||!n.draggable?"":"move",n.draggable?"content-dragging":""],onMousedown:n.moveHandler},[null!==(r=null===(o=(t=n.$slots).tools)||void 0===o?void 0:o.call(t))&&void 0!==r?r:""]),(0,i.createVNode)("div",{class:(0,e.resolveClassName)("dialog-header")},[(0,i.createVNode)("div",{class:(0,e.resolveClassName)("header-icon")},[n.infoType?{loading:(0,i.createVNode)(f.Spinner,{class:[(0,e.resolveClassName)("info-icon"),"primary"]},null),warning:(0,i.createVNode)(f.Warn,{class:[(0,e.resolveClassName)("info-icon"),"warning"]},null),success:(0,i.createVNode)(f.Success,{class:[(0,e.resolveClassName)("info-icon"),"success"]},null),danger:(0,i.createVNode)(f.Close,{class:[(0,e.resolveClassName)("info-icon"),"danger"]},null)}[n.infoType]:(0,i.createVNode)("slot",{name:"info-icon"},null)]),(0,i.createVNode)("span",{class:(0,e.resolveClassName)("dialog-title"),style:"text-align: ".concat(n.headerAlign)},[null!==(c=null===(l=(a=n.$slots).header)||void 0===l?void 0:l.call(a))&&void 0!==c?c:n.title])])]},default:function(){var e,t,o;return null!==(o=null===(t=(e=n.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==o?o:"default"},footer:function(){var t,o,r,a,c,u,s,f,d;return(0,i.createVNode)("div",{class:(0,e.resolveClassName)("dialog-footer"),style:"text-align: ".concat(n.footerAlign)},["process"===n.dialogType?null!==(r=null===(o=(t=n.$slots).footer)||void 0===o?void 0:o.call(t))&&void 0!==r?r:(0,i.createVNode)(i.Fragment,null,[1===n.current?"":(0,i.createVNode)(l(),{class:(0,e.resolveClassName)("dialog-perv"),onClick:n.handlePrevStep},{default:function(){return[n.localPrevText]}}),n.current===n.totalStep?"":(0,i.createVNode)(l(),{class:(0,e.resolveClassName)("dialog-next"),onClick:n.handleNextStep},{default:function(){return[n.localNextText]}}),n.current===n.totalStep?(0,i.createVNode)(l(),{onClick:n.handleConfirm,theme:n.theme,loading:n.isLoading},{default:function(){return[n.localConfirmText]}}):"",(0,i.createVNode)(l(),{class:(0,e.resolveClassName)("dialog-cancel"),onClick:n.handleClose,disabled:n.isLoading},{default:function(){return[n.localCancelText]}})]):"","operation"===n.dialogType?null!==(u=null===(c=(a=n.$slots).footer)||void 0===c?void 0:c.call(a))&&void 0!==u?u:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(l(),{onClick:n.handleConfirm,theme:n.theme,loading:n.isLoading},{default:function(){return[n.localConfirmText]}}),(0,i.createVNode)(l(),{class:(0,e.resolveClassName)("dialog-cancel"),onClick:n.handleClose,disabled:n.isLoading},{default:function(){return[n.localCancelText]}})]):"","confirm"===n.dialogType?null!==(d=null===(f=(s=n.$slots).footer)||void 0===f?void 0:f.call(s))&&void 0!==d?d:(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(l(),{onClick:n.handleConfirm,theme:n.theme,loading:n.isLoading},{default:function(){return[n.localConfirmText]}})]):""])},close:function(){return(0,i.createVNode)(f.Error,{onClick:n.handleClose},null)}},r="".concat((0,e.resolveClassName)("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,i.createVNode)(p(),(0,i.mergeProps)(this.$props,{class:r,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(t=o)||"[object Object]"===Object.prototype.toString.call(t)&&!(0,i.isVNode)(t)?o:{default:function(){return[o]}})}}),m=(0,e.withInstall)((function(n){var a=document.createElement("div"),l=(0,i.ref)(!1),c=(0,i.shallowRef)(n),u=(0,i.defineComponent)({name:"DialogConfirm",setup:function(n,a){var u=this,s=a.expose;(0,i.onMounted)((function(){(document.activeElement||document.body).blur(),!1!==c.value.isShow&&(l.value=!0)}));var f=function(){return r(u,void 0,void 0,o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onClosed)){e.next=3;break}return e.next=3,null===(n=c.value)||void 0===n?void 0:n.onClosed();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))},d=function(){return r(u,void 0,void 0,o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(null===(t=c.value)||void 0===t?void 0:t.onConfirm)){e.next=3;break}return e.next=3,null===(n=c.value)||void 0===n?void 0:n.onConfirm();case 3:l.value=!1;case 4:case"end":return e.stop()}}),e)})))};return s({update:function(e){c.value=e}}),function(){return(0,i.createVNode)(v,Object.assign(Object.assign({class:(0,e.resolveClassName)("info-wrapper"),headerAlign:"center",footerAlign:"center"},c.value),{isShow:l.value,onClosed:f,onConfirm:d}),function(){var n=[],o=[];if(c.value.subTitle)switch(t(c.value.subTitle)){case"string":default:n.push(c.value.subTitle);break;case"function":n.push(c.value.subTitle())}return n.length&&o.push((0,i.h)("div",{class:(0,e.resolveClassName)("info-sub-title"),style:"text-Align:".concat(c.value.contentAlign||"center")},n)),o}())}}}),s=(0,i.createApp)(u).mount(a);return{show:function(){l.value=!0},hide:function(){l.value=!1},update:function(e){s.update(e)},destroy:function(){s.unmount(),s=null}}}))})(),u})()));
|