@web-utils/component 5.0.0-beta03 → 5.0.0-beta04
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/chunks/DialogForm.BzmXN481.mjs +37816 -0
- package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
- package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
- package/chunks/FyButton.DGd1yE_h.mjs +27 -0
- package/chunks/{FyCurd.DqJuCLNW.mjs → FyCurd.DmIW6Tjw.mjs} +490 -483
- package/chunks/{FyForm.CgyGhetD.mjs → FyForm.Dh77gj0Z.mjs} +149 -149
- package/chunks/{FyUEditor.uvZS8UgS.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
- package/chunks/{FyUpload.DoBEuYcC.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
- package/chunks/{MonacoEditor.Bq9d6JSz.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
- package/chunks/dataformat.BpAzVPYN.mjs +165 -0
- package/chunks/{dic.NZCGhtA7.mjs → dic.N2PNjL8o.mjs} +1 -1
- package/chunks/{event.CmOTnori.mjs → event.BevSLXu4.mjs} +8 -9
- package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
- package/dialog/index.d.ts +14 -0
- package/dialog/props.d.ts +101 -0
- package/dialog-form/index.mjs +2 -145
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/fy-array/index.mjs +7 -7
- package/fy-button/index.mjs +2 -0
- package/fy-button/style.css +1 -0
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +2 -2
- package/fy-date/style.css +1 -1
- package/fy-dynamic/index.mjs +15 -15
- package/fy-empty/index.mjs +4 -4
- package/fy-form/index.mjs +1 -1
- package/fy-input/index.mjs +3 -3
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-map/index.mjs +36 -34
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +40 -38
- package/fy-input-tree/index.mjs +17 -17
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +29 -29
- package/fy-slider/index.mjs +5 -5
- package/fy-switch/index.mjs +2 -2
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +7 -7
- package/fy-title/index.mjs +2 -2
- package/fy-tree/index.mjs +76 -74
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/icon-temp/index.mjs +1 -1
- package/index.d.ts +2 -141
- package/index.mjs +31 -178
- package/monaco-editor/index.mjs +1 -1
- package/package.json +4 -4
- package/web-types.json +2431 -20044
- package/address-input/index.mjs +0 -76
- package/address-input/style.css +0 -1
- package/affix/index.mjs +0 -72
- package/affix/style.css +0 -1
- package/aside-menu/index.mjs +0 -20
- package/aside-menu/style.css +0 -1
- package/avatar/index.mjs +0 -94
- package/avatar/style.css +0 -1
- package/awesome-button/index.mjs +0 -49
- package/base.css +0 -1
- package/capsule-tab/index.mjs +0 -27
- package/capsule-tab/style.css +0 -1
- package/card/index.mjs +0 -86
- package/card/style.css +0 -1
- package/carousel/index.mjs +0 -46
- package/carousel/style.css +0 -1
- package/chat/index.mjs +0 -432
- package/chat/style.css +0 -1
- package/chunk-file-uploader/index.mjs +0 -2
- package/chunk-file-uploader/style.css +0 -1
- package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
- package/chunks/EditableTree.CV8b95tW.mjs +0 -639
- package/chunks/ElementBaseInfo.lW0iwU10.mjs +0 -208
- package/chunks/ElementDialog.DWhAJsUn.mjs +0 -520
- package/chunks/ElementForm.C7yebHWH.mjs +0 -600
- package/chunks/ElementListeners.B_SjC8dp.mjs +0 -635
- package/chunks/ElementMultiInstance.Xw27Z5mm.mjs +0 -289
- package/chunks/ElementOtherConfig.DnNmAhKn.mjs +0 -50
- package/chunks/ElementProperties.DKr9JE_O.mjs +0 -187
- package/chunks/ElementTaskConfig.CPjsXlpS.mjs +0 -442
- package/chunks/FlowCondition.BA7GF34X.mjs +0 -193
- package/chunks/FlowDesigner.DH1ypcUw.mjs +0 -5100
- package/chunks/FormBlock.D6kZl7sm.mjs +0 -117
- package/chunks/FormCascader.BXL8lKww.mjs +0 -1229
- package/chunks/FormInputTime.DzTPiDNh.mjs +0 -1775
- package/chunks/FormItem.B8iPLduv.mjs +0 -89
- package/chunks/FormItemGroup.CCGqEapT.mjs +0 -154
- package/chunks/FormSelect.t0jbTL_K.mjs +0 -1475
- package/chunks/FormSwitch.uoFQ-xp_.mjs +0 -298
- package/chunks/FormTemp.CeHtEZQe.mjs +0 -144
- package/chunks/FyFormDesign.DIIK7mXK.mjs +0 -5521
- package/chunks/ImagePreview.DDFrZgo5.mjs +0 -649
- package/chunks/Keyboard.DBspwbYo.mjs +0 -379
- package/chunks/PageableTable.DR-REJN5.mjs +0 -659
- package/chunks/RecordVideo.CKTY-gk9.mjs +0 -116
- package/chunks/SignalAndMessage.CL2u19it.mjs +0 -189
- package/chunks/SplitPane.DNNid7WB.mjs +0 -219
- package/chunks/TableColumn.Cq9Bvevm.mjs +0 -186
- package/chunks/TableView.DMWMaGLA.mjs +0 -477
- package/chunks/Toolbar.DytZ6fO0.mjs +0 -219
- package/chunks/ToolbarButton.AlTszc53.mjs +0 -107
- package/chunks/UserTaskListeners.Qfm8hKWP.mjs +0 -581
- package/chunks/VueCron.BmPnLuu3.mjs +0 -1787
- package/chunks/VueTreeSelect.GHx4Z2lG.mjs +0 -1877
- package/chunks/button.gVyl7Y__.mjs +0 -927
- package/chunks/checkbox.AmhCpaBZ.mjs +0 -438
- package/chunks/chunk.A6TnG60p.mjs +0 -13
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +0 -273
- package/chunks/constants.Dw7hXt67.mjs +0 -4
- package/chunks/core.Blrh_Fjl.mjs +0 -51
- package/chunks/dataformat.F7GtAoiN.mjs +0 -144
- package/chunks/dictionary.BqVLM7Lf.mjs +0 -87
- package/chunks/dictionary.DXYdZefs.mjs +0 -19
- package/chunks/event.ZRs4J5TN.mjs +0 -4
- package/chunks/focus-trap.CuUc8N2C.mjs +0 -211
- package/chunks/form-input.DdSb45Tz.mjs +0 -34
- package/chunks/form-item.fYYCXvCs.mjs +0 -716
- package/chunks/form-pick.BEC7lrNH.mjs +0 -7
- package/chunks/form-validate.JFOV_f-C.mjs +0 -11
- package/chunks/icon.AJYLfX1m.mjs +0 -26
- package/chunks/icon.niAg1zTC.mjs +0 -251
- package/chunks/init.CtUEiRbU.mjs +0 -115
- package/chunks/input.B_wW4aF-.mjs +0 -548
- package/chunks/install.BJl2MN77.mjs +0 -73
- package/chunks/message-box.wGWcYSSd.mjs +0 -463
- package/chunks/message.DnTACuzV.mjs +0 -401
- package/chunks/overlay.Rhu_rfhx.mjs +0 -122
- package/chunks/photo-swipe.BvBJGc5x.mjs +0 -55
- package/chunks/radio.BMkZBhl5.mjs +0 -274
- package/chunks/scroll.BJIpzi2Q.mjs +0 -28
- package/chunks/scrollbar.CvxOszy3.mjs +0 -345
- package/chunks/slot.CZCo32Cw.mjs +0 -25
- package/chunks/style.CraPDfJA.mjs +0 -325
- package/chunks/sub-table-plus-props.DvS8aKT4.mjs +0 -28
- package/chunks/tab-mixin.C9DSz8xu.mjs +0 -70
- package/chunks/tag.B6yUaGj-.mjs +0 -141
- package/chunks/teleport.87mkIv8m.mjs +0 -22
- package/chunks/tooltip.Dzjs7LZ8.mjs +0 -1926
- package/chunks/typescript.D0a40c7B.mjs +0 -4
- package/chunks/use-aria.B9uqqWAE.mjs +0 -17
- package/chunks/use-composition.BMPJBvYs.mjs +0 -47
- package/chunks/use-deprecated.vx6LTDA_.mjs +0 -12
- package/chunks/use-empty-values.CxYKjLV9.mjs +0 -81
- package/chunks/use-form-item.DMDTkMq9.mjs +0 -48
- package/chunks/use-global-config.Dkt91Ob3.mjs +0 -57
- package/chunks/use-id.CyzdvfQn.mjs +0 -15
- package/chunks/use-locale.CBoQRFjH.mjs +0 -188
- package/chunks/use-size.CoorvF12.mjs +0 -18
- package/chunks/util.fjuzrmWz.mjs +0 -103
- package/chunks/utilSelf.Bv7FtUNb.mjs +0 -46
- package/chunks/utils.C37EhJ-u.mjs +0 -60
- package/chunks/utils.C8RvIGLM.mjs +0 -14
- package/chunks/validator.Drv0r2Nb.mjs +0 -5
- package/chunks/vnode.raM3wMJz.mjs +0 -14
- package/code-mirror-editor/index.mjs +0 -99
- package/code-mirror-editor/style.css +0 -1
- package/comment/index.mjs +0 -62
- package/comment/style.css +0 -1
- package/configComponents.d.ts +0 -29
- package/configComponents.mjs +0 -42
- package/confirm-button/index.mjs +0 -35
- package/confirmable/index.mjs +0 -8
- package/context-menu/index.mjs +0 -196
- package/context-menu/style.css +0 -1
- package/count-up/index.mjs +0 -99
- package/custom-scrollbar/index.mjs +0 -93
- package/data-box/index.mjs +0 -64
- package/data-box/style.css +0 -1
- package/data-card/index.mjs +0 -60
- package/data-card/style.css +0 -1
- package/data-card-text/index.mjs +0 -64
- package/data-card-text/style.css +0 -1
- package/data-display/index.mjs +0 -71
- package/data-display/style.css +0 -1
- package/data-icons/index.mjs +0 -70
- package/data-icons/style.css +0 -1
- package/data-imgtext/index.mjs +0 -67
- package/data-imgtext/style.css +0 -1
- package/data-operatext/index.mjs +0 -51
- package/data-operatext/style.css +0 -1
- package/data-panel/index.mjs +0 -57
- package/data-panel/style.css +0 -1
- package/data-pay/index.mjs +0 -105
- package/data-pay/style.css +0 -1
- package/data-price/index.mjs +0 -48
- package/data-price/style.css +0 -1
- package/data-progress/index.mjs +0 -67
- package/data-progress/style.css +0 -1
- package/data-rotate/index.mjs +0 -61
- package/data-rotate/style.css +0 -1
- package/data-table-picker/index.mjs +0 -116
- package/data-tabs/index.mjs +0 -67
- package/data-tabs/style.css +0 -1
- package/dynamic-table/index.mjs +0 -165
- package/dynamic-table/style.css +0 -1
- package/e-charts/index.mjs +0 -176
- package/e-charts/style.css +0 -1
- package/easy-popup/index.mjs +0 -92
- package/easy-popup/style.css +0 -1
- package/editable-progress/index.mjs +0 -113
- package/editable-progress/style.css +0 -1
- package/editable-tree/index.mjs +0 -2
- package/editable-tree/style.css +0 -1
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
- package/ellipsis/index.mjs +0 -124
- package/ellipsis/style.css +0 -1
- package/empty-view/index.mjs +0 -46
- package/empty-view/style.css +0 -1
- package/error-view/index.mjs +0 -37
- package/error-view/style.css +0 -1
- package/flex-column/index.mjs +0 -35
- package/flex-item/index.mjs +0 -61
- package/flex-row/index.mjs +0 -34
- package/flex-scroller/index.mjs +0 -29
- package/flex-scroller/style.css +0 -1
- package/flow/index.mjs +0 -240
- package/flow/style.css +0 -1
- package/flow-designer/index.mjs +0 -2
- package/flow-designer/style.css +0 -1
- package/flow-node/index.mjs +0 -56
- package/flow-viewer/index.mjs +0 -160
- package/flow-viewer/style.css +0 -1
- package/form-block/index.mjs +0 -2
- package/form-block/style.css +0 -1
- package/form-button/index.mjs +0 -36
- package/form-card/index.mjs +0 -14
- package/form-cascader/index.mjs +0 -2
- package/form-checkbox/index.mjs +0 -90
- package/form-checkbox-group/index.mjs +0 -162
- package/form-checkbox-group/style.css +0 -1
- package/form-date-picker/index.mjs +0 -156
- package/form-holder/index.mjs +0 -134
- package/form-holder/style.css +0 -1
- package/form-input/index.mjs +0 -114
- package/form-input-cron-expression/index.mjs +0 -98
- package/form-input-cron-expression/style.css +0 -1
- package/form-input-email/index.mjs +0 -66
- package/form-input-id-card/index.mjs +0 -74
- package/form-input-phone-number/index.mjs +0 -73
- package/form-input-tag/index.mjs +0 -89
- package/form-input-time/index.mjs +0 -2
- package/form-item/index.mjs +0 -2
- package/form-item/style.css +0 -1
- package/form-item-config-provider/index.mjs +0 -47
- package/form-item-group/index.mjs +0 -2
- package/form-item-group/style.css +0 -1
- package/form-radio-group/index.mjs +0 -162
- package/form-radio-group/style.css +0 -1
- package/form-select/index.mjs +0 -2
- package/form-select/style.css +0 -1
- package/form-switch/index.mjs +0 -2
- package/form-table/index.mjs +0 -132
- package/form-table-plus/index.mjs +0 -165
- package/form-textarea/index.mjs +0 -91
- package/form-tree-select/index.mjs +0 -90
- package/form-tree-select/style.css +0 -1
- package/form-tree-select-multiple/index.mjs +0 -93
- package/form-view/index.mjs +0 -280
- package/form-view/style.css +0 -1
- package/fy-article/index.mjs +0 -73
- package/fy-article/style.css +0 -1
- package/fy-code/index.mjs +0 -48
- package/fy-draggable/index.mjs +0 -323
- package/fy-draggable/style.css +0 -1
- package/fy-form-design/index.mjs +0 -2
- package/fy-form-design/style.css +0 -1
- package/fy-input-icon/index.mjs +0 -134
- package/fy-input-icon/style.css +0 -1
- package/fy-progress/index.mjs +0 -36
- package/guide-steps/index.mjs +0 -73
- package/guide-steps/style.css +0 -1
- package/helper-function.d.ts +0 -5
- package/helper-function.mjs +0 -58
- package/highlight-j-s/index.mjs +0 -51
- package/highlight-j-s/style.css +0 -1
- package/icon-card/index.mjs +0 -34
- package/icon-card/style.css +0 -1
- package/iframe-window/index.mjs +0 -40
- package/iframe-window/style.css +0 -1
- package/image-cropper/index.mjs +0 -152
- package/image-cropper/style.css +0 -1
- package/image-preview/index.mjs +0 -2
- package/image-preview/style.css +0 -1
- package/image-viewer/index.mjs +0 -70
- package/image-viewer/style.css +0 -1
- package/input-number-range/index.mjs +0 -76
- package/input-number-range/style.css +0 -1
- package/j-s-x-component/index.mjs +0 -14
- package/keyboard/index.mjs +0 -2
- package/keyboard/style.css +0 -1
- package/license/index.mjs +0 -106
- package/loading-view/index.mjs +0 -39
- package/loading-view/style.css +0 -1
- package/name-avatar/index.mjs +0 -61
- package/name-avatar/style.css +0 -1
- package/nav-bar/index.mjs +0 -34
- package/nav-bar/style.css +0 -1
- package/not-implement/index.mjs +0 -10
- package/not-implement/style.css +0 -1
- package/notice/index.mjs +0 -97
- package/notice/style.css +0 -1
- package/page/index.mjs +0 -19
- package/page/style.css +0 -1
- package/page-header/index.mjs +0 -27
- package/page-header/style.css +0 -1
- package/page-index/index.mjs +0 -121
- package/page-index/style.css +0 -1
- package/page-index-top/index.mjs +0 -80
- package/page-skeleton/index.mjs +0 -49
- package/page-skeleton/style.css +0 -1
- package/page-skeleton-new/index.mjs +0 -79
- package/page-skeleton-new/style.css +0 -1
- package/pageable-table/index.mjs +0 -2
- package/pageable-table/style.css +0 -1
- package/pageable-view/index.mjs +0 -280
- package/pageable-view/style.css +0 -1
- package/photo-swipe/index.d.ts +0 -8
- package/photo-swipe/index.mjs +0 -33
- package/picker-table-view/index.mjs +0 -221
- package/present-view/index.mjs +0 -271
- package/present-view/style.css +0 -1
- package/queue/index.mjs +0 -46
- package/queue/style.css +0 -1
- package/record-video/index.mjs +0 -2
- package/record-video/style.css +0 -1
- package/resize-observer/index.mjs +0 -45
- package/resize-observer/style.css +0 -1
- package/search/index.mjs +0 -116
- package/search/style.css +0 -1
- package/sign/index.mjs +0 -104
- package/sign/style.css +0 -1
- package/sign-panel/index.mjs +0 -183
- package/sign-panel/style.css +0 -1
- package/skeleton/index.mjs +0 -51
- package/skeleton/style.css +0 -1
- package/skeleton-panel/index.mjs +0 -34
- package/skeleton-panel/style.css +0 -1
- package/split-pane/index.mjs +0 -3
- package/split-pane/style.css +0 -1
- package/stateful/index.mjs +0 -71
- package/stateful/style.css +0 -1
- package/static-pageable-table/index.mjs +0 -69
- package/static-pageable-table/style.css +0 -1
- package/sub-table/index.mjs +0 -505
- package/sub-table/style.css +0 -1
- package/sub-table-plus/index.mjs +0 -590
- package/sub-table-plus/style.css +0 -1
- package/swiper/index.mjs +0 -128
- package/swiper/style.css +0 -1
- package/tab/index.mjs +0 -117
- package/tab/style.css +0 -1
- package/tab-item/index.mjs +0 -49
- package/table-column/index.mjs +0 -2
- package/table-column/style.css +0 -1
- package/table-view/index.mjs +0 -3
- package/table-view/style.css +0 -1
- package/tabs-view/index.mjs +0 -109
- package/tabs-view/style.css +0 -1
- package/tag-render/index.mjs +0 -84
- package/tag-render/style.css +0 -1
- package/text-ellipsis/index.mjs +0 -95
- package/text-ellipsis/style.css +0 -1
- package/toolbar/index.mjs +0 -2
- package/toolbar/style.css +0 -1
- package/toolbar-button/index.mjs +0 -2
- package/verify/index.mjs +0 -58
- package/verify/style.css +0 -1
- package/video/index.d.ts +0 -10
- package/vue-cron/index.mjs +0 -2
- package/vue-cron/style.css +0 -1
- package/vue-qr-code/index.mjs +0 -32
- package/vue-quill-editor/index.mjs +0 -127
- package/vue-quill-editor/style.css +0 -1
- package/vue-tags-input/index.mjs +0 -348
- package/vue-tags-input/style.css +0 -1
- package/vue-tree-select/index.mjs +0 -2
- package/vue-tree-select/style.css +0 -1
- package/vue-video-player/index.mjs +0 -136
- package/vue-video-player/style.css +0 -1
- package/watermark/index.mjs +0 -47
- package/watermark/style.css +0 -1
- package/x-input-tag/index.mjs +0 -142
- package/x-input-tag/style.css +0 -1
- /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
- /package/chunks/{packages.CONbEH13.mjs → packages.W76nKiMk.mjs} +0 -0
- /package/chunks/{permission.8WDtOmzA.mjs → permission.ZYdXiCsn.mjs} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, g as i, h as a, n as o, w as s, y as c } from "./util.Cdt7t08t.mjs";
|
|
2
|
+
import { n as l, r as u, t as d } from "./FormTemp.DWB4CV8h.mjs";
|
|
3
|
+
import { i as f } from "./dic.N2PNjL8o.mjs";
|
|
4
|
+
import { a as p, i as m, n as h, r as g, t as _ } from "./dataformat.BpAzVPYN.mjs";
|
|
5
|
+
import { t as v } from "./packages.W76nKiMk.mjs";
|
|
6
|
+
import { t as y } from "./_plugin-vue_export-helper.CTBRVsXt.mjs";
|
|
7
|
+
import { t as b } from "./FyButton.DGd1yE_h.mjs";
|
|
8
|
+
import { isBlank as x } from "@web-utils/core";
|
|
9
|
+
import { Fragment as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, guardReactiveProps as A, mergeProps as j, normalizeClass as M, normalizeProps as N, normalizeStyle as P, openBlock as F, renderList as I, renderSlot as L, resolveComponent as R, resolveDynamicComponent as z, toDisplayString as B, vShow as V, withCtx as H, withDirectives as U, withModifiers as W } from "vue";
|
|
10
10
|
//#region src/components/utils/mock.ts
|
|
11
|
-
var
|
|
11
|
+
var G = (e, t, n, r) => {
|
|
12
12
|
if (!r) return;
|
|
13
13
|
if (!window.Mock) {
|
|
14
|
-
|
|
14
|
+
v.logs("mock");
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
let i = (window.Mock || {}).Random, a = {};
|
|
@@ -92,7 +92,7 @@ var W = (e, t, n, r) => {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
return p(), a;
|
|
95
|
-
},
|
|
95
|
+
}, K = {
|
|
96
96
|
name: "FormGroup",
|
|
97
97
|
props: {
|
|
98
98
|
arrow: {
|
|
@@ -134,33 +134,33 @@ var W = (e, t, n, r) => {
|
|
|
134
134
|
methods: { handleChange(e) {
|
|
135
135
|
this.$emit("change", e);
|
|
136
136
|
} }
|
|
137
|
-
},
|
|
137
|
+
}, q = { class: "avue-group__header" }, J = {
|
|
138
138
|
key: 1,
|
|
139
139
|
class: "avue-group__title"
|
|
140
140
|
};
|
|
141
|
-
function
|
|
142
|
-
let o =
|
|
143
|
-
return n.display ? (
|
|
141
|
+
function Y(e, t, n, r, i, a) {
|
|
142
|
+
let o = R("ElCollapseItem"), s = R("ElCollapse");
|
|
143
|
+
return n.display ? (F(), T("div", {
|
|
144
144
|
key: 0,
|
|
145
|
-
class:
|
|
145
|
+
class: M(["avue-group", {
|
|
146
146
|
"avue-group--header": !a.isHeader,
|
|
147
147
|
"avue-group__arrow": !n.arrow
|
|
148
148
|
}])
|
|
149
|
-
}, [
|
|
149
|
+
}, [L(e.$slots, "tabs"), k(s, {
|
|
150
150
|
modelValue: i.activeName,
|
|
151
151
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.activeName = e),
|
|
152
152
|
value: a.text,
|
|
153
153
|
onChange: a.handleChange
|
|
154
154
|
}, {
|
|
155
|
-
default:
|
|
155
|
+
default: H(() => [k(o, {
|
|
156
156
|
name: 1,
|
|
157
157
|
disabled: !n.arrow
|
|
158
158
|
}, {
|
|
159
|
-
title:
|
|
159
|
+
title: H(() => [E("div", q, [L(e.$slots, "header", {}, () => [n.icon ? (F(), T("i", {
|
|
160
160
|
key: 0,
|
|
161
|
-
class:
|
|
162
|
-
}, null, 2)) :
|
|
163
|
-
default:
|
|
161
|
+
class: M([n.icon, "avue-group__icon"])
|
|
162
|
+
}, null, 2)) : w("v-if", !0), n.label ? (F(), T("h1", J, B(n.label), 1)) : w("v-if", !0)])])]),
|
|
163
|
+
default: H(() => [L(e.$slots, "default")]),
|
|
164
164
|
_: 3
|
|
165
165
|
}, 8, ["disabled"])]),
|
|
166
166
|
_: 3
|
|
@@ -168,10 +168,11 @@ function J(e, t, n, r, i, a) {
|
|
|
168
168
|
"modelValue",
|
|
169
169
|
"value",
|
|
170
170
|
"onChange"
|
|
171
|
-
])], 2)) :
|
|
171
|
+
])], 2)) : w("v-if", !0);
|
|
172
172
|
}
|
|
173
|
-
var
|
|
173
|
+
var X = /* @__PURE__ */ y(K, [["render", Y]]), Z = {
|
|
174
174
|
name: "FyFormMenu",
|
|
175
|
+
components: { FyButton: b },
|
|
175
176
|
inject: ["formSafe"],
|
|
176
177
|
computed: {
|
|
177
178
|
menuSpan() {
|
|
@@ -182,40 +183,40 @@ var Y = /* @__PURE__ */ e(G, [["render", J]]), X = {
|
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
};
|
|
185
|
-
function
|
|
186
|
-
let o =
|
|
187
|
-
return a.formSafe.parentOption.menuBtn === !1 ?
|
|
186
|
+
function Q(e, t, n, r, i, a) {
|
|
187
|
+
let o = R("FyButton"), s = R("ElFormItem"), c = R("ElCol");
|
|
188
|
+
return a.formSafe.parentOption.menuBtn === !1 ? w("v-if", !0) : (F(), C(c, {
|
|
188
189
|
key: 0,
|
|
189
190
|
span: a.menuSpan,
|
|
190
191
|
md: a.menuSpan,
|
|
191
|
-
style:
|
|
192
|
-
class:
|
|
192
|
+
style: P(a.styleName),
|
|
193
|
+
class: M([
|
|
193
194
|
"menu",
|
|
194
195
|
a.formSafe.menuPosition,
|
|
195
196
|
"no-print"
|
|
196
197
|
])
|
|
197
198
|
}, {
|
|
198
|
-
default:
|
|
199
|
+
default: H(() => [k(s, {
|
|
199
200
|
"label-width": "0px",
|
|
200
201
|
style: { "text-align": "center" }
|
|
201
202
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
a.formSafe.isMock ? (
|
|
203
|
+
default: H(() => [
|
|
204
|
+
a.formSafe.isMock ? (F(), C(o, {
|
|
204
205
|
key: 0,
|
|
205
206
|
type: "primary",
|
|
206
207
|
size: a.formSafe.controlSize,
|
|
207
|
-
icon: "el-icon-edit-outline",
|
|
208
208
|
disabled: a.formSafe.allDisabled,
|
|
209
209
|
onClick: a.formSafe.handleMock
|
|
210
210
|
}, {
|
|
211
|
-
|
|
211
|
+
icon: H(() => [...t[0] || (t[0] = [E("i", { class: "el-icon-edit-outline" }, null, -1)])]),
|
|
212
|
+
default: H(() => [O(B(a.formSafe.parentOption.mockText || "模拟") + " ", 1)]),
|
|
212
213
|
_: 1
|
|
213
214
|
}, 8, [
|
|
214
215
|
"size",
|
|
215
216
|
"disabled",
|
|
216
217
|
"onClick"
|
|
217
|
-
])) :
|
|
218
|
-
a.formSafe.isPrint ? (
|
|
218
|
+
])) : w("v-if", !0),
|
|
219
|
+
a.formSafe.isPrint ? (F(), C(o, {
|
|
219
220
|
key: 1,
|
|
220
221
|
type: "primary",
|
|
221
222
|
size: a.formSafe.controlSize,
|
|
@@ -223,45 +224,44 @@ function Z(e, t, n, r, i, a) {
|
|
|
223
224
|
disabled: a.formSafe.allDisabled,
|
|
224
225
|
onClick: a.formSafe.handlePrint
|
|
225
226
|
}, {
|
|
226
|
-
|
|
227
|
+
icon: H(() => [...t[1] || (t[1] = [E("i", { class: "el-icon-printer" }, null, -1)])]),
|
|
228
|
+
default: H(() => [O(B(a.formSafe.parentOption.printText || "打印") + " ", 1)]),
|
|
227
229
|
_: 1
|
|
228
230
|
}, 8, [
|
|
229
231
|
"size",
|
|
230
232
|
"disabled",
|
|
231
233
|
"onClick"
|
|
232
|
-
])) :
|
|
233
|
-
a.formSafe.parentOption.submitBtn === !1 ?
|
|
234
|
+
])) : w("v-if", !0),
|
|
235
|
+
a.formSafe.parentOption.submitBtn === !1 ? w("v-if", !0) : (F(), C(o, {
|
|
234
236
|
key: 2,
|
|
235
237
|
type: "primary",
|
|
236
238
|
size: a.formSafe.controlSize,
|
|
237
|
-
icon: a.formSafe.parentOption.submitIcon || "el-icon-check",
|
|
238
239
|
loading: a.formSafe.allDisabled,
|
|
239
240
|
onClick: a.formSafe.submit
|
|
240
241
|
}, {
|
|
241
|
-
|
|
242
|
+
icon: H(() => [E("i", { class: M(a.formSafe.parentOption.submitIcon || "el-icon-check") }, null, 2)]),
|
|
243
|
+
default: H(() => [O(B(a.formSafe.parentOption.submitText || "提交") + " ", 1)]),
|
|
242
244
|
_: 1
|
|
243
245
|
}, 8, [
|
|
244
246
|
"size",
|
|
245
|
-
"icon",
|
|
246
247
|
"loading",
|
|
247
248
|
"onClick"
|
|
248
249
|
])),
|
|
249
|
-
a.formSafe.parentOption.emptyBtn === !1 ?
|
|
250
|
+
a.formSafe.parentOption.emptyBtn === !1 ? w("v-if", !0) : (F(), C(o, {
|
|
250
251
|
key: 3,
|
|
251
|
-
icon: a.formSafe.parentOption.emptyIcon || "el-icon-delete",
|
|
252
252
|
size: a.formSafe.controlSize,
|
|
253
253
|
disabled: a.formSafe.allDisabled,
|
|
254
254
|
onClick: a.formSafe.resetForm
|
|
255
255
|
}, {
|
|
256
|
-
|
|
256
|
+
icon: H(() => [E("i", { class: M(a.formSafe.parentOption.emptyIcon || "el-icon-delete") }, null, 2)]),
|
|
257
|
+
default: H(() => [O(B(a.formSafe.parentOption.emptyText || "清空") + " ", 1)]),
|
|
257
258
|
_: 1
|
|
258
259
|
}, 8, [
|
|
259
|
-
"icon",
|
|
260
260
|
"size",
|
|
261
261
|
"disabled",
|
|
262
262
|
"onClick"
|
|
263
263
|
])),
|
|
264
|
-
|
|
264
|
+
L(e.$slots, "menuForm", {
|
|
265
265
|
disabled: a.formSafe.allDisabled,
|
|
266
266
|
size: a.formSafe.controlSize
|
|
267
267
|
})
|
|
@@ -278,14 +278,14 @@ function Z(e, t, n, r, i, a) {
|
|
|
278
278
|
}
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region src/components/fy-from/FyForm.vue
|
|
281
|
-
var
|
|
281
|
+
var $ = {
|
|
282
282
|
name: "FyForm",
|
|
283
283
|
components: {
|
|
284
|
-
FormTemp:
|
|
285
|
-
FyFormMenu: /* @__PURE__ */
|
|
286
|
-
FormGroup:
|
|
284
|
+
FormTemp: d,
|
|
285
|
+
FyFormMenu: /* @__PURE__ */ y(Z, [["render", Q]]),
|
|
286
|
+
FormGroup: X
|
|
287
287
|
},
|
|
288
|
-
mixins: [
|
|
288
|
+
mixins: [l],
|
|
289
289
|
provide() {
|
|
290
290
|
return { formSafe: this };
|
|
291
291
|
},
|
|
@@ -358,7 +358,7 @@ var Q = {
|
|
|
358
358
|
return this.boxType === "view";
|
|
359
359
|
},
|
|
360
360
|
gutter() {
|
|
361
|
-
return
|
|
361
|
+
return e((this.parentOption.gutter || 10) / 2);
|
|
362
362
|
},
|
|
363
363
|
detail() {
|
|
364
364
|
return this.parentOption.detail;
|
|
@@ -393,18 +393,18 @@ var Q = {
|
|
|
393
393
|
return this.tableOption || {};
|
|
394
394
|
},
|
|
395
395
|
columnOption() {
|
|
396
|
-
let e = this.tableOption.column || [],
|
|
397
|
-
return
|
|
396
|
+
let e = this.tableOption.column || [], n = t(this.tableOption.group) || [], r = this.tableOption.footer || [];
|
|
397
|
+
return n.unshift({
|
|
398
398
|
header: !1,
|
|
399
399
|
column: e
|
|
400
|
-
}),
|
|
400
|
+
}), r.length !== 0 && n.push({
|
|
401
401
|
header: !1,
|
|
402
|
-
column:
|
|
403
|
-
}),
|
|
402
|
+
column: r
|
|
403
|
+
}), n.forEach((e) => {
|
|
404
404
|
e.column = e.column || [], e.column.forEach((e, t) => {
|
|
405
|
-
e.display !== !1 && !this.isMobile && (e =
|
|
406
|
-
}), e.column =
|
|
407
|
-
}),
|
|
405
|
+
e.display !== !1 && !this.isMobile && (e = h(e, this.itemSpanDefault, t === 0));
|
|
406
|
+
}), e.column = _(e.column), e.column = e.column.sort((e, t) => (t.order || 0) - (e.order || 0));
|
|
407
|
+
}), n;
|
|
408
408
|
},
|
|
409
409
|
menuPosition() {
|
|
410
410
|
return this.parentOption.menuPosition ? this.parentOption.menuPosition : "center";
|
|
@@ -469,11 +469,11 @@ var Q = {
|
|
|
469
469
|
});
|
|
470
470
|
},
|
|
471
471
|
methods: {
|
|
472
|
-
setPx:
|
|
473
|
-
deepClone:
|
|
474
|
-
getComponent:
|
|
475
|
-
getPlaceholder:
|
|
476
|
-
uploadFun:
|
|
472
|
+
setPx: e,
|
|
473
|
+
deepClone: t,
|
|
474
|
+
getComponent: m,
|
|
475
|
+
getPlaceholder: p,
|
|
476
|
+
uploadFun: c,
|
|
477
477
|
getDisabled(e) {
|
|
478
478
|
return this.vaildDetail(e) || this.isDetail || this.vaildDisabled(e) || this.allDisabled;
|
|
479
479
|
},
|
|
@@ -484,38 +484,38 @@ var Q = {
|
|
|
484
484
|
return this.isTabs ? `${t}` === this.activeName || t === 0 : !0;
|
|
485
485
|
},
|
|
486
486
|
dataFormat() {
|
|
487
|
-
let e =
|
|
487
|
+
let e = g(this.propOption).tableForm, t = this.modelValue, n = {};
|
|
488
488
|
Object.entries(Object.assign(e, t)).forEach((e) => {
|
|
489
489
|
let r = e[0], i = e[1];
|
|
490
|
-
|
|
490
|
+
x(t[r]) ? n[r] = i : n[r] = t[r];
|
|
491
491
|
}), this.form = n, this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
|
|
492
492
|
this.formCreate = !0, this.clearValidate();
|
|
493
493
|
});
|
|
494
494
|
},
|
|
495
495
|
setControl() {
|
|
496
496
|
this.propOption.forEach((e) => {
|
|
497
|
-
let t = e.prop, n = e.bind,
|
|
497
|
+
let t = e.prop, n = e.bind, a = e.control;
|
|
498
498
|
if (!this.formBind[t]) {
|
|
499
499
|
let o = [];
|
|
500
500
|
if (n) {
|
|
501
501
|
let e = this.$watch(`form.${t}`, (e, t) => {
|
|
502
502
|
e !== t && i(this.form, n, e);
|
|
503
|
-
}),
|
|
503
|
+
}), a = this.$watch(`form.${n}`, (e, n) => {
|
|
504
504
|
e !== n && (this.form[t] = e);
|
|
505
505
|
});
|
|
506
|
-
o.push(e), o.push(
|
|
506
|
+
o.push(e), o.push(a), this.form[t] = r(this.form, n);
|
|
507
507
|
}
|
|
508
|
-
if (
|
|
508
|
+
if (a) {
|
|
509
509
|
let n = () => {
|
|
510
|
-
let t =
|
|
510
|
+
let t = a(this.form[e.prop], this.form) || {};
|
|
511
511
|
Object.keys(t).forEach((e) => {
|
|
512
512
|
let n = Object.assign(this.objectOption[e] || {}, t[e]);
|
|
513
513
|
his.objectOption[e] = n, t[e].dicData && (this.DIC[e] = t[e].dicData);
|
|
514
514
|
});
|
|
515
|
-
},
|
|
515
|
+
}, r = this.$watch(`form.${t}`, () => {
|
|
516
516
|
n();
|
|
517
517
|
});
|
|
518
|
-
o.push(
|
|
518
|
+
o.push(r), n();
|
|
519
519
|
}
|
|
520
520
|
this.formBind[t] = o;
|
|
521
521
|
}
|
|
@@ -530,10 +530,10 @@ var Q = {
|
|
|
530
530
|
this.$emit("update:modelValue", this.form), this.$emit("change", this.form);
|
|
531
531
|
},
|
|
532
532
|
setLabel() {
|
|
533
|
-
this.tableOption.filterNull === !0 && (this.form =
|
|
533
|
+
this.tableOption.filterNull === !0 && (this.form = n(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = n(this.form, ["$"], !1) : this.propOption.forEach((e) => {
|
|
534
534
|
let t = this.DIC[e.prop];
|
|
535
|
-
if (
|
|
536
|
-
let n =
|
|
535
|
+
if (x(t)) return;
|
|
536
|
+
let n = u(this.form, e, this.tableOption, t);
|
|
537
537
|
n ? this.form[`$${e.prop}`] = n : delete this.form[`$${e.prop}`];
|
|
538
538
|
});
|
|
539
539
|
},
|
|
@@ -543,9 +543,9 @@ var Q = {
|
|
|
543
543
|
handleTabClick(e, t) {
|
|
544
544
|
this.$emit("tab-click", e, t);
|
|
545
545
|
},
|
|
546
|
-
getLabelWidth(
|
|
547
|
-
let
|
|
548
|
-
return
|
|
546
|
+
getLabelWidth(t, n) {
|
|
547
|
+
let r;
|
|
548
|
+
return r = x(t.labelWidth) ? x(n.labelWidth) ? this.parentOption.labelWidth : n.labelWidth : t.labelWidth, e(r, this.labelWidth);
|
|
549
549
|
},
|
|
550
550
|
validateField(e) {
|
|
551
551
|
return this.$refs.form.validateField(e);
|
|
@@ -558,19 +558,19 @@ var Q = {
|
|
|
558
558
|
},
|
|
559
559
|
handleChange(e, t) {
|
|
560
560
|
this.$nextTick(() => {
|
|
561
|
-
let
|
|
562
|
-
|
|
563
|
-
let
|
|
564
|
-
|
|
561
|
+
let n = t.cascader, r = n.join(",");
|
|
562
|
+
n.forEach((i) => {
|
|
563
|
+
let a = i, o = this.form[t.prop], c = this.findObject(e, a);
|
|
564
|
+
x(c) || (this.formList.includes(r) && n.forEach((e) => {
|
|
565
565
|
this.form[e] = "", this.DIC[e] = [];
|
|
566
|
-
}), !(
|
|
566
|
+
}), !(x(n) || x(o) || x(c)) && f({
|
|
567
567
|
column: c,
|
|
568
|
-
value:
|
|
568
|
+
value: o,
|
|
569
569
|
form: this.form
|
|
570
570
|
}).then((e) => {
|
|
571
|
-
this.formList.includes(
|
|
571
|
+
this.formList.includes(r) || this.formList.push(r);
|
|
572
572
|
let t = e || [];
|
|
573
|
-
this.DIC[
|
|
573
|
+
this.DIC[a] = t, !x(t) && !x(t) && !x(c.cascaderIndex) && x(this.form[a]) && (this.form[a] = t[c.cascaderIndex][(c.props || {}).value || s.value]);
|
|
574
574
|
}));
|
|
575
575
|
});
|
|
576
576
|
});
|
|
@@ -583,8 +583,8 @@ var Q = {
|
|
|
583
583
|
},
|
|
584
584
|
handleMock() {
|
|
585
585
|
this.isMock && (this.columnOption.forEach((e) => {
|
|
586
|
-
let t =
|
|
587
|
-
|
|
586
|
+
let t = G(e.column, this.DIC, this.form, this.isMock);
|
|
587
|
+
x(t) || Object.keys(t).forEach((e) => {
|
|
588
588
|
this.form[e] = t[e];
|
|
589
589
|
});
|
|
590
590
|
}), this.$nextTick(() => {
|
|
@@ -594,7 +594,7 @@ var Q = {
|
|
|
594
594
|
vaildDetail(e) {
|
|
595
595
|
let t;
|
|
596
596
|
if (this.detail) return !1;
|
|
597
|
-
if (!
|
|
597
|
+
if (!x(e.detail)) t = "detail";
|
|
598
598
|
else if (this.isAdd) t = "addDetail";
|
|
599
599
|
else if (this.isEdit) t = "editDetail";
|
|
600
600
|
else if (this.isView) return !1;
|
|
@@ -603,7 +603,7 @@ var Q = {
|
|
|
603
603
|
vaildDisabled(e) {
|
|
604
604
|
let t;
|
|
605
605
|
if (this.disabled) return !0;
|
|
606
|
-
if (!
|
|
606
|
+
if (!x(e.disabled)) t = "disabled";
|
|
607
607
|
else if (this.isAdd) t = "addDisabled";
|
|
608
608
|
else if (this.isEdit) t = "editDisabled";
|
|
609
609
|
else if (this.isView) return !0;
|
|
@@ -611,7 +611,7 @@ var Q = {
|
|
|
611
611
|
},
|
|
612
612
|
vaildDisplay(e) {
|
|
613
613
|
let t;
|
|
614
|
-
return
|
|
614
|
+
return x(e.display) ? this.isAdd ? t = "addDisplay" : this.isEdit ? t = "editDisplay" : this.isView && (t = "viewDisplay") : t = "display", t ? a(e[t], !0) : !0;
|
|
615
615
|
},
|
|
616
616
|
clearValidate(e) {
|
|
617
617
|
var t;
|
|
@@ -629,22 +629,22 @@ var Q = {
|
|
|
629
629
|
let r = [], i = [], a = {};
|
|
630
630
|
this.dynamicOption.forEach((e) => {
|
|
631
631
|
let t = e.children.type === "form";
|
|
632
|
-
i.push(e.prop), t ?
|
|
632
|
+
i.push(e.prop), t ? x(this.$refs[e.prop][0].$refs.temp.$refs.main) || this.$refs[e.prop][0].$refs.temp.$refs.main.forEach((e) => {
|
|
633
633
|
r.push(e.validateCellForm());
|
|
634
634
|
}) : r.push(this.$refs[e.prop][0].$refs.temp.$refs.main.validateCellForm());
|
|
635
635
|
}), Promise.all(r).then((t) => {
|
|
636
636
|
t.forEach((e, t) => {
|
|
637
|
-
|
|
637
|
+
x(e) || (a[i[t]] = e);
|
|
638
638
|
});
|
|
639
639
|
let r = Object.assign(a, n);
|
|
640
|
-
|
|
640
|
+
x(r) ? (this.show(), e(!0, this.hide)) : e(!1, this.hide, r);
|
|
641
641
|
});
|
|
642
642
|
});
|
|
643
643
|
},
|
|
644
644
|
resetForm(e = !0) {
|
|
645
645
|
if (e) {
|
|
646
646
|
let e = this.propOption.map((e) => e.prop);
|
|
647
|
-
this.form =
|
|
647
|
+
this.form = o(this.form, e, (this.tableOption.filterParams || []).concat([this.rowKey]));
|
|
648
648
|
}
|
|
649
649
|
this.$nextTick(() => {
|
|
650
650
|
this.clearValidate(), this.$emit("reset-change");
|
|
@@ -661,17 +661,17 @@ var Q = {
|
|
|
661
661
|
},
|
|
662
662
|
submit() {
|
|
663
663
|
this.validate((e, t) => {
|
|
664
|
-
e ? this.$emit("submit",
|
|
664
|
+
e ? this.$emit("submit", n(this.form, ["$"]), this.hide) : this.$emit("error", t);
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
},
|
|
669
|
-
function
|
|
670
|
-
let o =
|
|
671
|
-
return
|
|
672
|
-
class:
|
|
673
|
-
style:
|
|
674
|
-
}, [
|
|
668
|
+
}, ee = ["innerHTML"];
|
|
669
|
+
function te(e, t, n, r, i, a) {
|
|
670
|
+
let o = R("ElTabPane"), s = R("ElTabs"), c = R("ElTooltip"), l = R("FormTemp"), u = R("ElFormItem"), d = R("ElCol"), f = R("FyFormMenu"), p = R("FormGroup"), m = R("ElRow"), h = R("ElForm");
|
|
671
|
+
return F(), T("div", {
|
|
672
|
+
class: M(["avue-form", { "avue--detail": a.isDetail }]),
|
|
673
|
+
style: P({ width: a.setPx(a.parentOption.formWidth, "100%") })
|
|
674
|
+
}, [k(h, {
|
|
675
675
|
ref: "form",
|
|
676
676
|
"status-icon": a.parentOption.statusIcon,
|
|
677
677
|
model: i.form,
|
|
@@ -679,13 +679,13 @@ function ee(e, t, n, r, i, a) {
|
|
|
679
679
|
size: e.$AVUE.formSize || e.controlSize,
|
|
680
680
|
"label-position": a.parentOption.labelPosition,
|
|
681
681
|
"label-width": a.setPx(a.parentOption.labelWidth, i.labelWidth),
|
|
682
|
-
onSubmit: t[1] || (t[1] =
|
|
682
|
+
onSubmit: t[1] || (t[1] = W(() => {}, ["prevent"]))
|
|
683
683
|
}, {
|
|
684
|
-
default:
|
|
684
|
+
default: H(() => [k(m, {
|
|
685
685
|
span: 24,
|
|
686
|
-
class:
|
|
686
|
+
class: M({ "avue-form__tabs": a.isTabs })
|
|
687
687
|
}, {
|
|
688
|
-
default:
|
|
688
|
+
default: H(() => [(F(!0), T(S, null, I(a.columnOption, (n, r) => (F(), C(p, {
|
|
689
689
|
key: n.prop,
|
|
690
690
|
tabs: a.isTabs,
|
|
691
691
|
arrow: n.arrow,
|
|
@@ -697,8 +697,8 @@ function ee(e, t, n, r, i, a) {
|
|
|
697
697
|
active: i.activeName,
|
|
698
698
|
label: n.label,
|
|
699
699
|
onChange: a.handleGroupClick
|
|
700
|
-
},
|
|
701
|
-
tabs:
|
|
700
|
+
}, D({
|
|
701
|
+
tabs: H(() => [a.isTabs && r === 1 ? (F(), C(s, {
|
|
702
702
|
key: 0,
|
|
703
703
|
modelValue: i.activeName,
|
|
704
704
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.activeName = e),
|
|
@@ -706,25 +706,25 @@ function ee(e, t, n, r, i, a) {
|
|
|
706
706
|
type: a.tabsType,
|
|
707
707
|
onTabClick: a.handleTabClick
|
|
708
708
|
}, {
|
|
709
|
-
default:
|
|
709
|
+
default: H(() => [(F(!0), T(S, null, I(a.columnOption, (t, n) => (F(), T(S, null, [a.vaildDisplay(t) && n !== 0 ? (F(), C(o, {
|
|
710
710
|
key: n,
|
|
711
711
|
name: `${n}`
|
|
712
712
|
}, {
|
|
713
|
-
label:
|
|
713
|
+
label: H(() => [E("span", null, [e.getSlotName(t, "H", e.$slots) ? L(e.$slots, e.getSlotName(t, "H"), {
|
|
714
714
|
key: 0,
|
|
715
715
|
column: e.column
|
|
716
|
-
}) : (
|
|
716
|
+
}) : (F(), T(S, { key: 1 }, [E("i", { class: M(t.icon) }, "\xA0", 2), O(" " + B(t.label), 1)], 64))])]),
|
|
717
717
|
_: 2
|
|
718
|
-
}, 1032, ["name"])) :
|
|
718
|
+
}, 1032, ["name"])) : w("v-if", !0)], 64))), 256))]),
|
|
719
719
|
_: 3
|
|
720
720
|
}, 8, [
|
|
721
721
|
"modelValue",
|
|
722
722
|
"type",
|
|
723
723
|
"onTabClick"
|
|
724
|
-
])) :
|
|
725
|
-
default:
|
|
724
|
+
])) : w("v-if", !0)]),
|
|
725
|
+
default: H(() => [U(E("div", { class: M(["avue-form__group", { "avue-form__group--flex": n.flex === !1 }]) }, [(F(!0), T(S, null, I(n.column, (r, o) => (F(), T(S, null, [a.vaildDisplay(r) ? (F(), C(d, {
|
|
726
726
|
key: o,
|
|
727
|
-
style:
|
|
727
|
+
style: P({
|
|
728
728
|
paddingLeft: a.gutter,
|
|
729
729
|
paddingRight: a.gutter
|
|
730
730
|
}),
|
|
@@ -735,27 +735,27 @@ function ee(e, t, n, r, i, a) {
|
|
|
735
735
|
offset: r.offset || n.offset,
|
|
736
736
|
push: r.push || n.push,
|
|
737
737
|
pull: r.pull || n.pull,
|
|
738
|
-
class:
|
|
738
|
+
class: M([
|
|
739
739
|
"avue-form__row",
|
|
740
740
|
{ "avue--detail avue--detail__column": a.vaildDetail(r) },
|
|
741
741
|
r.className
|
|
742
742
|
])
|
|
743
743
|
}, {
|
|
744
|
-
default:
|
|
744
|
+
default: H(() => [k(u, {
|
|
745
745
|
prop: r.prop,
|
|
746
746
|
label: r.label,
|
|
747
747
|
rules: r.rules,
|
|
748
|
-
class:
|
|
748
|
+
class: M(`avue-form__item--${r.labelPosition || n.labelPosition || ""}`),
|
|
749
749
|
"label-position": r.labelPosition || n.labelPosition || a.parentOption.labelPosition,
|
|
750
750
|
"label-width": a.getLabelWidth(r, n)
|
|
751
|
-
},
|
|
752
|
-
default:
|
|
751
|
+
}, D({
|
|
752
|
+
default: H(() => [(F(), C(z(a.validTip(r) ? "div" : "elTooltip"), {
|
|
753
753
|
class: "avue-form-item-input-wrapper",
|
|
754
754
|
disabled: a.validTip(r),
|
|
755
755
|
content: r.tip || a.getPlaceholder(r),
|
|
756
756
|
placement: r.tipPlacement
|
|
757
757
|
}, {
|
|
758
|
-
default:
|
|
758
|
+
default: H(() => [e.$slots[r.prop] ? L(e.$slots, r.prop, {
|
|
759
759
|
key: 0,
|
|
760
760
|
modelValue: i.form[r.prop],
|
|
761
761
|
column: r,
|
|
@@ -764,7 +764,7 @@ function ee(e, t, n, r, i, a) {
|
|
|
764
764
|
readonly: a.readonly || r.readonly,
|
|
765
765
|
disabled: a.getDisabled(r),
|
|
766
766
|
dic: e.DIC[r.prop]
|
|
767
|
-
}) : (
|
|
767
|
+
}) : (F(), C(l, j({
|
|
768
768
|
key: 1,
|
|
769
769
|
ref_for: !0,
|
|
770
770
|
ref: r.prop
|
|
@@ -782,12 +782,12 @@ function ee(e, t, n, r, i, a) {
|
|
|
782
782
|
"column-slot": a.columnSlot,
|
|
783
783
|
onEnter: a.submit,
|
|
784
784
|
onChange: (e) => a.propChange(n.column, r)
|
|
785
|
-
}),
|
|
786
|
-
default:
|
|
785
|
+
}), D({
|
|
786
|
+
default: H(() => [(F(!0), T(S, null, I(e.getSlotName(r, "T", e.$slots) ? [r] : [], (t) => L(e.$slots, e.getSlotName(t, "T"), j({ ref_for: !0 }, e.scope))), 256))]),
|
|
787
787
|
_: 2
|
|
788
|
-
}, [
|
|
788
|
+
}, [I(a.columnSlot, (t) => ({
|
|
789
789
|
name: t,
|
|
790
|
-
fn:
|
|
790
|
+
fn: H((n) => [L(e.$slots, t, j({ ref_for: !0 }, n))])
|
|
791
791
|
}))]), 1040, [
|
|
792
792
|
"modelValue",
|
|
793
793
|
"onUpdate:modelValue",
|
|
@@ -812,9 +812,9 @@ function ee(e, t, n, r, i, a) {
|
|
|
812
812
|
_: 2
|
|
813
813
|
}, [e.getSlotName(r, "L", e.$slots) ? {
|
|
814
814
|
name: "label",
|
|
815
|
-
fn:
|
|
815
|
+
fn: H(() => [L(e.$slots, e.getSlotName(r, "L"), {
|
|
816
816
|
column: r,
|
|
817
|
-
|
|
817
|
+
modelValue: i.form[r.prop],
|
|
818
818
|
readonly: r.readonly || a.readonly,
|
|
819
819
|
disabled: a.getDisabled(r),
|
|
820
820
|
size: r.size || e.controlSize,
|
|
@@ -823,19 +823,19 @@ function ee(e, t, n, r, i, a) {
|
|
|
823
823
|
key: "0"
|
|
824
824
|
} : r.labelTip ? {
|
|
825
825
|
name: "label",
|
|
826
|
-
fn:
|
|
826
|
+
fn: H(() => [k(c, {
|
|
827
827
|
class: "item",
|
|
828
828
|
effect: "dark",
|
|
829
829
|
placement: r.labelTipPlacement || "top-start"
|
|
830
830
|
}, {
|
|
831
|
-
content:
|
|
832
|
-
default:
|
|
831
|
+
content: H(() => [E("div", { innerHTML: r.labelTip }, null, 8, ee)]),
|
|
832
|
+
default: H(() => [t[2] || (t[2] = E("i", { class: "el-icon-info" }, null, -1))]),
|
|
833
833
|
_: 2
|
|
834
|
-
}, 1032, ["placement"]),
|
|
834
|
+
}, 1032, ["placement"]), E("span", null, B(r.label) + B(a.labelSuffix), 1)]),
|
|
835
835
|
key: "1"
|
|
836
836
|
} : void 0, e.getSlotName(r, "E", e.$slots) ? {
|
|
837
837
|
name: "error",
|
|
838
|
-
fn:
|
|
838
|
+
fn: H((t) => [L(e.$slots, e.getSlotName(r, "E"), j({ ref_for: !0 }, Object.assign(t, {
|
|
839
839
|
column: r,
|
|
840
840
|
value: i.form[r.prop],
|
|
841
841
|
readonly: a.readonly || r.readonly,
|
|
@@ -863,18 +863,18 @@ function ee(e, t, n, r, i, a) {
|
|
|
863
863
|
"push",
|
|
864
864
|
"pull",
|
|
865
865
|
"class"
|
|
866
|
-
])) :
|
|
866
|
+
])) : w("v-if", !0), a.vaildDisplay(r) && r.row && r.span !== 24 && r.count ? (F(), T("div", {
|
|
867
867
|
key: `line${o}`,
|
|
868
868
|
class: "avue-form__line",
|
|
869
|
-
style:
|
|
870
|
-
}, null, 4)) :
|
|
871
|
-
menuForm:
|
|
869
|
+
style: P({ width: `${r.count / 24 * 100}%` })
|
|
870
|
+
}, null, 4)) : w("v-if", !0)], 64))), 256)), !a.isDetail && !a.isMenu ? (F(), C(f, { key: 0 }, {
|
|
871
|
+
menuForm: H((t) => [L(e.$slots, "menuForm", j({ ref_for: !0 }, t))]),
|
|
872
872
|
_: 3
|
|
873
|
-
})) :
|
|
873
|
+
})) : w("v-if", !0)], 2), [[V, a.isGroupShow(n, r)]])]),
|
|
874
874
|
_: 2
|
|
875
875
|
}, [e.getSlotName(n, "H", e.$slots) ? {
|
|
876
876
|
name: "header",
|
|
877
|
-
fn:
|
|
877
|
+
fn: H(() => [L(e.$slots, e.getSlotName(n, "H"), { column: n })]),
|
|
878
878
|
key: "0"
|
|
879
879
|
} : void 0]), 1032, [
|
|
880
880
|
"tabs",
|
|
@@ -887,10 +887,10 @@ function ee(e, t, n, r, i, a) {
|
|
|
887
887
|
"active",
|
|
888
888
|
"label",
|
|
889
889
|
"onChange"
|
|
890
|
-
]))), 128)), !a.isDetail && a.isMenu ? (
|
|
891
|
-
menuForm:
|
|
890
|
+
]))), 128)), !a.isDetail && a.isMenu ? (F(), C(f, { key: 0 }, {
|
|
891
|
+
menuForm: H((t) => [L(e.$slots, "menuForm", N(A(t)))]),
|
|
892
892
|
_: 3
|
|
893
|
-
})) :
|
|
893
|
+
})) : w("v-if", !0)]),
|
|
894
894
|
_: 3
|
|
895
895
|
}, 8, ["class"])]),
|
|
896
896
|
_: 3
|
|
@@ -903,6 +903,6 @@ function ee(e, t, n, r, i, a) {
|
|
|
903
903
|
"label-width"
|
|
904
904
|
])], 6);
|
|
905
905
|
}
|
|
906
|
-
var
|
|
906
|
+
var ne = /* @__PURE__ */ y($, [["render", te]]);
|
|
907
907
|
//#endregion
|
|
908
|
-
export {
|
|
908
|
+
export { ne as t };
|