bkui-vue 0.0.1-beta.47 → 0.0.1-beta.470
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +14 -0
- package/dist/index.cjs.js +360 -36
- package/dist/index.esm.js +31133 -19791
- package/dist/index.umd.js +360 -36
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.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 +167 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +9 -3
- package/lib/alert/alert.d.ts +6 -6
- package/lib/alert/alert.less +29 -20
- package/lib/alert/alert.variable.css +41 -7
- package/lib/alert/index.d.ts +68 -48
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +2 -2
- package/lib/animate-number/index.d.ts +58 -25
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +5 -5
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +40 -4
- package/lib/backtop/index.d.ts +67 -49
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +7 -10
- package/lib/badge/badge.d.ts +29 -8
- package/lib/badge/badge.less +9 -11
- package/lib/badge/badge.variable.css +39 -14
- package/lib/badge/index.d.ts +120 -67
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +88 -9
- package/lib/breadcrumb/index.d.ts +65 -41
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +4 -4
- package/lib/button/button.css +85 -50
- package/lib/button/button.d.ts +47 -27
- package/lib/button/button.less +72 -42
- package/lib/button/button.variable.css +117 -54
- package/lib/button/index.d.ts +123 -87
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +97 -2
- package/lib/card/card.d.ts +48 -7
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +133 -10
- package/lib/card/index.d.ts +153 -58
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +102 -0
- package/lib/cascader/cascader.css +316 -0
- package/lib/cascader/cascader.d.ts +354 -0
- package/lib/cascader/cascader.less +283 -0
- package/lib/cascader/cascader.variable.css +438 -0
- package/lib/cascader/index.d.ts +923 -0
- package/lib/cascader/index.js +2 -0
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +27 -0
- package/lib/checkbox/checkbox-group.d.ts +18 -2
- package/lib/checkbox/checkbox.css +40 -12
- package/lib/checkbox/checkbox.d.ts +33 -15
- package/lib/checkbox/checkbox.less +70 -34
- package/lib/checkbox/checkbox.variable.css +72 -16
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +113 -61
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +7 -7
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +59 -11
- package/lib/code-diff/index.d.ts +30 -43
- 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 +67 -53
- package/lib/collapse/collapse.less +112 -30
- package/lib/collapse/collapse.variable.css +191 -14
- package/lib/collapse/index.d.ts +292 -52
- 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 +255 -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 +402 -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 +646 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +128 -0
- package/lib/config-provider/use-global-config.d.ts +5 -0
- package/lib/config-provider/use-locale.d.ts +3 -0
- package/lib/config-provider/use-prefix.d.ts +9 -0
- package/lib/container/col.d.ts +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 +204 -0
- package/lib/container/index.js +1 -0
- package/lib/container/interface.d.ts +7 -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 +31 -1
- package/lib/date-picker/date-picker.d.ts +73 -35
- package/lib/date-picker/date-picker.less +110 -74
- package/lib/date-picker/date-picker.variable.css +63 -5
- package/lib/date-picker/index.d.ts +231 -211
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +20 -10
- package/lib/date-picker/panel/date-range.d.ts +345 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +495 -0
- package/lib/date-picker/panel/time.d.ts +451 -0
- package/lib/date-picker/props.d.ts +55 -5
- package/lib/date-picker/time-picker.d.ts +390 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +135 -26
- package/lib/dialog/dialog.d.ts +219 -104
- package/lib/dialog/dialog.less +99 -41
- package/lib/dialog/dialog.variable.css +257 -26
- package/lib/dialog/index.d.ts +467 -276
- package/lib/dialog/index.js +2 -1
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- package/lib/dialog/props.d.ts +122 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +2 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +17 -17
- package/lib/divider/divider.variable.css +32 -4
- package/lib/divider/index.d.ts +85 -61
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +2 -2
- package/lib/dropdown/dropdown.css +38 -7
- package/lib/dropdown/dropdown.d.ts +47 -15
- package/lib/dropdown/dropdown.less +48 -34
- package/lib/dropdown/dropdown.variable.css +70 -11
- package/lib/dropdown/index.d.ts +141 -65
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +33 -13
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +72 -18
- package/lib/exception/index.d.ts +91 -43
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
- package/lib/fixed-navbar/index.d.ts +89 -30
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +2 -2
- package/lib/form/form-item.d.ts +25 -10
- package/lib/form/form.css +34 -7
- package/lib/form/form.d.ts +50 -16
- package/lib/form/form.less +83 -51
- package/lib/form/form.variable.css +66 -11
- package/lib/form/index.d.ts +154 -61
- 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-shape.d.ts +4 -0
- package/lib/icon/copy-shape.js +1 -0
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.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/fix-line.d.ts +4 -0
- package/lib/icon/fix-line.js +1 -0
- package/lib/icon/fix-shape.d.ts +4 -0
- package/lib/icon/fix-shape.js +1 -0
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- 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/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +83 -54
- 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-pro.d.ts +4 -0
- package/lib/icon/weixin-pro.js +1 -0
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +252 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +2 -0
- package/lib/info-box/index.js.LICENSE.txt +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +29 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +159 -0
- package/lib/input/index.d.ts +228 -180
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +183 -19
- package/lib/input/input.d.ts +121 -38
- package/lib/input/input.less +112 -18
- package/lib/input/input.variable.css +246 -55
- package/lib/link/index.d.ts +82 -55
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +11 -9
- 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 +166 -54
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +86 -33
- package/lib/loading/loading.d.ts +97 -15
- 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 +126 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +81 -52
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +2 -2
- package/lib/menu/menu-item.d.ts +5 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +8 -17
- package/lib/menu/menu.variable.css +101 -22
- package/lib/menu/submenu.d.ts +5 -1
- package/lib/menu/submenu.variable.css +32 -4
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +2 -1
- package/lib/message/index.js.LICENSE.txt +6 -0
- package/lib/message/message.css +170 -6
- package/lib/message/message.less +222 -7
- package/lib/message/message.variable.css +202 -10
- package/lib/message/messageConstructor.d.ts +136 -27
- package/lib/modal/index.d.ts +399 -201
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +52 -10
- package/lib/modal/modal.d.ts +152 -64
- package/lib/modal/modal.less +36 -25
- package/lib/modal/modal.variable.css +174 -10
- package/lib/modal/props.mixin.d.ts +63 -28
- package/lib/navigation/index.d.ts +329 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +6 -3
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +21 -5
- 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 +63 -22
- package/lib/overflow-title/components/overflow-title.d.ts +57 -0
- package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +195 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/overflow.css +11 -0
- package/lib/overflow-title/overflow.less +13 -0
- package/lib/overflow-title/overflow.variable.css +11 -0
- package/lib/overflow-title/props.d.ts +43 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +92 -96
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +19 -9
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +86 -32
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.d.ts +249 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.css +28 -0
- package/lib/pop-confirm/pop-confirm.d.ts +95 -0
- package/lib/pop-confirm/pop-confirm.less +34 -0
- package/lib/pop-confirm/pop-confirm.variable.css +150 -0
- package/lib/pop-confirm/props.d.ts +67 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +43 -0
- package/lib/popover/index.d.ts +453 -148
- 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 +212 -48
- package/lib/popover/popover.less +19 -66
- package/lib/popover/popover.variable.css +42 -54
- package/lib/popover/props.d.ts +103 -35
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +27 -0
- package/lib/popover/use-floating.d.ts +34 -0
- package/lib/popover/use-platform.d.ts +30 -0
- package/lib/popover/use-popover-init.d.ts +23 -0
- package/lib/popover/use-popper-id.d.ts +6 -0
- package/lib/popover/utils.d.ts +8 -0
- package/lib/popover2/index.d.ts +89 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +264 -2
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +66 -52
- package/lib/process/index.js +2 -1
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +4 -4
- package/lib/process/process.less +30 -2
- package/lib/process/process.variable.css +54 -4
- package/lib/progress/index.d.ts +92 -119
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +14 -14
- package/lib/progress/progress.variable.css +87 -8
- package/lib/radio/index.d.ts +81 -42
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +5 -7
- package/lib/radio/radio-group.d.ts +28 -2
- package/lib/radio/radio.css +136 -65
- package/lib/radio/radio.d.ts +2 -2
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +171 -72
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +78 -28
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +14 -3
- package/lib/rate/star.d.ts +2 -2
- package/lib/resize-layout/index.d.ts +77 -78
- 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 +8 -8
- 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 +892 -0
- package/lib/search-select/index.js +2 -0
- package/lib/search-select/index.js.LICENSE.txt +1 -0
- package/lib/search-select/input.d.ts +101 -0
- package/lib/search-select/menu.d.ts +77 -0
- package/lib/search-select/search-select.css +427 -0
- package/lib/search-select/search-select.d.ts +361 -0
- package/lib/search-select/search-select.less +384 -0
- package/lib/search-select/search-select.variable.css +549 -0
- package/lib/search-select/selected.d.ts +155 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +5 -12
- package/lib/select/index.d.ts +1697 -760
- package/lib/select/index.js +2 -1
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/option.d.ts +22 -6
- package/lib/select/optionGroup.d.ts +3 -3
- package/lib/select/select.css +209 -113
- package/lib/select/select.d.ts +747 -162
- package/lib/select/select.less +342 -197
- package/lib/select/select.variable.css +241 -117
- package/lib/select/selectTagInput.d.ts +94 -0
- package/lib/select/type.d.ts +25 -15
- 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 +33 -8
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +21 -7
- package/lib/shared/pop-manager.d.ts +16 -5
- package/lib/shared/popover.d.ts +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +116 -9
- package/lib/sideslider/index.d.ts +294 -183
- package/lib/sideslider/index.js +2 -1
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/sideslider/sideslider.css +58 -11
- package/lib/sideslider/sideslider.d.ts +136 -65
- package/lib/sideslider/sideslider.less +75 -14
- package/lib/sideslider/sideslider.variable.css +90 -15
- package/lib/slider/index.d.ts +384 -1
- package/lib/slider/index.js +2 -1
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/slider/slider-button.d.ts +3 -2
- package/lib/slider/slider.d.ts +7 -7
- package/lib/slider/slider.variable.css +32 -4
- package/lib/steps/index.d.ts +102 -96
- package/lib/steps/index.js +2 -1
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/steps/steps.css +15 -3
- package/lib/steps/steps.d.ts +34 -34
- 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/swiper/index.d.ts +60 -44
- package/lib/swiper/swiper.d.ts +1 -1
- package/lib/switcher/index.d.ts +99 -92
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +20 -14
- package/lib/switcher/switcher.less +3 -26
- package/lib/switcher/switcher.variable.css +106 -27
- package/lib/tab/index.d.ts +170 -134
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +93 -41
- package/lib/tab/tab-nav.d.ts +51 -15
- package/lib/tab/tab-panel.d.ts +16 -9
- package/lib/tab/tab.css +151 -55
- package/lib/tab/tab.d.ts +44 -23
- 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 +305 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +128 -1
- package/lib/table/index.d.ts +1364 -99
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +36 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +30 -14
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +79 -52
- package/lib/table/plugins/head-filter.variable.css +62 -18
- package/lib/table/plugins/head-sort.css +7 -3
- package/lib/table/plugins/head-sort.d.ts +29 -0
- package/lib/table/plugins/head-sort.less +8 -4
- package/lib/table/plugins/head-sort.variable.css +39 -7
- 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 +367 -19
- package/lib/table/render.d.ts +46 -18
- package/lib/table/table.css +1181 -33
- package/lib/table/table.d.ts +270 -19
- package/lib/table/table.less +314 -18
- package/lib/table/table.variable.css +1213 -37
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +113 -0
- package/lib/table/utils.d.ts +52 -12
- package/lib/table-column/index.d.ts +797 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +89 -71
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +17 -13
- 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 +1194 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +2 -5
- package/lib/tag-input/tag-input.css +23 -26
- package/lib/tag-input/tag-input.d.ts +303 -44
- package/lib/tag-input/tag-input.less +103 -105
- package/lib/tag-input/tag-input.variable.css +55 -30
- package/lib/tag-input/tag-props.d.ts +142 -8
- package/lib/tag-input/tag-render.d.ts +31 -5
- package/lib/time-picker/index.d.ts +833 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +337 -0
- package/lib/timeline/index.d.ts +61 -32
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +16 -9
- package/lib/timeline/timeline.d.ts +3 -3
- 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 +273 -191
- 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 +102 -96
- package/lib/transfer/transfer.less +142 -112
- package/lib/transfer/transfer.variable.css +191 -102
- package/lib/tree/constant.d.ts +63 -0
- package/lib/tree/index.d.ts +387 -107
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +138 -3
- package/lib/tree/tree.css +181 -9
- package/lib/tree/tree.d.ts +185 -21
- 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 +42 -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 +509 -0
- package/lib/upload/index.js +2 -0
- package/lib/upload/index.js.LICENSE.txt +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 +21 -0
- package/lib/virtual-render/index.d.ts +117 -144
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +25 -1
- 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 +50 -4
- package/lib/virtual-render/virtual-render.less +2 -23
- package/lib/virtual-render/virtual-render.variable.css +139 -17
- package/lib/volar.components.d.ts +102 -0
- package/package.json +64 -43
- package/LICENSE.txt +0 -22
- package/lib/form/common.d.ts +0 -3
- package/lib/use-form.d.ts +0 -3
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../icon"),require("../progress"),require("../button"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon","../progress","../button"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../icon"),require("../progress"),require("../button")):t(e["../shared"],e.vue,e["../config-provider"],e["../icon"],e["../progress"],e["../button"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,a)=>(()=>{var i={4791:e=>{e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],o=e[2],a=e[3];n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&o|~n&a)+t[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&o)+t[1]-389564586|0)<<12|a>>>20)+r|0)&r|~a&n)+t[2]+606105819|0)<<17|o>>>15)+a|0)&a|~o&r)+t[3]-1044525330|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&o|~n&a)+t[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&o)+t[5]+1200080426|0)<<12|a>>>20)+r|0)&r|~a&n)+t[6]-1473231341|0)<<17|o>>>15)+a|0)&a|~o&r)+t[7]-45705983|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&o|~n&a)+t[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&o)+t[9]-1958414417|0)<<12|a>>>20)+r|0)&r|~a&n)+t[10]-42063|0)<<17|o>>>15)+a|0)&a|~o&r)+t[11]-1990404162|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&o|~n&a)+t[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&o)+t[13]-40341101|0)<<12|a>>>20)+r|0)&r|~a&n)+t[14]-1502002290|0)<<17|o>>>15)+a|0)&a|~o&r)+t[15]+1236535329|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&a|o&~a)+t[1]-165796510|0)<<5|r>>>27)+n|0)&o|n&~o)+t[6]-1069501632|0)<<9|a>>>23)+r|0)&n|r&~n)+t[11]+643717713|0)<<14|o>>>18)+a|0)&r|a&~r)+t[0]-373897302|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&a|o&~a)+t[5]-701558691|0)<<5|r>>>27)+n|0)&o|n&~o)+t[10]+38016083|0)<<9|a>>>23)+r|0)&n|r&~n)+t[15]-660478335|0)<<14|o>>>18)+a|0)&r|a&~r)+t[4]-405537848|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&a|o&~a)+t[9]+568446438|0)<<5|r>>>27)+n|0)&o|n&~o)+t[14]-1019803690|0)<<9|a>>>23)+r|0)&n|r&~n)+t[3]-187363961|0)<<14|o>>>18)+a|0)&r|a&~r)+t[8]+1163531501|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n&a|o&~a)+t[13]-1444681467|0)<<5|r>>>27)+n|0)&o|n&~o)+t[2]-51403784|0)<<9|a>>>23)+r|0)&n|r&~n)+t[7]+1735328473|0)<<14|o>>>18)+a|0)&r|a&~r)+t[12]-1926607734|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n^o^a)+t[5]-378558|0)<<4|r>>>28)+n|0)^n^o)+t[8]-2022574463|0)<<11|a>>>21)+r|0)^r^n)+t[11]+1839030562|0)<<16|o>>>16)+a|0)^a^r)+t[14]-35309556|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n^o^a)+t[1]-1530992060|0)<<4|r>>>28)+n|0)^n^o)+t[4]+1272893353|0)<<11|a>>>21)+r|0)^r^n)+t[7]-155497632|0)<<16|o>>>16)+a|0)^a^r)+t[10]-1094730640|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n^o^a)+t[13]+681279174|0)<<4|r>>>28)+n|0)^n^o)+t[0]-358537222|0)<<11|a>>>21)+r|0)^r^n)+t[3]-722521979|0)<<16|o>>>16)+a|0)^a^r)+t[6]+76029189|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((a=((a+=((r=((r+=(n^o^a)+t[9]-640364487|0)<<4|r>>>28)+n|0)^n^o)+t[12]-421815835|0)<<11|a>>>21)+r|0)^r^n)+t[15]+530742520|0)<<16|o>>>16)+a|0)^a^r)+t[2]-995338651|0)<<23|n>>>9)+o|0,n=((n+=((a=((a+=(n^((r=((r+=(o^(n|~a))+t[0]-198630844|0)<<6|r>>>26)+n|0)|~o))+t[7]+1126891415|0)<<10|a>>>22)+r|0)^((o=((o+=(r^(a|~n))+t[14]-1416354905|0)<<15|o>>>17)+a|0)|~r))+t[5]-57434055|0)<<21|n>>>11)+o|0,n=((n+=((a=((a+=(n^((r=((r+=(o^(n|~a))+t[12]+1700485571|0)<<6|r>>>26)+n|0)|~o))+t[3]-1894986606|0)<<10|a>>>22)+r|0)^((o=((o+=(r^(a|~n))+t[10]-1051523|0)<<15|o>>>17)+a|0)|~r))+t[1]-2054922799|0)<<21|n>>>11)+o|0,n=((n+=((a=((a+=(n^((r=((r+=(o^(n|~a))+t[8]+1873313359|0)<<6|r>>>26)+n|0)|~o))+t[15]-30611744|0)<<10|a>>>22)+r|0)^((o=((o+=(r^(a|~n))+t[6]-1560198380|0)<<15|o>>>17)+a|0)|~r))+t[13]+1309151649|0)<<21|n>>>11)+o|0,n=((n+=((a=((a+=(n^((r=((r+=(o^(n|~a))+t[4]-145523070|0)<<6|r>>>26)+n|0)|~o))+t[11]-1120210379|0)<<10|a>>>22)+r|0)^((o=((o+=(r^(a|~n))+t[2]+718787259|0)<<15|o>>>17)+a|0)|~r))+t[9]-343485551|0)<<21|n>>>11)+o|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=o+e[2]|0,e[3]=a+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function o(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function a(e){var t,o,a,i,u,c,l=e.length,s=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)r(s,n(e.substring(t-64,t)));for(o=(e=e.substring(t-64)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<o;t+=1)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(r(s,a),t=0;t<16;t+=1)a[t]=0;return i=(i=8*l).toString(16).match(/(.*?)(.{0,8})$/),u=parseInt(i[2],16),c=parseInt(i[1],16)||0,a[14]=u,a[15]=c,r(s,a),s}function i(e){var r,n="";for(r=0;r<4;r+=1)n+=t[e>>8*r+4&15]+t[e>>8*r&15];return n}function u(e){var t;for(t=0;t<e.length;t+=1)e[t]=i(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;t<n-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function s(){this.reset()}return u(a("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,r){var n,o,a,i,u=this.byteLength,c=e(t,u),l=u;return undefined!==r&&(l=e(r,u)),c>l?new ArrayBuffer(0):(n=l-c,o=new ArrayBuffer(n),a=new Uint8Array(o),i=new Uint8Array(this,c,n),a.set(i),o)}}(),s.prototype.append=function(e){return this.appendBinary(c(e)),this},s.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,o=this._buff.length;for(t=64;t<=o;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},s.prototype.end=function(e){var t,r,n=this._buff,o=n.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)a[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(a,o),r=u(this._hash),e&&(r=l(r)),this.reset(),r},s.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},s.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},s.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},s.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},s.prototype._finish=function(e,t){var n,o,a,i=t;if(e[i>>2]|=128<<(i%4<<3),i>55)for(r(this._hash,e),i=0;i<16;i+=1)e[i]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(n[2],16),a=parseInt(n[1],16)||0,e[14]=o,e[15]=a,r(this._hash,e)},s.hash=function(e,t){return s.hashBinary(c(e),t)},s.hashBinary=function(e,t){var r=u(a(e));return t?l(r):r},s.ArrayBuffer=function(){this.reset()},s.ArrayBuffer.prototype.append=function(e){var t,n,a,i,u,c=(n=this._buff.buffer,a=e,i=!0,(u=new Uint8Array(n.byteLength+a.byteLength)).set(new Uint8Array(n)),u.set(new Uint8Array(a),n.byteLength),i?u:u.buffer),l=c.length;for(this._length+=e.byteLength,t=64;t<=l;t+=64)r(this._hash,o(c.subarray(t-64,t)));return this._buff=t-64<l?new Uint8Array(c.buffer.slice(t-64)):new Uint8Array(0),this},s.ArrayBuffer.prototype.end=function(e){var t,r,n=this._buff,o=n.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)a[t>>2]|=n[t]<<(t%4<<3);return this._finish(a,o),r=u(this._hash),e&&(r=l(r)),this.reset(),r},s.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},s.ArrayBuffer.prototype.getState=function(){var e,t=s.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},s.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,o=new ArrayBuffer(n),a=new Uint8Array(o);for(r=0;r<n;r+=1)a[r]=e.charCodeAt(r);return t?a:o}(e.buff,!0),s.prototype.setState.call(this,e)},s.ArrayBuffer.prototype.destroy=s.prototype.destroy,s.ArrayBuffer.prototype._finish=s.prototype._finish,s.ArrayBuffer.hash=function(e,t){var n=u(function(e){var t,n,a,i,u,c,l=e.length,s=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)r(s,o(e.subarray(t-64,t)));for(n=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)a[t>>2]|=e[t]<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(r(s,a),t=0;t<16;t+=1)a[t]=0;return i=(i=8*l).toString(16).match(/(.*?)(.{0,8})$/),u=parseInt(i[2],16),c=parseInt(i[1],16)||0,a[14]=u,a[15]=c,r(s,a),s}(new Uint8Array(e)));return t?l(n):n},s}()},4976:e=>{"use strict";e.exports=a},2717:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=n},3522:e=>{"use strict";e.exports=o},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,r)=>{var n=r(7425).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new j(n||[]);return i(a,"_invoke",{value:S(e,r,u)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v={};function h(){}function m(){}function y(){}var g={};f(g,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(O([])));w&&w!==r&&a.call(w,c)&&(g=w);var _=y.prototype=h.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,i,u,c){var l=p(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){return r("throw",e,u,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function S(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=N(i,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function N(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function E(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:U}}function U(){return{value:void 0,done:!0}}return m.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=f(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},x(A.prototype),f(A.prototype,l,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new A(d(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(_),f(_,s,"Generator"),f(_,c,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(r){return e.exports=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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,r)=>{var n=r(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return i[e](r,r.exports,c),r.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 r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 l={};return(()=>{"use strict";c.r(l),c.d(l,{default:()=>z});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)}function r(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var n=c(748),o=c(2841),a=c.n(o);function i(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function u(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}c((n=n.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var u,s,f="bk-upload";!function(e){e.BUTTON="button",e.DRAGGABLE="draggable",e.PICTURE="picture"}(u||(u={})),function(e){e.NEW="new",e.UPLOADING="uploading",e.SUCCESS="success",e.FAIL="fail"}(s||(s={}));var d=[u.BUTTON,u.DRAGGABLE,u.PICTURE];const p={theme:{type:String,default:"draggable",validator:function(e){return!(e&&!d.includes(e)&&(console.error("invalid theme, ".concat(e,", the theme must be one of 【").concat(d.join(" | "),"】")),1))}},files:{type:Array,default:function(){return[]}},name:{type:String,default:"upload_file"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},accept:{type:String},delayTime:{type:Number,default:0},url:{type:String,required:!1},method:{type:String,default:"post"},size:{type:[Number,Object],default:function(){return{maxFileSize:5,maxImgSize:1}}},handleResCode:{type:Function,default:function(e){return!(!e||0!==e.code)}},headers:{type:Object,default:function(){return{}}},header:{type:[Array,Object],default:function(){return[]}},tip:{type:String,default:""},validateName:{type:RegExp},withCredentials:{type:Boolean,default:!1},limit:Number,data:{type:[Array,Object],default:function(){return[]}},formDataAttributes:{type:[Array,Object],default:function(){return[]}},extCls:{type:String,default:""},customRequest:Function,beforeUpload:{type:Function},beforeRemove:{type:Function},sliceUpload:{type:Boolean,default:!1},sliceUrl:{type:String,default:""},mergeUrl:{type:String,default:""},chunkSize:{type:Number,default:10}};function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=c(2717),g=c(6870),b=c(3522),w=c.n(b);function _(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,n.isVNode)(e)}const x=(0,n.defineComponent)({name:"UploadList",props:{theme:p.theme,disabled:p.disabled,files:p.files,multiple:p.multiple},emits:["remove","retry"],setup:function(t,o){var a=o.slots,i=o.emit,c=(0,y.useLocale)("upload"),l=(0,n.toRefs)(t),s=l.theme,d=l.disabled,p=l.multiple,v="".concat(f,"-list"),h=(0,n.computed)((function(){return s.value===u.PICTURE})),b=(0,n.computed)((function(){return h.value&&!p.value})),x=(0,n.computed)((function(){var t;return(0,e.classes)((r(t={},v,!0),r(t,"".concat(v,"--").concat(s.value),!0),r(t,"".concat(v,"--disabled"),d.value),t))}));function A(e,t){i("remove",e,t)}var S=function(e){return[(0,n.withDirectives)((0,n.createVNode)("img",{src:e.url,class:"".concat(v,"__picture-item-thumbnail"),alt:""},null),[[n.vShow,"uploading"!==e.status]]),(0,n.createVNode)(n.Fragment,null,["uploading"===e.status&&(0,n.createVNode)(w(),{class:"".concat(v,"__picture-item-progress"),type:"circle",color:"#3a84ff",bgColor:"#333",width:50,titleStyle:{color:"#fff"},percent:e.percentage},null)]),(0,n.createVNode)(n.Fragment,null,[!d.value&&(0,n.createVNode)("div",{class:"".concat(v,"__picture-item-actions")},[(0,n.createVNode)(g.Del,{class:"action-icon",onClick:function(t){return A(e,t)}},null)])])]},N=function(e){var t,r=null===(t=null==e?void 0:e.raw)||void 0===t?void 0:t.type,o=m((null==r?void 0:r.split("/"))||"",1)[0],a={text:g.TextFill,image:g.ImageFill,application:g.TextFill,video:g.VideoFill,audio:g.AudioFill}[o]||g.TextFill;return["application/zip","application/rar","application/tar","application/gz","application/x-gzip"].includes(r)&&(a=g.ArchiveFill),(0,n.h)(a,{class:"".concat(v,"__item-file-icon")})},E=function(e){return[(0,n.createVNode)("div",{class:"".concat(v,"__item-icon")},[e.isPic?(0,n.createVNode)("img",{src:e.url,class:"".concat(v,"__item-thumbnail"),alt:""},null):N(e)]),(0,n.createVNode)("div",{class:"".concat(v,"__item-summary")},[(0,n.createVNode)("div",{class:"".concat(v,"__item-name"),title:e.name},[e.name]),"uploading"!==e.status&&(0,n.createVNode)("div",{class:"".concat(v,"__item-message"),title:e.statusText},["success"===e.status&&(0,n.createVNode)(n.Fragment,null,[(0,n.createVNode)(g.Done,{class:"".concat(v,"__item-message-success-icon")},null),e.statusText||c.value.uploadSuccess]),"fail"===e.status&&(0,n.createVNode)(n.Fragment,null,[e.statusText||c.value.uploadFailed])]),"uploading"===e.status&&(0,n.createVNode)(w(),{class:"".concat(v,"__item-progress"),showText:!1,percent:e.percentage,size:"small"},null),"fail"!==e.status&&(0,n.createVNode)("div",{class:"".concat(v,"__item-speed")},[(0,n.withDirectives)((0,n.createVNode)("span",{class:"".concat(v,"__item-speed-size")},[(t=e.size,r=Math.floor(Math.log(t)/Math.log(1024)),o=t/Math.pow(1024,r),"".concat(o.toFixed(2)).concat(["Bytes","KB","MB","GB","TB"][r]))]),[[n.vShow,e.size]]),(0,n.withDirectives)((0,n.createVNode)("span",{class:"".concat(v,"__item-speed-percentage")},[e.percentage,(0,n.createTextVNode)("%")]),[[n.vShow,"uploading"===e.status]])]),!d.value&&(0,n.createVNode)("div",{class:"".concat(v,"__item-actions")},["fail"===e.status&&(0,n.createVNode)(g.RightTurnLine,{class:"".concat(v,"__item-retry-icon"),onClick:function(t){return function(e,t){i("retry",e,t)}(e,t)}},null),(0,n.createVNode)(g.Del,{class:"".concat(v,"__item-del-icon"),onClick:function(t){return A(e,t)}},null)])])];var t,r,o};return function(){var o,i,u;return(0,n.createVNode)(n.Fragment,null,[b.value?(null==a?void 0:a.innerTrigger)&&(null==a?void 0:a.innerTrigger(null===(o=t.files)||void 0===o?void 0:o[0])):(0,n.createVNode)("ul",{class:x.value},[h.value?(0,n.createVNode)(n.TransitionGroup,{name:"".concat(v,"__item")},_(u=t.files.map((function(t){var o,i=(0,e.classes)((r(o={},"".concat(v,"__item"),!0),r(o,"".concat(v,"__item-picture"),!0),r(o,"".concat(v,"__item--").concat(t.status),!0),o));return(0,n.createVNode)("li",{key:t.uid,class:i},[(null==a?void 0:a.file)?a.file({file:t}):S(t)])})))?u:{default:function(){return[u]}}):(0,n.createVNode)(n.TransitionGroup,{name:"".concat(v,"__item")},_(i=t.files.map((function(t){var o,i=(0,e.classes)((r(o={},"".concat(v,"__item"),!0),r(o,"".concat(v,"__item--").concat(t.status),!0),o));return(0,n.createVNode)("li",{key:t.uid,class:i},[(null==a?void 0:a.file)?a.file({file:t}):E(t)])})))?i:{default:function(){return[i]}}),(null==a?void 0:a.innerTrigger)&&(null==a?void 0:a.innerTrigger())])])}}});var A=c(4976),S=c.n(A);const N=(0,n.defineComponent)({name:"UploadTrigger",props:{theme:p.theme,disabled:p.disabled,multiple:p.multiple,accept:p.accept,file:{type:Object}},emits:["change","remove"],setup:function(t,o){var a=o.slots,i=o.emit,c=(0,y.useLocale)("upload"),l=(0,n.toRefs)(t),s=l.theme,d=l.disabled,p=l.file,v=l.multiple,h=l.accept,m="".concat(f,"-trigger"),b=(0,n.computed)((function(){return s.value===u.BUTTON})),_=(0,n.computed)((function(){return s.value===u.DRAGGABLE})),x=(0,n.computed)((function(){return s.value===u.PICTURE})),A=(0,n.computed)((function(){return x.value&&!v.value})),N=(0,n.computed)((function(){return x.value&&!h.value?"image/png,image/jpeg,image/jpg":h.value})),E=(0,n.ref)(null),L=(0,n.computed)((function(){var t,n,o,a;return(0,e.classes)((r(t={},m,!0),r(t,"".concat(m,"--").concat(s.value),!0),r(t,"".concat(m,"--single-picture"),A.value),r(t,"".concat(m,"--has-file"),null!==(n=p.value)&&void 0!==n&&n),r(t,"".concat(m,"--").concat(null===(o=p.value)||void 0===o?void 0:o.status),null!==(a=p.value)&&void 0!==a&&a),r(t,"".concat(m,"--dragover"),R.value),r(t,"".concat(m,"--disabled"),d.value),t))})),j=function(){E.value.value=null,E.value.click()},O=function(e){var t=e.target.files;i("change",Array.from(t))},U=function(){t.disabled||j()},V=function(e){e.defaultPrevented||e.target!==e.currentTarget||("Enter"!==e.code&&"Space"!==e.code||j(),e.preventDefault())},R=(0,n.ref)(!1),C=function(e){return[(0,n.withDirectives)((0,n.createVNode)("img",{src:e.url,class:"".concat(m,"__picture-thumbnail"),alt:""},null),[[n.vShow,"uploading"!==e.status]]),(0,n.createVNode)(n.Fragment,null,["uploading"===e.status&&(0,n.createVNode)(w(),{class:"".concat(m,"__picture-progress"),type:"circle",color:"#3a84ff",bgColor:"#333",width:50,titleStyle:{color:"#fff"},percent:e.percentage},null)]),(0,n.createVNode)(n.Fragment,null,[!t.disabled&&(0,n.createVNode)("div",{class:"".concat(m,"__picture-actions")},[(0,n.createVNode)(g.Del,{class:"action-icon",onClick:function(t){return function(e,t){i("remove",e,t),t.stopPropagation(),t.preventDefault()}(e,t)}},null)])])]};return function(){var o;return(0,n.createVNode)("div",{class:L.value,tabindex:"0",onClick:U,onKeydown:V},[a.trigger?[a.trigger(),null===(o=null==a?void 0:a.default)||void 0===o?void 0:o.call(a)]:b.value?(0,n.createVNode)(S(),{disabled:d.value},{default:function(){return[(0,n.createVNode)(g.Upload,{class:"".concat(m,"__button-icon")},null),(0,n.createVNode)("span",{class:"".concat(m,"__button-text")},[c.value.uploadLabel])]}}):_.value?function(){var t=(0,e.classes)(r({},"".concat(m,"__draggable"),!0));return(0,n.createVNode)("div",{class:t,onDrop:function(e){if(!d.value){e.preventDefault(),R.value=!1;var t=Array.from(e.dataTransfer.files);if(N.value){var r=t.filter((function(e){var t=e.type,r=e.name,n=r.includes(".")?".".concat(r.split(".").pop()):"",o=t.replace(/\/.*$/,"");return N.value.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return e.startsWith(".")?n===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^/]+\/[^/]+$/.test(e)&&t===e}))}));i("change",r)}else i("change",t)}},onDragover:function(e){e.preventDefault(),R.value=!0},onDragleave:function(){R.value=!1}},[a.default?a.default():(0,n.createVNode)(n.Fragment,null,[(0,n.createVNode)(g.Upload,{class:"".concat(m,"__draggable-icon")},null),(0,n.createVNode)("div",{class:"".concat(m,"__draggable-text")},[c.value.drapFileOr,(0,n.createVNode)("span",{class:"".concat(m,"__draggable-upload-link")},[c.value.clickUpload])])])])}():x.value?(0,n.createVNode)(n.Fragment,null,[A.value&&t.file?C(t.file):(0,n.createVNode)(n.Fragment,null,[a.default?a.default():(0,n.createVNode)("div",{class:"".concat(m,"__picture-inner")},[(0,n.createVNode)(g.Plus,{class:"".concat(m,"__picture-icon")},null),(0,n.createVNode)("div",{class:"".concat(m,"__picture-text")},[c.value.clickUpload])])])]):void 0,(0,n.createVNode)("input",{ref:E,class:"".concat(m,"__input-file"),tabindex:"-1",onChange:O,accept:N.value,multiple:v.value,disabled:d.value,type:"file"},null)])}}});function E(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var L=c(4791),j=c.n(L);function O(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}var U=function(t){if("undefined"==typeof XMLHttpRequest)throw new Error("XMLHttpRequest is undefined");var r=new XMLHttpRequest,n=t.action;r.upload&&r.upload.addEventListener("progress",(function(e){var r=e;r.percent=e.total>0?e.loaded/e.total*100:0,t.onProgress(r)}));var o=new FormData;if(t.data){var a=t.data;Array.isArray(a)||(a=[a]),a.forEach((function(e){for(var t=0,r=Object.entries(e);t<r.length;t++){var n=m(r[t],2),a=n[0],i=n[1];Array.isArray(i)?o.append.apply(o,[a].concat(E(i))):o.append(a,i)}}))}if(t.formDataAttributes){var i=t.formDataAttributes;Array.isArray(i)||(i=[i]),i.forEach((function(e){Array.isArray(e.value)?o.append.apply(o,[e.name].concat(E(e.value))):o.append(e.name,e.value)}))}if(o.append(t.filename,t.file,t.file.name),r.addEventListener("error",(function(){t.onError(new Error("An error occurred during upload"))})),r.addEventListener("load",(function(){if(r.status<200||r.status>=300)return t.onError(new Error("An error occurred during upload"));t.onSuccess(O(r))})),r.addEventListener("loadend",(function(){t.onComplete()})),r.open(t.method,n,!0),t.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0),t.header)if(Array.isArray(t.header))t.header.forEach((function(e){var t=e.name,n=e.value;r.setRequestHeader(t,n)}));else{var u=t.header.name,c=t.header.value;r.setRequestHeader(u,c)}var l=t.headers||{};if(l instanceof Headers)l.forEach((function(e,t){return r.setRequestHeader(t,e)}));else for(var s=0,f=Object.entries(l);s<f.length;s++){var d=m(f[s],2),p=d[0],v=d[1];(0,e.isNullOrUndef)(v)||r.setRequestHeader(p,String(v))}return r.send(o),r},V=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,R=function(e){return i(void 0,void 0,void 0,a().mark((function t(){var r,n,o,i,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=1024*e.chunkSize*1024,n=e.file){t.next=4;break}throw new Error("File not found");case 4:return o=Math.ceil(n.size/r),t.next=7,T(n,r);case 7:return i=t.sent,C(e,n,o,i,u=[],r),t.next=12,Promise.all(u).then((function(){var t={size:n.size,name:n.name,total:o,hash:i},r=new XMLHttpRequest;r.open(e.method,e.mergeUrl,!0),r.onreadystatechange=function(){if(4===r.readyState){if(r.status<200||r.status>=300)return e.onError(new Error("An error occurred during upload"));e.onSuccess(O(r))}},r.onloadend=function(){e.onComplete()},r.setRequestHeader("Content-type","application/JSON"),r.send(JSON.stringify(t))}));case 12:case"end":return t.stop()}}),t)})))},C=function(t,r,n,o,a,i){for(var u=function(u){var c=new Promise((function(a,c){var l=u*i,s=Math.min(r.size,l+i),f=new FormData;if(t.data){var d=t.data;Array.isArray(d)||(d=[d]),d.forEach((function(e){for(var t=0,r=Object.entries(e);t<r.length;t++){var n=m(r[t],2),o=n[0],a=n[1];Array.isArray(a)?f.append.apply(f,[o].concat(E(a))):f.append(o,a)}}))}if(t.formDataAttributes){var p=t.formDataAttributes;Array.isArray(p)||(p=[p]),p.forEach((function(e){Array.isArray(e.value)?f.append.apply(f,[e.name].concat(E(e.value))):f.append(e.name,e.value)}))}f.append("file",V.call(r,l,s)),f.append("name",r.name),f.append("total",n.toString()),f.append("index",u.toString()),f.append("size",r.size.toString()),f.append("hash",o.toString());var v=new XMLHttpRequest;if(v.onreadystatechange=function(){if(4===v.readyState){var e=O(v);v.status<200||v.status>=300?(c(e),t.onError(new Error("An error occurred during upload"))):a("reponseText")}},v.upload.addEventListener("progress",(function(e){var r=e;t.onProgress(r,u)}),!1),t.withCredentials&&"withCredentials"in v&&(v.withCredentials=!0),v.open(t.method,t.sliceUrl,!0),t.header)if(Array.isArray(t.header))t.header.forEach((function(e){var t=e.name,r=e.value;v.setRequestHeader(t,r)}));else{var h=t.header.name,y=t.header.value;v.setRequestHeader(h,y)}var g=t.headers||{};if(g instanceof Headers)g.forEach((function(e,t){return v.setRequestHeader(t,e)}));else for(var b=0,w=Object.entries(g);b<w.length;b++){var _=m(w[b],2),x=_[0],A=_[1];(0,e.isNullOrUndef)(A)||v.setRequestHeader(x,String(A))}v.send(f)}));a.push(c)},c=0;c<n;c++)u(c)},T=function(e,t){return new Promise((function(r,n){var o=Math.ceil(e.size/t),a=0,i=new(j().ArrayBuffer),u=new FileReader;function c(){var r=a*t,n=r+t>=e.size?e.size:r+t;u.readAsArrayBuffer(V.call(e,r,n))}u.onload=function(t){if(i.append(t.target.result),(a+=1)<o)c();else{var n=i.end(),u=new(j());u.append(n),u.append(e.name);var l=u.end();r(l)}},u.onerror=function(){n(new Error("File slcie failed"))},c()})).catch((function(e){console.log(e)}))};function F(e){return Date.now()+e}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=(0,n.defineComponent)({name:"Upload",props:p,emits:["exceed","progress","success","error","delete","done"],setup:function(t,o){var c=o.slots,l=o.emit,d=o.expose,p=(0,n.shallowRef)({}),v=(0,n.computed)((function(){return t.theme===u.PICTURE})),h=(0,n.computed)((function(){return v.value&&!t.multiple})),m=(0,n.computed)((function(){var n,o;return(0,e.classes)((r(n={},f,!0),r(n,"".concat(f,"--").concat(t.theme),!0),r(n,"".concat(f,"--disabled"),t.disabled),r(n,"".concat(f,"--single-picture"),h.value),r(n,t.extCls,null!==(o=t.extCls)&&void 0!==o&&o),n))})),y=(0,n.computed)((function(){return{theme:t.theme,multiple:t.multiple,disabled:t.disabled,accept:t.accept}})),g=function(e,t){var r=(0,n.computed)((function(){var t;return"number"==typeof e.size?e.size:null===(t=null==e?void 0:e.size)||void 0===t?void 0:t.maxImgSize})),o=(0,n.computed)((function(){var t;return"number"==typeof e.size?e.size:null===(t=null==e?void 0:e.size)||void 0===t?void 0:t.maxImgSize})),u=(0,n.ref)([]);function c(e){return u.value.find((function(t){return t.uid===e.uid}))}var l=0;return(0,n.watch)((function(){return e.files}),(function(e){u.value=e.map((function(e){var t,r;return l+=1,Object.assign(Object.assign({},e),{uid:null!==(t=e.uid)&&void 0!==t?t:F(l),status:null!==(r=e.status)&&void 0!==r?r:s.SUCCESS})}))}),{immediate:!0,deep:!0}),{fileList:u,handlePreprocess:function(t){var n;l+=1,t.uid=F(l);var a={uid:t.uid,name:t.name,status:s.NEW,size:t.size,raw:t},i=t.type.startsWith("image/"),c=null;if(i){try{a.url=window.URL.createObjectURL(t)}catch(e){console.error(e)}a.isPic=!0}return e.validateName&&!(null===(n=e.validateName)||void 0===n?void 0:n.test(a.name))&&(a.status=s.FAIL,a.statusText="invalid filename",c=new Error(a.statusText)),i&&t.size>r.value*Math.pow(1024,2)&&(a.status=s.FAIL,a.statusText="invalid file size",c=new Error(a.statusText)),!i&&t.size>o.value*Math.pow(1024,2)&&(a.status=s.FAIL,a.statusText="invalid file size",c=new Error(a.statusText)),u.value.push(a),c},handleRemove:function(r){var n;return i(this,void 0,void 0,a().mark((function o(){var i,l;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i=r instanceof File?c(r):r,l=function(e){var r;t.onRemove(e,u.value),u.value.splice(u.value.indexOf(i),1),(null===(r=e.url)||void 0===r?void 0:r.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},!e.beforeRemove){o.next=9;break}return o.next=5,null===(n=e.beforeRemove)||void 0===n?void 0:n.call(e,i,u.value);case 5:!1!==o.sent&&l(i),o.next=10;break;case 9:l(i);case 10:case"end":return o.stop()}}),o)})))},handleError:function(e,t,r){return i(this,void 0,void 0,a().mark((function n(){var o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=c(t)){n.next=3;break}return n.abrupt("return");case 3:o.status="fail",o.statusText=e.message,o.response=r;case 6:case"end":return n.stop()}}),n)})))},handleSuccess:function(e,t){return i(this,void 0,void 0,a().mark((function r(){var n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=c(t)){r.next=3;break}return r.abrupt("return");case 3:n.status="success",n.response=e;case 5:case"end":return r.stop()}}),r)})))},handleProgress:function(e,t){return i(this,void 0,void 0,a().mark((function r(){var n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=c(t)){r.next=3;break}return r.abrupt("return");case 3:n.status="uploading",n.percentage=Math.round(e.percent);case 5:case"end":return r.stop()}}),r)})))}}}(t,{onRemove:function(e,t){!function(e){var t=p.value;e&&(t=r({},e.uid,p.value[e.uid])),Object.keys(t).forEach((function(e){if(t[e]instanceof XMLHttpRequest){var r=t[e];null==r||r.abort()}delete p.value[e]}))}(e),l("delete",e,t)}}),b=g.fileList,w=g.handlePreprocess,_=g.handleRemove,A=g.handleProgress,S=g.handleSuccess,E=g.handleError;function L(e){if(e.length)if(t.limit&&b.value.length+e.length>t.limit)l("exceed",e,b.value);else{var r=e;t.multiple&&1!==t.limit||(r=e.slice(0,1));var n,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}(r);try{for(o.s();!(n=o.n()).done;){var a=n.value,i=w(a);if(i)return void l("error",a,b.value,i);t.autoUpload&&O(a,r)}}catch(e){o.e(e)}finally{o.f()}}}function j(e){V(e.raw)}function O(e,r){var n;return i(this,void 0,void 0,a().mark((function o(){var i;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t.beforeUpload){o.next=2;break}return o.abrupt("return",V(e,r));case 2:return o.prev=2,o.next=5,null===(n=t.beforeUpload)||void 0===n?void 0:n.call(t,e);case 5:i=o.sent,o.next=11;break;case 8:o.prev=8,o.t0=o.catch(2),i=!1;case 11:if(!1!==i){o.next=14;break}return _(e),o.abrupt("return");case 14:V(e,r);case 15:case"end":return o.stop()}}),o,null,[[2,8]])})))}function V(e,r){var n=t.headers,o=t.header,a=t.data,i=t.formDataAttributes,u=t.method,c=t.withCredentials,s=t.name,f=t.url,d=t.sliceUrl,v=t.mergeUrl,h=t.chunkSize,m=t.customRequest,y=e.uid,g={headers:n,header:o,withCredentials:c,file:e,data:a,formDataAttributes:i,method:u,filename:s,action:f,sliceUrl:d,mergeUrl:v,chunkSize:h,onProgress:function(t){A(t,e),l("progress",t,e,b.value)},onSuccess:function(r){var n,o=r;if(null===(n=null==t?void 0:t.handleResCode)||void 0===n?void 0:n.call(t,o))S(r,e),l("success",r,e,b.value);else{var a=new Error((null==o?void 0:o.message)||"unknow error");E(a,e,r),l("error",e,b.value,a)}delete p.value[y]},onError:function(t){E(t,e),l("error",e,b.value,t),delete p.value[y]},onComplete:function(){r&&r.indexOf(e)===r.length-1&&l("done",b.value)}},w=t.sliceUpload?R:U;m&&(w=m);var _=w(g);p.value[y]=_,_ instanceof Promise&&_.then(g.onSuccess,g.onError)}return(0,n.onBeforeUnmount)((function(){b.value.forEach((function(e){var t=e.url;(null==t?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(t)}))})),d({handleRemove:_,handleRetry:j}),function(){return(0,n.createVNode)("div",{class:m.value},[!v.value&&(0,n.createVNode)(N,(0,n.mergeProps)(y.value,{onChange:L}),c),c.tip?c.tip():t.tip&&(0,n.createVNode)("div",{class:"".concat(f,"__tip")},[t.tip]),(0,n.createVNode)(x,{files:b.value,theme:t.theme,disabled:t.disabled,multiple:t.multiple,onRemove:_,onRetry:j},{innerTrigger:function(e){return v.value&&(0,n.createVNode)(N,(0,n.mergeProps)(y.value,{file:e,onChange:L,onRemove:_}),c)},file:c.file})])}}}),z=(0,e.withInstall)(P)})(),l})()));
|
@@ -0,0 +1 @@
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import type { PropType } from 'vue';
|
2
|
+
import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
|
3
|
+
declare const _default: {
|
4
|
+
theme: {
|
5
|
+
type: PropType<"button" | "picture" | "draggable">;
|
6
|
+
default: "button" | "picture" | "draggable";
|
7
|
+
validator: (val: EThemes) => boolean;
|
8
|
+
};
|
9
|
+
files: {
|
10
|
+
type: PropType<UploadFile[]>;
|
11
|
+
default: () => UploadFile[];
|
12
|
+
};
|
13
|
+
name: {
|
14
|
+
type: StringConstructor;
|
15
|
+
default: string;
|
16
|
+
};
|
17
|
+
multiple: {
|
18
|
+
type: BooleanConstructor;
|
19
|
+
default: boolean;
|
20
|
+
};
|
21
|
+
disabled: {
|
22
|
+
type: BooleanConstructor;
|
23
|
+
default: boolean;
|
24
|
+
};
|
25
|
+
autoUpload: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
accept: {
|
30
|
+
type: StringConstructor;
|
31
|
+
};
|
32
|
+
delayTime: {
|
33
|
+
type: NumberConstructor;
|
34
|
+
default: number;
|
35
|
+
};
|
36
|
+
url: {
|
37
|
+
type: StringConstructor;
|
38
|
+
required: boolean;
|
39
|
+
};
|
40
|
+
method: {
|
41
|
+
type: StringConstructor;
|
42
|
+
default: string;
|
43
|
+
};
|
44
|
+
size: {
|
45
|
+
type: PropType<number | MaxSize>;
|
46
|
+
default(): {
|
47
|
+
maxFileSize: number;
|
48
|
+
maxImgSize: number;
|
49
|
+
};
|
50
|
+
};
|
51
|
+
handleResCode: {
|
52
|
+
type: PropType<(res: APIResponse) => boolean>;
|
53
|
+
default(res: APIResponse): boolean;
|
54
|
+
};
|
55
|
+
headers: {
|
56
|
+
type: PropType<Headers>;
|
57
|
+
default: () => {};
|
58
|
+
};
|
59
|
+
header: {
|
60
|
+
type: PropType<HeaderDataAttr | HeaderDataAttr[]>;
|
61
|
+
default: () => any[];
|
62
|
+
};
|
63
|
+
tip: {
|
64
|
+
type: StringConstructor;
|
65
|
+
default: string;
|
66
|
+
};
|
67
|
+
validateName: {
|
68
|
+
type: RegExpConstructor;
|
69
|
+
};
|
70
|
+
withCredentials: {
|
71
|
+
type: BooleanConstructor;
|
72
|
+
default: boolean;
|
73
|
+
};
|
74
|
+
limit: NumberConstructor;
|
75
|
+
data: {
|
76
|
+
type: PropType<ExtraFormData | ExtraFormData[]>;
|
77
|
+
default: () => any[];
|
78
|
+
};
|
79
|
+
formDataAttributes: {
|
80
|
+
type: PropType<FormDataAttr | FormDataAttr[]>;
|
81
|
+
default: () => any[];
|
82
|
+
};
|
83
|
+
extCls: {
|
84
|
+
type: StringConstructor;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
customRequest: PropType<UploadRequestHandler>;
|
88
|
+
beforeUpload: {
|
89
|
+
type: PropType<(file: UploadRawFile) => Promise<boolean> | boolean>;
|
90
|
+
};
|
91
|
+
beforeRemove: {
|
92
|
+
type: PropType<(file: UploadFile, uploadFiles: UploadFile[]) => Promise<boolean> | boolean>;
|
93
|
+
};
|
94
|
+
sliceUpload: {
|
95
|
+
type: BooleanConstructor;
|
96
|
+
default: boolean;
|
97
|
+
};
|
98
|
+
sliceUrl: {
|
99
|
+
type: StringConstructor;
|
100
|
+
default: string;
|
101
|
+
};
|
102
|
+
mergeUrl: {
|
103
|
+
type: StringConstructor;
|
104
|
+
default: string;
|
105
|
+
};
|
106
|
+
chunkSize: {
|
107
|
+
type: NumberConstructor;
|
108
|
+
default: number;
|
109
|
+
};
|
110
|
+
};
|
111
|
+
export default _default;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { EThemes, UploadFile } from './upload.type';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
theme: {
|
4
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
5
|
+
default: "button" | "picture" | "draggable";
|
6
|
+
validator: (val: EThemes) => boolean;
|
7
|
+
};
|
8
|
+
disabled: {
|
9
|
+
type: BooleanConstructor;
|
10
|
+
default: boolean;
|
11
|
+
};
|
12
|
+
files: {
|
13
|
+
type: import("vue").PropType<UploadFile[]>;
|
14
|
+
default: () => UploadFile[];
|
15
|
+
};
|
16
|
+
multiple: {
|
17
|
+
type: BooleanConstructor;
|
18
|
+
default: boolean;
|
19
|
+
};
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "retry")[], "remove" | "retry", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
|
+
theme: {
|
22
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
23
|
+
default: "button" | "picture" | "draggable";
|
24
|
+
validator: (val: EThemes) => boolean;
|
25
|
+
};
|
26
|
+
disabled: {
|
27
|
+
type: BooleanConstructor;
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
files: {
|
31
|
+
type: import("vue").PropType<UploadFile[]>;
|
32
|
+
default: () => UploadFile[];
|
33
|
+
};
|
34
|
+
multiple: {
|
35
|
+
type: BooleanConstructor;
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
}>> & {
|
39
|
+
onRemove?: (...args: any[]) => any;
|
40
|
+
onRetry?: (...args: any[]) => any;
|
41
|
+
}, {
|
42
|
+
disabled: boolean;
|
43
|
+
theme: "button" | "picture" | "draggable";
|
44
|
+
multiple: boolean;
|
45
|
+
files: UploadFile[];
|
46
|
+
}, {}>;
|
47
|
+
export default _default;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { EThemes, UploadFile } from './upload.type';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
theme: {
|
5
|
+
type: PropType<"button" | "picture" | "draggable">;
|
6
|
+
default: "button" | "picture" | "draggable";
|
7
|
+
validator: (val: EThemes) => boolean;
|
8
|
+
};
|
9
|
+
disabled: {
|
10
|
+
type: BooleanConstructor;
|
11
|
+
default: boolean;
|
12
|
+
};
|
13
|
+
multiple: {
|
14
|
+
type: BooleanConstructor;
|
15
|
+
default: boolean;
|
16
|
+
};
|
17
|
+
accept: {
|
18
|
+
type: StringConstructor;
|
19
|
+
};
|
20
|
+
file: {
|
21
|
+
type: PropType<UploadFile>;
|
22
|
+
};
|
23
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "remove")[], "change" | "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
24
|
+
theme: {
|
25
|
+
type: PropType<"button" | "picture" | "draggable">;
|
26
|
+
default: "button" | "picture" | "draggable";
|
27
|
+
validator: (val: EThemes) => boolean;
|
28
|
+
};
|
29
|
+
disabled: {
|
30
|
+
type: BooleanConstructor;
|
31
|
+
default: boolean;
|
32
|
+
};
|
33
|
+
multiple: {
|
34
|
+
type: BooleanConstructor;
|
35
|
+
default: boolean;
|
36
|
+
};
|
37
|
+
accept: {
|
38
|
+
type: StringConstructor;
|
39
|
+
};
|
40
|
+
file: {
|
41
|
+
type: PropType<UploadFile>;
|
42
|
+
};
|
43
|
+
}>> & {
|
44
|
+
onChange?: (...args: any[]) => any;
|
45
|
+
onRemove?: (...args: any[]) => any;
|
46
|
+
}, {
|
47
|
+
disabled: boolean;
|
48
|
+
theme: "button" | "picture" | "draggable";
|
49
|
+
multiple: boolean;
|
50
|
+
}, {}>;
|
51
|
+
export default _default;
|