@web-utils/component 2.7.36 → 2.8.0
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/address-input/index.mjs +113 -0
- package/address-input/style.css +1 -0
- package/affix/index.mjs +102 -0
- package/affix/style.css +1 -0
- package/aside-menu/index.mjs +58 -0
- package/aside-menu/style.css +1 -0
- package/avatar/index.mjs +106 -0
- package/avatar/style.css +1 -0
- package/awesome-button/index.mjs +112 -0
- package/base.css +1 -0
- package/capsule-tab/index.mjs +52 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.mjs +130 -0
- package/card/style.css +1 -0
- package/carousel/index.mjs +70 -0
- package/carousel/style.css +1 -0
- package/chat/index.mjs +567 -0
- package/chat/style.css +1 -0
- package/chunk-file-uploader/index.mjs +119 -0
- package/chunk-file-uploader/style.css +1 -0
- package/chunk-file-uploader-button/index.mjs +60 -0
- package/chunk-file-uploader-button/style.css +1 -0
- package/chunk-file-uploader-drop/index.mjs +83 -0
- package/chunk-file-uploader-drop/style.css +1 -0
- package/chunk-file-uploader-file/index.mjs +311 -0
- package/chunk-file-uploader-file/style.css +1 -0
- package/chunk-file-uploader-files/index.mjs +49 -0
- package/chunk-file-uploader-files/style.css +1 -0
- package/chunk-file-uploader-list/index.mjs +50 -0
- package/chunk-file-uploader-list/style.css +1 -0
- package/chunk-file-uploader-un-support/index.mjs +51 -0
- package/chunk-file-uploader-un-support/style.css +1 -0
- package/{dist/chunks/config.75161c38.js → chunks/config.46422d7f.mjs} +31 -31
- package/chunks/confirmable-mixin.2bfe1ab9.mjs +105 -0
- package/chunks/dataformat.25e22176.mjs +158 -0
- package/chunks/detail.6e53ede8.mjs +29 -0
- package/chunks/dic.e8280157.mjs +130 -0
- package/{dist/chunks/event.812c361c.js → chunks/event.a018cb06.mjs} +47 -78
- package/chunks/form-input-mixin.124653d9.mjs +24 -0
- package/chunks/form-item-mixin.135b60df.mjs +140 -0
- package/{dist/chunks/form-pick-mixin.822300f3.js → chunks/form-pick-mixin.61ad06b2.mjs} +3 -3
- package/chunks/index.57f871af.mjs +185 -0
- package/chunks/init.f04c7036.mjs +122 -0
- package/{dist/chunks/input-number-mixin.44b78389.js → chunks/input-number-mixin.41a066be.mjs} +8 -8
- package/{dist/chunks/mixins.e1939731.js → chunks/mixins.5a78e0db.mjs} +5 -6
- package/{dist/chunks/packages.c4ea639d.js → chunks/packages.1fc9ccba.mjs} +9 -15
- package/chunks/permission.ce5d2121.mjs +16 -0
- package/chunks/slot.4b391395.mjs +27 -0
- package/chunks/tab-mixin.e2b9c6a4.mjs +81 -0
- package/chunks/util.17330567.mjs +266 -0
- package/chunks/utils.97652d86.mjs +26 -0
- package/chunks/vueComponentNormalizer.446f5dc4.mjs +32 -0
- package/code-mirror-editor/index.mjs +313 -0
- package/code-mirror-editor/style.css +1 -0
- package/color-picker/index.mjs +128 -0
- package/column/index.mjs +115 -0
- package/column-default/index.mjs +106 -0
- package/column-dynamic/index.mjs +93 -0
- package/column-menu/index.mjs +286 -0
- package/column-slot/index.mjs +266 -0
- package/comment/index.mjs +94 -0
- package/comment/style.css +1 -0
- package/confirm-button/index.mjs +57 -0
- package/confirmable/index.mjs +28 -0
- package/context-menu/index.mjs +253 -0
- package/context-menu/style.css +1 -0
- package/count-up/index.mjs +131 -0
- package/custom-scrollbar/index.mjs +167 -0
- package/data-box/index.mjs +97 -0
- package/data-box/style.css +1 -0
- package/data-card/index.mjs +98 -0
- package/data-card/style.css +1 -0
- package/data-cardtext/index.mjs +82 -0
- package/data-cardtext/style.css +1 -0
- package/data-display/index.mjs +93 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.mjs +104 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.mjs +106 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.mjs +99 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.mjs +93 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.mjs +149 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.mjs +84 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.mjs +97 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.mjs +96 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.mjs +137 -0
- package/data-tabs/index.mjs +94 -0
- package/data-tabs/style.css +1 -0
- package/dialog-column/index.mjs +139 -0
- package/dialog-excel/index.mjs +211 -0
- package/dialog-filter/index.mjs +246 -0
- package/dialog-form/index.mjs +148 -0
- package/dialog-form/style.css +1 -0
- package/dynamic-table/index.mjs +195 -0
- package/dynamic-table/style.css +1 -0
- package/e-charts/index.mjs +216 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.mjs +87 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.mjs +141 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.mjs +844 -0
- package/editable-tree/style.css +1 -0
- package/egd-collapse/index.mjs +79 -0
- package/egd-collapse-item/index.mjs +132 -0
- package/element-dialog/index.mjs +249 -0
- package/element-dialog/style.css +1 -0
- package/empty-view/index.mjs +69 -0
- package/empty-view/style.css +1 -0
- package/error-view/index.mjs +61 -0
- package/error-view/style.css +1 -0
- package/flex-column/index.mjs +62 -0
- package/flex-item/index.mjs +81 -0
- package/flex-row/index.mjs +62 -0
- package/flex-scroller/index.mjs +47 -0
- package/flex-scroller/style.css +1 -0
- package/flow/index.mjs +277 -0
- package/flow/style.css +1 -0
- package/flow-node/index.mjs +102 -0
- package/flow-viewer/index.mjs +162 -0
- package/flow-viewer/style.css +1 -0
- package/form-button/index.mjs +80 -0
- package/form-cascader/index.mjs +163 -0
- package/form-checkbox-group/index.mjs +203 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.mjs +191 -0
- package/form-group/index.mjs +122 -0
- package/form-group/style.css +1 -0
- package/form-holder/index.mjs +129 -0
- package/form-input/index.mjs +117 -0
- package/form-input-email/index.mjs +108 -0
- package/form-input-id-card/index.mjs +115 -0
- package/form-input-number/index.mjs +134 -0
- package/form-input-number/style.css +1 -0
- package/form-input-phone-number/index.mjs +109 -0
- package/form-input-time/index.mjs +135 -0
- package/form-item/index.mjs +147 -0
- package/form-item/style.css +1 -0
- package/form-item-config-provider/index.mjs +63 -0
- package/form-item-group/index.mjs +169 -0
- package/form-item-group/style.css +1 -0
- package/form-radio-group/index.mjs +181 -0
- package/form-radio-group/style.css +1 -0
- package/form-select/index.mjs +165 -0
- package/form-switch/index.mjs +108 -0
- package/form-temp/index.mjs +149 -0
- package/form-textarea/index.mjs +113 -0
- package/form-view/index.mjs +366 -0
- package/form-view/style.css +1 -0
- package/fy-array/index.mjs +156 -0
- package/fy-array/style.css +1 -0
- package/fy-article/index.mjs +93 -0
- package/fy-article/style.css +1 -0
- package/fy-cascader/index.mjs +132 -0
- package/fy-checkbox/index.mjs +116 -0
- package/fy-checkbox/style.css +1 -0
- package/fy-code/index.mjs +66 -0
- package/fy-curd/index.mjs +751 -0
- package/fy-curd/style.css +1 -0
- package/fy-date/index.mjs +84 -0
- package/fy-date/style.css +1 -0
- package/fy-dialog-form/index.mjs +278 -0
- package/fy-draggable/index.mjs +382 -0
- package/fy-draggable/style.css +1 -0
- package/fy-dynamic/index.mjs +337 -0
- package/fy-dynamic/style.css +1 -0
- package/{dist/components/fy-empty/index.js → fy-empty/index.mjs} +28 -34
- package/fy-empty/style.css +1 -0
- package/fy-form/index.mjs +777 -0
- package/fy-form/style.css +1 -0
- package/fy-form-design/index.mjs +7775 -0
- package/fy-form-design/style.css +1 -0
- package/fy-form-menu/index.mjs +95 -0
- package/fy-input/index.mjs +176 -0
- package/fy-input-color/index.mjs +101 -0
- package/fy-input-icon/index.mjs +161 -0
- package/fy-input-icon/style.css +1 -0
- package/fy-input-map/index.mjs +275 -0
- package/fy-input-map/style.css +1 -0
- package/fy-input-number/index.mjs +87 -0
- package/fy-input-table/index.mjs +172 -0
- package/fy-input-table/style.css +1 -0
- package/fy-input-tree/index.mjs +265 -0
- package/fy-input-tree/style.css +1 -0
- package/fy-progress/index.mjs +60 -0
- package/fy-radio/index.mjs +68 -0
- package/fy-radio/style.css +1 -0
- package/fy-rate/index.mjs +105 -0
- package/fy-rate/style.css +1 -0
- package/fy-select/index.mjs +224 -0
- package/fy-select/style.css +1 -0
- package/fy-slider/index.mjs +79 -0
- package/fy-switch/index.mjs +73 -0
- package/fy-tabs/index.mjs +90 -0
- package/fy-time/index.mjs +95 -0
- package/fy-title/index.mjs +40 -0
- package/fy-title/style.css +1 -0
- package/fy-tree/index.mjs +428 -0
- package/fy-tree/style.css +1 -0
- package/fy-u-editor/index.mjs +409 -0
- package/fy-u-editor/style.css +1 -0
- package/fy-upload/index.mjs +591 -0
- package/fy-upload/style.css +1 -0
- package/guide-steps/index.mjs +94 -0
- package/guide-steps/style.css +1 -0
- package/header-menu/index.mjs +238 -0
- package/header-search/index.mjs +253 -0
- package/highlight-j-s/index.mjs +76 -0
- package/highlight-j-s/style.css +1 -0
- package/icon-card/index.mjs +62 -0
- package/icon-card/style.css +1 -0
- package/icon-temp/index.mjs +50 -0
- package/icon-temp/style.css +1 -0
- package/iframe-window/index.mjs +61 -0
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.mjs +249 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.mjs +260 -0
- package/image-preview/style.css +1 -0
- package/image-viewer/index.mjs +95 -0
- package/image-viewer/style.css +1 -0
- package/index.cjs +85 -0
- package/index.css +1 -0
- package/index.mjs +45867 -0
- package/input-number/index.mjs +274 -0
- package/input-number/style.css +1 -0
- package/input-number-range/index.mjs +110 -0
- package/input-number-range/style.css +1 -0
- package/{dist/components/j-s-x-component/index.js → j-s-x-component/index.mjs} +4 -4
- package/keep-view-alive/index.mjs +123 -0
- package/keyboard/index.mjs +384 -0
- package/keyboard/style.css +1 -0
- package/license/index.mjs +134 -0
- package/loading-view/index.mjs +61 -0
- package/loading-view/style.css +1 -0
- package/login/index.mjs +250 -0
- package/login/style.css +1 -0
- package/name-avatar/index.mjs +66 -0
- package/name-avatar/style.css +1 -0
- package/nav-bar/index.mjs +52 -0
- package/nav-bar/style.css +1 -0
- package/not-implement/index.mjs +35 -0
- package/not-implement/style.css +1 -0
- package/notice/index.mjs +143 -0
- package/notice/style.css +1 -0
- package/package.json +7 -129
- package/page/index.mjs +40 -0
- package/page/style.css +1 -0
- package/page-header/index.mjs +56 -0
- package/page-header/style.css +1 -0
- package/page-index/index.mjs +175 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.mjs +141 -0
- package/page-skeleton/index.mjs +56 -0
- package/page-skeleton/style.css +1 -0
- package/page-skeleton-new/index.mjs +98 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.mjs +478 -0
- package/pageable-table/style.css +1 -0
- package/pageable-view/index.mjs +378 -0
- package/pageable-view/style.css +1 -0
- package/photo-swipe/index.mjs +129 -0
- package/{dist/components/process-designer/index.js → process-designer/index.mjs} +1022 -1211
- package/process-designer/style.css +1 -0
- package/properties-panel/index.mjs +4791 -0
- package/properties-panel/style.css +1 -0
- package/queue/index.mjs +76 -0
- package/record-video/index.mjs +173 -0
- package/record-video/style.css +1 -0
- package/resize-observer/index.mjs +62 -0
- package/resize-observer/style.css +1 -0
- package/search/index.mjs +143 -0
- package/search/style.css +1 -0
- package/search-popover/index.mjs +411 -0
- package/search-popover/style.css +1 -0
- package/sign/index.mjs +133 -0
- package/sign/style.css +1 -0
- package/sign-panel/index.mjs +255 -0
- package/sign-panel/style.css +1 -0
- package/skeleton/index.mjs +82 -0
- package/skeleton/style.css +1 -0
- package/split-pane/index.mjs +233 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.mjs +84 -0
- package/stateful/style.css +1 -0
- package/static-pageable-table/index.mjs +92 -0
- package/static-pageable-table/style.css +1 -0
- package/swiper/index.mjs +178 -0
- package/swiper/style.css +1 -0
- package/tab/index.mjs +147 -0
- package/tab/style.css +1 -0
- package/tab-item/index.mjs +73 -0
- package/table-column/index.mjs +102 -0
- package/table-page/index.mjs +132 -0
- package/table-view/index.mjs +390 -0
- package/table-view/style.css +1 -0
- package/tag-render/index.mjs +108 -0
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.mjs +108 -0
- package/text-ellipsis/style.css +1 -0
- package/tinymce-editor/index.mjs +191 -0
- package/tinymce-editor/style.css +1 -0
- package/{dist/components/tinymce-wrapper/index.js → tinymce-wrapper/index.mjs} +102 -138
- package/tinymce-wrapper/style.css +1 -0
- package/toolbar/index.mjs +217 -0
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.mjs +108 -0
- package/toolbar-button/style.css +1 -0
- package/trigger/index.mjs +71 -0
- package/verify/index.mjs +80 -0
- package/verify/style.css +1 -0
- package/vue-tags-input/index.mjs +553 -0
- package/vue-tags-input/style.css +1 -0
- package/watermark/index.mjs +95 -0
- package/watermark/style.css +1 -0
- package/web-types.json +2 -2
- package/README.md +0 -27
- package/dist/chunks/confirmable-mixin.851d6299.js +0 -137
- package/dist/chunks/dataformat.b8c8c01a.js +0 -237
- package/dist/chunks/detail.6135ade5.js +0 -55
- package/dist/chunks/dic.e57b75f2.js +0 -215
- package/dist/chunks/form-input-mixin.3e63b57f.js +0 -24
- package/dist/chunks/form-item-mixin.a56c101a.js +0 -166
- package/dist/chunks/init.38cbb3a2.js +0 -142
- package/dist/chunks/permission.9c766972.js +0 -21
- package/dist/chunks/slot.55598d0f.js +0 -35
- package/dist/chunks/tab-mixin.9d848bf6.js +0 -99
- package/dist/chunks/util.b0d0b0ad.js +0 -478
- package/dist/chunks/utils.2a3ffac9.js +0 -250
- package/dist/chunks/utils.a8891d2c.js +0 -30
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +0 -59
- package/dist/components/address-input/index.js +0 -126
- package/dist/components/address-input/style.css +0 -15
- package/dist/components/affix/index.js +0 -152
- package/dist/components/affix/style.css +0 -5
- package/dist/components/aside-menu/index.js +0 -64
- package/dist/components/aside-menu/style.css +0 -9
- package/dist/components/avatar/index.js +0 -124
- package/dist/components/avatar/style.css +0 -57
- package/dist/components/awesome-button/index.js +0 -126
- package/dist/components/base.css +0 -410
- package/dist/components/capsule-tab/index.js +0 -58
- package/dist/components/capsule-tab/style.css +0 -32
- package/dist/components/card/index.js +0 -143
- package/dist/components/card/style.css +0 -90
- package/dist/components/carousel/index.js +0 -76
- package/dist/components/carousel/style.css +0 -41
- package/dist/components/chat/index.js +0 -673
- package/dist/components/chat/style.css +0 -279
- package/dist/components/chunk-file-uploader/index.js +0 -153
- package/dist/components/chunk-file-uploader/style.css +0 -4
- package/dist/components/chunk-file-uploader-button/index.js +0 -66
- package/dist/components/chunk-file-uploader-button/style.css +0 -17
- package/dist/components/chunk-file-uploader-drop/index.js +0 -101
- package/dist/components/chunk-file-uploader-drop/style.css +0 -12
- package/dist/components/chunk-file-uploader-file/index.js +0 -388
- package/dist/components/chunk-file-uploader-file/style.css +0 -125
- package/dist/components/chunk-file-uploader-files/index.js +0 -55
- package/dist/components/chunk-file-uploader-files/style.css +0 -9
- package/dist/components/chunk-file-uploader-list/index.js +0 -56
- package/dist/components/chunk-file-uploader-list/style.css +0 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +0 -59
- package/dist/components/chunk-file-uploader-un-support/style.css +0 -6
- package/dist/components/code-mirror-editor/index.js +0 -341
- package/dist/components/code-mirror-editor/style.css +0 -17
- package/dist/components/color-picker/index.js +0 -151
- package/dist/components/column/index.js +0 -140
- package/dist/components/column-default/index.js +0 -120
- package/dist/components/column-dynamic/index.js +0 -100
- package/dist/components/column-menu/index.js +0 -298
- package/dist/components/column-slot/index.js +0 -326
- package/dist/components/comment/index.js +0 -107
- package/dist/components/comment/style.css +0 -92
- package/dist/components/confirm-button/index.js +0 -59
- package/dist/components/confirmable/index.js +0 -29
- package/dist/components/context-menu/index.js +0 -275
- package/dist/components/context-menu/style.css +0 -88
- package/dist/components/count-up/index.js +0 -148
- package/dist/components/custom-scrollbar/index.js +0 -191
- package/dist/components/data-box/index.js +0 -103
- package/dist/components/data-box/style.css +0 -58
- package/dist/components/data-card/index.js +0 -104
- package/dist/components/data-card/style.css +0 -46
- package/dist/components/data-cardtext/index.js +0 -88
- package/dist/components/data-cardtext/style.css +0 -36
- package/dist/components/data-display/index.js +0 -99
- package/dist/components/data-display/style.css +0 -37
- package/dist/components/data-icons/index.js +0 -110
- package/dist/components/data-icons/style.css +0 -53
- package/dist/components/data-imgtext/index.js +0 -112
- package/dist/components/data-imgtext/style.css +0 -70
- package/dist/components/data-operatext/index.js +0 -105
- package/dist/components/data-operatext/style.css +0 -81
- package/dist/components/data-panel/index.js +0 -99
- package/dist/components/data-panel/style.css +0 -37
- package/dist/components/data-pay/index.js +0 -155
- package/dist/components/data-pay/style.css +0 -102
- package/dist/components/data-price/index.js +0 -90
- package/dist/components/data-price/style.css +0 -81
- package/dist/components/data-progress/index.js +0 -103
- package/dist/components/data-progress/style.css +0 -30
- package/dist/components/data-rotate/index.js +0 -102
- package/dist/components/data-rotate/style.css +0 -50
- package/dist/components/data-table-picker/index.js +0 -156
- package/dist/components/data-tabs/index.js +0 -100
- package/dist/components/data-tabs/style.css +0 -70
- package/dist/components/dialog-column/index.js +0 -152
- package/dist/components/dialog-excel/index.js +0 -260
- package/dist/components/dialog-filter/index.js +0 -259
- package/dist/components/dialog-form/index.js +0 -163
- package/dist/components/dialog-form/style.css +0 -10
- package/dist/components/dynamic-table/index.js +0 -219
- package/dist/components/dynamic-table/style.css +0 -30
- package/dist/components/e-charts/index.js +0 -297
- package/dist/components/e-charts/style.css +0 -10
- package/dist/components/easy-popup/index.js +0 -105
- package/dist/components/easy-popup/style.css +0 -18
- package/dist/components/editable-progress/index.js +0 -174
- package/dist/components/editable-progress/style.css +0 -37
- package/dist/components/editable-tree/index.js +0 -1070
- package/dist/components/editable-tree/style.css +0 -82
- package/dist/components/egd-collapse/index.js +0 -92
- package/dist/components/egd-collapse-item/index.js +0 -148
- package/dist/components/element-dialog/index.js +0 -302
- package/dist/components/element-dialog/style.css +0 -88
- package/dist/components/empty-view/index.js +0 -75
- package/dist/components/empty-view/style.css +0 -17
- package/dist/components/error-view/index.js +0 -67
- package/dist/components/error-view/style.css +0 -17
- package/dist/components/flex-column/index.js +0 -84
- package/dist/components/flex-item/index.js +0 -116
- package/dist/components/flex-row/index.js +0 -84
- package/dist/components/flex-scroller/index.js +0 -53
- package/dist/components/flex-scroller/style.css +0 -20
- package/dist/components/flow/index.js +0 -329
- package/dist/components/flow/style.css +0 -44
- package/dist/components/flow-node/index.js +0 -110
- package/dist/components/flow-viewer/index.js +0 -207
- package/dist/components/flow-viewer/style.css +0 -19
- package/dist/components/form-button/index.js +0 -84
- package/dist/components/form-cascader/index.js +0 -178
- package/dist/components/form-checkbox-group/index.js +0 -233
- package/dist/components/form-checkbox-group/style.css +0 -51
- package/dist/components/form-date-picker/index.js +0 -260
- package/dist/components/form-group/index.js +0 -128
- package/dist/components/form-group/style.css +0 -76
- package/dist/components/form-holder/index.js +0 -140
- package/dist/components/form-input/index.js +0 -128
- package/dist/components/form-input-email/index.js +0 -125
- package/dist/components/form-input-id-card/index.js +0 -126
- package/dist/components/form-input-number/index.js +0 -146
- package/dist/components/form-input-number/style.css +0 -12
- package/dist/components/form-input-phone-number/index.js +0 -120
- package/dist/components/form-input-time/index.js +0 -146
- package/dist/components/form-item/index.js +0 -199
- package/dist/components/form-item/style.css +0 -11
- package/dist/components/form-item-config-provider/index.js +0 -64
- package/dist/components/form-item-group/index.js +0 -195
- package/dist/components/form-item-group/style.css +0 -30
- package/dist/components/form-radio-group/index.js +0 -205
- package/dist/components/form-radio-group/style.css +0 -53
- package/dist/components/form-select/index.js +0 -185
- package/dist/components/form-switch/index.js +0 -119
- package/dist/components/form-temp/index.js +0 -169
- package/dist/components/form-textarea/index.js +0 -124
- package/dist/components/form-view/index.js +0 -437
- package/dist/components/form-view/style.css +0 -158
- package/dist/components/fy-array/index.js +0 -164
- package/dist/components/fy-array/style.css +0 -18
- package/dist/components/fy-article/index.js +0 -104
- package/dist/components/fy-article/style.css +0 -40
- package/dist/components/fy-cascader/index.js +0 -142
- package/dist/components/fy-checkbox/index.js +0 -127
- package/dist/components/fy-checkbox/style.css +0 -15
- package/dist/components/fy-code/index.js +0 -73
- package/dist/components/fy-curd/index.js +0 -889
- package/dist/components/fy-curd/style.css +0 -239
- package/dist/components/fy-date/index.js +0 -90
- package/dist/components/fy-date/style.css +0 -21
- package/dist/components/fy-dialog-form/index.js +0 -351
- package/dist/components/fy-draggable/index.js +0 -505
- package/dist/components/fy-draggable/style.css +0 -136
- package/dist/components/fy-dynamic/index.js +0 -380
- package/dist/components/fy-dynamic/style.css +0 -35
- package/dist/components/fy-empty/style.css +0 -24
- package/dist/components/fy-form/index.js +0 -964
- package/dist/components/fy-form/style.css +0 -79
- package/dist/components/fy-form-design/index.js +0 -8412
- package/dist/components/fy-form-design/style.css +0 -578
- package/dist/components/fy-form-menu/index.js +0 -103
- package/dist/components/fy-input/index.js +0 -187
- package/dist/components/fy-input-color/index.js +0 -108
- package/dist/components/fy-input-icon/index.js +0 -182
- package/dist/components/fy-input-icon/style.css +0 -39
- package/dist/components/fy-input-map/index.js +0 -320
- package/dist/components/fy-input-map/style.css +0 -50
- package/dist/components/fy-input-number/index.js +0 -92
- package/dist/components/fy-input-table/index.js +0 -206
- package/dist/components/fy-input-table/style.css +0 -10
- package/dist/components/fy-input-tree/index.js +0 -309
- package/dist/components/fy-input-tree/style.css +0 -25
- package/dist/components/fy-progress/index.js +0 -65
- package/dist/components/fy-radio/index.js +0 -74
- package/dist/components/fy-radio/style.css +0 -12
- package/dist/components/fy-rate/index.js +0 -111
- package/dist/components/fy-rate/style.css +0 -9
- package/dist/components/fy-select/index.js +0 -242
- package/dist/components/fy-select/style.css +0 -25
- package/dist/components/fy-slider/index.js +0 -84
- package/dist/components/fy-switch/index.js +0 -78
- package/dist/components/fy-tabs/index.js +0 -98
- package/dist/components/fy-tabs/style.css +0 -6
- package/dist/components/fy-time/index.js +0 -106
- package/dist/components/fy-title/index.js +0 -48
- package/dist/components/fy-title/style.css +0 -11
- package/dist/components/fy-tree/index.js +0 -491
- package/dist/components/fy-tree/style.css +0 -46
- package/dist/components/fy-u-editor/index.js +0 -514
- package/dist/components/fy-u-editor/style.css +0 -15
- package/dist/components/fy-upload/index.js +0 -760
- package/dist/components/fy-upload/style.css +0 -60
- package/dist/components/guide-steps/index.js +0 -108
- package/dist/components/guide-steps/style.css +0 -34
- package/dist/components/header-menu/index.js +0 -258
- package/dist/components/header-search/index.js +0 -285
- package/dist/components/highlight-j-s/index.js +0 -89
- package/dist/components/highlight-j-s/style.css +0 -21
- package/dist/components/icon-card/index.js +0 -68
- package/dist/components/icon-card/style.css +0 -56
- package/dist/components/icon-temp/index.js +0 -56
- package/dist/components/icon-temp/style.css +0 -21
- package/dist/components/iframe-window/index.js +0 -67
- package/dist/components/iframe-window/style.css +0 -20
- package/dist/components/image-cropper/index.js +0 -217
- package/dist/components/image-cropper/style.css +0 -34
- package/dist/components/image-preview/index.js +0 -264
- package/dist/components/image-preview/style.css +0 -72
- package/dist/components/image-viewer/index.js +0 -113
- package/dist/components/image-viewer/style.css +0 -21
- package/dist/components/input-number/index.js +0 -340
- package/dist/components/input-number/style.css +0 -15
- package/dist/components/input-number-range/index.js +0 -122
- package/dist/components/input-number-range/style.css +0 -12
- package/dist/components/keep-view-alive/index.js +0 -170
- package/dist/components/keyboard/index.js +0 -469
- package/dist/components/keyboard/style.css +0 -547
- package/dist/components/license/index.js +0 -180
- package/dist/components/loading-view/index.js +0 -67
- package/dist/components/loading-view/style.css +0 -17
- package/dist/components/login/index.js +0 -279
- package/dist/components/login/style.css +0 -25
- package/dist/components/name-avatar/index.js +0 -88
- package/dist/components/name-avatar/style.css +0 -35
- package/dist/components/nav-bar/index.js +0 -62
- package/dist/components/nav-bar/style.css +0 -17
- package/dist/components/not-implement/index.js +0 -43
- package/dist/components/not-implement/style.css +0 -15
- package/dist/components/notice/index.js +0 -156
- package/dist/components/notice/style.css +0 -54
- package/dist/components/page/index.js +0 -46
- package/dist/components/page/style.css +0 -12
- package/dist/components/page-header/index.js +0 -62
- package/dist/components/page-header/style.css +0 -14
- package/dist/components/page-index/index.js +0 -200
- package/dist/components/page-index/style.css +0 -23
- package/dist/components/page-index-top/index.js +0 -160
- package/dist/components/page-skeleton/index.js +0 -62
- package/dist/components/page-skeleton/style.css +0 -23
- package/dist/components/page-skeleton-new/index.js +0 -104
- package/dist/components/page-skeleton-new/style.css +0 -42
- package/dist/components/pageable-table/index.js +0 -559
- package/dist/components/pageable-table/style.css +0 -72
- package/dist/components/pageable-view/index.js +0 -462
- package/dist/components/pageable-view/style.css +0 -69
- package/dist/components/photo-swipe/index.js +0 -175
- package/dist/components/process-designer/style.css +0 -1186
- package/dist/components/properties-panel/index.js +0 -5235
- package/dist/components/properties-panel/style.css +0 -122
- package/dist/components/queue/index.js +0 -88
- package/dist/components/record-video/index.js +0 -199
- package/dist/components/record-video/style.css +0 -53
- package/dist/components/resize-observer/index.js +0 -96
- package/dist/components/resize-observer/style.css +0 -31
- package/dist/components/search/index.js +0 -162
- package/dist/components/search/style.css +0 -57
- package/dist/components/search-popover/index.js +0 -473
- package/dist/components/search-popover/style.css +0 -93
- package/dist/components/sign/index.js +0 -236
- package/dist/components/sign/style.css +0 -12
- package/dist/components/sign-panel/index.js +0 -305
- package/dist/components/sign-panel/style.css +0 -97
- package/dist/components/skeleton/index.js +0 -92
- package/dist/components/skeleton/style.css +0 -61
- package/dist/components/split-pane/index.js +0 -298
- package/dist/components/split-pane/style.css +0 -100
- package/dist/components/stateful/index.js +0 -87
- package/dist/components/stateful/style.css +0 -33
- package/dist/components/static-pageable-table/index.js +0 -99
- package/dist/components/static-pageable-table/style.css +0 -9
- package/dist/components/swiper/index.js +0 -247
- package/dist/components/swiper/style.css +0 -43
- package/dist/components/tab/index.js +0 -165
- package/dist/components/tab/style.css +0 -122
- package/dist/components/tab-item/index.js +0 -78
- package/dist/components/table-column/index.js +0 -111
- package/dist/components/table-page/index.js +0 -151
- package/dist/components/table-view/index.js +0 -465
- package/dist/components/table-view/style.css +0 -95
- package/dist/components/tag-render/index.js +0 -127
- package/dist/components/tag-render/style.css +0 -33
- package/dist/components/text-ellipsis/index.js +0 -130
- package/dist/components/text-ellipsis/style.css +0 -9
- package/dist/components/tinymce-editor/index.js +0 -211
- package/dist/components/tinymce-editor/style.css +0 -43
- package/dist/components/tinymce-wrapper/style.css +0 -36
- package/dist/components/toolbar/index.js +0 -238
- package/dist/components/toolbar/style.css +0 -39
- package/dist/components/toolbar-button/index.js +0 -119
- package/dist/components/toolbar-button/style.css +0 -21
- package/dist/components/trigger/index.js +0 -78
- package/dist/components/verify/index.js +0 -87
- package/dist/components/verify/style.css +0 -15
- package/dist/components/vue-tags-input/index.js +0 -673
- package/dist/components/vue-tags-input/style.css +0 -688
- package/dist/components/watermark/index.js +0 -114
- package/dist/components/watermark/style.css +0 -11
- package/dist/index.css +0 -8521
- package/dist/index.es.js +0 -52436
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { s as a, l as n, a as h, b as r } from "./dic.e8280157.mjs";
|
|
2
|
+
import { d, D as c } from "./util.17330567.mjs";
|
|
3
|
+
import { s as l } from "./slot.4b391395.mjs";
|
|
4
|
+
import { isBlank as s } from "@web-utils/core";
|
|
5
|
+
const f = {
|
|
6
|
+
mixins: [l],
|
|
7
|
+
props: {
|
|
8
|
+
defaults: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
option: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: !0,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
watch: {
|
|
21
|
+
defaults: {
|
|
22
|
+
handler(t) {
|
|
23
|
+
this.objectOption = t;
|
|
24
|
+
},
|
|
25
|
+
deep: !0
|
|
26
|
+
},
|
|
27
|
+
objectOption: {
|
|
28
|
+
handler(t) {
|
|
29
|
+
this.$emit("update:defaults", t);
|
|
30
|
+
},
|
|
31
|
+
deep: !0
|
|
32
|
+
},
|
|
33
|
+
propOption: {
|
|
34
|
+
handler(t) {
|
|
35
|
+
const i = {};
|
|
36
|
+
t.forEach((e) => {
|
|
37
|
+
i[e.prop] = e;
|
|
38
|
+
}), this.$set(this, "objectOption", i);
|
|
39
|
+
},
|
|
40
|
+
deep: !0
|
|
41
|
+
},
|
|
42
|
+
option: {
|
|
43
|
+
handler() {
|
|
44
|
+
this.init(!1);
|
|
45
|
+
},
|
|
46
|
+
deep: !0
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
data() {
|
|
50
|
+
return {
|
|
51
|
+
DIC: {},
|
|
52
|
+
cascaderDIC: {},
|
|
53
|
+
tableOption: {},
|
|
54
|
+
isMobile: "",
|
|
55
|
+
objectOption: {}
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
created() {
|
|
59
|
+
this.init();
|
|
60
|
+
},
|
|
61
|
+
computed: {
|
|
62
|
+
resultOption() {
|
|
63
|
+
return Object.assign(d(this.tableOption), {
|
|
64
|
+
column: this.propOption
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
rowKey() {
|
|
68
|
+
return this.tableOption.rowKey || c.rowKey;
|
|
69
|
+
},
|
|
70
|
+
formRules() {
|
|
71
|
+
const t = {};
|
|
72
|
+
return this.propOption.forEach((i) => {
|
|
73
|
+
i.rules && i.display !== !1 && (t[i.prop] = i.rules);
|
|
74
|
+
}), t;
|
|
75
|
+
},
|
|
76
|
+
isMediumSize() {
|
|
77
|
+
return this.controlSize;
|
|
78
|
+
},
|
|
79
|
+
controlSize() {
|
|
80
|
+
return this.tableOption.size || this.$AVUE.size;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
methods: {
|
|
84
|
+
init(t) {
|
|
85
|
+
this.tableOption = this.option, this.getIsMobile(), this.handleLocalDic(), t !== !1 && this.handleLoadDic();
|
|
86
|
+
},
|
|
87
|
+
dicInit(t) {
|
|
88
|
+
t === "cascader" ? this.handleLoadCascaderDic() : this.handleLoadDic();
|
|
89
|
+
},
|
|
90
|
+
getIsMobile() {
|
|
91
|
+
this.isMobile = document.body.clientWidth <= 768;
|
|
92
|
+
},
|
|
93
|
+
updateDic(t, i) {
|
|
94
|
+
const e = this.findObject(this.propOption, t);
|
|
95
|
+
s(i) && s(t) ? this.handleLoadDic() : s(i) && !s(e.dicUrl) ? a({
|
|
96
|
+
column: e
|
|
97
|
+
}).then((o) => {
|
|
98
|
+
this.$set(this.DIC, t, o);
|
|
99
|
+
}) : this.$set(this.DIC, t, i);
|
|
100
|
+
},
|
|
101
|
+
handleSetDic(t, i = {}) {
|
|
102
|
+
Object.keys(i).forEach((e) => {
|
|
103
|
+
this.$set(t, e, i[e]);
|
|
104
|
+
});
|
|
105
|
+
},
|
|
106
|
+
// 本地字典
|
|
107
|
+
handleLocalDic() {
|
|
108
|
+
this.handleSetDic(this.DIC, n(this.resultOption));
|
|
109
|
+
},
|
|
110
|
+
// 网络字典加载
|
|
111
|
+
handleLoadDic() {
|
|
112
|
+
h(this.resultOption).then((t) => this.handleSetDic(this.DIC, t));
|
|
113
|
+
},
|
|
114
|
+
// 级联字典加载
|
|
115
|
+
handleLoadCascaderDic() {
|
|
116
|
+
r(this.propOption, this.data).then((t) => this.handleSetDic(this.cascaderDIC, t));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
f as i
|
|
122
|
+
};
|
package/{dist/chunks/input-number-mixin.44b78389.js → chunks/input-number-mixin.41a066be.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
props: {
|
|
3
3
|
suffixIcon: {
|
|
4
4
|
type: String
|
|
@@ -12,15 +12,15 @@ const inputNumberMixin = {
|
|
|
12
12
|
},
|
|
13
13
|
stepStrictly: {
|
|
14
14
|
type: Boolean,
|
|
15
|
-
default:
|
|
15
|
+
default: !1
|
|
16
16
|
},
|
|
17
17
|
max: {
|
|
18
18
|
type: Number,
|
|
19
|
-
default:
|
|
19
|
+
default: 1 / 0
|
|
20
20
|
},
|
|
21
21
|
min: {
|
|
22
22
|
type: Number,
|
|
23
|
-
default: -
|
|
23
|
+
default: -1 / 0
|
|
24
24
|
},
|
|
25
25
|
value: {
|
|
26
26
|
type: [Number, String]
|
|
@@ -31,7 +31,7 @@ const inputNumberMixin = {
|
|
|
31
31
|
},
|
|
32
32
|
controls: {
|
|
33
33
|
type: Boolean,
|
|
34
|
-
default:
|
|
34
|
+
default: !0
|
|
35
35
|
},
|
|
36
36
|
controlsPosition: {
|
|
37
37
|
type: String,
|
|
@@ -49,12 +49,12 @@ const inputNumberMixin = {
|
|
|
49
49
|
precision: {
|
|
50
50
|
type: Number,
|
|
51
51
|
default: void 0,
|
|
52
|
-
validator(
|
|
53
|
-
return
|
|
52
|
+
validator(e) {
|
|
53
|
+
return e >= 0 && e === parseInt(e, 10);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
t as i
|
|
60
60
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
inject: ["uploader"]
|
|
3
|
-
}
|
|
4
|
-
const supportMixin = {
|
|
3
|
+
}, p = {
|
|
5
4
|
data() {
|
|
6
5
|
return {
|
|
7
|
-
support:
|
|
6
|
+
support: !0
|
|
8
7
|
};
|
|
9
8
|
},
|
|
10
9
|
mounted() {
|
|
@@ -12,6 +11,6 @@ const supportMixin = {
|
|
|
12
11
|
}
|
|
13
12
|
};
|
|
14
13
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
p as s,
|
|
15
|
+
t as u
|
|
17
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLogger } from "@web-utils/core";
|
|
2
|
-
const
|
|
1
|
+
import { createLogger as l } from "@web-utils/core";
|
|
2
|
+
const a = {
|
|
3
3
|
AliOSS: {
|
|
4
4
|
url: "https://cdn.staticfile.org/ali-oss/6.17.1/aliyun-oss-sdk.min.js",
|
|
5
5
|
title: "阿里云云图片上传,需引入OSS的sdk",
|
|
@@ -47,18 +47,12 @@ const list = {
|
|
|
47
47
|
title: "需要引入mock模拟数据包",
|
|
48
48
|
github: "https://github.com/Colingo/mock"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
log.warning(obj.title);
|
|
57
|
-
log.warning(`CDN:${obj.url || "-"}`);
|
|
58
|
-
log.warning(`GITHUB:${obj.github || "-"}`);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
})();
|
|
50
|
+
}, o = (() => ({
|
|
51
|
+
logs: function(s) {
|
|
52
|
+
const t = a[s], i = l(s);
|
|
53
|
+
i.warning(t.title), i.warning(`CDN:${t.url || "-"}`), i.warning(`GITHUB:${t.github || "-"}`);
|
|
54
|
+
}
|
|
55
|
+
}))();
|
|
62
56
|
export {
|
|
63
|
-
|
|
57
|
+
o as p
|
|
64
58
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
methods: {
|
|
3
|
+
getSlotName(s = {}, n = "D", e) {
|
|
4
|
+
const r = {
|
|
5
|
+
F: "Form",
|
|
6
|
+
H: "Header",
|
|
7
|
+
E: "Error",
|
|
8
|
+
L: "Label",
|
|
9
|
+
S: "Search",
|
|
10
|
+
T: "Type",
|
|
11
|
+
D: ""
|
|
12
|
+
}, t = s.prop + r[n];
|
|
13
|
+
return e ? e[t] : t;
|
|
14
|
+
},
|
|
15
|
+
getSlotList(s = [], n, e) {
|
|
16
|
+
return e = e.map((r) => r.prop), Object.keys(n).filter((r) => {
|
|
17
|
+
let t = !1;
|
|
18
|
+
return e.includes(r) || s.forEach((o) => {
|
|
19
|
+
r.includes(o) && (t = !0);
|
|
20
|
+
}), t;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
a as s
|
|
27
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
mounted() {
|
|
3
|
+
this.value >= 0 && (this.currentIndex = this.value), this.updateIndex();
|
|
4
|
+
},
|
|
5
|
+
methods: {
|
|
6
|
+
updateIndex() {
|
|
7
|
+
if (!this.$children || !this.$children.length)
|
|
8
|
+
return;
|
|
9
|
+
this.number = this.$children.length;
|
|
10
|
+
const e = this.$children;
|
|
11
|
+
for (let t = 0; t < e.length; t++)
|
|
12
|
+
e[t].currentIndex = t, e[t].currentSelected && (this.index = t);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
value: Number
|
|
17
|
+
},
|
|
18
|
+
watch: {
|
|
19
|
+
currentIndex(e, t) {
|
|
20
|
+
t > -1 && this.$children[t] && (this.$children[t].currentSelected = !1), e > -1 && this.$children[e] && (this.$children[e].currentSelected = !0), this.$emit("input", e), this.$emit("on-index-change", e, t);
|
|
21
|
+
},
|
|
22
|
+
index(e) {
|
|
23
|
+
this.currentIndex = e;
|
|
24
|
+
},
|
|
25
|
+
value(e) {
|
|
26
|
+
this.index = e;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
index: -1,
|
|
32
|
+
currentIndex: this.index,
|
|
33
|
+
number: this.$children.length
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}, i = {
|
|
37
|
+
props: {
|
|
38
|
+
selected: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
mounted() {
|
|
44
|
+
this.$parent.updateIndex();
|
|
45
|
+
},
|
|
46
|
+
beforeDestroy() {
|
|
47
|
+
const e = this.$parent;
|
|
48
|
+
this.$nextTick(() => {
|
|
49
|
+
e.updateIndex();
|
|
50
|
+
});
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
onItemClick(e) {
|
|
54
|
+
if (this.$parent.preventDefault) {
|
|
55
|
+
this.$parent.$emit("on-before-index-change", this.currentIndex);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
(typeof this.disabled == "undefined" || this.disabled === !1) && (this.currentSelected = !0, this.$parent.currentIndex = this.currentIndex, this.$nextTick(() => {
|
|
59
|
+
this.$emit("on-item-click", this.currentIndex);
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
watch: {
|
|
64
|
+
currentSelected(e) {
|
|
65
|
+
e && (this.$parent.index = this.currentIndex);
|
|
66
|
+
},
|
|
67
|
+
selected(e) {
|
|
68
|
+
this.currentSelected = e;
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
data() {
|
|
72
|
+
return {
|
|
73
|
+
currentIndex: -1,
|
|
74
|
+
currentSelected: this.selected
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
i as c,
|
|
80
|
+
n as p
|
|
81
|
+
};
|
|
@@ -0,0 +1,266 @@
|
|
|
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 = (e, n) => {
|
|
38
|
+
if (!isBlank(e))
|
|
39
|
+
return typeList.audio.test(e) || n === "audio" ? "audio" : typeList.video.test(e) || n === "video" ? "video" : typeList.img.test(e) || n === "img" ? "img" : !1;
|
|
40
|
+
};
|
|
41
|
+
function getFixed(e = 0, n = 2) {
|
|
42
|
+
return Number(e.toFixed(n));
|
|
43
|
+
}
|
|
44
|
+
function getAsVal(e, n = "") {
|
|
45
|
+
let r = deepClone(e);
|
|
46
|
+
return isBlank(n) || n.split(".").forEach((t) => {
|
|
47
|
+
r = isBlank(r[t]) ? "" : r[t];
|
|
48
|
+
}), r;
|
|
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(e, n) {
|
|
56
|
+
typeof e == "object" && e instanceof Blob && (e = URL.createObjectURL(e));
|
|
57
|
+
const r = document.createElement("a");
|
|
58
|
+
r.href = e, r.download = n || "";
|
|
59
|
+
let t;
|
|
60
|
+
window.MouseEvent ? t = new MouseEvent("click") : (t = document.createEvent("MouseEvents"), t.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
|
+
)), r.dispatchEvent(t);
|
|
77
|
+
}
|
|
78
|
+
function strCorNum(e) {
|
|
79
|
+
return e.forEach((n, r) => {
|
|
80
|
+
e[r] = Number(n);
|
|
81
|
+
}), e;
|
|
82
|
+
}
|
|
83
|
+
function extend(...e) {
|
|
84
|
+
let n = e[0] || {}, r = !1;
|
|
85
|
+
const t = Array.prototype.slice.call(e);
|
|
86
|
+
let s = 1, i, o, a, l, c = !1;
|
|
87
|
+
for (typeof n == "boolean" && (r = n, s++, n = e[1]); s < t.length; s++)
|
|
88
|
+
if ((i = t[s]) != null)
|
|
89
|
+
for (a in i)
|
|
90
|
+
l = i[a], o = n[a], r && (toString.call(l) === "[object Object]" || (c = toString.call(l) === "[object Array]")) ? (c ? o = toString.call(o) === "[object Array]" ? o : [] : o = toString.call(o) === "[object Object]" ? o : {}, n[a] = extend(r, o, l)) : l !== void 0 && l !== o && (n[a] = l);
|
|
91
|
+
return n;
|
|
92
|
+
}
|
|
93
|
+
function createObj(e, n) {
|
|
94
|
+
const r = n.split("."), t = r.splice(0, 1)[0], s = {};
|
|
95
|
+
if (s[t] = {}, r.length >= 2) {
|
|
96
|
+
const i = "{", o = "}";
|
|
97
|
+
let a = "";
|
|
98
|
+
r.forEach((l) => {
|
|
99
|
+
a = `${a}${i}"${l}":`;
|
|
100
|
+
}), a = `${a}""`;
|
|
101
|
+
for (let l = 0; l < r.length; l++)
|
|
102
|
+
a = `${a}${o}`;
|
|
103
|
+
a = JSON.parse(a), s[t] = a;
|
|
104
|
+
}
|
|
105
|
+
return e = extend(!0, e, s), e;
|
|
106
|
+
}
|
|
107
|
+
function dataURLtoFile(e, n) {
|
|
108
|
+
const r = e.split(","), t = r[0].match(/:(.*?);/)[1], s = atob(r[1]);
|
|
109
|
+
let i = s.length;
|
|
110
|
+
const o = new Uint8Array(i);
|
|
111
|
+
for (; i--; )
|
|
112
|
+
o[i] = s.charCodeAt(i);
|
|
113
|
+
return new File([o], n, {
|
|
114
|
+
type: t
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function findObject(e, n, r = "prop") {
|
|
118
|
+
let t = -1;
|
|
119
|
+
const s = (() => {
|
|
120
|
+
let i;
|
|
121
|
+
return e.forEach((o) => {
|
|
122
|
+
o.column ? i = "group" : o.children && (i = "tree");
|
|
123
|
+
}), i;
|
|
124
|
+
})();
|
|
125
|
+
return s === "group" ? e.forEach((i) => {
|
|
126
|
+
const o = findArray(i.column, n, r, !0);
|
|
127
|
+
o !== -1 && (t = o);
|
|
128
|
+
}) : s === "tree" ? t = findLabelNode(e, n, { value: r }, !0) : t = findArray(e, n, r, !0), t;
|
|
129
|
+
}
|
|
130
|
+
function randomId() {
|
|
131
|
+
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", n = e.length;
|
|
132
|
+
let r = "";
|
|
133
|
+
for (let t = 0; t < 16; t++)
|
|
134
|
+
r += e.charAt(Math.floor(Math.random() * n));
|
|
135
|
+
return r;
|
|
136
|
+
}
|
|
137
|
+
const deepClone = (e) => {
|
|
138
|
+
const n = getObjType(e);
|
|
139
|
+
let r;
|
|
140
|
+
if (n === "array")
|
|
141
|
+
r = [];
|
|
142
|
+
else if (n === "object")
|
|
143
|
+
r = {};
|
|
144
|
+
else
|
|
145
|
+
return e;
|
|
146
|
+
if (n === "array") {
|
|
147
|
+
e = e;
|
|
148
|
+
let t = 0;
|
|
149
|
+
const s = e.length;
|
|
150
|
+
for (; t < s; t++)
|
|
151
|
+
e[t] && delete e[t].$parent, r.push(deepClone(e[t]));
|
|
152
|
+
} else if (n === "object")
|
|
153
|
+
for (const t in e) {
|
|
154
|
+
const s = e[t];
|
|
155
|
+
s && delete s.$parent, r[t] = deepClone(e[t]);
|
|
156
|
+
}
|
|
157
|
+
return r;
|
|
158
|
+
}, setPx = (e, n = "") => (e || (e = n), e ? (e = `${e}`, e.indexOf("%") === -1 && e.indexOf("px") === -1 && (e = `${e}px`), e) : ""), detailDataType = (e, n) => isBlank(e) ? e : n === "number" ? Number(e) : n === "string" ? `${e}` : e, detailDic = (e = [], n = {}, r) => {
|
|
159
|
+
const t = n.value || DIC_PROPS.value, s = n.children || DIC_PROPS.children;
|
|
160
|
+
return e.forEach((i) => {
|
|
161
|
+
i[t] = detailDataType(i[t], r), i[s] && detailDic(i[s], n, r);
|
|
162
|
+
}), e;
|
|
163
|
+
}, findByValue = (e, n, r) => {
|
|
164
|
+
if (isBlank(e))
|
|
165
|
+
return n;
|
|
166
|
+
const t = n instanceof Array, s = t ? n : [n];
|
|
167
|
+
r = r || DIC_PROPS;
|
|
168
|
+
const i = [];
|
|
169
|
+
for (let o = 0; o < s.length; o++)
|
|
170
|
+
i.push(findLabelNode(e, s[o], r) || s[o]);
|
|
171
|
+
return t ? i.join(DIC_SHOW_SPLIT) : i.join();
|
|
172
|
+
}, filterParams = (e, n = ["", "$"], r = !0) => {
|
|
173
|
+
const t = r ? deepClone(e) : e;
|
|
174
|
+
for (const s in t)
|
|
175
|
+
n.includes("") && isBlank(t[s]) && delete t[s], n.includes("$") && s.indexOf("$") !== -1 && delete t[s];
|
|
176
|
+
return t;
|
|
177
|
+
}, detailDicGroup = (e = [], n = {}) => {
|
|
178
|
+
let r = deepClone(e);
|
|
179
|
+
const t = n[DIC_PROPS.groups] || DIC_PROPS.groups;
|
|
180
|
+
return e.forEach((s) => {
|
|
181
|
+
s[t] && (r = r.concat(s[t]));
|
|
182
|
+
}), r;
|
|
183
|
+
}, findLabelNode = (e, n, r, t = null) => {
|
|
184
|
+
let s;
|
|
185
|
+
t || (e = detailDicGroup(e, r));
|
|
186
|
+
const i = (o) => {
|
|
187
|
+
const a = r.label || DIC_PROPS.label, l = r.value || DIC_PROPS.value, c = r.children || DIC_PROPS.children;
|
|
188
|
+
for (let u = 0; u < o.length; u++) {
|
|
189
|
+
const f = o[u], d = f[c] || [];
|
|
190
|
+
f[l] === n ? s = t ? f : f[a] : i(d);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
return i(e), s;
|
|
194
|
+
}, getDeepData = (e) => (Array.isArray(e) ? e : e.data) || [], getObjValue = (e, n = "", r = null) => {
|
|
195
|
+
const t = n.split(".");
|
|
196
|
+
let s = e;
|
|
197
|
+
return t[0] === "" && r !== "object" ? getDeepData(e) : (t[0] !== "" && t.forEach((i) => {
|
|
198
|
+
s = s[i];
|
|
199
|
+
}), s);
|
|
200
|
+
}, findArray = (e, n, r, t) => {
|
|
201
|
+
r = r || DIC_PROPS.value;
|
|
202
|
+
for (let s = 0; s < e.length; s++)
|
|
203
|
+
if (e[s][r] === n)
|
|
204
|
+
return t ? e[s] : s;
|
|
205
|
+
return -1;
|
|
206
|
+
}, getPasswordChar = (e = "", n) => {
|
|
207
|
+
const r = e.toString().length;
|
|
208
|
+
e = "";
|
|
209
|
+
for (let t = 0; t < r; t++)
|
|
210
|
+
e = e + n;
|
|
211
|
+
return e;
|
|
212
|
+
}, arraySort = (e = [], n, r) => e.filter((t) => !isBlank(t[n])).sort((t, s) => r(t, s)).concat(e.filter((t) => isBlank(t[n]))), clearVal = (e, n, r = []) => e ? (n.forEach((t) => {
|
|
213
|
+
if (!r.includes(t)) {
|
|
214
|
+
if (t.includes("$"))
|
|
215
|
+
delete e[t];
|
|
216
|
+
else if (!isBlank(e[t])) {
|
|
217
|
+
const s = getObjType(e[t]);
|
|
218
|
+
s === "array" ? e[t] = [] : s === "object" ? e[t] = {} : ["number", "boolean"].includes(s) ? e[t] = void 0 : e[t] = "";
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}), e) : {}, optVal = (e, n) => typeof e == "boolean" ? e : isBlank(e) ? n : e;
|
|
222
|
+
function uploadFun(e = {}, n) {
|
|
223
|
+
n = n || this;
|
|
224
|
+
const r = ["uploadPreview", "uploadBefore", "uploadAfter", "uploadDelete", "uploadError", "uploadExceed"], t = {};
|
|
225
|
+
return e.type === "upload" ? r.forEach((s) => {
|
|
226
|
+
e[s] || (t[s] = n[s]);
|
|
227
|
+
}) : r.forEach((s) => {
|
|
228
|
+
t[s] = n[s];
|
|
229
|
+
}), t;
|
|
230
|
+
}
|
|
231
|
+
export {
|
|
232
|
+
ARRAY_VALUE_LIST as A,
|
|
233
|
+
downFile as B,
|
|
234
|
+
DIC_PROPS as D,
|
|
235
|
+
INPUT_LIST as I,
|
|
236
|
+
KEY_COMPONENT_NAME as K,
|
|
237
|
+
MULTIPLE_LIST as M,
|
|
238
|
+
RANGE_LIST as R,
|
|
239
|
+
SELECT_LIST as S,
|
|
240
|
+
arraySort as a,
|
|
241
|
+
DIC_SHOW_SPLIT as b,
|
|
242
|
+
DIC_SPLIT as c,
|
|
243
|
+
deepClone as d,
|
|
244
|
+
strCorNum as e,
|
|
245
|
+
ARRAY_LIST as f,
|
|
246
|
+
getAsVal as g,
|
|
247
|
+
getPasswordChar as h,
|
|
248
|
+
isMediaType as i,
|
|
249
|
+
DATE_LIST as j,
|
|
250
|
+
findByValue as k,
|
|
251
|
+
detailDic as l,
|
|
252
|
+
getObjValue as m,
|
|
253
|
+
findObject as n,
|
|
254
|
+
optVal as o,
|
|
255
|
+
detailDataType as p,
|
|
256
|
+
createObj as q,
|
|
257
|
+
randomId as r,
|
|
258
|
+
setPx as s,
|
|
259
|
+
DIC_HTTP_PROPS as t,
|
|
260
|
+
uploadFun as u,
|
|
261
|
+
filterParams as v,
|
|
262
|
+
getFixed as w,
|
|
263
|
+
setAsVal as x,
|
|
264
|
+
clearVal as y,
|
|
265
|
+
dataURLtoFile as z
|
|
266
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function c(r) {
|
|
2
|
+
const n = Math.floor(r / 31536e3);
|
|
3
|
+
if (n)
|
|
4
|
+
return `${n} 年${o(n)}`;
|
|
5
|
+
const t = Math.floor((r %= 31536e3) / 86400);
|
|
6
|
+
if (t)
|
|
7
|
+
return `${t} 天${o(t)}`;
|
|
8
|
+
const s = Math.floor((r %= 86400) / 3600);
|
|
9
|
+
if (s)
|
|
10
|
+
return `${s} 时${o(s)}`;
|
|
11
|
+
const e = Math.floor((r %= 3600) / 60);
|
|
12
|
+
if (e)
|
|
13
|
+
return `${e} 分${o(e)}`;
|
|
14
|
+
const u = r % 60;
|
|
15
|
+
return `${u} 秒${o(u)}`;
|
|
16
|
+
function o(a) {
|
|
17
|
+
return a > 1, "";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function f(r) {
|
|
21
|
+
return r.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
f as k,
|
|
25
|
+
c as s
|
|
26
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function v(r, a, d, h, i, t, f, u) {
|
|
2
|
+
var e = typeof r == "function" ? r.options : r;
|
|
3
|
+
a && (e.render = a, e.staticRenderFns = d, e._compiled = !0), h && (e.functional = !0), t && (e._scopeId = "data-v-" + t);
|
|
4
|
+
var o;
|
|
5
|
+
if (f ? (o = function(n) {
|
|
6
|
+
n = n || // cached call
|
|
7
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
8
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ != "undefined" && (n = __VUE_SSR_CONTEXT__), i && i.call(this, n), n && n._registeredComponents && n._registeredComponents.add(f);
|
|
9
|
+
}, e._ssrRegister = o) : i && (o = u ? function() {
|
|
10
|
+
i.call(
|
|
11
|
+
this,
|
|
12
|
+
(e.functional ? this.parent : this).$root.$options.shadowRoot
|
|
13
|
+
);
|
|
14
|
+
} : i), o)
|
|
15
|
+
if (e.functional) {
|
|
16
|
+
e._injectStyles = o;
|
|
17
|
+
var l = e.render;
|
|
18
|
+
e.render = function(p, _) {
|
|
19
|
+
return o.call(_), l(p, _);
|
|
20
|
+
};
|
|
21
|
+
} else {
|
|
22
|
+
var s = e.beforeCreate;
|
|
23
|
+
e.beforeCreate = s ? [].concat(s, o) : [o];
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
exports: r,
|
|
27
|
+
options: e
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
v as n
|
|
32
|
+
};
|