@web-utils/component 2.7.36 → 2.7.37
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.75161c38.js → config.46422d7f.mjs} +31 -31
- package/dist/chunks/confirmable-mixin.2bfe1ab9.mjs +105 -0
- package/dist/chunks/dataformat.5f95e59e.mjs +158 -0
- package/dist/chunks/detail.81ecaefa.mjs +29 -0
- package/dist/chunks/dic.5c08c9fb.mjs +135 -0
- package/dist/chunks/{event.812c361c.js → event.e4e57889.mjs} +47 -78
- package/dist/chunks/form-input-mixin.e3b4c68c.mjs +24 -0
- package/dist/chunks/form-item-mixin.149d5844.mjs +140 -0
- package/dist/chunks/{form-pick-mixin.822300f3.js → form-pick-mixin.61ad06b2.mjs} +3 -3
- package/dist/chunks/index.9b7a65d1.mjs +185 -0
- package/dist/chunks/init.07b0cebe.mjs +122 -0
- package/dist/chunks/{input-number-mixin.44b78389.js → input-number-mixin.41a066be.mjs} +8 -8
- package/dist/chunks/{mixins.e1939731.js → mixins.5a78e0db.mjs} +5 -6
- package/dist/chunks/{packages.c4ea639d.js → packages.1fc9ccba.mjs} +9 -15
- package/dist/chunks/permission.ce5d2121.mjs +16 -0
- package/dist/chunks/slot.4b391395.mjs +27 -0
- package/dist/chunks/tab-mixin.e2b9c6a4.mjs +81 -0
- package/dist/chunks/util.eca708b6.mjs +261 -0
- package/dist/chunks/utils.97652d86.mjs +26 -0
- package/dist/chunks/vueComponentNormalizer.446f5dc4.mjs +32 -0
- package/dist/components/address-input/index.mjs +113 -0
- package/dist/components/address-input/style.css +1 -15
- package/dist/components/affix/index.mjs +102 -0
- package/dist/components/affix/style.css +1 -5
- package/dist/components/aside-menu/index.mjs +58 -0
- package/dist/components/aside-menu/style.css +1 -9
- package/dist/components/avatar/index.mjs +106 -0
- package/dist/components/avatar/style.css +1 -57
- package/dist/components/awesome-button/index.mjs +112 -0
- package/dist/components/base.css +1 -410
- package/dist/components/capsule-tab/index.mjs +52 -0
- package/dist/components/capsule-tab/style.css +1 -32
- package/dist/components/card/index.mjs +130 -0
- package/dist/components/card/style.css +1 -90
- package/dist/components/carousel/index.mjs +70 -0
- package/dist/components/carousel/style.css +1 -41
- package/dist/components/chat/index.mjs +567 -0
- package/dist/components/chat/style.css +1 -279
- package/dist/components/chunk-file-uploader/index.mjs +119 -0
- package/dist/components/chunk-file-uploader/style.css +1 -4
- package/dist/components/chunk-file-uploader-button/index.mjs +60 -0
- package/dist/components/chunk-file-uploader-button/style.css +1 -17
- package/dist/components/chunk-file-uploader-drop/index.mjs +83 -0
- package/dist/components/chunk-file-uploader-drop/style.css +1 -12
- package/dist/components/chunk-file-uploader-file/index.mjs +311 -0
- package/dist/components/chunk-file-uploader-file/style.css +1 -125
- package/dist/components/chunk-file-uploader-files/index.mjs +49 -0
- package/dist/components/chunk-file-uploader-files/style.css +1 -9
- package/dist/components/chunk-file-uploader-list/index.mjs +50 -0
- package/dist/components/chunk-file-uploader-list/style.css +1 -9
- package/dist/components/chunk-file-uploader-un-support/index.mjs +51 -0
- package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
- package/dist/components/code-mirror-editor/index.mjs +313 -0
- package/dist/components/code-mirror-editor/style.css +1 -17
- package/dist/components/color-picker/index.mjs +128 -0
- package/dist/components/column/index.mjs +115 -0
- package/dist/components/column-default/index.mjs +106 -0
- package/dist/components/column-dynamic/index.mjs +93 -0
- package/dist/components/column-menu/index.mjs +286 -0
- package/dist/components/column-slot/index.mjs +266 -0
- package/dist/components/comment/index.mjs +94 -0
- package/dist/components/comment/style.css +1 -92
- package/dist/components/confirm-button/index.mjs +57 -0
- package/dist/components/confirmable/index.mjs +28 -0
- package/dist/components/context-menu/index.mjs +253 -0
- package/dist/components/context-menu/style.css +1 -88
- package/dist/components/count-up/index.mjs +131 -0
- package/dist/components/custom-scrollbar/index.mjs +167 -0
- package/dist/components/data-box/index.mjs +97 -0
- package/dist/components/data-box/style.css +1 -58
- package/dist/components/data-card/index.mjs +98 -0
- package/dist/components/data-card/style.css +1 -46
- package/dist/components/data-cardtext/index.mjs +82 -0
- package/dist/components/data-cardtext/style.css +1 -36
- package/dist/components/data-display/index.mjs +93 -0
- package/dist/components/data-display/style.css +1 -37
- package/dist/components/data-icons/index.mjs +104 -0
- package/dist/components/data-icons/style.css +1 -53
- package/dist/components/data-imgtext/index.mjs +106 -0
- package/dist/components/data-imgtext/style.css +1 -70
- package/dist/components/data-operatext/index.mjs +99 -0
- package/dist/components/data-operatext/style.css +1 -81
- package/dist/components/data-panel/index.mjs +93 -0
- package/dist/components/data-panel/style.css +1 -37
- package/dist/components/data-pay/index.mjs +149 -0
- package/dist/components/data-pay/style.css +1 -102
- package/dist/components/data-price/index.mjs +84 -0
- package/dist/components/data-price/style.css +1 -81
- package/dist/components/data-progress/index.mjs +97 -0
- package/dist/components/data-progress/style.css +1 -30
- package/dist/components/data-rotate/index.mjs +96 -0
- package/dist/components/data-rotate/style.css +1 -50
- package/dist/components/data-table-picker/index.mjs +137 -0
- package/dist/components/data-tabs/index.mjs +94 -0
- package/dist/components/data-tabs/style.css +1 -70
- package/dist/components/dialog-column/index.mjs +139 -0
- package/dist/components/dialog-excel/index.mjs +211 -0
- package/dist/components/dialog-filter/index.mjs +246 -0
- package/dist/components/dialog-form/index.mjs +143 -0
- package/dist/components/dialog-form/style.css +1 -10
- package/dist/components/dynamic-table/index.mjs +195 -0
- package/dist/components/dynamic-table/style.css +1 -30
- package/dist/components/e-charts/index.mjs +216 -0
- package/dist/components/e-charts/style.css +1 -10
- package/dist/components/easy-popup/index.mjs +87 -0
- package/dist/components/easy-popup/style.css +1 -18
- package/dist/components/editable-progress/index.mjs +141 -0
- package/dist/components/editable-progress/style.css +1 -37
- package/dist/components/editable-tree/index.mjs +844 -0
- package/dist/components/editable-tree/style.css +1 -82
- package/dist/components/egd-collapse/index.mjs +79 -0
- package/dist/components/egd-collapse-item/index.mjs +132 -0
- package/dist/components/element-dialog/index.mjs +249 -0
- package/dist/components/element-dialog/style.css +1 -88
- package/dist/components/empty-view/index.mjs +69 -0
- package/dist/components/empty-view/style.css +1 -17
- package/dist/components/error-view/index.mjs +61 -0
- package/dist/components/error-view/style.css +1 -17
- package/dist/components/flex-column/index.mjs +62 -0
- package/dist/components/flex-item/index.mjs +81 -0
- package/dist/components/flex-row/index.mjs +62 -0
- package/dist/components/flex-scroller/index.mjs +47 -0
- package/dist/components/flex-scroller/style.css +1 -20
- package/dist/components/flow/index.mjs +277 -0
- package/dist/components/flow/style.css +1 -44
- package/dist/components/flow-node/index.mjs +102 -0
- package/dist/components/flow-viewer/index.mjs +162 -0
- package/dist/components/flow-viewer/style.css +1 -19
- package/dist/components/form-button/index.mjs +80 -0
- package/dist/components/form-cascader/index.mjs +163 -0
- package/dist/components/form-checkbox-group/index.mjs +203 -0
- package/dist/components/form-checkbox-group/style.css +1 -51
- package/dist/components/form-date-picker/index.mjs +191 -0
- package/dist/components/form-group/index.mjs +122 -0
- package/dist/components/form-group/style.css +1 -76
- package/dist/components/form-holder/index.mjs +129 -0
- package/dist/components/form-input/index.mjs +117 -0
- package/dist/components/form-input-email/index.mjs +108 -0
- package/dist/components/form-input-id-card/index.mjs +115 -0
- package/dist/components/form-input-number/index.mjs +134 -0
- package/dist/components/form-input-number/style.css +1 -12
- package/dist/components/form-input-phone-number/index.mjs +109 -0
- package/dist/components/form-input-time/index.mjs +135 -0
- package/dist/components/form-item/index.mjs +147 -0
- package/dist/components/form-item/style.css +1 -11
- package/dist/components/form-item-config-provider/index.mjs +63 -0
- package/dist/components/form-item-group/index.mjs +169 -0
- package/dist/components/form-item-group/style.css +1 -30
- package/dist/components/form-radio-group/index.mjs +181 -0
- package/dist/components/form-radio-group/style.css +1 -53
- package/dist/components/form-select/index.mjs +165 -0
- package/dist/components/form-switch/index.mjs +108 -0
- package/dist/components/form-temp/index.mjs +149 -0
- package/dist/components/form-textarea/index.mjs +113 -0
- package/dist/components/form-view/index.mjs +366 -0
- package/dist/components/form-view/style.css +1 -158
- package/dist/components/fy-array/index.mjs +156 -0
- package/dist/components/fy-array/style.css +1 -18
- package/dist/components/fy-article/index.mjs +93 -0
- package/dist/components/fy-article/style.css +1 -40
- package/dist/components/fy-cascader/index.mjs +132 -0
- package/dist/components/fy-checkbox/index.mjs +116 -0
- package/dist/components/fy-checkbox/style.css +1 -15
- package/dist/components/fy-code/index.mjs +66 -0
- package/dist/components/fy-curd/index.mjs +751 -0
- package/dist/components/fy-curd/style.css +1 -239
- package/dist/components/fy-date/index.mjs +84 -0
- package/dist/components/fy-date/style.css +1 -21
- package/dist/components/fy-dialog-form/index.mjs +278 -0
- package/dist/components/fy-draggable/index.mjs +382 -0
- package/dist/components/fy-draggable/style.css +1 -136
- package/dist/components/fy-dynamic/index.mjs +337 -0
- package/dist/components/fy-dynamic/style.css +1 -35
- package/dist/components/fy-empty/{index.js → index.mjs} +28 -34
- package/dist/components/fy-empty/style.css +1 -24
- package/dist/components/fy-form/index.mjs +786 -0
- package/dist/components/fy-form/style.css +1 -79
- package/dist/components/fy-form-design/index.mjs +7775 -0
- package/dist/components/fy-form-design/style.css +1 -578
- package/dist/components/fy-form-menu/index.mjs +95 -0
- package/dist/components/fy-input/index.mjs +176 -0
- package/dist/components/fy-input-color/index.mjs +101 -0
- package/dist/components/fy-input-icon/index.mjs +161 -0
- package/dist/components/fy-input-icon/style.css +1 -39
- package/dist/components/fy-input-map/index.mjs +275 -0
- package/dist/components/fy-input-map/style.css +1 -50
- package/dist/components/fy-input-number/index.mjs +87 -0
- package/dist/components/fy-input-table/index.mjs +172 -0
- package/dist/components/fy-input-table/style.css +1 -10
- package/dist/components/fy-input-tree/index.mjs +265 -0
- package/dist/components/fy-input-tree/style.css +1 -25
- package/dist/components/fy-progress/index.mjs +60 -0
- package/dist/components/fy-radio/index.mjs +68 -0
- package/dist/components/fy-radio/style.css +1 -12
- package/dist/components/fy-rate/index.mjs +105 -0
- package/dist/components/fy-rate/style.css +1 -9
- package/dist/components/fy-select/index.mjs +224 -0
- package/dist/components/fy-select/style.css +1 -25
- package/dist/components/fy-slider/index.mjs +79 -0
- package/dist/components/fy-switch/index.mjs +73 -0
- package/dist/components/fy-tabs/index.mjs +90 -0
- package/dist/components/fy-tabs/style.css +0 -6
- package/dist/components/fy-time/index.mjs +95 -0
- package/dist/components/fy-title/index.mjs +40 -0
- package/dist/components/fy-title/style.css +1 -11
- package/dist/components/fy-tree/index.mjs +428 -0
- package/dist/components/fy-tree/style.css +1 -46
- package/dist/components/fy-u-editor/index.mjs +409 -0
- package/dist/components/fy-u-editor/style.css +1 -15
- package/dist/components/fy-upload/index.mjs +591 -0
- package/dist/components/fy-upload/style.css +1 -60
- package/dist/components/guide-steps/index.mjs +94 -0
- package/dist/components/guide-steps/style.css +1 -34
- package/dist/components/header-menu/index.mjs +238 -0
- package/dist/components/header-search/index.mjs +253 -0
- package/dist/components/highlight-j-s/index.mjs +76 -0
- package/dist/components/highlight-j-s/style.css +1 -21
- package/dist/components/icon-card/index.mjs +62 -0
- package/dist/components/icon-card/style.css +1 -56
- package/dist/components/icon-temp/index.mjs +50 -0
- package/dist/components/icon-temp/style.css +1 -21
- package/dist/components/iframe-window/index.mjs +61 -0
- package/dist/components/iframe-window/style.css +1 -20
- package/dist/components/image-cropper/index.mjs +199 -0
- package/dist/components/image-cropper/style.css +1 -34
- package/dist/components/image-preview/index.mjs +233 -0
- package/dist/components/image-preview/style.css +1 -72
- package/dist/components/image-viewer/index.mjs +95 -0
- package/dist/components/image-viewer/style.css +1 -21
- package/dist/components/input-number/index.mjs +274 -0
- package/dist/components/input-number/style.css +1 -15
- package/dist/components/input-number-range/index.mjs +110 -0
- package/dist/components/input-number-range/style.css +1 -12
- package/dist/components/j-s-x-component/{index.js → index.mjs} +4 -4
- package/dist/components/keep-view-alive/index.mjs +123 -0
- package/dist/components/keyboard/index.mjs +384 -0
- package/dist/components/keyboard/style.css +1 -547
- package/dist/components/license/index.mjs +134 -0
- package/dist/components/loading-view/index.mjs +61 -0
- package/dist/components/loading-view/style.css +1 -17
- package/dist/components/login/index.mjs +250 -0
- package/dist/components/login/style.css +1 -25
- package/dist/components/name-avatar/index.mjs +66 -0
- package/dist/components/name-avatar/style.css +1 -35
- package/dist/components/nav-bar/index.mjs +52 -0
- package/dist/components/nav-bar/style.css +1 -17
- package/dist/components/not-implement/index.mjs +35 -0
- package/dist/components/not-implement/style.css +1 -15
- package/dist/components/notice/index.mjs +143 -0
- package/dist/components/notice/style.css +1 -54
- package/dist/components/page/index.mjs +40 -0
- package/dist/components/page/style.css +1 -12
- package/dist/components/page-header/index.mjs +56 -0
- package/dist/components/page-header/style.css +1 -14
- package/dist/components/page-index/index.mjs +175 -0
- package/dist/components/page-index/style.css +1 -23
- package/dist/components/page-index-top/index.mjs +141 -0
- package/dist/components/page-skeleton/index.mjs +56 -0
- package/dist/components/page-skeleton/style.css +1 -23
- package/dist/components/page-skeleton-new/index.mjs +98 -0
- package/dist/components/page-skeleton-new/style.css +1 -42
- package/dist/components/pageable-table/index.mjs +478 -0
- package/dist/components/pageable-table/style.css +1 -72
- package/dist/components/pageable-view/index.mjs +378 -0
- package/dist/components/pageable-view/style.css +1 -69
- package/dist/components/photo-swipe/index.mjs +129 -0
- package/dist/components/process-designer/{index.js → index.mjs} +1022 -1211
- package/dist/components/process-designer/style.css +1 -1186
- package/dist/components/properties-panel/index.mjs +4791 -0
- package/dist/components/properties-panel/style.css +1 -122
- package/dist/components/queue/index.mjs +76 -0
- package/dist/components/record-video/index.mjs +173 -0
- package/dist/components/record-video/style.css +1 -53
- package/dist/components/resize-observer/index.mjs +62 -0
- package/dist/components/resize-observer/style.css +1 -31
- package/dist/components/search/index.mjs +143 -0
- package/dist/components/search/style.css +1 -57
- package/dist/components/search-popover/index.mjs +411 -0
- package/dist/components/search-popover/style.css +1 -93
- package/dist/components/sign/index.mjs +133 -0
- package/dist/components/sign/style.css +1 -12
- package/dist/components/sign-panel/index.mjs +255 -0
- package/dist/components/sign-panel/style.css +1 -97
- package/dist/components/skeleton/index.mjs +82 -0
- package/dist/components/skeleton/style.css +1 -61
- package/dist/components/split-pane/index.mjs +233 -0
- package/dist/components/split-pane/style.css +1 -100
- package/dist/components/stateful/index.mjs +84 -0
- package/dist/components/stateful/style.css +1 -33
- package/dist/components/static-pageable-table/index.mjs +92 -0
- package/dist/components/static-pageable-table/style.css +1 -9
- package/dist/components/swiper/index.mjs +178 -0
- package/dist/components/swiper/style.css +1 -43
- package/dist/components/tab/index.mjs +147 -0
- package/dist/components/tab/style.css +1 -122
- package/dist/components/tab-item/index.mjs +73 -0
- package/dist/components/table-column/index.mjs +102 -0
- package/dist/components/table-page/index.mjs +132 -0
- package/dist/components/table-view/index.mjs +390 -0
- package/dist/components/table-view/style.css +1 -95
- package/dist/components/tag-render/index.mjs +108 -0
- package/dist/components/tag-render/style.css +1 -33
- package/dist/components/text-ellipsis/index.mjs +108 -0
- package/dist/components/text-ellipsis/style.css +1 -9
- package/dist/components/tinymce-editor/index.mjs +191 -0
- package/dist/components/tinymce-editor/style.css +1 -43
- package/dist/components/tinymce-wrapper/{index.js → index.mjs} +102 -138
- package/dist/components/tinymce-wrapper/style.css +1 -36
- package/dist/components/toolbar/index.mjs +217 -0
- package/dist/components/toolbar/style.css +1 -39
- package/dist/components/toolbar-button/index.mjs +108 -0
- package/dist/components/toolbar-button/style.css +1 -21
- package/dist/components/trigger/index.mjs +71 -0
- package/dist/components/verify/index.mjs +80 -0
- package/dist/components/verify/style.css +1 -15
- package/dist/components/vue-tags-input/index.mjs +553 -0
- package/dist/components/vue-tags-input/style.css +1 -688
- package/dist/components/watermark/index.mjs +95 -0
- package/dist/components/watermark/style.css +1 -11
- package/dist/index.cjs +85 -0
- package/dist/index.css +1 -8521
- package/dist/index.mjs +45819 -0
- package/package.json +6 -6
- package/web-types.json +1 -1
- 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/affix/index.js +0 -152
- package/dist/components/aside-menu/index.js +0 -64
- package/dist/components/avatar/index.js +0 -124
- package/dist/components/awesome-button/index.js +0 -126
- package/dist/components/capsule-tab/index.js +0 -58
- package/dist/components/card/index.js +0 -143
- package/dist/components/carousel/index.js +0 -76
- package/dist/components/chat/index.js +0 -673
- package/dist/components/chunk-file-uploader/index.js +0 -153
- package/dist/components/chunk-file-uploader-button/index.js +0 -66
- package/dist/components/chunk-file-uploader-drop/index.js +0 -101
- package/dist/components/chunk-file-uploader-file/index.js +0 -388
- package/dist/components/chunk-file-uploader-files/index.js +0 -55
- package/dist/components/chunk-file-uploader-list/index.js +0 -56
- package/dist/components/chunk-file-uploader-un-support/index.js +0 -59
- package/dist/components/code-mirror-editor/index.js +0 -341
- 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/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/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-card/index.js +0 -104
- package/dist/components/data-cardtext/index.js +0 -88
- package/dist/components/data-display/index.js +0 -99
- package/dist/components/data-icons/index.js +0 -110
- package/dist/components/data-imgtext/index.js +0 -112
- package/dist/components/data-operatext/index.js +0 -105
- package/dist/components/data-panel/index.js +0 -99
- package/dist/components/data-pay/index.js +0 -155
- package/dist/components/data-price/index.js +0 -90
- package/dist/components/data-progress/index.js +0 -103
- package/dist/components/data-rotate/index.js +0 -102
- package/dist/components/data-table-picker/index.js +0 -156
- package/dist/components/data-tabs/index.js +0 -100
- 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/dynamic-table/index.js +0 -219
- package/dist/components/e-charts/index.js +0 -297
- package/dist/components/easy-popup/index.js +0 -105
- package/dist/components/editable-progress/index.js +0 -174
- package/dist/components/editable-tree/index.js +0 -1070
- 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/empty-view/index.js +0 -75
- package/dist/components/error-view/index.js +0 -67
- 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/flow/index.js +0 -329
- package/dist/components/flow-node/index.js +0 -110
- package/dist/components/flow-viewer/index.js +0 -207
- 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-date-picker/index.js +0 -260
- package/dist/components/form-group/index.js +0 -128
- 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-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-config-provider/index.js +0 -64
- package/dist/components/form-item-group/index.js +0 -195
- package/dist/components/form-radio-group/index.js +0 -205
- 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/fy-array/index.js +0 -164
- package/dist/components/fy-article/index.js +0 -104
- package/dist/components/fy-cascader/index.js +0 -142
- package/dist/components/fy-checkbox/index.js +0 -127
- package/dist/components/fy-code/index.js +0 -73
- package/dist/components/fy-curd/index.js +0 -889
- package/dist/components/fy-date/index.js +0 -90
- package/dist/components/fy-dialog-form/index.js +0 -351
- package/dist/components/fy-draggable/index.js +0 -505
- package/dist/components/fy-dynamic/index.js +0 -380
- package/dist/components/fy-form/index.js +0 -964
- package/dist/components/fy-form-design/index.js +0 -8412
- 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-map/index.js +0 -320
- 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-tree/index.js +0 -309
- package/dist/components/fy-progress/index.js +0 -65
- package/dist/components/fy-radio/index.js +0 -74
- package/dist/components/fy-rate/index.js +0 -111
- package/dist/components/fy-select/index.js +0 -242
- 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-time/index.js +0 -106
- package/dist/components/fy-title/index.js +0 -48
- package/dist/components/fy-tree/index.js +0 -491
- package/dist/components/fy-u-editor/index.js +0 -514
- package/dist/components/fy-upload/index.js +0 -760
- package/dist/components/guide-steps/index.js +0 -108
- 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/icon-card/index.js +0 -68
- package/dist/components/icon-temp/index.js +0 -56
- package/dist/components/iframe-window/index.js +0 -67
- package/dist/components/image-cropper/index.js +0 -217
- package/dist/components/image-preview/index.js +0 -264
- package/dist/components/image-viewer/index.js +0 -113
- package/dist/components/input-number/index.js +0 -340
- package/dist/components/input-number-range/index.js +0 -122
- package/dist/components/keep-view-alive/index.js +0 -170
- package/dist/components/keyboard/index.js +0 -469
- package/dist/components/license/index.js +0 -180
- package/dist/components/loading-view/index.js +0 -67
- package/dist/components/login/index.js +0 -279
- package/dist/components/name-avatar/index.js +0 -88
- package/dist/components/nav-bar/index.js +0 -62
- package/dist/components/not-implement/index.js +0 -43
- package/dist/components/notice/index.js +0 -156
- package/dist/components/page/index.js +0 -46
- package/dist/components/page-header/index.js +0 -62
- package/dist/components/page-index/index.js +0 -200
- package/dist/components/page-index-top/index.js +0 -160
- package/dist/components/page-skeleton/index.js +0 -62
- package/dist/components/page-skeleton-new/index.js +0 -104
- package/dist/components/pageable-table/index.js +0 -559
- package/dist/components/pageable-view/index.js +0 -462
- package/dist/components/photo-swipe/index.js +0 -175
- package/dist/components/properties-panel/index.js +0 -5235
- package/dist/components/queue/index.js +0 -88
- package/dist/components/record-video/index.js +0 -199
- package/dist/components/resize-observer/index.js +0 -96
- package/dist/components/search/index.js +0 -162
- package/dist/components/search-popover/index.js +0 -473
- package/dist/components/sign/index.js +0 -236
- package/dist/components/sign-panel/index.js +0 -305
- package/dist/components/skeleton/index.js +0 -92
- package/dist/components/split-pane/index.js +0 -298
- package/dist/components/stateful/index.js +0 -87
- package/dist/components/static-pageable-table/index.js +0 -99
- package/dist/components/swiper/index.js +0 -247
- package/dist/components/tab/index.js +0 -165
- 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/tag-render/index.js +0 -127
- package/dist/components/text-ellipsis/index.js +0 -130
- package/dist/components/tinymce-editor/index.js +0 -211
- package/dist/components/toolbar/index.js +0 -238
- package/dist/components/toolbar-button/index.js +0 -119
- package/dist/components/trigger/index.js +0 -78
- package/dist/components/verify/index.js +0 -87
- package/dist/components/vue-tags-input/index.js +0 -673
- package/dist/components/watermark/index.js +0 -114
- package/dist/index.es.js +0 -52436
|
@@ -0,0 +1,786 @@
|
|
|
1
|
+
var k = (t, i, s) => new Promise((r, p) => {
|
|
2
|
+
var e = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
a(s.next(o));
|
|
5
|
+
} catch (d) {
|
|
6
|
+
p(d);
|
|
7
|
+
}
|
|
8
|
+
}, n = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
a(s.throw(o));
|
|
11
|
+
} catch (d) {
|
|
12
|
+
p(d);
|
|
13
|
+
}
|
|
14
|
+
}, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(e, n);
|
|
15
|
+
a((s = s.apply(t, i)).next());
|
|
16
|
+
});
|
|
17
|
+
import { d as N } from "../../chunks/detail.81ecaefa.mjs";
|
|
18
|
+
import { i as j } from "../../chunks/init.07b0cebe.mjs";
|
|
19
|
+
import { s as _, d as S, u as L, x as V, g as z, v as $, D as I, o as M, y as A } from "../../chunks/util.eca708b6.mjs";
|
|
20
|
+
import { b as B, c as W, g as R, a as G, f as H } from "../../chunks/dataformat.5f95e59e.mjs";
|
|
21
|
+
import { s as U } from "../../chunks/dic.5c08c9fb.mjs";
|
|
22
|
+
import { p as q } from "../../chunks/packages.1fc9ccba.mjs";
|
|
23
|
+
import { isBlank as u } from "@web-utils/core";
|
|
24
|
+
import { n as K } from "../../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
25
|
+
const J = (t, i, s, r) => {
|
|
26
|
+
if (!r)
|
|
27
|
+
return;
|
|
28
|
+
if (!window.Mock) {
|
|
29
|
+
q.logs("mock");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const e = (window.Mock || {}).Random, n = {};
|
|
33
|
+
function a({ en: h }) {
|
|
34
|
+
return h ? e.name(!0) : e.cname();
|
|
35
|
+
}
|
|
36
|
+
function o({ max: h, min: l, precision: f }) {
|
|
37
|
+
if (f) {
|
|
38
|
+
const c = `${e.float(l, h, f)}`, m = c.indexOf(".") + 1;
|
|
39
|
+
return Number(c.substring(0, m + f));
|
|
40
|
+
} else
|
|
41
|
+
return e.integer(l, h);
|
|
42
|
+
}
|
|
43
|
+
function d({ header: h, footer: l }) {
|
|
44
|
+
let f = e.url();
|
|
45
|
+
const c = f.indexOf("://");
|
|
46
|
+
return h === !1 ? f = f.substring(c + 3) : f = `http://${f.substring(c + 3)}`, f;
|
|
47
|
+
}
|
|
48
|
+
function F({ format: h, now: l }) {
|
|
49
|
+
return l ? e.now(h) : e.datetime(h);
|
|
50
|
+
}
|
|
51
|
+
function C({ min: h, max: l }) {
|
|
52
|
+
return e.csentence(h, l);
|
|
53
|
+
}
|
|
54
|
+
function T() {
|
|
55
|
+
return e.county(!0);
|
|
56
|
+
}
|
|
57
|
+
function w({ dic: h, props: l, columnType: f, multiple: c }) {
|
|
58
|
+
const m = l.value || "value", b = h.length;
|
|
59
|
+
if (["checkbox"].includes(f) || c) {
|
|
60
|
+
const v = o({
|
|
61
|
+
min: 1,
|
|
62
|
+
max: b
|
|
63
|
+
}), y = [];
|
|
64
|
+
for (let O = 0; O < v; O++) {
|
|
65
|
+
let g = !0;
|
|
66
|
+
for (; g; ) {
|
|
67
|
+
const P = o({
|
|
68
|
+
min: 0,
|
|
69
|
+
max: b - 1
|
|
70
|
+
}), D = h[P][m];
|
|
71
|
+
y.includes(D) || (y.push(D), g = !1);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return y;
|
|
75
|
+
} else {
|
|
76
|
+
const v = o({
|
|
77
|
+
min: 0,
|
|
78
|
+
max: b - 1
|
|
79
|
+
});
|
|
80
|
+
return h[v][m];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function E() {
|
|
84
|
+
Object.keys(t).forEach((h) => {
|
|
85
|
+
const l = t[h];
|
|
86
|
+
if (l.mock && typeof l.mock == "object") {
|
|
87
|
+
const f = l.mock;
|
|
88
|
+
switch (f.dic = typeof l.dicData == "string" ? i[l.dicData] : l.dicData || [], f.props = l.props || {}, f.columnType = l.type, f.multiple = l.multiple, f.type) {
|
|
89
|
+
case "name":
|
|
90
|
+
n[l.prop] = a(f);
|
|
91
|
+
break;
|
|
92
|
+
case "number":
|
|
93
|
+
n[l.prop] = o(f);
|
|
94
|
+
break;
|
|
95
|
+
case "datetime":
|
|
96
|
+
n[l.prop] = F(f);
|
|
97
|
+
break;
|
|
98
|
+
case "word":
|
|
99
|
+
n[l.prop] = C(f);
|
|
100
|
+
break;
|
|
101
|
+
case "url":
|
|
102
|
+
n[l.prop] = d(f);
|
|
103
|
+
break;
|
|
104
|
+
case "county":
|
|
105
|
+
n[l.prop] = T();
|
|
106
|
+
break;
|
|
107
|
+
case "dic":
|
|
108
|
+
n[l.prop] = w(f);
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
} else
|
|
112
|
+
l.mock instanceof Function && (n[l.prop] = l.mock(s));
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
return E(), n;
|
|
116
|
+
};
|
|
117
|
+
var Q = function() {
|
|
118
|
+
var t = this, i = t.$createElement, s = t._self._c || i;
|
|
119
|
+
return s("div", {
|
|
120
|
+
class: ["avue-form", {
|
|
121
|
+
"avue--detail": t.isDetail
|
|
122
|
+
}],
|
|
123
|
+
style: {
|
|
124
|
+
width: t.setPx(t.parentOption.formWidth, "100%")
|
|
125
|
+
}
|
|
126
|
+
}, [s("ElForm", {
|
|
127
|
+
ref: "form",
|
|
128
|
+
attrs: {
|
|
129
|
+
"status-icon": t.parentOption.statusIcon,
|
|
130
|
+
model: t.form,
|
|
131
|
+
"label-suffix": t.labelSuffix,
|
|
132
|
+
size: t.$AVUE.formSize || t.controlSize,
|
|
133
|
+
"label-position": t.parentOption.labelPosition,
|
|
134
|
+
"label-width": t.setPx(t.parentOption.labelWidth, t.labelWidth)
|
|
135
|
+
},
|
|
136
|
+
nativeOn: {
|
|
137
|
+
submit: function(r) {
|
|
138
|
+
r.preventDefault();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}, [s("ElRow", {
|
|
142
|
+
class: {
|
|
143
|
+
"avue-form__tabs": t.isTabs
|
|
144
|
+
},
|
|
145
|
+
attrs: {
|
|
146
|
+
span: 24
|
|
147
|
+
}
|
|
148
|
+
}, [t._l(t.columnOption, function(r, p) {
|
|
149
|
+
return s("FormGroup", {
|
|
150
|
+
key: r.prop,
|
|
151
|
+
attrs: {
|
|
152
|
+
tabs: t.isTabs,
|
|
153
|
+
arrow: r.arrow,
|
|
154
|
+
collapse: r.collapse,
|
|
155
|
+
display: t.vaildDisplay(r),
|
|
156
|
+
icon: r.icon,
|
|
157
|
+
index: p,
|
|
158
|
+
header: !t.isTabs,
|
|
159
|
+
active: t.activeName,
|
|
160
|
+
label: r.label
|
|
161
|
+
},
|
|
162
|
+
on: {
|
|
163
|
+
change: t.handleGroupClick
|
|
164
|
+
},
|
|
165
|
+
scopedSlots: t._u([t.getSlotName(r, "H", t.$scopedSlots) ? {
|
|
166
|
+
key: "header",
|
|
167
|
+
fn: function() {
|
|
168
|
+
return [t._t(t.getSlotName(r, "H"), null, {
|
|
169
|
+
column: r
|
|
170
|
+
})];
|
|
171
|
+
},
|
|
172
|
+
proxy: !0
|
|
173
|
+
} : null], null, !0)
|
|
174
|
+
}, [t.isTabs && p === 1 ? s("ElTabs", {
|
|
175
|
+
staticClass: "avue-form__tabs",
|
|
176
|
+
attrs: {
|
|
177
|
+
slot: "tabs",
|
|
178
|
+
type: t.tabsType
|
|
179
|
+
},
|
|
180
|
+
on: {
|
|
181
|
+
"tab-click": t.handleTabClick
|
|
182
|
+
},
|
|
183
|
+
slot: "tabs",
|
|
184
|
+
model: {
|
|
185
|
+
value: t.activeName,
|
|
186
|
+
callback: function(e) {
|
|
187
|
+
t.activeName = e;
|
|
188
|
+
},
|
|
189
|
+
expression: "activeName"
|
|
190
|
+
}
|
|
191
|
+
}, [t._l(t.columnOption, function(e, n) {
|
|
192
|
+
return [t.vaildDisplay(e) && n !== 0 ? s("ElTabPane", {
|
|
193
|
+
key: n,
|
|
194
|
+
attrs: {
|
|
195
|
+
name: `${n}`
|
|
196
|
+
}
|
|
197
|
+
}, [s("span", {
|
|
198
|
+
attrs: {
|
|
199
|
+
slot: "label"
|
|
200
|
+
},
|
|
201
|
+
slot: "label"
|
|
202
|
+
}, [t.getSlotName(e, "H", t.$scopedSlots) ? t._t(t.getSlotName(e, "H"), null, {
|
|
203
|
+
column: t.column
|
|
204
|
+
}) : [s("i", {
|
|
205
|
+
class: e.icon
|
|
206
|
+
}, [t._v(" ")]), t._v(" " + t._s(e.label) + " ")]], 2)]) : t._e()];
|
|
207
|
+
})], 2) : t._e(), s("div", {
|
|
208
|
+
directives: [{
|
|
209
|
+
name: "show",
|
|
210
|
+
rawName: "v-show",
|
|
211
|
+
value: t.isGroupShow(r, p),
|
|
212
|
+
expression: "isGroupShow(item, index)"
|
|
213
|
+
}],
|
|
214
|
+
class: ["avue-form__group", {
|
|
215
|
+
"avue-form__group--flex": r.flex === !1
|
|
216
|
+
}]
|
|
217
|
+
}, [t._l(r.column, function(e, n) {
|
|
218
|
+
return [t.vaildDisplay(e) ? s("ElCol", {
|
|
219
|
+
key: n,
|
|
220
|
+
class: ["avue-form__row", {
|
|
221
|
+
"avue--detail avue--detail__column": t.vaildDetail(e)
|
|
222
|
+
}, e.className],
|
|
223
|
+
style: {
|
|
224
|
+
paddingLeft: t.gutter,
|
|
225
|
+
paddingRight: t.gutter
|
|
226
|
+
},
|
|
227
|
+
attrs: {
|
|
228
|
+
span: t.getSpan(e),
|
|
229
|
+
md: t.getSpan(e),
|
|
230
|
+
sm: e.smSpan || r.smSpan || 12,
|
|
231
|
+
xs: e.xsSpan || r.xmSpan || 24,
|
|
232
|
+
offset: e.offset || r.offset,
|
|
233
|
+
push: e.push || r.push,
|
|
234
|
+
pull: e.pull || r.pull
|
|
235
|
+
}
|
|
236
|
+
}, [s("ElFormItem", {
|
|
237
|
+
class: `avue-form__item--${e.labelPosition || r.labelPosition || ""}`,
|
|
238
|
+
attrs: {
|
|
239
|
+
prop: e.prop,
|
|
240
|
+
label: e.label,
|
|
241
|
+
rules: e.rules,
|
|
242
|
+
"label-position": e.labelPosition || r.labelPosition || t.parentOption.labelPosition,
|
|
243
|
+
"label-width": t.getLabelWidth(e, r)
|
|
244
|
+
},
|
|
245
|
+
scopedSlots: t._u([t.getSlotName(e, "L", t.$scopedSlots) ? {
|
|
246
|
+
key: "label",
|
|
247
|
+
fn: function() {
|
|
248
|
+
return [t._t(t.getSlotName(e, "L"), null, {
|
|
249
|
+
column: e,
|
|
250
|
+
value: t.form[e.prop],
|
|
251
|
+
readonly: e.readonly || t.readonly,
|
|
252
|
+
disabled: t.getDisabled(e),
|
|
253
|
+
size: e.size || t.controlSize,
|
|
254
|
+
dic: t.DIC[e.prop]
|
|
255
|
+
})];
|
|
256
|
+
},
|
|
257
|
+
proxy: !0
|
|
258
|
+
} : e.labelTip ? {
|
|
259
|
+
key: "label",
|
|
260
|
+
fn: function() {
|
|
261
|
+
return [s("ElTooltip", {
|
|
262
|
+
staticClass: "item",
|
|
263
|
+
attrs: {
|
|
264
|
+
effect: "dark",
|
|
265
|
+
placement: e.labelTipPlacement || "top-start"
|
|
266
|
+
}
|
|
267
|
+
}, [s("div", {
|
|
268
|
+
attrs: {
|
|
269
|
+
slot: "content"
|
|
270
|
+
},
|
|
271
|
+
domProps: {
|
|
272
|
+
innerHTML: t._s(e.labelTip)
|
|
273
|
+
},
|
|
274
|
+
slot: "content"
|
|
275
|
+
}), s("i", {
|
|
276
|
+
staticClass: "el-icon-info"
|
|
277
|
+
})]), s("span", [t._v(" " + t._s(e.label) + t._s(t.labelSuffix))])];
|
|
278
|
+
},
|
|
279
|
+
proxy: !0
|
|
280
|
+
} : null, t.getSlotName(e, "E", t.$scopedSlots) ? {
|
|
281
|
+
key: "error",
|
|
282
|
+
fn: function(a) {
|
|
283
|
+
return [t._t(t.getSlotName(e, "E"), null, null, Object.assign(a, {
|
|
284
|
+
column: e,
|
|
285
|
+
value: t.form[e.prop],
|
|
286
|
+
readonly: t.readonly || e.readonly,
|
|
287
|
+
disabled: t.getDisabled(e),
|
|
288
|
+
size: e.size || t.controlSize,
|
|
289
|
+
dic: t.DIC[e.prop]
|
|
290
|
+
}))];
|
|
291
|
+
}
|
|
292
|
+
} : null], null, !0)
|
|
293
|
+
}, [s(t.validTip(e) ? "div" : "elTooltip", {
|
|
294
|
+
tag: "Component",
|
|
295
|
+
attrs: {
|
|
296
|
+
disabled: t.validTip(e),
|
|
297
|
+
content: e.tip || t.getPlaceholder(e),
|
|
298
|
+
placement: e.tipPlacement
|
|
299
|
+
}
|
|
300
|
+
}, [t.$scopedSlots[e.prop] ? t._t(e.prop, null, {
|
|
301
|
+
value: t.form[e.prop],
|
|
302
|
+
column: e,
|
|
303
|
+
label: t.form[`$${e.prop}`],
|
|
304
|
+
size: e.size || t.controlSize,
|
|
305
|
+
readonly: t.readonly || e.readonly,
|
|
306
|
+
disabled: t.getDisabled(e),
|
|
307
|
+
dic: t.DIC[e.prop]
|
|
308
|
+
}) : s("FormTemp", t._b({
|
|
309
|
+
ref: e.prop,
|
|
310
|
+
refInFor: !0,
|
|
311
|
+
attrs: {
|
|
312
|
+
column: e,
|
|
313
|
+
dic: t.DIC[e.prop],
|
|
314
|
+
props: t.parentOption.props,
|
|
315
|
+
"props-http": t.parentOption.propsHttp,
|
|
316
|
+
disabled: t.getDisabled(e),
|
|
317
|
+
readonly: e.readonly || t.readonly,
|
|
318
|
+
enter: t.parentOption.enter,
|
|
319
|
+
size: e.size || t.controlSize,
|
|
320
|
+
"column-slot": t.columnSlot
|
|
321
|
+
},
|
|
322
|
+
on: {
|
|
323
|
+
enter: t.submit,
|
|
324
|
+
change: function(a) {
|
|
325
|
+
return t.propChange(r.column, e);
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
scopedSlots: t._u([t._l(t.getSlotName(e, "T", t.$scopedSlots) ? [e] : [], function(a) {
|
|
329
|
+
return {
|
|
330
|
+
key: t.getSlotName(e, "T"),
|
|
331
|
+
fn: function(o) {
|
|
332
|
+
return [t._t(t.getSlotName(a, "T"), null, null, o)];
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
}), t._l(t.columnSlot, function(a) {
|
|
336
|
+
return {
|
|
337
|
+
key: a,
|
|
338
|
+
fn: function(o) {
|
|
339
|
+
return [t._t(a, null, null, o)];
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
})], null, !0),
|
|
343
|
+
model: {
|
|
344
|
+
value: t.form[e.prop],
|
|
345
|
+
callback: function(a) {
|
|
346
|
+
t.$set(t.form, e.prop, a);
|
|
347
|
+
},
|
|
348
|
+
expression: "form[column.prop]"
|
|
349
|
+
}
|
|
350
|
+
}, "FormTemp", t.uploadFun(e), !1))], 2)], 1)], 1) : t._e(), t.vaildDisplay(e) && e.row && e.span !== 24 && e.count ? s("div", {
|
|
351
|
+
key: `line${n}`,
|
|
352
|
+
staticClass: "avue-form__line",
|
|
353
|
+
style: {
|
|
354
|
+
width: `${e.count / 24 * 100}%`
|
|
355
|
+
}
|
|
356
|
+
}) : t._e()];
|
|
357
|
+
}), !t.isDetail && !t.isMenu ? s("FyFormMenu", {
|
|
358
|
+
scopedSlots: t._u([{
|
|
359
|
+
key: "menuForm",
|
|
360
|
+
fn: function(e) {
|
|
361
|
+
return [t._t("menuForm", null, null, e)];
|
|
362
|
+
}
|
|
363
|
+
}], null, !0)
|
|
364
|
+
}) : t._e()], 2)], 1);
|
|
365
|
+
}), !t.isDetail && t.isMenu ? s("FyFormMenu", {
|
|
366
|
+
scopedSlots: t._u([{
|
|
367
|
+
key: "menuForm",
|
|
368
|
+
fn: function(r) {
|
|
369
|
+
return [t._t("menuForm", null, null, r)];
|
|
370
|
+
}
|
|
371
|
+
}], null, !0)
|
|
372
|
+
}) : t._e()], 2)], 1)], 1);
|
|
373
|
+
}, X = [];
|
|
374
|
+
const Y = {
|
|
375
|
+
name: "FyForm",
|
|
376
|
+
mixins: [j],
|
|
377
|
+
provide() {
|
|
378
|
+
return {
|
|
379
|
+
formSafe: this
|
|
380
|
+
};
|
|
381
|
+
},
|
|
382
|
+
props: {
|
|
383
|
+
uploadBefore: Function,
|
|
384
|
+
uploadAfter: Function,
|
|
385
|
+
uploadDelete: Function,
|
|
386
|
+
uploadPreview: Function,
|
|
387
|
+
uploadError: Function,
|
|
388
|
+
uploadExceed: Function,
|
|
389
|
+
status: {
|
|
390
|
+
type: Boolean,
|
|
391
|
+
default: !1
|
|
392
|
+
},
|
|
393
|
+
isCrud: {
|
|
394
|
+
type: Boolean,
|
|
395
|
+
default: !1
|
|
396
|
+
},
|
|
397
|
+
value: {
|
|
398
|
+
type: Object,
|
|
399
|
+
required: !0,
|
|
400
|
+
default: () => ({})
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
data() {
|
|
404
|
+
return {
|
|
405
|
+
activeName: "",
|
|
406
|
+
labelWidth: 90,
|
|
407
|
+
allDisabled: !1,
|
|
408
|
+
optionIndex: [],
|
|
409
|
+
optionBox: !1,
|
|
410
|
+
tableOption: {},
|
|
411
|
+
itemSpanDefault: 12,
|
|
412
|
+
form: {},
|
|
413
|
+
formCreate: !1,
|
|
414
|
+
formList: [],
|
|
415
|
+
formBind: {}
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
computed: {
|
|
419
|
+
columnSlot() {
|
|
420
|
+
return Object.keys(this.$scopedSlots).filter((t) => !this.propOption.map((i) => i.prop).includes(t));
|
|
421
|
+
},
|
|
422
|
+
labelSuffix() {
|
|
423
|
+
return this.parentOption.labelSuffix || ":";
|
|
424
|
+
},
|
|
425
|
+
isMenu() {
|
|
426
|
+
return this.columnOption.length !== 1;
|
|
427
|
+
},
|
|
428
|
+
isDetail() {
|
|
429
|
+
return this.detail === !0;
|
|
430
|
+
},
|
|
431
|
+
isTabs() {
|
|
432
|
+
return this.parentOption.tabs === !0;
|
|
433
|
+
},
|
|
434
|
+
isAdd() {
|
|
435
|
+
return this.boxType === "add";
|
|
436
|
+
},
|
|
437
|
+
isEdit() {
|
|
438
|
+
return this.boxType === "edit";
|
|
439
|
+
},
|
|
440
|
+
isView() {
|
|
441
|
+
return this.boxType === "view";
|
|
442
|
+
},
|
|
443
|
+
gutter() {
|
|
444
|
+
return _((this.parentOption.gutter || 10) / 2);
|
|
445
|
+
},
|
|
446
|
+
detail() {
|
|
447
|
+
return this.parentOption.detail;
|
|
448
|
+
},
|
|
449
|
+
disabled() {
|
|
450
|
+
return this.parentOption.disabled;
|
|
451
|
+
},
|
|
452
|
+
readonly() {
|
|
453
|
+
return this.parentOption.readonly;
|
|
454
|
+
},
|
|
455
|
+
tabsType() {
|
|
456
|
+
return this.parentOption.tabsType;
|
|
457
|
+
},
|
|
458
|
+
columnLen() {
|
|
459
|
+
return this.columnOption.length;
|
|
460
|
+
},
|
|
461
|
+
dynamicOption() {
|
|
462
|
+
const t = [];
|
|
463
|
+
return this.propOption.forEach((i) => {
|
|
464
|
+
i.type === "dynamic" && this.vaildDisplay(i) && t.push(i);
|
|
465
|
+
}), t;
|
|
466
|
+
},
|
|
467
|
+
propOption() {
|
|
468
|
+
const t = [];
|
|
469
|
+
return this.columnOption.forEach((i) => {
|
|
470
|
+
i.display !== !1 && i.column.forEach((s) => {
|
|
471
|
+
t.push(s);
|
|
472
|
+
});
|
|
473
|
+
}), t;
|
|
474
|
+
},
|
|
475
|
+
parentOption() {
|
|
476
|
+
return this.tableOption || {};
|
|
477
|
+
},
|
|
478
|
+
columnOption() {
|
|
479
|
+
const t = this.tableOption.column || [], i = S(this.tableOption.group) || [], s = this.tableOption.footer || [];
|
|
480
|
+
return i.unshift({
|
|
481
|
+
header: !1,
|
|
482
|
+
column: t
|
|
483
|
+
}), s.length !== 0 && i.push({
|
|
484
|
+
header: !1,
|
|
485
|
+
column: s
|
|
486
|
+
}), i.forEach((r) => {
|
|
487
|
+
r.column = r.column || [], r.column.forEach((p, e) => {
|
|
488
|
+
p.display !== !1 && !this.isMobile && (p = B(p, this.itemSpanDefault, e === 0));
|
|
489
|
+
}), r.column = W(r.column), r.column = r.column.sort((p, e) => (e.order || 0) - (p.order || 0));
|
|
490
|
+
}), i;
|
|
491
|
+
},
|
|
492
|
+
menuPosition: function() {
|
|
493
|
+
return this.parentOption.menuPosition ? this.parentOption.menuPosition : "center";
|
|
494
|
+
},
|
|
495
|
+
boxType: function() {
|
|
496
|
+
return this.parentOption.boxType;
|
|
497
|
+
},
|
|
498
|
+
isPrint() {
|
|
499
|
+
return this.parentOption.printBtn === !0;
|
|
500
|
+
},
|
|
501
|
+
tabsActive() {
|
|
502
|
+
return this.tableOption.tabsActive || "1";
|
|
503
|
+
},
|
|
504
|
+
isMock() {
|
|
505
|
+
return this.parentOption.mockBtn === !0;
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
watch: {
|
|
509
|
+
value: {
|
|
510
|
+
handler() {
|
|
511
|
+
this.formCreate && this.setForm();
|
|
512
|
+
},
|
|
513
|
+
deep: !0
|
|
514
|
+
},
|
|
515
|
+
form: {
|
|
516
|
+
handler() {
|
|
517
|
+
this.formCreate && (this.setLabel(), this.setVal());
|
|
518
|
+
},
|
|
519
|
+
deep: !0
|
|
520
|
+
},
|
|
521
|
+
tabsActive: {
|
|
522
|
+
handler() {
|
|
523
|
+
this.activeName = this.tabsActive;
|
|
524
|
+
},
|
|
525
|
+
immediate: !0
|
|
526
|
+
},
|
|
527
|
+
DIC: {
|
|
528
|
+
handler() {
|
|
529
|
+
this.setLabel();
|
|
530
|
+
},
|
|
531
|
+
deep: !0,
|
|
532
|
+
immediate: !0
|
|
533
|
+
},
|
|
534
|
+
allDisabled: {
|
|
535
|
+
handler(t) {
|
|
536
|
+
this.$emit("update:status", t);
|
|
537
|
+
},
|
|
538
|
+
deep: !0,
|
|
539
|
+
immediate: !0
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
mounted() {
|
|
543
|
+
setTimeout(() => {
|
|
544
|
+
this.dataFormat();
|
|
545
|
+
});
|
|
546
|
+
},
|
|
547
|
+
beforeDestroy() {
|
|
548
|
+
Object.keys(this.formBind).forEach((t) => {
|
|
549
|
+
this.formBind[t].forEach((i) => {
|
|
550
|
+
i();
|
|
551
|
+
});
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
methods: {
|
|
555
|
+
setPx: _,
|
|
556
|
+
deepClone: S,
|
|
557
|
+
getComponent: R,
|
|
558
|
+
getPlaceholder: G,
|
|
559
|
+
uploadFun: L,
|
|
560
|
+
getDisabled(t) {
|
|
561
|
+
return this.vaildDetail(t) || this.isDetail || this.vaildDisabled(t) || this.allDisabled;
|
|
562
|
+
},
|
|
563
|
+
getSpan(t) {
|
|
564
|
+
return t.span || this.parentOption.span || this.itemSpanDefault;
|
|
565
|
+
},
|
|
566
|
+
isGroupShow(t, i) {
|
|
567
|
+
return this.isTabs ? i == this.activeName || i == 0 : !0;
|
|
568
|
+
},
|
|
569
|
+
// 初始化表单
|
|
570
|
+
dataFormat() {
|
|
571
|
+
const t = H(this.propOption).tableForm, i = this.value, s = {};
|
|
572
|
+
Object.entries(Object.assign(t, i)).forEach((r) => {
|
|
573
|
+
const p = r[0], e = r[1];
|
|
574
|
+
u(i[p]) ? s[p] = e : s[p] = i[p];
|
|
575
|
+
}), this.$set(this, "form", s), this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
|
|
576
|
+
this.formCreate = !0, this.clearValidate();
|
|
577
|
+
});
|
|
578
|
+
},
|
|
579
|
+
setControl() {
|
|
580
|
+
this.propOption.forEach((t) => {
|
|
581
|
+
const i = t.prop, s = t.bind, r = t.control;
|
|
582
|
+
if (!this.formBind[i]) {
|
|
583
|
+
const p = [];
|
|
584
|
+
if (s) {
|
|
585
|
+
const e = this.$watch(`form.${i}`, (a, o) => {
|
|
586
|
+
a != o && V(this.form, s, a);
|
|
587
|
+
}), n = this.$watch(`form.${s}`, (a, o) => {
|
|
588
|
+
a != o && this.$set(this.form, i, a);
|
|
589
|
+
});
|
|
590
|
+
p.push(e), p.push(n), this.$set(this.form, i, z(this.form, s));
|
|
591
|
+
}
|
|
592
|
+
if (r) {
|
|
593
|
+
const e = () => {
|
|
594
|
+
const a = r(this.form[t.prop], this.form) || {};
|
|
595
|
+
Object.keys(a).forEach((o) => {
|
|
596
|
+
const d = Object.assign(this.objectOption[o] || {}, a[o]);
|
|
597
|
+
this.$set(this.objectOption, o, d), a[o].dicData && (this.DIC[o] = a[o].dicData);
|
|
598
|
+
});
|
|
599
|
+
}, n = this.$watch(`form.${i}`, () => {
|
|
600
|
+
e();
|
|
601
|
+
});
|
|
602
|
+
p.push(n), e();
|
|
603
|
+
}
|
|
604
|
+
this.formBind[i] = p;
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
},
|
|
608
|
+
setForm() {
|
|
609
|
+
Object.keys(this.value).forEach((t) => {
|
|
610
|
+
this.$set(this.form, t, this.value[t]);
|
|
611
|
+
});
|
|
612
|
+
},
|
|
613
|
+
setVal() {
|
|
614
|
+
this.$emit("input", this.form), this.$emit("change", this.form);
|
|
615
|
+
},
|
|
616
|
+
setLabel() {
|
|
617
|
+
this.tableOption.filterNull === !0 && (this.form = $(this.form, [""], !1)), this.tableOption.filterDic == !0 ? this.form = $(this.form, ["$"], !1) : this.propOption.forEach((t) => {
|
|
618
|
+
let i;
|
|
619
|
+
const s = this.DIC[t.prop];
|
|
620
|
+
u(s) || (i = N(this.form, t, this.tableOption, s), i ? this.$set(this.form, `$${t.prop}`, i) : this.$delete(this.form, `$${t.prop}`));
|
|
621
|
+
});
|
|
622
|
+
},
|
|
623
|
+
handleGroupClick(t) {
|
|
624
|
+
this.$emit("tab-click", t);
|
|
625
|
+
},
|
|
626
|
+
handleTabClick(t, i) {
|
|
627
|
+
this.$emit("tab-click", t, i);
|
|
628
|
+
},
|
|
629
|
+
getLabelWidth(t, i) {
|
|
630
|
+
let s;
|
|
631
|
+
return u(t.labelWidth) ? u(i.labelWidth) ? s = this.parentOption.labelWidth : s = i.labelWidth : s = t.labelWidth, _(s, this.labelWidth);
|
|
632
|
+
},
|
|
633
|
+
// 对部分表单字段进行校验的方法
|
|
634
|
+
validateField(t) {
|
|
635
|
+
return this.$refs.form.validateField(t);
|
|
636
|
+
},
|
|
637
|
+
validTip(t) {
|
|
638
|
+
return !t.tip || t.type === "upload";
|
|
639
|
+
},
|
|
640
|
+
getPropRef(t) {
|
|
641
|
+
return this.$refs[t][0];
|
|
642
|
+
},
|
|
643
|
+
handleChange(t, i) {
|
|
644
|
+
this.$nextTick(() => {
|
|
645
|
+
const s = i.cascader, r = s.join(",");
|
|
646
|
+
s.forEach((p) => {
|
|
647
|
+
const e = p, n = this.form[i.prop], a = this.findObject(t, e);
|
|
648
|
+
u(a) || (this.formList.includes(r) && s.forEach((o) => {
|
|
649
|
+
this.form[o] = "", this.$set(this.DIC, o, []);
|
|
650
|
+
}), !(u(s) || u(n) || u(a)) && U({
|
|
651
|
+
column: a,
|
|
652
|
+
value: n,
|
|
653
|
+
form: this.form
|
|
654
|
+
}).then((o) => {
|
|
655
|
+
this.formList.includes(r) || this.formList.push(r);
|
|
656
|
+
const d = o || [];
|
|
657
|
+
this.$set(this.DIC, e, d), !u(d) && !u(d) && !u(a.cascaderIndex) && u(this.form[e]) && (this.form[e] = d[a.cascaderIndex][(a.props || {}).value || I.value]);
|
|
658
|
+
}));
|
|
659
|
+
});
|
|
660
|
+
});
|
|
661
|
+
},
|
|
662
|
+
handlePrint() {
|
|
663
|
+
this.$Print(this.$el);
|
|
664
|
+
},
|
|
665
|
+
propChange(t, i) {
|
|
666
|
+
i.cascader && this.handleChange(t, i);
|
|
667
|
+
},
|
|
668
|
+
handleMock() {
|
|
669
|
+
this.isMock && (this.columnOption.forEach((t) => {
|
|
670
|
+
const i = J(t.column, this.DIC, this.form, this.isMock);
|
|
671
|
+
u(i) || Object.keys(i).forEach((s) => {
|
|
672
|
+
this.form[s] = i[s];
|
|
673
|
+
});
|
|
674
|
+
}), this.$nextTick(() => {
|
|
675
|
+
this.clearValidate(), this.$emit("mock-change", this.form);
|
|
676
|
+
}));
|
|
677
|
+
},
|
|
678
|
+
vaildDetail(t) {
|
|
679
|
+
let i;
|
|
680
|
+
if (this.detail)
|
|
681
|
+
return !1;
|
|
682
|
+
if (!u(t.detail))
|
|
683
|
+
i = "detail";
|
|
684
|
+
else if (this.isAdd)
|
|
685
|
+
i = "addDetail";
|
|
686
|
+
else if (this.isEdit)
|
|
687
|
+
i = "editDetail";
|
|
688
|
+
else if (this.isView)
|
|
689
|
+
return !1;
|
|
690
|
+
return i ? t[i] === !0 : !1;
|
|
691
|
+
},
|
|
692
|
+
// 验证表单是否禁止
|
|
693
|
+
vaildDisabled(t) {
|
|
694
|
+
let i;
|
|
695
|
+
if (this.disabled)
|
|
696
|
+
return !0;
|
|
697
|
+
if (!u(t.disabled))
|
|
698
|
+
i = "disabled";
|
|
699
|
+
else if (this.isAdd)
|
|
700
|
+
i = "addDisabled";
|
|
701
|
+
else if (this.isEdit)
|
|
702
|
+
i = "editDisabled";
|
|
703
|
+
else if (this.isView)
|
|
704
|
+
return !0;
|
|
705
|
+
return i ? t[i] === !0 : !1;
|
|
706
|
+
},
|
|
707
|
+
// 验证表单是否显隐
|
|
708
|
+
vaildDisplay(t) {
|
|
709
|
+
let i;
|
|
710
|
+
return u(t.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? M(t[i], !0) : !0;
|
|
711
|
+
},
|
|
712
|
+
clearValidate(t) {
|
|
713
|
+
return k(this, null, function* () {
|
|
714
|
+
var i;
|
|
715
|
+
(i = this.$refs.form) == null || i.clearValidate(t);
|
|
716
|
+
});
|
|
717
|
+
},
|
|
718
|
+
validateCellForm() {
|
|
719
|
+
return new Promise((t) => {
|
|
720
|
+
this.$refs.form.validate((i, s) => {
|
|
721
|
+
t(s);
|
|
722
|
+
});
|
|
723
|
+
});
|
|
724
|
+
},
|
|
725
|
+
validate(t) {
|
|
726
|
+
this.$refs.form.validate((i, s) => {
|
|
727
|
+
const r = [], p = [], e = {};
|
|
728
|
+
this.dynamicOption.forEach((n) => {
|
|
729
|
+
const a = n.children.type === "form";
|
|
730
|
+
p.push(n.prop), a ? u(this.$refs[n.prop][0].$refs.temp.$refs.main) || this.$refs[n.prop][0].$refs.temp.$refs.main.forEach((o) => {
|
|
731
|
+
r.push(o.validateCellForm());
|
|
732
|
+
}) : r.push(this.$refs[n.prop][0].$refs.temp.$refs.main.validateCellForm());
|
|
733
|
+
}), Promise.all(r).then((n) => {
|
|
734
|
+
n.forEach((o, d) => {
|
|
735
|
+
u(o) || (e[p[d]] = o);
|
|
736
|
+
});
|
|
737
|
+
const a = Object.assign(e, s);
|
|
738
|
+
u(a) ? (this.show(), t(!0, this.hide)) : t(!1, this.hide, a);
|
|
739
|
+
});
|
|
740
|
+
});
|
|
741
|
+
},
|
|
742
|
+
resetForm(t = !0) {
|
|
743
|
+
if (t) {
|
|
744
|
+
const i = this.propOption.map((s) => s.prop);
|
|
745
|
+
this.form = A(this.form, i, (this.tableOption.filterParams || []).concat([this.rowKey]));
|
|
746
|
+
}
|
|
747
|
+
this.$nextTick(() => {
|
|
748
|
+
this.clearValidate(), this.$emit("reset-change");
|
|
749
|
+
});
|
|
750
|
+
},
|
|
751
|
+
resetFields() {
|
|
752
|
+
this.$refs.form.resetFields();
|
|
753
|
+
},
|
|
754
|
+
show() {
|
|
755
|
+
this.allDisabled = !0;
|
|
756
|
+
},
|
|
757
|
+
hide() {
|
|
758
|
+
this.allDisabled = !1;
|
|
759
|
+
},
|
|
760
|
+
submit() {
|
|
761
|
+
this.validate((t, i) => {
|
|
762
|
+
t ? this.$emit("submit", $(this.form, ["$"]), this.hide) : this.$emit("error", i);
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}, x = {};
|
|
767
|
+
var Z = /* @__PURE__ */ K(
|
|
768
|
+
Y,
|
|
769
|
+
Q,
|
|
770
|
+
X,
|
|
771
|
+
!1,
|
|
772
|
+
tt,
|
|
773
|
+
null,
|
|
774
|
+
null,
|
|
775
|
+
null
|
|
776
|
+
);
|
|
777
|
+
function tt(t) {
|
|
778
|
+
for (let i in x)
|
|
779
|
+
this[i] = x[i];
|
|
780
|
+
}
|
|
781
|
+
const ft = /* @__PURE__ */ function() {
|
|
782
|
+
return Z.exports;
|
|
783
|
+
}();
|
|
784
|
+
export {
|
|
785
|
+
ft as default
|
|
786
|
+
};
|