@web-utils/component 2.7.20 → 2.7.21
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.46422d7f.js → config.7dec2bf2.js} +2 -2
- package/dist/chunks/confirmable-mixin.7112b769.js +75 -0
- package/dist/chunks/dataformat.9cc4428a.js +158 -0
- package/dist/chunks/dayjs.b0f2f7d9.js +247 -0
- package/dist/chunks/detail.6619700c.js +29 -0
- package/dist/chunks/dic.9de2fe5a.js +135 -0
- package/dist/chunks/{event.dd6f522d.js → event.fc358074.js} +31 -31
- package/dist/chunks/{form-input-mixin.ff5b58f7.js → form-input-mixin.df413ca8.js} +6 -6
- package/dist/chunks/{form-item-mixin.79f6eaff.js → form-item-mixin.b850e028.js} +18 -18
- package/dist/chunks/{form-pick-mixin.61ad06b2.js → form-pick-mixin.c4e0391b.js} +2 -2
- package/dist/chunks/init.e0133910.js +122 -0
- package/dist/chunks/{input-number-mixin.41a066be.js → input-number-mixin.6849fa63.js} +4 -4
- package/dist/chunks/{mixins.5a78e0db.js → mixins.6a394a6c.js} +4 -4
- package/dist/chunks/{packages.1fc9ccba.js → packages.419bde01.js} +7 -7
- package/dist/chunks/permission.07c49abf.js +16 -0
- package/dist/chunks/slot.a7387ecc.js +27 -0
- package/dist/chunks/{tab-mixin.8c0142e0.js → tab-mixin.51886d91.js} +20 -20
- package/dist/chunks/util.89913643.js +261 -0
- package/dist/chunks/utils.d7f73f8d.js +185 -0
- package/dist/chunks/utils.f44207f4.js +26 -0
- package/dist/chunks/vueComponentNormalizer.bf552d98.js +32 -0
- package/dist/components/address-input/index.js +36 -36
- package/dist/components/address-input/style.css +10 -1
- package/dist/components/affix/index.js +39 -39
- package/dist/components/affix/style.css +4 -1
- package/dist/components/aside-menu/index.js +29 -29
- package/dist/components/aside-menu/style.css +3 -1
- package/dist/components/avatar/index.js +43 -43
- package/dist/components/avatar/style.css +51 -1
- package/dist/components/awesome-button/index.js +28 -28
- package/dist/components/base.css +536 -1
- package/dist/components/capsule-tab/index.js +26 -26
- package/dist/components/capsule-tab/style.css +26 -1
- package/dist/components/card/index.js +49 -49
- package/dist/components/card/style.css +84 -1
- package/dist/components/carousel/index.js +35 -35
- package/dist/components/carousel/style.css +35 -1
- package/dist/components/chat/index.js +203 -203
- package/dist/components/chat/style.css +277 -1
- package/dist/components/chunk-file-uploader/index.js +46 -46
- package/dist/components/chunk-file-uploader/style.css +3 -1
- package/dist/components/chunk-file-uploader-button/index.js +22 -22
- package/dist/components/chunk-file-uploader-button/style.css +16 -1
- package/dist/components/chunk-file-uploader-drop/index.js +27 -27
- package/dist/components/chunk-file-uploader-drop/style.css +11 -1
- package/dist/components/chunk-file-uploader-file/index.js +118 -118
- package/dist/components/chunk-file-uploader-file/style.css +124 -1
- package/dist/components/chunk-file-uploader-files/index.js +27 -27
- package/dist/components/chunk-file-uploader-files/style.css +8 -1
- package/dist/components/chunk-file-uploader-list/index.js +27 -27
- package/dist/components/chunk-file-uploader-list/style.css +8 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +27 -27
- package/dist/components/chunk-file-uploader-un-support/style.css +5 -1
- package/dist/components/code-mirror-editor/index.js +134 -134
- package/dist/components/code-mirror-editor/style.css +11 -1
- package/dist/components/color-picker/index.js +39 -39
- package/dist/components/column/index.js +66 -66
- package/dist/components/column-default/index.js +54 -54
- package/dist/components/column-dynamic/index.js +54 -54
- package/dist/components/column-menu/index.js +128 -128
- package/dist/components/column-slot/index.js +168 -168
- package/dist/components/comment/index.js +33 -33
- package/dist/components/comment/style.css +110 -1
- package/dist/components/confirm-button/index.js +18 -18
- package/dist/components/confirmable/index.js +17 -17
- package/dist/components/context-menu/index.js +89 -89
- package/dist/components/context-menu/style.css +84 -1
- package/dist/components/count-up/index.js +36 -36
- package/dist/components/custom-scrollbar/index.js +45 -45
- package/dist/components/data-box/index.js +41 -41
- package/dist/components/data-box/style.css +52 -1
- package/dist/components/data-card/index.js +38 -38
- package/dist/components/data-card/style.css +35 -1
- package/dist/components/data-cardtext/index.js +33 -33
- package/dist/components/data-cardtext/style.css +30 -1
- package/dist/components/data-display/index.js +37 -37
- package/dist/components/data-display/style.css +31 -1
- package/dist/components/data-icons/index.js +40 -40
- package/dist/components/data-icons/style.css +47 -1
- package/dist/components/data-imgtext/index.js +44 -44
- package/dist/components/data-imgtext/style.css +65 -1
- package/dist/components/data-operatext/index.js +44 -44
- package/dist/components/data-operatext/style.css +72 -1
- package/dist/components/data-panel/index.js +38 -38
- package/dist/components/data-panel/style.css +31 -1
- package/dist/components/data-pay/index.js +60 -60
- package/dist/components/data-pay/style.css +96 -1
- package/dist/components/data-price/index.js +38 -38
- package/dist/components/data-price/style.css +75 -1
- package/dist/components/data-progress/index.js +39 -39
- package/dist/components/data-progress/style.css +24 -1
- package/dist/components/data-rotate/index.js +39 -39
- package/dist/components/data-rotate/style.css +44 -1
- package/dist/components/data-table-picker/index.js +151 -53
- package/dist/components/data-tabs/index.js +39 -39
- package/dist/components/data-tabs/style.css +64 -1
- package/dist/components/dialog-column/index.js +50 -50
- package/dist/components/dialog-excel/index.js +68 -68
- package/dist/components/dialog-filter/index.js +84 -84
- package/dist/components/dialog-form/index.js +89 -89
- package/dist/components/dialog-form/style.css +5 -0
- package/dist/components/dynamic-table/index.js +71 -71
- package/dist/components/dynamic-table/style.css +24 -1
- package/dist/components/e-charts/index.js +95 -94
- package/dist/components/e-charts/style.css +4 -1
- package/dist/components/easy-popup/index.js +87 -0
- package/dist/components/easy-popup/style.css +12 -0
- package/dist/components/editable-progress/index.js +48 -48
- package/dist/components/editable-progress/style.css +33 -1
- package/dist/components/editable-tree/index.js +587 -287
- package/dist/components/editable-tree/style.css +79 -1
- package/dist/components/egd-collapse/index.js +29 -29
- package/dist/components/egd-collapse-item/index.js +51 -51
- package/dist/components/element-dialog/index.js +74 -65
- package/dist/components/element-dialog/style.css +82 -1
- package/dist/components/empty-view/index.js +26 -26
- package/dist/components/empty-view/style.css +11 -1
- package/dist/components/error-view/index.js +25 -25
- package/dist/components/error-view/style.css +11 -1
- package/dist/components/flex-column/index.js +19 -19
- package/dist/components/flex-item/index.js +20 -20
- package/dist/components/flex-row/index.js +19 -19
- package/dist/components/flex-scroller/index.js +24 -24
- package/dist/components/flex-scroller/style.css +14 -1
- package/dist/components/flow/index.js +100 -100
- package/dist/components/flow/style.css +38 -1
- package/dist/components/flow-node/index.js +37 -37
- package/dist/components/flow-viewer/index.js +135 -0
- package/dist/components/flow-viewer/style.css +13 -0
- package/dist/components/form-button/index.js +32 -32
- package/dist/components/form-cascader/index.js +62 -61
- package/dist/components/form-checkbox-group/index.js +61 -61
- package/dist/components/form-checkbox-group/style.css +45 -1
- package/dist/components/form-date-picker/index.js +57 -57
- package/dist/components/form-group/index.js +38 -38
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/index.js +30 -30
- package/dist/components/form-input/index.js +50 -50
- package/dist/components/form-input-email/index.js +44 -44
- package/dist/components/form-input-id-card/index.js +49 -49
- package/dist/components/form-input-number/index.js +49 -49
- package/dist/components/form-input-number/style.css +6 -1
- package/dist/components/form-input-phone-number/index.js +45 -45
- package/dist/components/form-input-time/index.js +48 -48
- package/dist/components/form-item/index.js +73 -73
- package/dist/components/form-item/style.css +5 -1
- package/dist/components/form-item-config-provider/index.js +19 -19
- package/dist/components/form-item-group/index.js +65 -65
- package/dist/components/form-item-group/style.css +25 -1
- package/dist/components/form-radio-group/index.js +61 -61
- package/dist/components/form-radio-group/style.css +47 -1
- package/dist/components/form-select/index.js +52 -52
- package/dist/components/form-switch/index.js +45 -45
- package/dist/components/form-temp/index.js +50 -50
- package/dist/components/form-textarea/index.js +44 -44
- package/dist/components/form-view/index.js +143 -142
- package/dist/components/form-view/style.css +155 -1
- package/dist/components/fy-array/index.js +64 -64
- package/dist/components/fy-array/style.css +12 -1
- package/dist/components/fy-article/index.js +34 -34
- package/dist/components/fy-article/style.css +56 -1
- package/dist/components/fy-cascader/index.js +52 -52
- package/dist/components/fy-checkbox/index.js +52 -52
- package/dist/components/fy-checkbox/style.css +9 -1
- package/dist/components/fy-code/index.js +30 -30
- package/dist/components/fy-curd/index.js +317 -317
- package/dist/components/fy-curd/style.css +236 -1
- package/dist/components/fy-date/index.js +45 -45
- package/dist/components/fy-date/style.css +15 -1
- package/dist/components/fy-dialog-form/index.js +115 -115
- package/dist/components/fy-draggable/index.js +120 -120
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/index.js +126 -126
- package/dist/components/fy-dynamic/style.css +29 -1
- package/dist/components/fy-empty/index.js +26 -26
- package/dist/components/fy-empty/style.css +18 -1
- package/dist/components/fy-form/index.js +365 -365
- package/dist/components/fy-form/style.css +73 -1
- package/dist/components/fy-form-design/index.js +6906 -433
- package/dist/components/fy-form-design/style.css +560 -1
- package/dist/components/fy-form-menu/index.js +45 -45
- package/dist/components/fy-input/index.js +61 -61
- package/dist/components/fy-input-color/index.js +41 -41
- package/dist/components/fy-input-icon/index.js +70 -70
- package/dist/components/fy-input-icon/style.css +33 -1
- package/dist/components/fy-input-map/index.js +102 -102
- package/dist/components/fy-input-map/style.css +44 -1
- package/dist/components/fy-input-number/index.js +39 -39
- package/dist/components/fy-input-table/index.js +70 -70
- package/dist/components/fy-input-table/style.css +4 -1
- package/dist/components/fy-input-tree/index.js +105 -105
- package/dist/components/fy-input-tree/style.css +19 -1
- package/dist/components/fy-progress/index.js +25 -25
- package/dist/components/fy-radio/index.js +36 -36
- package/dist/components/fy-radio/style.css +6 -1
- package/dist/components/fy-rate/index.js +40 -40
- package/dist/components/fy-rate/style.css +3 -1
- package/dist/components/fy-select/index.js +101 -101
- package/dist/components/fy-select/style.css +19 -1
- package/dist/components/fy-slider/index.js +42 -42
- package/dist/components/fy-switch/index.js +37 -37
- package/dist/components/fy-tabs/index.js +35 -35
- package/dist/components/fy-time/index.js +47 -47
- package/dist/components/fy-title/index.js +23 -23
- package/dist/components/fy-title/style.css +5 -1
- package/dist/components/fy-tree/index.js +157 -157
- package/dist/components/fy-tree/style.css +39 -1
- package/dist/components/fy-u-editor/index.js +99 -99
- package/dist/components/fy-u-editor/style.css +9 -1
- package/dist/components/fy-upload/index.js +270 -270
- package/dist/components/fy-upload/style.css +55 -1
- package/dist/components/guide-steps/index.js +41 -41
- package/dist/components/guide-steps/style.css +28 -1
- package/dist/components/header-menu/index.js +94 -94
- package/dist/components/header-search/index.js +121 -121
- package/dist/components/highlight-j-s/index.js +76 -0
- package/dist/components/highlight-j-s/style.css +18 -0
- package/dist/components/icon-card/index.js +28 -28
- package/dist/components/icon-card/style.css +50 -1
- package/dist/components/icon-temp/index.js +24 -24
- package/dist/components/icon-temp/style.css +17 -1
- package/dist/components/iframe-window/index.js +24 -24
- package/dist/components/iframe-window/style.css +14 -1
- package/dist/components/image-cropper/index.js +117 -117
- package/dist/components/image-cropper/style.css +28 -1
- package/dist/components/image-preview/index.js +127 -127
- package/dist/components/image-preview/style.css +66 -1
- package/dist/components/image-viewer/index.js +35 -35
- package/dist/components/image-viewer/style.css +15 -1
- package/dist/components/input-number/index.js +116 -116
- package/dist/components/input-number/style.css +9 -1
- package/dist/components/input-number-range/index.js +37 -37
- package/dist/components/input-number-range/style.css +6 -1
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +71 -71
- package/dist/components/keyboard/index.js +182 -182
- package/dist/components/keyboard/style.css +473 -1
- package/dist/components/license/index.js +54 -54
- package/dist/components/loading-view/index.js +25 -25
- package/dist/components/loading-view/style.css +11 -1
- package/dist/components/login/index.js +94 -94
- package/dist/components/login/style.css +19 -1
- package/dist/components/name-avatar/index.js +26 -26
- package/dist/components/name-avatar/style.css +30 -1
- package/dist/components/nav-bar/index.js +22 -22
- package/dist/components/nav-bar/style.css +11 -1
- package/dist/components/not-implement/index.js +22 -22
- package/dist/components/not-implement/style.css +9 -1
- package/dist/components/notice/index.js +55 -55
- package/dist/components/notice/style.css +48 -1
- package/dist/components/page/index.js +20 -20
- package/dist/components/page/style.css +6 -1
- package/dist/components/page-header/index.js +28 -28
- package/dist/components/page-header/style.css +8 -1
- package/dist/components/page-index/index.js +57 -57
- package/dist/components/page-index/style.css +17 -1
- package/dist/components/page-index-top/index.js +46 -46
- package/dist/components/page-skeleton/index.js +28 -28
- package/dist/components/page-skeleton/style.css +17 -1
- package/dist/components/page-skeleton-new/index.js +38 -38
- package/dist/components/page-skeleton-new/style.css +36 -1
- package/dist/components/pageable-table/index.js +140 -139
- package/dist/components/pageable-table/style.css +66 -1
- package/dist/components/pageable-view/index.js +103 -102
- package/dist/components/pageable-view/style.css +63 -1
- package/dist/components/photo-swipe/index.js +64 -64
- package/dist/components/process-designer/index.js +4638 -0
- package/dist/components/process-designer/style.css +1648 -0
- package/dist/components/properties-panel/index.js +4765 -0
- package/dist/components/properties-panel/style.css +106 -0
- package/dist/components/queue/index.js +24 -24
- package/dist/components/record-video/index.js +55 -55
- package/dist/components/record-video/style.css +47 -1
- package/dist/components/resize-observer/index.js +26 -26
- package/dist/components/resize-observer/style.css +25 -1
- package/dist/components/search/index.js +64 -64
- package/dist/components/search/style.css +51 -1
- package/dist/components/search-popover/index.js +98 -98
- package/dist/components/search-popover/style.css +90 -1
- package/dist/components/sign/index.js +66 -66
- package/dist/components/sign/style.css +6 -1
- package/dist/components/sign-panel/index.js +78 -78
- package/dist/components/sign-panel/style.css +91 -1
- package/dist/components/skeleton/index.js +35 -35
- package/dist/components/skeleton/style.css +55 -1
- package/dist/components/split-pane/index.js +88 -88
- package/dist/components/split-pane/style.css +98 -1
- package/dist/components/stateful/index.js +29 -29
- package/dist/components/stateful/style.css +27 -1
- package/dist/components/static-pageable-table/index.js +30 -30
- package/dist/components/static-pageable-table/style.css +3 -1
- package/dist/components/swiper/index.js +69 -69
- package/dist/components/swiper/style.css +37 -1
- package/dist/components/tab/index.js +47 -47
- package/dist/components/tab/style.css +108 -1
- package/dist/components/tab-item/index.js +29 -29
- package/dist/components/table-column/index.js +25 -25
- package/dist/components/table-page/index.js +51 -51
- package/dist/components/table-view/index.js +123 -122
- package/dist/components/table-view/style.css +90 -1
- package/dist/components/tag-render/index.js +39 -39
- package/dist/components/tag-render/style.css +27 -1
- package/dist/components/text-ellipsis/index.js +40 -40
- package/dist/components/text-ellipsis/style.css +3 -1
- package/dist/components/tinymce-editor/index.js +62 -62
- package/dist/components/tinymce-editor/style.css +37 -1
- package/dist/components/tinymce-wrapper/index.js +76 -76
- package/dist/components/tinymce-wrapper/style.css +30 -1
- package/dist/components/toolbar/index.js +51 -51
- package/dist/components/toolbar/style.css +35 -1
- package/dist/components/toolbar-button/index.js +33 -33
- package/dist/components/toolbar-button/style.css +15 -1
- package/dist/components/trigger/index.js +27 -27
- package/dist/components/verify/index.js +33 -33
- package/dist/components/verify/style.css +9 -1
- package/dist/components/vue-tags-input/index.js +137 -137
- package/dist/components/vue-tags-input/style.css +102 -1
- package/dist/components/watermark/index.js +25 -25
- package/dist/components/watermark/style.css +10 -1
- package/dist/index.css +1797 -0
- package/dist/index.es.js +22766 -12431
- package/package.json +18 -6
- package/web-types.json +307 -1
- package/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +0 -302
- package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +0 -51
- package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +0 -24
- package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +0 -52
- package/dist/chunks/ConfigDate.vue_vue_type_template_lang.116fbad4.js +0 -104
- package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.99082e47.js +0 -133
- package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +0 -96
- package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +0 -48
- package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +0 -96
- package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +0 -31
- package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +0 -130
- package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +0 -125
- package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.dfc91f07.js +0 -488
- package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +0 -99
- package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +0 -54
- package/dist/chunks/ConfigTable.vue_vue_type_template_lang.b27540fd.js +0 -344
- package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +0 -88
- package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +0 -87
- package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js +0 -465
- package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +0 -240
- package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.129c0ced.js +0 -476
- package/dist/chunks/FormConfig.vue_vue_type_template_lang.82463ce5.js +0 -220
- package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js +0 -1821
- package/dist/chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js +0 -247
- package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js +0 -271
- package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +0 -24
- package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js +0 -229
- package/dist/chunks/confirmable-mixin.3a79781b.js +0 -75
- package/dist/chunks/dataformat.65b92bfe.js +0 -158
- package/dist/chunks/detail.d67573b1.js +0 -28
- package/dist/chunks/dic.70feb9b4.js +0 -135
- package/dist/chunks/init.7c58eb34.js +0 -122
- package/dist/chunks/monaco.cefcb9f5.js +0 -290
- package/dist/chunks/permission.ce5d2121.js +0 -16
- package/dist/chunks/slot.4b391395.js +0 -27
- package/dist/chunks/util.23fe58fb.js +0 -261
- package/dist/chunks/utils.97652d86.js +0 -26
- package/dist/chunks/utils.fa73de78.js +0 -185
- package/dist/chunks/vueComponentNormalizer.71e2aa87.js +0 -32
- package/dist/components/afd-column/index.js +0 -57
- package/dist/components/config-array/index.js +0 -28
- package/dist/components/config-color/index.js +0 -28
- package/dist/components/config-custom/index.js +0 -62
- package/dist/components/config-date/index.js +0 -28
- package/dist/components/config-dynamic/index.js +0 -28
- package/dist/components/config-event/index.js +0 -74
- package/dist/components/config-group/index.js +0 -36
- package/dist/components/config-input/index.js +0 -29
- package/dist/components/config-map/index.js +0 -28
- package/dist/components/config-number/index.js +0 -28
- package/dist/components/config-rate/index.js +0 -71
- package/dist/components/config-rate/style.css +0 -1
- package/dist/components/config-select/index.js +0 -90
- package/dist/components/config-slider/index.js +0 -28
- package/dist/components/config-switch/index.js +0 -33
- package/dist/components/config-switch/style.css +0 -1
- package/dist/components/config-table/index.js +0 -122
- package/dist/components/config-textarea/index.js +0 -28
- package/dist/components/config-title/index.js +0 -33
- package/dist/components/config-tree/index.js +0 -122
- package/dist/components/config-tree/style.css +0 -1
- package/dist/components/config-u-editor/index.js +0 -34
- package/dist/components/config-upload/index.js +0 -58
- package/dist/components/form-config/index.js +0 -28
- package/dist/components/fy-dialog-form/style.css +0 -1
- package/dist/components/widget-config/index.js +0 -110
- package/dist/components/widget-form/index.js +0 -71
- package/dist/components/widget-form-group/index.js +0 -96
- package/dist/components/widget-form-item/index.js +0 -71
- package/dist/components/widget-form-table/index.js +0 -95
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { d as s } from "./util.23fe58fb.js";
|
|
2
|
-
import { s as o, r as c } from "./WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js";
|
|
3
|
-
import { n as d } from "./vueComponentNormalizer.71e2aa87.js";
|
|
4
|
-
const u = {
|
|
5
|
-
name: "WidgetFormItem",
|
|
6
|
-
props: {
|
|
7
|
-
item: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default: () => ({})
|
|
10
|
-
},
|
|
11
|
-
params: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default: () => ({})
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
data() {
|
|
17
|
-
return {
|
|
18
|
-
form: {}
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
computed: {
|
|
22
|
-
vBind() {
|
|
23
|
-
const e = Object.assign(s(this.item), this.params, {
|
|
24
|
-
size: this.item.size || "small",
|
|
25
|
-
dic: this.item.dicData ? this.item.dicData.map((i) => {
|
|
26
|
-
if (!this.item.props)
|
|
27
|
-
return i;
|
|
28
|
-
const { label: t, value: a, desc: l } = this.item.props;
|
|
29
|
-
return !t || !a ? i : {
|
|
30
|
-
[t]: i.label,
|
|
31
|
-
[a]: i.value,
|
|
32
|
-
[l]: i.desc
|
|
33
|
-
};
|
|
34
|
-
}) : void 0,
|
|
35
|
-
rules: this.item.pattern ? this.item.rules.map((i) => (i.pattern && (i.pattern = new RegExp(this.item.pattern)), i)) : this.item.rules
|
|
36
|
-
});
|
|
37
|
-
return ["change", "blur", "click", "focus"].forEach((i) => delete e[i]), e.event && delete e.event, e;
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
methods: {
|
|
41
|
-
getComponent(e, n) {
|
|
42
|
-
const i = "fy-";
|
|
43
|
-
let t = "input";
|
|
44
|
-
return n || (["array", "img", "url"].includes(e) ? t = "array" : e === "select" ? t = "select" : e === "radio" ? t = "radio" : e === "checkbox" ? t = "checkbox" : ["time", "timerange"].includes(e) ? t = "time" : ["dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year"].includes(e) ? t = "date" : e === "cascader" ? t = "cascader" : e === "number" ? t = "input-number" : e === "password" ? t = "input" : e === "switch" ? t = "switch" : e === "rate" ? t = "rate" : e === "upload" ? t = "upload" : e === "slider" ? t = "slider" : e === "dynamic" ? t = "dynamic" : e === "icon" ? t = "input-icon" : e === "color" ? t = "input-color" : e === "map" && (t = "input-map"), i + t);
|
|
45
|
-
},
|
|
46
|
-
getPlaceholder(e) {
|
|
47
|
-
const n = e.label;
|
|
48
|
-
return ["select", "checkbox", "radio", "tree", "color", "dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year", "map", "icon"].includes(e.type) ? `请选择 ${n}` : `请输入 ${n}`;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}, r = {};
|
|
52
|
-
var p = /* @__PURE__ */ d(
|
|
53
|
-
u,
|
|
54
|
-
c,
|
|
55
|
-
o,
|
|
56
|
-
!1,
|
|
57
|
-
m,
|
|
58
|
-
null,
|
|
59
|
-
null,
|
|
60
|
-
null
|
|
61
|
-
);
|
|
62
|
-
function m(e) {
|
|
63
|
-
for (let n in r)
|
|
64
|
-
this[n] = r[n];
|
|
65
|
-
}
|
|
66
|
-
const _ = /* @__PURE__ */ function() {
|
|
67
|
-
return p.exports;
|
|
68
|
-
}();
|
|
69
|
-
var b = function() {
|
|
70
|
-
var e = this, n = e.$createElement, i = e._self._c || n;
|
|
71
|
-
return i("div", [i("h3", {
|
|
72
|
-
directives: [{
|
|
73
|
-
name: "show",
|
|
74
|
-
rawName: "v-show",
|
|
75
|
-
value: e.column.label,
|
|
76
|
-
expression: "column.label"
|
|
77
|
-
}],
|
|
78
|
-
staticStyle: {
|
|
79
|
-
margin: "10px"
|
|
80
|
-
}
|
|
81
|
-
}, [e._v(" " + e._s(e.column.label) + " ")]), i("Draggable", {
|
|
82
|
-
staticClass: "widget-form-table__content",
|
|
83
|
-
attrs: {
|
|
84
|
-
list: e.column.children.column,
|
|
85
|
-
group: {
|
|
86
|
-
name: "form"
|
|
87
|
-
},
|
|
88
|
-
"ghost-class": "ghost",
|
|
89
|
-
animation: 200,
|
|
90
|
-
handle: ".widget-form-table__item"
|
|
91
|
-
},
|
|
92
|
-
on: {
|
|
93
|
-
add: function(t) {
|
|
94
|
-
return e.handleWidgetTableAdd(t, e.column);
|
|
95
|
-
},
|
|
96
|
-
end: function(t) {
|
|
97
|
-
return e.$emit("change");
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}, [e.column.children.column.length > 0 ? e._l(e.column.children.column, function(t, a) {
|
|
101
|
-
return i("div", {
|
|
102
|
-
key: a,
|
|
103
|
-
staticClass: "widget-form-table__item",
|
|
104
|
-
class: {
|
|
105
|
-
active: e.selectWidget.prop === t.prop,
|
|
106
|
-
required: t.required
|
|
107
|
-
},
|
|
108
|
-
style: {
|
|
109
|
-
minWidth: t.width ? `${t.width}px` : "33.3%",
|
|
110
|
-
width: t.width ? `${t.width}px` : "33.3%"
|
|
111
|
-
},
|
|
112
|
-
on: {
|
|
113
|
-
click: function(l) {
|
|
114
|
-
return l.stopPropagation(), e.handleWidgetTableSelect(t);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, [i("ElTable", {
|
|
118
|
-
attrs: {
|
|
119
|
-
data: [t],
|
|
120
|
-
border: ""
|
|
121
|
-
}
|
|
122
|
-
}, [i("ElTableColumn", {
|
|
123
|
-
attrs: {
|
|
124
|
-
prop: t.prop,
|
|
125
|
-
label: t.label,
|
|
126
|
-
align: e.column.children.align,
|
|
127
|
-
"header-align": e.column.children.headerAlign
|
|
128
|
-
}
|
|
129
|
-
}, [i("WidgetFormItem", {
|
|
130
|
-
attrs: {
|
|
131
|
-
item: t,
|
|
132
|
-
params: e.column.params
|
|
133
|
-
}
|
|
134
|
-
}), e.selectWidget.prop === t.prop ? i("ElButton", {
|
|
135
|
-
staticClass: "widget-table-action-delete",
|
|
136
|
-
attrs: {
|
|
137
|
-
title: "删除",
|
|
138
|
-
circle: "",
|
|
139
|
-
plain: "",
|
|
140
|
-
size: "small",
|
|
141
|
-
type: "danger"
|
|
142
|
-
},
|
|
143
|
-
on: {
|
|
144
|
-
click: function(l) {
|
|
145
|
-
return l.stopPropagation(), e.handleWidgetTableDelete(e.column, a);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}, [i("i", {
|
|
149
|
-
staticClass: "iconfont icon-delete"
|
|
150
|
-
})]) : e._e(), e.selectWidget.prop === t.prop ? i("ElButton", {
|
|
151
|
-
staticClass: "widget-table-action-clone",
|
|
152
|
-
attrs: {
|
|
153
|
-
title: "复制",
|
|
154
|
-
circle: "",
|
|
155
|
-
plain: "",
|
|
156
|
-
size: "small",
|
|
157
|
-
type: "primary"
|
|
158
|
-
},
|
|
159
|
-
on: {
|
|
160
|
-
click: function(l) {
|
|
161
|
-
return l.stopPropagation(), e.handleWidgetTableClone(e.column, t);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}, [i("i", {
|
|
165
|
-
staticClass: "iconfont icon-copy"
|
|
166
|
-
})]) : e._e()], 1)], 1)], 1);
|
|
167
|
-
}) : [i("FyEmpty", {
|
|
168
|
-
staticStyle: {
|
|
169
|
-
width: "100%"
|
|
170
|
-
},
|
|
171
|
-
attrs: {
|
|
172
|
-
size: "50",
|
|
173
|
-
desc: "拖拽字段至此"
|
|
174
|
-
}
|
|
175
|
-
})]], 2), e.selectWidget.prop === e.column.prop ? i("ElButton", {
|
|
176
|
-
staticClass: "widget-action-delete",
|
|
177
|
-
attrs: {
|
|
178
|
-
title: "删除",
|
|
179
|
-
circle: "",
|
|
180
|
-
plain: "",
|
|
181
|
-
size: "small",
|
|
182
|
-
type: "danger"
|
|
183
|
-
},
|
|
184
|
-
on: {
|
|
185
|
-
click: function(t) {
|
|
186
|
-
return t.stopPropagation(), e.handleWidgetDelete(e.index);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}, [i("i", {
|
|
190
|
-
staticClass: "iconfont icon-delete"
|
|
191
|
-
})]) : e._e(), e.selectWidget.prop === e.column.prop ? i("ElButton", {
|
|
192
|
-
staticClass: "widget-action-clear",
|
|
193
|
-
attrs: {
|
|
194
|
-
title: "清空",
|
|
195
|
-
circle: "",
|
|
196
|
-
plain: "",
|
|
197
|
-
size: "small",
|
|
198
|
-
type: "warning"
|
|
199
|
-
},
|
|
200
|
-
on: {
|
|
201
|
-
click: function(t) {
|
|
202
|
-
return t.stopPropagation(), e.handleWidgetClear(e.index);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}, [i("i", {
|
|
206
|
-
staticClass: "iconfont icon-clear"
|
|
207
|
-
})]) : e._e(), e.selectWidget.prop === e.column.prop ? i("ElButton", {
|
|
208
|
-
staticClass: "widget-action-clone",
|
|
209
|
-
attrs: {
|
|
210
|
-
title: "复制",
|
|
211
|
-
circle: "",
|
|
212
|
-
plain: "",
|
|
213
|
-
size: "small",
|
|
214
|
-
type: "primary"
|
|
215
|
-
},
|
|
216
|
-
on: {
|
|
217
|
-
click: function(t) {
|
|
218
|
-
return t.stopPropagation(), e.handleWidgetCloneTable(e.index);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}, [i("i", {
|
|
222
|
-
staticClass: "iconfont icon-copy"
|
|
223
|
-
})]) : e._e()], 1);
|
|
224
|
-
}, v = [];
|
|
225
|
-
export {
|
|
226
|
-
_ as W,
|
|
227
|
-
b as r,
|
|
228
|
-
v as s
|
|
229
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { MessageBox as b, Loading as w } from "element-ui";
|
|
2
|
-
import { isFunction as i } from "@web-utils/core";
|
|
3
|
-
async function S(t, e, n) {
|
|
4
|
-
const { stop: o, prevent: r, message: f, loadable: l, loadingText: d, confirmable: y, confirmType: m, confirmText: x } = e;
|
|
5
|
-
o && t.stopPropagation(), r && t.preventDefault();
|
|
6
|
-
const { before: c, click: u, cancel: g, after: p } = n;
|
|
7
|
-
if (i(u))
|
|
8
|
-
try {
|
|
9
|
-
let a = !0;
|
|
10
|
-
if (i(c) && (a = await c(t)), a === !1)
|
|
11
|
-
return;
|
|
12
|
-
y && await b.confirm(f || x, { type: m });
|
|
13
|
-
let s;
|
|
14
|
-
l && (s = w.service({ background: "rgba(0,0,0,0.3)", text: d }));
|
|
15
|
-
try {
|
|
16
|
-
await u(t);
|
|
17
|
-
} catch {
|
|
18
|
-
}
|
|
19
|
-
l && s.close(), i(p) && await p(t);
|
|
20
|
-
} catch (a) {
|
|
21
|
-
i(g) && await g(a);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const v = {
|
|
25
|
-
functional: !0,
|
|
26
|
-
props: {
|
|
27
|
-
stop: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !0
|
|
30
|
-
},
|
|
31
|
-
prevent: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
text: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
|
-
message: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "你确定要删除该记录吗?"
|
|
42
|
-
},
|
|
43
|
-
confirmable: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: !0
|
|
46
|
-
},
|
|
47
|
-
confirmText: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "你确定要删除该记录吗?"
|
|
50
|
-
},
|
|
51
|
-
confirmType: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: "warning"
|
|
54
|
-
},
|
|
55
|
-
loadable: Boolean,
|
|
56
|
-
loadingText: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: "正在处理中请稍候..."
|
|
59
|
-
},
|
|
60
|
-
tag: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: "i"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
render(t, { props: e, data: n, children: o, listeners: r }) {
|
|
66
|
-
return t(e.tag, {
|
|
67
|
-
...n,
|
|
68
|
-
on: { click: (f) => S(f, e, r) },
|
|
69
|
-
props: e
|
|
70
|
-
}, o || e.text);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
v as c
|
|
75
|
-
};
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { isBlank as l } from "@web-utils/core";
|
|
2
|
-
import { f as E, M as f, A as h, R as T, a as u, b as m, K as A, c as I, S as L, D as S, e as B, I as _ } from "./util.23fe58fb.js";
|
|
3
|
-
const P = {
|
|
4
|
-
common: {
|
|
5
|
-
condition: "条件",
|
|
6
|
-
display: "显示",
|
|
7
|
-
hide: "隐藏"
|
|
8
|
-
},
|
|
9
|
-
tip: {
|
|
10
|
-
select: "请选择",
|
|
11
|
-
input: "请输入"
|
|
12
|
-
},
|
|
13
|
-
check: {
|
|
14
|
-
checkAll: "全选"
|
|
15
|
-
},
|
|
16
|
-
upload: {
|
|
17
|
-
upload: "点击上传",
|
|
18
|
-
tip: "将文件拖到此处,或"
|
|
19
|
-
},
|
|
20
|
-
time: {
|
|
21
|
-
start: "开始",
|
|
22
|
-
end: "结束"
|
|
23
|
-
},
|
|
24
|
-
date: {
|
|
25
|
-
start: "开始",
|
|
26
|
-
end: "结束",
|
|
27
|
-
t: "今日",
|
|
28
|
-
y: "昨日",
|
|
29
|
-
n: "近7天",
|
|
30
|
-
a: "全部"
|
|
31
|
-
},
|
|
32
|
-
form: {
|
|
33
|
-
printBtn: "打 印",
|
|
34
|
-
mockBtn: "模 拟",
|
|
35
|
-
submitBtn: "提 交",
|
|
36
|
-
emptyBtn: "清 空"
|
|
37
|
-
},
|
|
38
|
-
crud: {
|
|
39
|
-
filter: {
|
|
40
|
-
addBtn: "新增条件",
|
|
41
|
-
clearBtn: "清空数据",
|
|
42
|
-
resetBtn: "清空条件",
|
|
43
|
-
cancelBtn: "取 消",
|
|
44
|
-
submitBtn: "确 定"
|
|
45
|
-
},
|
|
46
|
-
column: {
|
|
47
|
-
name: "列名",
|
|
48
|
-
hide: "隐藏",
|
|
49
|
-
fixed: "冻结",
|
|
50
|
-
filters: "过滤",
|
|
51
|
-
sortable: "排序",
|
|
52
|
-
index: "顺序",
|
|
53
|
-
width: "宽度"
|
|
54
|
-
},
|
|
55
|
-
tipStartTitle: "当前表格已选择",
|
|
56
|
-
tipEndTitle: "项",
|
|
57
|
-
editTitle: "编 辑",
|
|
58
|
-
copyTitle: "复 制",
|
|
59
|
-
addTitle: "新 增",
|
|
60
|
-
viewTitle: "查 看",
|
|
61
|
-
filterTitle: "过滤条件",
|
|
62
|
-
showTitle: "列显隐",
|
|
63
|
-
menu: "操作",
|
|
64
|
-
addBtn: "新 增",
|
|
65
|
-
show: "显 示",
|
|
66
|
-
hide: "隐 藏",
|
|
67
|
-
open: "展 开",
|
|
68
|
-
shrink: "收 缩",
|
|
69
|
-
printBtn: "打 印",
|
|
70
|
-
excelBtn: "导 出",
|
|
71
|
-
updateBtn: "修 改",
|
|
72
|
-
cancelBtn: "取 消",
|
|
73
|
-
searchBtn: "搜 索",
|
|
74
|
-
emptyBtn: "清 空",
|
|
75
|
-
menuBtn: "功 能",
|
|
76
|
-
saveBtn: "保 存",
|
|
77
|
-
viewBtn: "查 看",
|
|
78
|
-
editBtn: "编 辑",
|
|
79
|
-
copyBtn: "复 制",
|
|
80
|
-
delBtn: "删 除"
|
|
81
|
-
}
|
|
82
|
-
}, k = (e, n) => {
|
|
83
|
-
n = n || "";
|
|
84
|
-
const t = n.split(".");
|
|
85
|
-
let a = e, i = null;
|
|
86
|
-
for (let c = 0, o = t.length; c < o; c++) {
|
|
87
|
-
const d = t[c];
|
|
88
|
-
if (!a)
|
|
89
|
-
break;
|
|
90
|
-
if (c === o - 1) {
|
|
91
|
-
i = a[d];
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
a = a[d];
|
|
95
|
-
}
|
|
96
|
-
return i;
|
|
97
|
-
}, p = (e) => k(P, e), R = (e = []) => (e.forEach((n) => {
|
|
98
|
-
const t = n.cascader;
|
|
99
|
-
if (!l(t)) {
|
|
100
|
-
const a = n.prop;
|
|
101
|
-
t.forEach((i) => {
|
|
102
|
-
const c = E(e, i);
|
|
103
|
-
c !== -1 && (c.parentProp = a);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}), e);
|
|
107
|
-
let r = 0;
|
|
108
|
-
const C = (e, n = 12, t = !1) => {
|
|
109
|
-
t && (r = 0);
|
|
110
|
-
const a = 24;
|
|
111
|
-
return r = r + (e.span || n) + (e.offset || 0), r === a ? r = 0 : r > a ? r = (e.span || n) + (e.offset || 0) : e.row && r !== a && (e.count = a - r, r = 0), e;
|
|
112
|
-
}, $ = (e, n) => {
|
|
113
|
-
const { type: t, multiple: a, dataType: i, separator: c = S, alone: o, emitPath: d, range: y } = n;
|
|
114
|
-
let s = e;
|
|
115
|
-
return f.includes(t) && a === !0 || h.includes(t) && d !== !1 || T.includes(t) && y === !0 ? (Array.isArray(s) || (l(s) ? s = [] : s = `${s}`.split(c) || []), s.forEach((b, g) => {
|
|
116
|
-
s[g] = u(b, i);
|
|
117
|
-
}), m.includes(t) && l(s) && o && (s = [""])) : s = u(s, i), s;
|
|
118
|
-
}, v = (e) => {
|
|
119
|
-
const n = e.type, t = e.searchRange;
|
|
120
|
-
let a = n;
|
|
121
|
-
if (e.searchType)
|
|
122
|
-
return e.searchType;
|
|
123
|
-
if (["radio", "checkbox", "switch"].includes(n))
|
|
124
|
-
a = "select";
|
|
125
|
-
else if (B.includes(n)) {
|
|
126
|
-
const i = "range";
|
|
127
|
-
t ? n.includes(i) ? a = n : a = n + i : a = n.replace(i, "");
|
|
128
|
-
} else
|
|
129
|
-
["textarea"].includes(n) && (a = "input");
|
|
130
|
-
return a;
|
|
131
|
-
}, N = (e, n) => {
|
|
132
|
-
let t = e || "input";
|
|
133
|
-
if (l(n))
|
|
134
|
-
m.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : B.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t = `input-${e}`);
|
|
135
|
-
else
|
|
136
|
-
return n;
|
|
137
|
-
return A + t;
|
|
138
|
-
}, M = (e = []) => {
|
|
139
|
-
let n = {};
|
|
140
|
-
return e.forEach((t) => {
|
|
141
|
-
h.includes(t.type) && t.emitPath !== !1 || f.includes(t.type) && t.multiple || t.dataType === "array" ? n[t.prop] = [] : T.includes(t.type) && t.range === !0 ? n[t.prop] = [0, 0] : ["rate", "slider", "number"].includes(t.type) || t.dataType === "number" ? n[t.prop] = void 0 : n[t.prop] = "", t.bind && (n = I(n, t.bind)), l(t.value) || (n[t.prop] = t.value);
|
|
142
|
-
}), {
|
|
143
|
-
tableForm: n
|
|
144
|
-
};
|
|
145
|
-
}, O = function(e) {
|
|
146
|
-
const n = e.placeholder, t = e.label;
|
|
147
|
-
return l(n) ? L.includes(e.type) ? `${p("tip.select")} ${t}` : `${p("tip.input")} ${t}` : n;
|
|
148
|
-
};
|
|
149
|
-
export {
|
|
150
|
-
O as a,
|
|
151
|
-
R as b,
|
|
152
|
-
C as c,
|
|
153
|
-
v as d,
|
|
154
|
-
M as f,
|
|
155
|
-
N as g,
|
|
156
|
-
$ as i,
|
|
157
|
-
p as t
|
|
158
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isBlank as T, formatDate as f } from "@web-utils/core";
|
|
2
|
-
import { i as Y, M as I, A as L, D as n, m as _, b as S, n as o, p as $, e as b, q as h } from "./util.23fe58fb.js";
|
|
3
|
-
const P = (r = {}, t = {}, l = {}, A = []) => {
|
|
4
|
-
let e = r[t.prop];
|
|
5
|
-
const a = t.type, s = t.separator;
|
|
6
|
-
if (t.bind && (e = Y(r, t.bind)), T(e))
|
|
7
|
-
e = "";
|
|
8
|
-
else {
|
|
9
|
-
const g = I.includes(t.type) && t.multiple, D = L.includes(t.type);
|
|
10
|
-
if ((["string", "number"].includes(t.dataType) || g || D) && !Array.isArray(e) && (e = `${e}`.split(s || n), t.dataType === "number" && (e = _(e))), S.includes(a))
|
|
11
|
-
Array.isArray(e) ? e = e.join(s || o) : e = e.split(s || n).join(s || o);
|
|
12
|
-
else if (a === "password")
|
|
13
|
-
e = $(e, "*");
|
|
14
|
-
else if (b.includes(a) && t.format) {
|
|
15
|
-
const d = t.format.replace("dd", "DD").replace("yyyy", "YYYY"), y = f(Date.now(), "YYYY-MM-DD");
|
|
16
|
-
if (a.indexOf("range") !== -1) {
|
|
17
|
-
let i = e[0] || "", p = e[1] || "";
|
|
18
|
-
a === "timerange" && i.length <= 8 && p.length < 8 && (i = `${y} ${i}`, p = `${y} ${p}`), e = [f(i, d), f(p, d)].join(t.separator || "~");
|
|
19
|
-
} else
|
|
20
|
-
a === "time" && e.length <= 8 && (e = `${y} ${e}`), e = f(e, d);
|
|
21
|
-
}
|
|
22
|
-
e = h(A, e, t.props || l.props);
|
|
23
|
-
}
|
|
24
|
-
return t.formatter && typeof t.formatter == "function" && (e = t.formatter(r, r[t.prop], e, t)), e;
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
P as d
|
|
28
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { isBlank as w } from "@web-utils/core";
|
|
2
|
-
import { t as D, v as x } from "./util.23fe58fb.js";
|
|
3
|
-
const F = (d, t = []) => new Promise((i, o) => {
|
|
4
|
-
const c = [], a = [], s = {};
|
|
5
|
-
d.forEach((e) => {
|
|
6
|
-
e.parentProp && c.push(e);
|
|
7
|
-
}), t.forEach((e, n) => {
|
|
8
|
-
c.forEach((r) => {
|
|
9
|
-
r.hide !== !0 && r.dicFlag !== !1 && a.push(
|
|
10
|
-
new Promise((u) => {
|
|
11
|
-
w(e[r.parentProp]) ? u({
|
|
12
|
-
prop: r.prop,
|
|
13
|
-
data: [],
|
|
14
|
-
index: n
|
|
15
|
-
}) : r.dicUrl && g({
|
|
16
|
-
url: `${r.dicUrl.replace("{{key}}", e[r.parentProp])}`,
|
|
17
|
-
props: r.props,
|
|
18
|
-
method: r.dicMethod,
|
|
19
|
-
headers: r.dicHeaders,
|
|
20
|
-
formatter: r.dicFormatter,
|
|
21
|
-
query: r.dicQuery,
|
|
22
|
-
form: e
|
|
23
|
-
}).then((l) => {
|
|
24
|
-
u({
|
|
25
|
-
prop: r.prop,
|
|
26
|
-
data: l,
|
|
27
|
-
index: n
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
})
|
|
31
|
-
);
|
|
32
|
-
});
|
|
33
|
-
}), Promise.all(a).then((e) => {
|
|
34
|
-
e.forEach((n) => {
|
|
35
|
-
w(s[n.index]) && (s[n.index] = {}), s[n.index][n.prop] = n.data;
|
|
36
|
-
}), i(s);
|
|
37
|
-
});
|
|
38
|
-
}), U = (d) => {
|
|
39
|
-
let t = [];
|
|
40
|
-
return new Promise((i, o) => {
|
|
41
|
-
t = E(d).ajaxdic, k(t).then((a) => {
|
|
42
|
-
i(a);
|
|
43
|
-
}).catch((a) => {
|
|
44
|
-
o(a);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}, K = (d) => {
|
|
48
|
-
const t = {}, i = d.dicData || {};
|
|
49
|
-
return d.column.forEach((o) => {
|
|
50
|
-
o.dicData && (t[o.prop] = D(o.dicData, o.props, o.dataType));
|
|
51
|
-
}), Object.assign(i, t);
|
|
52
|
-
};
|
|
53
|
-
function E(d) {
|
|
54
|
-
const t = d.column || [], i = [], o = {};
|
|
55
|
-
let c = [];
|
|
56
|
-
return t.forEach((a) => {
|
|
57
|
-
const s = a.dicData, e = a.dicUrl, n = a.prop, r = a.parentProp;
|
|
58
|
-
c = c.concat(a.cascader || []), Array.isArray(s) && (o[n] = s), !(a.dicFlag === !1 || a.lazy === !0 || c.includes(n)) && e && !r && i.push({
|
|
59
|
-
url: e,
|
|
60
|
-
name: n,
|
|
61
|
-
method: a.dicMethod,
|
|
62
|
-
headers: t.dicHeaders,
|
|
63
|
-
formatter: a.dicFormatter,
|
|
64
|
-
props: a.props,
|
|
65
|
-
dataType: a.dataType,
|
|
66
|
-
resKey: (a.props || {}).res,
|
|
67
|
-
query: a.dicQuery || {}
|
|
68
|
-
});
|
|
69
|
-
}), {
|
|
70
|
-
ajaxdic: i,
|
|
71
|
-
locationdic: o
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function k(d) {
|
|
75
|
-
const t = {}, i = [];
|
|
76
|
-
return new Promise((o) => {
|
|
77
|
-
d.forEach((c) => {
|
|
78
|
-
i.push(
|
|
79
|
-
new Promise((a) => {
|
|
80
|
-
g(Object.assign(c, {
|
|
81
|
-
url: `${c.url.replace("{{key}}", "")}`
|
|
82
|
-
})).then((s) => {
|
|
83
|
-
s = D(s, c.props, c.dataType), a(s);
|
|
84
|
-
}).catch(() => {
|
|
85
|
-
a([]);
|
|
86
|
-
});
|
|
87
|
-
})
|
|
88
|
-
);
|
|
89
|
-
}), Promise.all(i).then((c) => {
|
|
90
|
-
d.forEach((a, s) => {
|
|
91
|
-
t[a.name] = c[s];
|
|
92
|
-
}), o(t);
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
const g = (d) => {
|
|
97
|
-
let { url: t, query: i, method: o, resKey: c, props: a, formatter: s, headers: e = {}, value: n = "", column: r, form: u = {} } = d;
|
|
98
|
-
r && (t = r.dicUrl, o = r.dicMethod, e = r.headers || {}, i = r.dicQuery || {}, s = r.dicFormatter, a = r.props);
|
|
99
|
-
const l = "key";
|
|
100
|
-
t = t || "";
|
|
101
|
-
let y = [];
|
|
102
|
-
const m = {};
|
|
103
|
-
return y = t.match(/[^{}]+(?=})/g) || [], y.forEach((p) => {
|
|
104
|
-
const f = `{{${p}}}`, h = u[p];
|
|
105
|
-
p === l ? t = t.replace(f, n) : t = t.replace(f, h);
|
|
106
|
-
}), o === "post" && (y = Object.keys(i), y.forEach((p) => {
|
|
107
|
-
const f = i[p];
|
|
108
|
-
typeof f == "string" && f.match(/\{{|}}/g) ? m[p] = u[f.replace(/\{{|}}/g, "")] : m[p] = f;
|
|
109
|
-
})), a && (c = (a || {}).res || c), new Promise((p) => {
|
|
110
|
-
const f = (h) => {
|
|
111
|
-
let P = [];
|
|
112
|
-
typeof s == "function" ? P = s(h.data) : P = x(h.data, c), p(P);
|
|
113
|
-
};
|
|
114
|
-
o === "post" ? window.axios.post(t, m, {
|
|
115
|
-
headers: e
|
|
116
|
-
}).then(function(h) {
|
|
117
|
-
f(h);
|
|
118
|
-
}).catch(() => [
|
|
119
|
-
p([])
|
|
120
|
-
]) : window.axios.get(t, {
|
|
121
|
-
params: i,
|
|
122
|
-
headers: e
|
|
123
|
-
}).then(function(h) {
|
|
124
|
-
f(h);
|
|
125
|
-
}).catch(() => [
|
|
126
|
-
p([])
|
|
127
|
-
]);
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
export {
|
|
131
|
-
U as a,
|
|
132
|
-
F as b,
|
|
133
|
-
K as l,
|
|
134
|
-
g as s
|
|
135
|
-
};
|