@web-utils/component 2.7.30 → 2.7.32
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/dist/chunks/{config.7dec2bf2.js → config.75161c38.mjs} +29 -29
- package/dist/chunks/confirmable-mixin.851d6299.mjs +137 -0
- package/dist/chunks/dataformat.3388d88a.mjs +237 -0
- package/dist/chunks/detail.37726835.mjs +55 -0
- package/dist/chunks/dic.09a81bc8.mjs +215 -0
- package/dist/chunks/{event.fc358074.js → event.6fc3df3a.mjs} +54 -23
- package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.e7f93f4c.mjs} +4 -4
- package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a2ed6693.mjs} +44 -17
- package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.mjs} +1 -1
- package/dist/chunks/{init.e0133910.js → init.3407e589.mjs} +41 -21
- package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.mjs} +4 -4
- package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.mjs} +3 -2
- package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.mjs} +12 -6
- package/dist/chunks/{permission.07c49abf.js → permission.9c766972.mjs} +6 -1
- package/dist/chunks/slot.55598d0f.mjs +35 -0
- package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.mjs} +29 -11
- package/dist/chunks/util.b0d0b0ad.mjs +478 -0
- package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.mjs} +89 -24
- package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.mjs} +9 -5
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.mjs +59 -0
- package/dist/components/address-input/{index.js → index.mjs} +30 -17
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/affix/index.mjs +152 -0
- package/dist/components/affix/style.css +5 -1
- package/dist/components/aside-menu/{index.js → index.mjs} +14 -8
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/avatar/{index.js → index.mjs} +33 -15
- package/dist/components/avatar/style.css +57 -1
- package/dist/components/awesome-button/{index.js → index.mjs} +45 -31
- package/dist/components/base.css +410 -1
- package/dist/components/capsule-tab/{index.js → index.mjs} +13 -7
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/card/{index.js → index.mjs} +33 -20
- package/dist/components/card/style.css +90 -1
- package/dist/components/carousel/{index.js → index.mjs} +18 -12
- package/dist/components/carousel/style.css +41 -1
- package/dist/components/chat/{index.js → index.mjs} +245 -139
- package/dist/components/chat/style.css +279 -1
- package/dist/components/chunk-file-uploader/index.mjs +153 -0
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/{index.js → index.mjs} +15 -9
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.mjs +101 -0
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/{index.js → index.mjs} +150 -73
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/{index.js → index.mjs} +15 -9
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/{index.js → index.mjs} +16 -10
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/{index.js → index.mjs} +18 -10
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/{index.js → index.mjs} +75 -47
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/{index.js → index.mjs} +62 -39
- package/dist/components/column/{index.js → index.mjs} +54 -29
- package/dist/components/column-default/{index.js → index.mjs} +47 -33
- package/dist/components/column-dynamic/{index.js → index.mjs} +26 -19
- package/dist/components/column-menu/{index.js → index.mjs} +98 -86
- package/dist/components/column-slot/{index.js → index.mjs} +135 -75
- package/dist/components/comment/{index.js → index.mjs} +28 -15
- package/dist/components/comment/style.css +92 -1
- package/dist/components/confirm-button/{index.js → index.mjs} +7 -5
- package/dist/components/confirmable/{index.js → index.mjs} +5 -4
- package/dist/components/context-menu/{index.js → index.mjs} +54 -32
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/count-up/index.mjs +148 -0
- package/dist/components/custom-scrollbar/{index.js → index.mjs} +45 -21
- package/dist/components/data-box/{index.js → index.mjs} +22 -16
- package/dist/components/data-box/style.css +58 -1
- package/dist/components/data-card/{index.js → index.mjs} +21 -15
- package/dist/components/data-card/style.css +46 -1
- package/dist/components/data-cardtext/{index.js → index.mjs} +19 -13
- package/dist/components/data-cardtext/style.css +36 -1
- package/dist/components/data-display/{index.js → index.mjs} +22 -16
- package/dist/components/data-display/style.css +37 -1
- package/dist/components/data-icons/{index.js → index.mjs} +23 -17
- package/dist/components/data-icons/style.css +53 -1
- package/dist/components/data-imgtext/{index.js → index.mjs} +26 -20
- package/dist/components/data-imgtext/style.css +70 -1
- package/dist/components/data-operatext/{index.js → index.mjs} +20 -14
- package/dist/components/data-operatext/style.css +81 -1
- package/dist/components/data-panel/{index.js → index.mjs} +21 -15
- package/dist/components/data-panel/style.css +37 -1
- package/dist/components/data-pay/{index.js → index.mjs} +29 -23
- package/dist/components/data-pay/style.css +102 -1
- package/dist/components/data-price/{index.js → index.mjs} +19 -13
- package/dist/components/data-price/style.css +81 -1
- package/dist/components/data-progress/{index.js → index.mjs} +26 -20
- package/dist/components/data-progress/style.css +30 -1
- package/dist/components/data-rotate/{index.js → index.mjs} +21 -15
- package/dist/components/data-rotate/style.css +50 -1
- package/dist/components/data-table-picker/{index.js → index.mjs} +47 -28
- package/dist/components/data-tabs/{index.js → index.mjs} +22 -16
- package/dist/components/data-tabs/style.css +70 -1
- package/dist/components/dialog-column/{index.js → index.mjs} +46 -33
- package/dist/components/dialog-excel/{index.js → index.mjs} +102 -53
- package/dist/components/dialog-filter/{index.js → index.mjs} +64 -51
- package/dist/components/dialog-form/{index.js → index.mjs} +54 -34
- package/dist/components/dialog-form/style.css +10 -0
- package/dist/components/dynamic-table/{index.js → index.mjs} +66 -42
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/{index.js → index.mjs} +127 -46
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/easy-popup/{index.js → index.mjs} +32 -14
- package/dist/components/easy-popup/style.css +18 -1
- package/dist/components/editable-progress/{index.js → index.mjs} +64 -31
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/{index.js → index.mjs} +513 -287
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/{index.js → index.mjs} +25 -12
- package/dist/components/egd-collapse-item/{index.js → index.mjs} +41 -25
- package/dist/components/element-dialog/{index.js → index.mjs} +101 -48
- package/dist/components/element-dialog/style.css +88 -1
- package/dist/components/empty-view/{index.js → index.mjs} +13 -7
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/{index.js → index.mjs} +12 -6
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.mjs +84 -0
- package/dist/components/flex-item/index.mjs +116 -0
- package/dist/components/flex-row/index.mjs +84 -0
- package/dist/components/flex-scroller/{index.js → index.mjs} +13 -7
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/flow/{index.js → index.mjs} +116 -64
- package/dist/components/flow/style.css +44 -1
- package/dist/components/flow-node/{index.js → index.mjs} +29 -21
- package/dist/components/flow-viewer/index.mjs +207 -0
- package/dist/components/flow-viewer/style.css +19 -1
- package/dist/components/form-button/{index.js → index.mjs} +12 -8
- package/dist/components/form-cascader/{index.js → index.mjs} +55 -40
- package/dist/components/form-checkbox-group/{index.js → index.mjs} +90 -60
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/{index.js → index.mjs} +113 -44
- package/dist/components/form-group/{index.js → index.mjs} +23 -17
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/{index.js → index.mjs} +41 -30
- package/dist/components/form-input/{index.js → index.mjs} +42 -31
- package/dist/components/form-input-email/{index.js → index.mjs} +47 -30
- package/dist/components/form-input-id-card/{index.js → index.mjs} +40 -29
- package/dist/components/form-input-number/{index.js → index.mjs} +50 -38
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/{index.js → index.mjs} +40 -29
- package/dist/components/form-input-time/{index.js → index.mjs} +40 -29
- package/dist/components/form-item/index.mjs +199 -0
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/{index.js → index.mjs} +9 -8
- package/dist/components/form-item-group/{index.js → index.mjs} +69 -43
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/{index.js → index.mjs} +77 -53
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/{index.js → index.mjs} +71 -51
- package/dist/components/form-switch/{index.js → index.mjs} +41 -30
- package/dist/components/form-temp/{index.js → index.mjs} +49 -29
- package/dist/components/form-textarea/{index.js → index.mjs} +45 -34
- package/dist/components/form-view/{index.js → index.mjs} +152 -81
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/fy-array/{index.js → index.mjs} +51 -43
- package/dist/components/fy-array/style.css +18 -1
- package/dist/components/fy-article/{index.js → index.mjs} +24 -13
- package/dist/components/fy-article/style.css +40 -1
- package/dist/components/fy-cascader/{index.js → index.mjs} +39 -29
- package/dist/components/fy-checkbox/{index.js → index.mjs} +38 -27
- package/dist/components/fy-checkbox/style.css +15 -1
- package/dist/components/fy-code/{index.js → index.mjs} +19 -12
- package/dist/components/fy-curd/{index.js → index.mjs} +290 -152
- package/dist/components/fy-curd/style.css +239 -1
- package/dist/components/fy-date/{index.js → index.mjs} +24 -18
- package/dist/components/fy-date/style.css +21 -1
- package/dist/components/fy-dialog-form/{index.js → index.mjs} +127 -54
- package/dist/components/fy-draggable/{index.js → index.mjs} +196 -73
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/{index.js → index.mjs} +116 -73
- package/dist/components/fy-dynamic/style.css +35 -1
- package/dist/components/fy-empty/{index.js → index.mjs} +15 -9
- package/dist/components/fy-empty/style.css +24 -1
- package/dist/components/fy-form/{index.js → index.mjs} +399 -221
- package/dist/components/fy-form/style.css +79 -1
- package/dist/components/fy-form-design/{index.js → index.mjs} +2267 -1630
- package/dist/components/fy-form-design/style.css +578 -1
- package/dist/components/fy-form-menu/{index.js → index.mjs} +43 -35
- package/dist/components/fy-input/{index.js → index.mjs} +46 -35
- package/dist/components/fy-input-color/{index.js → index.mjs} +40 -33
- package/dist/components/fy-input-icon/{index.js → index.mjs} +58 -37
- package/dist/components/fy-input-icon/style.css +39 -1
- package/dist/components/fy-input-map/{index.js → index.mjs} +113 -68
- package/dist/components/fy-input-map/style.css +50 -1
- package/dist/components/fy-input-number/{index.js → index.mjs} +29 -24
- package/dist/components/fy-input-table/{index.js → index.mjs} +82 -48
- package/dist/components/fy-input-table/style.css +10 -1
- package/dist/components/fy-input-tree/{index.js → index.mjs} +104 -60
- package/dist/components/fy-input-tree/style.css +25 -1
- package/dist/components/fy-progress/{index.js → index.mjs} +15 -10
- package/dist/components/fy-radio/{index.js → index.mjs} +20 -14
- package/dist/components/fy-radio/style.css +12 -1
- package/dist/components/fy-rate/{index.js → index.mjs} +21 -15
- package/dist/components/fy-rate/style.css +9 -1
- package/dist/components/fy-select/{index.js → index.mjs} +73 -55
- package/dist/components/fy-select/style.css +25 -1
- package/dist/components/fy-slider/{index.js → index.mjs} +22 -17
- package/dist/components/fy-switch/{index.js → index.mjs} +17 -12
- package/dist/components/fy-tabs/{index.js → index.mjs} +20 -12
- package/dist/components/fy-tabs/style.css +6 -0
- package/dist/components/fy-time/{index.js → index.mjs} +29 -18
- package/dist/components/fy-title/{index.js → index.mjs} +16 -8
- package/dist/components/fy-title/style.css +11 -1
- package/dist/components/fy-tree/{index.js → index.mjs} +135 -72
- package/dist/components/fy-tree/style.css +46 -1
- package/dist/components/fy-u-editor/{index.js → index.mjs} +172 -67
- package/dist/components/fy-u-editor/style.css +15 -1
- package/dist/components/fy-upload/{index.js → index.mjs} +317 -148
- package/dist/components/fy-upload/style.css +60 -1
- package/dist/components/guide-steps/{index.js → index.mjs} +31 -17
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/header-menu/{index.js → index.mjs} +86 -66
- package/dist/components/header-search/{index.js → index.mjs} +92 -60
- package/dist/components/highlight-j-s/{index.js → index.mjs} +28 -15
- package/dist/components/highlight-j-s/style.css +21 -1
- package/dist/components/icon-card/{index.js → index.mjs} +13 -7
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/icon-temp/{index.js → index.mjs} +12 -6
- package/dist/components/icon-temp/style.css +21 -1
- package/dist/components/iframe-window/{index.js → index.mjs} +20 -14
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-cropper/{index.js → index.mjs} +69 -51
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/{index.js → index.mjs} +77 -46
- package/dist/components/image-preview/style.css +72 -1
- package/dist/components/image-viewer/{index.js → index.mjs} +40 -22
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/{index.js → index.mjs} +122 -56
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/{index.js → index.mjs} +32 -20
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/j-s-x-component/{index.js → index.mjs} +0 -0
- package/dist/components/keep-view-alive/{index.js → index.mjs} +68 -21
- package/dist/components/keyboard/index.mjs +469 -0
- package/dist/components/keyboard/style.css +547 -1
- package/dist/components/license/index.mjs +180 -0
- package/dist/components/loading-view/{index.js → index.mjs} +12 -6
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/login/{index.js → index.mjs} +91 -62
- package/dist/components/login/style.css +25 -1
- package/dist/components/name-avatar/{index.js → index.mjs} +32 -10
- package/dist/components/name-avatar/style.css +35 -1
- package/dist/components/nav-bar/{index.js → index.mjs} +21 -11
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/{index.js → index.mjs} +16 -8
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/notice/{index.js → index.mjs} +40 -27
- package/dist/components/notice/style.css +54 -1
- package/dist/components/page/{index.js → index.mjs} +13 -7
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/{index.js → index.mjs} +15 -9
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/{index.js → index.mjs} +62 -37
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/{index.js → index.mjs} +53 -34
- package/dist/components/page-skeleton/{index.js → index.mjs} +15 -9
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/{index.js → index.mjs} +15 -9
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/{index.js → index.mjs} +187 -106
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/{index.js → index.mjs} +164 -80
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.mjs +175 -0
- package/dist/components/process-designer/{index.js → index.mjs} +961 -772
- package/dist/components/process-designer/style.css +1186 -1
- package/dist/components/properties-panel/{index.js → index.mjs} +1488 -1044
- package/dist/components/properties-panel/style.css +122 -1
- package/dist/components/queue/{index.js → index.mjs} +24 -12
- package/dist/components/record-video/{index.js → index.mjs} +53 -27
- package/dist/components/record-video/style.css +53 -1
- package/dist/components/resize-observer/index.mjs +96 -0
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search/{index.js → index.mjs} +41 -22
- package/dist/components/search/style.css +57 -1
- package/dist/components/search-popover/{index.js → index.mjs} +153 -91
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign/index.mjs +236 -0
- package/dist/components/sign/style.css +12 -1
- package/dist/components/sign-panel/{index.js → index.mjs} +96 -46
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/skeleton/{index.js → index.mjs} +22 -12
- package/dist/components/skeleton/style.css +61 -1
- package/dist/components/split-pane/{index.js → index.mjs} +125 -60
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/{index.js → index.mjs} +8 -5
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/{index.js → index.mjs} +22 -15
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.mjs +247 -0
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/{index.js → index.mjs} +34 -16
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/{index.js → index.mjs} +14 -9
- package/dist/components/table-column/{index.js → index.mjs} +26 -17
- package/dist/components/table-page/{index.js → index.mjs} +42 -23
- package/dist/components/table-view/{index.js → index.mjs} +162 -87
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/{index.js → index.mjs} +41 -22
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/text-ellipsis/{index.js → index.mjs} +48 -26
- package/dist/components/text-ellipsis/style.css +9 -1
- package/dist/components/tinymce-editor/{index.js → index.mjs} +80 -60
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/{index.js → index.mjs} +77 -41
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/{index.js → index.mjs} +46 -25
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/{index.js → index.mjs} +46 -35
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/{index.js → index.mjs} +15 -8
- package/dist/components/verify/{index.js → index.mjs} +15 -8
- package/dist/components/verify/style.css +15 -1
- package/dist/components/vue-tags-input/{index.js → index.mjs} +233 -113
- package/dist/components/vue-tags-input/style.css +688 -1
- package/dist/components/watermark/{index.js → index.mjs} +33 -14
- package/dist/components/watermark/style.css +11 -1
- package/dist/index.css +2434 -1750
- package/dist/{index.es.js → index.mjs} +15944 -9317
- package/package.json +4 -4
- package/web-types.json +1 -1
- package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
- package/dist/chunks/dataformat.9cc4428a.js +0 -158
- package/dist/chunks/detail.544c52b0.js +0 -29
- package/dist/chunks/dic.9de2fe5a.js +0 -135
- package/dist/chunks/slot.a7387ecc.js +0 -27
- package/dist/chunks/util.89913643.js +0 -261
- package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
- package/dist/components/affix/index.js +0 -102
- package/dist/components/chunk-file-uploader/index.js +0 -119
- package/dist/components/chunk-file-uploader-drop/index.js +0 -83
- package/dist/components/count-up/index.js +0 -131
- package/dist/components/flex-column/index.js +0 -62
- package/dist/components/flex-item/index.js +0 -81
- package/dist/components/flex-row/index.js +0 -62
- package/dist/components/flow-viewer/index.js +0 -162
- package/dist/components/form-item/index.js +0 -147
- package/dist/components/fy-dialog-form/style.css +0 -1
- package/dist/components/keyboard/index.js +0 -384
- package/dist/components/license/index.js +0 -134
- package/dist/components/photo-swipe/index.js +0 -129
- package/dist/components/resize-observer/index.js +0 -62
- package/dist/components/sign/index.js +0 -133
- package/dist/components/swiper/index.js +0 -178
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { isBlank, getObjType } from "@web-utils/core";
|
|
2
|
-
const KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
|
|
3
|
-
rowKey: "id",
|
|
4
|
-
rowParentKey: "parentId",
|
|
5
|
-
nodeKey: "id",
|
|
6
|
-
label: "label",
|
|
7
|
-
value: "value",
|
|
8
|
-
desc: "desc",
|
|
9
|
-
groups: "groups",
|
|
10
|
-
title: "title",
|
|
11
|
-
leaf: "leaf",
|
|
12
|
-
children: "children",
|
|
13
|
-
hasChildren: "hasChildren",
|
|
14
|
-
labelText: "名称",
|
|
15
|
-
disabled: "disabled"
|
|
16
|
-
}, DIC_HTTP_PROPS = {
|
|
17
|
-
name: "name",
|
|
18
|
-
url: "url",
|
|
19
|
-
fileName: "file",
|
|
20
|
-
res: ""
|
|
21
|
-
}, DATE_LIST = [
|
|
22
|
-
"dates",
|
|
23
|
-
"date",
|
|
24
|
-
"datetime",
|
|
25
|
-
"datetimerange",
|
|
26
|
-
"daterange",
|
|
27
|
-
"time",
|
|
28
|
-
"timerange",
|
|
29
|
-
"week",
|
|
30
|
-
"month",
|
|
31
|
-
"monthrange",
|
|
32
|
-
"year"
|
|
33
|
-
], INPUT_LIST = ["tree", "number", "icon", "color", "table", "map"], ARRAY_LIST = ["img", "array", "url"], MULTIPLE_LIST = ["cascader", "tree", "select"], RANGE_LIST = ["slider"], ARRAY_VALUE_LIST = ARRAY_LIST.concat(["upload", "dynamic", "map", "checkbox", "cascader", "dynamic", "timerange", "monthrange", "daterange", "datetimerange", "dates"]), SELECT_LIST = DATE_LIST.concat(["select", "checkbox", "radio", "cascader", "tree", "color", "icon", "table", "map"]), DIC_SHOW_SPLIT = " | ", DIC_SPLIT = ",", typeList = {
|
|
34
|
-
img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
|
|
35
|
-
video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
|
|
36
|
-
audio: /\.(mp3|wav|MP3|WAV)/
|
|
37
|
-
}, isMediaType = (url, type2) => {
|
|
38
|
-
if (!isBlank(url))
|
|
39
|
-
return typeList.audio.test(url) || type2 === "audio" ? "audio" : typeList.video.test(url) || type2 === "video" ? "video" : typeList.img.test(url) || type2 === "img" ? "img" : !1;
|
|
40
|
-
};
|
|
41
|
-
function getFixed(val = 0, len = 2) {
|
|
42
|
-
return Number(val.toFixed(len));
|
|
43
|
-
}
|
|
44
|
-
function getAsVal(obj2, bind2 = "") {
|
|
45
|
-
let result2 = deepClone(obj2);
|
|
46
|
-
return isBlank(bind2) || bind2.split(".").forEach((ele) => {
|
|
47
|
-
result2 = isBlank(result2[ele]) ? "" : result2[ele];
|
|
48
|
-
}), result2;
|
|
49
|
-
}
|
|
50
|
-
function setAsVal(obj, bind = "", value) {
|
|
51
|
-
let result;
|
|
52
|
-
const type = getObjType(value);
|
|
53
|
-
return isBlank(value) ? type === "array" ? result = `obj.${bind}=[]` : type === "object" ? result = `obj.${bind}={}` : ["number", "boolean"].includes(type) ? result = `obj.${bind}=undefined` : result = `obj.${bind}=''` : type === "string" ? result = `obj.${bind}='${value}'` : result = `obj.${bind}=${value}`, eval(result), obj;
|
|
54
|
-
}
|
|
55
|
-
function downFile(url, saveName) {
|
|
56
|
-
typeof url == "object" && url instanceof Blob && (url = URL.createObjectURL(url));
|
|
57
|
-
const aLink = document.createElement("a");
|
|
58
|
-
aLink.href = url, aLink.download = saveName || "";
|
|
59
|
-
let event;
|
|
60
|
-
window.MouseEvent ? event = new MouseEvent("click") : (event = document.createEvent("MouseEvents"), event.initMouseEvent(
|
|
61
|
-
"click",
|
|
62
|
-
!0,
|
|
63
|
-
!1,
|
|
64
|
-
window,
|
|
65
|
-
0,
|
|
66
|
-
0,
|
|
67
|
-
0,
|
|
68
|
-
0,
|
|
69
|
-
0,
|
|
70
|
-
!1,
|
|
71
|
-
!1,
|
|
72
|
-
!1,
|
|
73
|
-
!1,
|
|
74
|
-
0,
|
|
75
|
-
null
|
|
76
|
-
)), aLink.dispatchEvent(event);
|
|
77
|
-
}
|
|
78
|
-
function strCorNum(list) {
|
|
79
|
-
return list.forEach((ele, index) => {
|
|
80
|
-
list[index] = Number(ele);
|
|
81
|
-
}), list;
|
|
82
|
-
}
|
|
83
|
-
function extend() {
|
|
84
|
-
let target = arguments[0] || {}, deep = !1;
|
|
85
|
-
const arr = Array.prototype.slice.call(arguments);
|
|
86
|
-
let i = 1, options, src, key, copy, isArray = !1;
|
|
87
|
-
for (typeof target == "boolean" && (deep = target, i++, target = arguments[1]); i < arr.length; i++)
|
|
88
|
-
if ((options = arr[i]) != null)
|
|
89
|
-
for (key in options)
|
|
90
|
-
copy = options[key], src = target[key], deep && (toString.call(copy) === "[object Object]" || (isArray = toString.call(copy) === "[object Array]")) ? (isArray ? src = toString.call(src) === "[object Array]" ? src : [] : src = toString.call(src) === "[object Object]" ? src : {}, target[key] = extend(deep, src, copy)) : copy !== void 0 && copy !== src && (target[key] = copy);
|
|
91
|
-
return target;
|
|
92
|
-
}
|
|
93
|
-
function createObj(obj2, bind2) {
|
|
94
|
-
const list = bind2.split("."), first = list.splice(0, 1)[0], deep = {};
|
|
95
|
-
if (deep[first] = {}, list.length >= 2) {
|
|
96
|
-
const start = "{", end = "}";
|
|
97
|
-
let result2 = "";
|
|
98
|
-
list.forEach((ele) => {
|
|
99
|
-
result2 = `${result2}${start}"${ele}":`;
|
|
100
|
-
}), result2 = `${result2}""`;
|
|
101
|
-
for (let i = 0; i < list.length; i++)
|
|
102
|
-
result2 = `${result2}${end}`;
|
|
103
|
-
result2 = JSON.parse(result2), deep[first] = result2;
|
|
104
|
-
}
|
|
105
|
-
return obj2 = extend(!0, obj2, deep), obj2;
|
|
106
|
-
}
|
|
107
|
-
function dataURLtoFile(dataurl, filename) {
|
|
108
|
-
const arr = dataurl.split(","), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]);
|
|
109
|
-
let n = bstr.length;
|
|
110
|
-
const u8arr = new Uint8Array(n);
|
|
111
|
-
for (; n--; )
|
|
112
|
-
u8arr[n] = bstr.charCodeAt(n);
|
|
113
|
-
return new File([u8arr], filename, {
|
|
114
|
-
type: mime
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function findObject(list, value2, key = "prop") {
|
|
118
|
-
let result2 = -1;
|
|
119
|
-
const type2 = (() => {
|
|
120
|
-
let result3;
|
|
121
|
-
return list.forEach((ele) => {
|
|
122
|
-
ele.column ? result3 = "group" : ele.children && (result3 = "tree");
|
|
123
|
-
}), result3;
|
|
124
|
-
})();
|
|
125
|
-
return type2 === "group" ? list.forEach((ele) => {
|
|
126
|
-
const val = findArray(ele.column, value2, key, !0);
|
|
127
|
-
val !== -1 && (result2 = val);
|
|
128
|
-
}) : type2 === "tree" ? result2 = findLabelNode(list, value2, { value: key }, !0) : result2 = findArray(list, value2, key, !0), result2;
|
|
129
|
-
}
|
|
130
|
-
function randomId() {
|
|
131
|
-
const $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", maxPos = $chars.length;
|
|
132
|
-
let id = "";
|
|
133
|
-
for (let i = 0; i < 16; i++)
|
|
134
|
-
id += $chars.charAt(Math.floor(Math.random() * maxPos));
|
|
135
|
-
return id;
|
|
136
|
-
}
|
|
137
|
-
const deepClone = (data) => {
|
|
138
|
-
const type2 = getObjType(data);
|
|
139
|
-
let obj2;
|
|
140
|
-
if (type2 === "array")
|
|
141
|
-
obj2 = [];
|
|
142
|
-
else if (type2 === "object")
|
|
143
|
-
obj2 = {};
|
|
144
|
-
else
|
|
145
|
-
return data;
|
|
146
|
-
if (type2 === "array")
|
|
147
|
-
for (var i = 0, len = data.length; i < len; i++)
|
|
148
|
-
data[i] = (() => (data[i] === 0, data[i]))(), data[i] && delete data[i].$parent, obj2.push(deepClone(data[i]));
|
|
149
|
-
else if (type2 === "object")
|
|
150
|
-
for (const key in data)
|
|
151
|
-
data && delete data.$parent, obj2[key] = deepClone(data[key]);
|
|
152
|
-
return obj2;
|
|
153
|
-
}, setPx = (val, defval = "") => (val || (val = defval), val ? (val = `${val}`, val.indexOf("%") === -1 && val.indexOf("px") === -1 && (val = `${val}px`), val) : ""), detailDataType = (value2, type2) => isBlank(value2) ? value2 : type2 === "number" ? Number(value2) : type2 === "string" ? `${value2}` : value2, detailDic = (list = [], props = {}, type2) => {
|
|
154
|
-
const valueKey = props.value || DIC_PROPS.value, childrenKey = props.children || DIC_PROPS.children;
|
|
155
|
-
return list.forEach((ele) => {
|
|
156
|
-
ele[valueKey] = detailDataType(ele[valueKey], type2), ele[childrenKey] && detailDic(ele[childrenKey], props, type2);
|
|
157
|
-
}), list;
|
|
158
|
-
}, findByValue = (dic, value2, props) => {
|
|
159
|
-
if (isBlank(dic))
|
|
160
|
-
return value2;
|
|
161
|
-
const isArray = value2 instanceof Array, list = isArray ? value2 : [value2];
|
|
162
|
-
props = props || DIC_PROPS;
|
|
163
|
-
const result2 = [];
|
|
164
|
-
for (let i = 0; i < list.length; i++)
|
|
165
|
-
result2.push(findLabelNode(dic, list[i], props) || list[i]);
|
|
166
|
-
return isArray ? result2.join(DIC_SHOW_SPLIT) : result2.join();
|
|
167
|
-
}, filterParams = (form, list = ["", "$"], deep = !0) => {
|
|
168
|
-
const data = deep ? deepClone(form) : form;
|
|
169
|
-
for (const o in data)
|
|
170
|
-
list.includes("") && isBlank(data[o]) && delete data[o], list.includes("$") && o.indexOf("$") !== -1 && delete data[o];
|
|
171
|
-
return data;
|
|
172
|
-
}, detailDicGroup = (dic = [], props = {}) => {
|
|
173
|
-
let list = deepClone(dic);
|
|
174
|
-
const groupsKey = props[DIC_PROPS.groups] || DIC_PROPS.groups;
|
|
175
|
-
return dic.forEach((ele) => {
|
|
176
|
-
ele[groupsKey] && (list = list.concat(ele[groupsKey]));
|
|
177
|
-
}), list;
|
|
178
|
-
}, findLabelNode = (dic, value2, props, obj2) => {
|
|
179
|
-
let result2;
|
|
180
|
-
obj2 || (dic = detailDicGroup(dic, props));
|
|
181
|
-
const rev = (dic1) => {
|
|
182
|
-
const labelKey = props.label || DIC_PROPS.label, valueKey = props.value || DIC_PROPS.value, childrenKey = props.children || DIC_PROPS.children;
|
|
183
|
-
for (let i = 0; i < dic1.length; i++) {
|
|
184
|
-
const ele = dic1[i], children = ele[childrenKey] || [];
|
|
185
|
-
ele[valueKey] === value2 ? result2 = obj2 ? ele : ele[labelKey] : rev(children);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
return rev(dic), result2;
|
|
189
|
-
}, getDeepData = (res) => (Array.isArray(res) ? res : res.data) || [], getObjValue = (data, params = "", type2) => {
|
|
190
|
-
const list = params.split(".");
|
|
191
|
-
let result2 = data;
|
|
192
|
-
return list[0] === "" && type2 !== "object" ? getDeepData(data) : (list[0] !== "" && list.forEach((ele) => {
|
|
193
|
-
result2 = result2[ele];
|
|
194
|
-
}), result2);
|
|
195
|
-
}, findArray = (dic, value2, valueKey, obj2) => {
|
|
196
|
-
valueKey = valueKey || DIC_PROPS.value;
|
|
197
|
-
for (let i = 0; i < dic.length; i++)
|
|
198
|
-
if (dic[i][valueKey] === value2)
|
|
199
|
-
return obj2 ? dic[i] : i;
|
|
200
|
-
return -1;
|
|
201
|
-
}, getPasswordChar = (result2 = "", char) => {
|
|
202
|
-
const len = result2.toString().length;
|
|
203
|
-
result2 = "";
|
|
204
|
-
for (let i = 0; i < len; i++)
|
|
205
|
-
result2 = result2 + char;
|
|
206
|
-
return result2;
|
|
207
|
-
}, arraySort = (list = [], prop, callback) => list.filter((ele) => !isBlank(ele[prop])).sort((a, b) => callback(a, b)).concat(list.filter((ele) => isBlank(ele[prop]))), clearVal = (obj2, propList, list = []) => obj2 ? (propList.forEach((ele) => {
|
|
208
|
-
if (!list.includes(ele)) {
|
|
209
|
-
if (ele.includes("$"))
|
|
210
|
-
delete obj2[ele];
|
|
211
|
-
else if (!isBlank(obj2[ele])) {
|
|
212
|
-
const type2 = getObjType(obj2[ele]);
|
|
213
|
-
type2 === "array" ? obj2[ele] = [] : type2 === "object" ? obj2[ele] = {} : ["number", "boolean"].includes(type2) ? obj2[ele] = void 0 : obj2[ele] = "";
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}), obj2) : {}, optVal = (val, def) => typeof val == "boolean" ? val : isBlank(val) ? def : val;
|
|
217
|
-
function uploadFun(column = {}, safe) {
|
|
218
|
-
safe = safe || this;
|
|
219
|
-
const list = ["uploadPreview", "uploadBefore", "uploadAfter", "uploadDelete", "uploadError", "uploadExceed"], result2 = {};
|
|
220
|
-
return column.type === "upload" ? list.forEach((ele) => {
|
|
221
|
-
column[ele] || (result2[ele] = safe[ele]);
|
|
222
|
-
}) : list.forEach((ele) => {
|
|
223
|
-
result2[ele] = safe[ele];
|
|
224
|
-
}), result2;
|
|
225
|
-
}
|
|
226
|
-
export {
|
|
227
|
-
ARRAY_VALUE_LIST as A,
|
|
228
|
-
downFile as B,
|
|
229
|
-
DIC_PROPS as D,
|
|
230
|
-
INPUT_LIST as I,
|
|
231
|
-
KEY_COMPONENT_NAME as K,
|
|
232
|
-
MULTIPLE_LIST as M,
|
|
233
|
-
RANGE_LIST as R,
|
|
234
|
-
SELECT_LIST as S,
|
|
235
|
-
arraySort as a,
|
|
236
|
-
DIC_SHOW_SPLIT as b,
|
|
237
|
-
DIC_SPLIT as c,
|
|
238
|
-
deepClone as d,
|
|
239
|
-
strCorNum as e,
|
|
240
|
-
ARRAY_LIST as f,
|
|
241
|
-
getAsVal as g,
|
|
242
|
-
getPasswordChar as h,
|
|
243
|
-
isMediaType as i,
|
|
244
|
-
DATE_LIST as j,
|
|
245
|
-
findByValue as k,
|
|
246
|
-
detailDic as l,
|
|
247
|
-
getObjValue as m,
|
|
248
|
-
findObject as n,
|
|
249
|
-
optVal as o,
|
|
250
|
-
detailDataType as p,
|
|
251
|
-
createObj as q,
|
|
252
|
-
randomId as r,
|
|
253
|
-
setPx as s,
|
|
254
|
-
DIC_HTTP_PROPS as t,
|
|
255
|
-
uploadFun as u,
|
|
256
|
-
filterParams as v,
|
|
257
|
-
getFixed as w,
|
|
258
|
-
setAsVal as x,
|
|
259
|
-
clearVal as y,
|
|
260
|
-
dataURLtoFile as z
|
|
261
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
2
|
-
var options = typeof scriptExports == "function" ? scriptExports.options : scriptExports;
|
|
3
|
-
render && (options.render = render, options.staticRenderFns = staticRenderFns, options._compiled = !0), functionalTemplate && (options.functional = !0), scopeId && (options._scopeId = "data-v-" + scopeId);
|
|
4
|
-
var hook;
|
|
5
|
-
if (moduleIdentifier ? (hook = function(context) {
|
|
6
|
-
context = context || // cached call
|
|
7
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
8
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !context && typeof __VUE_SSR_CONTEXT__ != "undefined" && (context = __VUE_SSR_CONTEXT__), injectStyles && injectStyles.call(this, context), context && context._registeredComponents && context._registeredComponents.add(moduleIdentifier);
|
|
9
|
-
}, options._ssrRegister = hook) : injectStyles && (hook = shadowMode ? function() {
|
|
10
|
-
injectStyles.call(
|
|
11
|
-
this,
|
|
12
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
13
|
-
);
|
|
14
|
-
} : injectStyles), hook)
|
|
15
|
-
if (options.functional) {
|
|
16
|
-
options._injectStyles = hook;
|
|
17
|
-
var originalRender = options.render;
|
|
18
|
-
options.render = function(h, context) {
|
|
19
|
-
return hook.call(context), originalRender(h, context);
|
|
20
|
-
};
|
|
21
|
-
} else {
|
|
22
|
-
var existing = options.beforeCreate;
|
|
23
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
exports: scriptExports,
|
|
27
|
-
options
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
normalizeComponent as n
|
|
32
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
|
|
2
|
-
var render = function() {
|
|
3
|
-
var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
|
|
4
|
-
return _c("div", [_c("div", {
|
|
5
|
-
ref: "point",
|
|
6
|
-
class: {
|
|
7
|
-
affix: _vm.affix
|
|
8
|
-
},
|
|
9
|
-
style: _vm.styles
|
|
10
|
-
}, [_vm._t("default")], 2), _c("div", {
|
|
11
|
-
directives: [{
|
|
12
|
-
name: "show",
|
|
13
|
-
rawName: "v-show",
|
|
14
|
-
value: _vm.slot,
|
|
15
|
-
expression: "slot"
|
|
16
|
-
}],
|
|
17
|
-
style: _vm.slotStyle
|
|
18
|
-
})]);
|
|
19
|
-
}, staticRenderFns = [];
|
|
20
|
-
const __vue2_script = {
|
|
21
|
-
name: "Affix",
|
|
22
|
-
props: {
|
|
23
|
-
target: String,
|
|
24
|
-
offsetTop: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0
|
|
27
|
-
},
|
|
28
|
-
offsetBottom: {
|
|
29
|
-
type: Number
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
container: null,
|
|
35
|
-
affix: !1,
|
|
36
|
-
styles: {},
|
|
37
|
-
slot: !1,
|
|
38
|
-
slotStyle: {}
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
computed: {
|
|
42
|
-
offsetType() {
|
|
43
|
-
let type = "top";
|
|
44
|
-
return this.offsetBottom >= 0 && (type = "bottom"), type;
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
mounted() {
|
|
48
|
-
this.target ? this.container = document.querySelector(this.target) : this.container = document, this.container.addEventListener("scroll", this.handleScroll, !1), this.container.addEventListener("resize", this.handleScroll, !1);
|
|
49
|
-
},
|
|
50
|
-
beforeDestroy() {
|
|
51
|
-
this.container.removeEventListener("scroll", this.handleScroll, !1), this.container.removeEventListener("resize", this.handleScroll, !1);
|
|
52
|
-
},
|
|
53
|
-
methods: {
|
|
54
|
-
getScroll(target, top) {
|
|
55
|
-
const prop = top ? "pageYOffset" : "pageXOffset", method = top ? "scrollTop" : "scrollLeft";
|
|
56
|
-
let ret = target[prop];
|
|
57
|
-
return typeof ret != "number" && (ret = document.documentElement[method]), ret;
|
|
58
|
-
},
|
|
59
|
-
getOffset(element) {
|
|
60
|
-
const rect = element.getBoundingClientRect(), scrollTop = this.getScroll(this.container, !0), scrollLeft = this.getScroll(this.container), docEl = document.body, clientTop = docEl.clientTop || 0, clientLeft = docEl.clientLeft || 0;
|
|
61
|
-
return {
|
|
62
|
-
top: rect.top + scrollTop - clientTop,
|
|
63
|
-
left: rect.left + scrollLeft - clientLeft
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
handleScroll() {
|
|
67
|
-
const affix = this.affix, scrollTop = this.getScroll(this.container, !0), elOffset = this.getOffset(this.$el), windowHeight = this.container.innerHeight, elHeight = this.$el.getElementsByTagName("div")[0].offsetHeight;
|
|
68
|
-
elOffset.top - this.offsetTop < scrollTop && this.offsetType === "top" && !affix ? (this.affix = !0, this.slotStyle = {
|
|
69
|
-
width: `${this.$refs.point.clientWidth}px`,
|
|
70
|
-
height: `${this.$refs.point.clientHeight}px`
|
|
71
|
-
}, this.slot = !0, this.styles = {
|
|
72
|
-
top: `${this.offsetTop}px`,
|
|
73
|
-
left: `${elOffset.left}px`,
|
|
74
|
-
width: `${this.$el.offsetWidth}px`
|
|
75
|
-
}, this.$emit("on-change", !0)) : elOffset.top - this.offsetTop > scrollTop && this.offsetType === "top" && affix && (this.slot = !1, this.slotStyle = {}, this.affix = !1, this.styles = null, this.$emit("on-change", !1)), elOffset.top + this.offsetBottom + elHeight > scrollTop + windowHeight && this.offsetType === "bottom" && !affix ? (this.affix = !0, this.styles = {
|
|
76
|
-
bottom: `${this.offsetBottom}px`,
|
|
77
|
-
left: `${elOffset.left}px`,
|
|
78
|
-
width: `${this.$el.offsetWidth}px`
|
|
79
|
-
}, this.$emit("on-change", !0)) : elOffset.top + this.offsetBottom + elHeight < scrollTop + windowHeight && this.offsetType === "bottom" && affix && (this.affix = !1, this.styles = null, this.$emit("on-change", !1));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}, __cssModules = {};
|
|
83
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
84
|
-
__vue2_script,
|
|
85
|
-
render,
|
|
86
|
-
staticRenderFns,
|
|
87
|
-
!1,
|
|
88
|
-
__vue2_injectStyles,
|
|
89
|
-
null,
|
|
90
|
-
null,
|
|
91
|
-
null
|
|
92
|
-
);
|
|
93
|
-
function __vue2_injectStyles(context) {
|
|
94
|
-
for (let o in __cssModules)
|
|
95
|
-
this[o] = __cssModules[o];
|
|
96
|
-
}
|
|
97
|
-
const Affix = /* @__PURE__ */ function() {
|
|
98
|
-
return __component__.exports;
|
|
99
|
-
}();
|
|
100
|
-
export {
|
|
101
|
-
Affix as default
|
|
102
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import Uploader from "simple-uploader.js";
|
|
2
|
-
import { k as kebabCase } from "../../chunks/utils.f44207f4.js";
|
|
3
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
|
|
4
|
-
var render = function() {
|
|
5
|
-
var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
|
|
6
|
-
return _c("div", {
|
|
7
|
-
staticClass: "uploader"
|
|
8
|
-
}, [_vm._t("default", function() {
|
|
9
|
-
return [_c("ChunkFileUploaderUnSupport"), _c("ChunkFileUploaderDrop", [_c("p", [_vm._v("Drop files here to upload or")]), _c("ChunkFileUploaderButton", [_vm._v("select files")]), _c("ChunkFileUploaderButton", {
|
|
10
|
-
attrs: {
|
|
11
|
-
directory: !0
|
|
12
|
-
}
|
|
13
|
-
}, [_vm._v(" select folder ")])], 1), _c("ChunkFileUploaderList")];
|
|
14
|
-
}, {
|
|
15
|
-
files: _vm.files,
|
|
16
|
-
fileList: _vm.fileList,
|
|
17
|
-
started: _vm.started
|
|
18
|
-
})], 2);
|
|
19
|
-
}, staticRenderFns = [];
|
|
20
|
-
const FILE_ADDED_EVENT = "fileAdded", FILES_ADDED_EVENT = "filesAdded", UPLOAD_START_EVENT = "uploadStart", __vue2_script = {
|
|
21
|
-
name: "ChunkFileUploader",
|
|
22
|
-
provide() {
|
|
23
|
-
return {
|
|
24
|
-
uploader: this
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
props: {
|
|
28
|
-
options: {
|
|
29
|
-
type: Object,
|
|
30
|
-
default() {
|
|
31
|
-
return {};
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
autoStart: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !0
|
|
37
|
-
},
|
|
38
|
-
fileStatusText: {
|
|
39
|
-
type: [Object, Function],
|
|
40
|
-
default() {
|
|
41
|
-
return {
|
|
42
|
-
success: "success",
|
|
43
|
-
error: "error",
|
|
44
|
-
uploading: "uploading",
|
|
45
|
-
paused: "paused",
|
|
46
|
-
waiting: "waiting"
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
data() {
|
|
52
|
-
return {
|
|
53
|
-
started: !1,
|
|
54
|
-
files: [],
|
|
55
|
-
fileList: []
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
created() {
|
|
59
|
-
this.options.initialPaused = !this.autoStart;
|
|
60
|
-
const uploader = new Uploader(this.options);
|
|
61
|
-
this.uploader = uploader, this.uploader.fileStatusText = this.fileStatusText, uploader.on("catchAll", this.allEvent), uploader.on(FILE_ADDED_EVENT, this.fileAdded), uploader.on(FILES_ADDED_EVENT, this.filesAdded), uploader.on("fileRemoved", this.fileRemoved), uploader.on("filesSubmitted", this.filesSubmitted);
|
|
62
|
-
},
|
|
63
|
-
destroyed() {
|
|
64
|
-
const uploader = this.uploader;
|
|
65
|
-
uploader.off("catchAll", this.allEvent), uploader.off(FILE_ADDED_EVENT, this.fileAdded), uploader.off(FILES_ADDED_EVENT, this.filesAdded), uploader.off("fileRemoved", this.fileRemoved), uploader.off("filesSubmitted", this.filesSubmitted), this.uploader = null;
|
|
66
|
-
},
|
|
67
|
-
methods: {
|
|
68
|
-
uploadStart() {
|
|
69
|
-
this.started = !0;
|
|
70
|
-
},
|
|
71
|
-
fileAdded(file) {
|
|
72
|
-
if (this.$emit(kebabCase(FILE_ADDED_EVENT), file), file.ignored)
|
|
73
|
-
return !1;
|
|
74
|
-
},
|
|
75
|
-
filesAdded(files, fileList) {
|
|
76
|
-
if (this.$emit(kebabCase(FILES_ADDED_EVENT), files, fileList), files.ignored || fileList.ignored)
|
|
77
|
-
return !1;
|
|
78
|
-
},
|
|
79
|
-
fileRemoved(file) {
|
|
80
|
-
this.$emit("file-removed", file), this.files = this.uploader.files, this.fileList = this.uploader.fileList;
|
|
81
|
-
},
|
|
82
|
-
filesSubmitted() {
|
|
83
|
-
this.files = this.uploader.files, this.fileList = this.uploader.fileList, this.autoStart && this.uploader.upload();
|
|
84
|
-
},
|
|
85
|
-
allEvent(...args) {
|
|
86
|
-
const name = args[0], handler = {
|
|
87
|
-
[FILE_ADDED_EVENT]: !0,
|
|
88
|
-
[FILES_ADDED_EVENT]: !0,
|
|
89
|
-
[UPLOAD_START_EVENT]: "uploadStart"
|
|
90
|
-
}[name];
|
|
91
|
-
if (handler) {
|
|
92
|
-
if (handler === !0)
|
|
93
|
-
return;
|
|
94
|
-
this[handler].apply(this, args.slice(1));
|
|
95
|
-
}
|
|
96
|
-
args[0] = kebabCase(name), this.$emit.apply(this, args);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}, __cssModules = {};
|
|
100
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
101
|
-
__vue2_script,
|
|
102
|
-
render,
|
|
103
|
-
staticRenderFns,
|
|
104
|
-
!1,
|
|
105
|
-
__vue2_injectStyles,
|
|
106
|
-
null,
|
|
107
|
-
null,
|
|
108
|
-
null
|
|
109
|
-
);
|
|
110
|
-
function __vue2_injectStyles(context) {
|
|
111
|
-
for (let o in __cssModules)
|
|
112
|
-
this[o] = __cssModules[o];
|
|
113
|
-
}
|
|
114
|
-
const ChunkFileUploader = /* @__PURE__ */ function() {
|
|
115
|
-
return __component__.exports;
|
|
116
|
-
}();
|
|
117
|
-
export {
|
|
118
|
-
ChunkFileUploader as default
|
|
119
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) => new Promise((resolve, reject) => {
|
|
2
|
-
var fulfilled = (value) => {
|
|
3
|
-
try {
|
|
4
|
-
step(generator.next(value));
|
|
5
|
-
} catch (e) {
|
|
6
|
-
reject(e);
|
|
7
|
-
}
|
|
8
|
-
}, rejected = (value) => {
|
|
9
|
-
try {
|
|
10
|
-
step(generator.throw(value));
|
|
11
|
-
} catch (e) {
|
|
12
|
-
reject(e);
|
|
13
|
-
}
|
|
14
|
-
}, step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
15
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
16
|
-
});
|
|
17
|
-
import { u as uploaderMixin, s as supportMixin } from "../../chunks/mixins.6a394a6c.js";
|
|
18
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
|
|
19
|
-
var render = function() {
|
|
20
|
-
var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
|
|
21
|
-
return _c("div", {
|
|
22
|
-
directives: [{
|
|
23
|
-
name: "show",
|
|
24
|
-
rawName: "v-show",
|
|
25
|
-
value: _vm.support,
|
|
26
|
-
expression: "support"
|
|
27
|
-
}],
|
|
28
|
-
ref: "drop",
|
|
29
|
-
staticClass: "uploader-drop",
|
|
30
|
-
class: _vm.dropClass
|
|
31
|
-
}, [_vm._t("default")], 2);
|
|
32
|
-
}, staticRenderFns = [];
|
|
33
|
-
const __vue2_script = {
|
|
34
|
-
name: "ChunkFileUploaderDrop",
|
|
35
|
-
mixins: [uploaderMixin, supportMixin],
|
|
36
|
-
data() {
|
|
37
|
-
return {
|
|
38
|
-
dropClass: ""
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
mounted() {
|
|
42
|
-
return __async(this, null, function* () {
|
|
43
|
-
yield this.$nextTick();
|
|
44
|
-
const dropEle = this.$refs.drop, uploader = this.uploader.uploader;
|
|
45
|
-
uploader.assignDrop(dropEle), uploader.on("dragenter", this.onDragEnter), uploader.on("dragleave", this.onDragLeave), uploader.on("drop", this.onDrop);
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
beforeDestroy() {
|
|
49
|
-
const dropEle = this.$refs.drop, uploader = this.uploader.uploader;
|
|
50
|
-
uploader.off("dragenter", this.onDragEnter), uploader.off("dragleave", this.onDragLeave), uploader.off("drop", this.onDrop), uploader.unAssignDrop(dropEle);
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
onDragEnter() {
|
|
54
|
-
this.dropClass = "uploader-dragover";
|
|
55
|
-
},
|
|
56
|
-
onDragLeave() {
|
|
57
|
-
this.dropClass = "";
|
|
58
|
-
},
|
|
59
|
-
onDrop() {
|
|
60
|
-
this.dropClass = "uploader-droped";
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}, __cssModules = {};
|
|
64
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
65
|
-
__vue2_script,
|
|
66
|
-
render,
|
|
67
|
-
staticRenderFns,
|
|
68
|
-
!1,
|
|
69
|
-
__vue2_injectStyles,
|
|
70
|
-
null,
|
|
71
|
-
null,
|
|
72
|
-
null
|
|
73
|
-
);
|
|
74
|
-
function __vue2_injectStyles(context) {
|
|
75
|
-
for (let o in __cssModules)
|
|
76
|
-
this[o] = __cssModules[o];
|
|
77
|
-
}
|
|
78
|
-
const ChunkFileUploaderDrop = /* @__PURE__ */ function() {
|
|
79
|
-
return __component__.exports;
|
|
80
|
-
}();
|
|
81
|
-
export {
|
|
82
|
-
ChunkFileUploaderDrop as default
|
|
83
|
-
};
|