@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 { c as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { _ as e, a as t, c as n, h as r, m as i, t as a, w as o, y as s } from "./util.Cdt7t08t.mjs";
|
|
2
|
+
import { n as c, r as l, t as u } from "./FormTemp.DWB4CV8h.mjs";
|
|
3
|
+
import { i as d } from "./dic.N2PNjL8o.mjs";
|
|
4
|
+
import { c as f, l as p, o as m, r as h, t as g } from "./dataformat.BpAzVPYN.mjs";
|
|
5
|
+
import { t as _ } from "./packages.W76nKiMk.mjs";
|
|
6
|
+
import { t as v } from "./_plugin-vue_export-helper.CTBRVsXt.mjs";
|
|
7
|
+
import { t as y } from "./FyButton.DGd1yE_h.mjs";
|
|
8
|
+
import { t as b } from "./ElementDialog.BrqPs1yL.mjs";
|
|
9
|
+
import { t as x } from "./permission.ZYdXiCsn.mjs";
|
|
10
|
+
import S from "../icon-temp/index.mjs";
|
|
11
|
+
import { isBlank as C } from "@web-utils/core";
|
|
12
|
+
import { Fragment as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as k, createTextVNode as A, createVNode as j, guardReactiveProps as M, mergeProps as N, normalizeClass as P, normalizeProps as F, normalizeStyle as I, openBlock as L, renderList as R, renderSlot as z, resolveComponent as B, resolveDirective as V, resolveDynamicComponent as H, toDisplayString as U, vShow as ee, withCtx as W, withDirectives as G, withModifiers as K } from "vue";
|
|
13
13
|
//#region src/components/fy-from/crud/config.ts
|
|
14
|
-
var
|
|
14
|
+
var q = {
|
|
15
15
|
menuWidth: 220,
|
|
16
16
|
menuFixed: "right",
|
|
17
17
|
menuXsWidth: 100,
|
|
@@ -80,7 +80,8 @@ var G = {
|
|
|
80
80
|
ghostClass: "avue-crud__ghost"
|
|
81
81
|
}, te = {
|
|
82
82
|
name: "HeaderSearch",
|
|
83
|
-
|
|
83
|
+
components: { FyButton: y },
|
|
84
|
+
mixins: [p],
|
|
84
85
|
inject: ["crud"],
|
|
85
86
|
props: { search: Object },
|
|
86
87
|
data() {
|
|
@@ -100,27 +101,27 @@ var G = {
|
|
|
100
101
|
}
|
|
101
102
|
},
|
|
102
103
|
option() {
|
|
103
|
-
let e = this.crud.option,
|
|
104
|
-
|
|
105
|
-
let
|
|
106
|
-
return
|
|
104
|
+
let e = this.crud.option, n = (n = []) => {
|
|
105
|
+
n = t(n);
|
|
106
|
+
let i = [], a = 0;
|
|
107
|
+
return n = n.sort((e, t) => (t.searchOrder || 0) - (e.searchOrder || 0)), n.forEach((t) => {
|
|
107
108
|
if (t.search) {
|
|
108
|
-
let
|
|
109
|
+
let n = a < this.searchIndex, o = {};
|
|
109
110
|
Object.keys(t).forEach((e) => {
|
|
110
111
|
let n = "search";
|
|
111
112
|
if (e !== "searchProp" && e.includes(n)) {
|
|
112
113
|
let r = e.replace(n, "");
|
|
113
114
|
if (r.length === 0) return;
|
|
114
|
-
r = r.replace(r[0], r[0].toLowerCase()),
|
|
115
|
+
r = r.replace(r[0], r[0].toLowerCase()), o[r] = t[e];
|
|
115
116
|
}
|
|
116
|
-
}), t = Object.assign(t,
|
|
117
|
-
type:
|
|
117
|
+
}), t = Object.assign(t, o, {
|
|
118
|
+
type: m(t),
|
|
118
119
|
detail: !1,
|
|
119
|
-
dicFlag: t.cascader ? !0 :
|
|
120
|
-
span: t.searchSpan || e.searchSpan ||
|
|
120
|
+
dicFlag: t.cascader ? !0 : r(t.dicFlag, !1),
|
|
121
|
+
span: t.searchSpan || e.searchSpan || q.searchSpan,
|
|
121
122
|
control: t.searchControl,
|
|
122
|
-
gutter: t.searchGutter || e.searchGutter ||
|
|
123
|
-
labelWidth: t.searchLabelWidth || e.searchLabelWidth ||
|
|
123
|
+
gutter: t.searchGutter || e.searchGutter || q.searchGutter,
|
|
124
|
+
labelWidth: t.searchLabelWidth || e.searchLabelWidth || q.searchLabelWidth,
|
|
124
125
|
labelPosition: t.searchLabelPosition || e.searchLabelPosition,
|
|
125
126
|
size: t.searchSize || e.searchSize,
|
|
126
127
|
value: t.searchValue,
|
|
@@ -129,14 +130,14 @@ var G = {
|
|
|
129
130
|
bind: t.searchBin,
|
|
130
131
|
disabled: t.searchDisabled,
|
|
131
132
|
readonly: t.searchReadonly,
|
|
132
|
-
display: this.isSearchIcon ? this.show ? !0 :
|
|
133
|
-
}),
|
|
133
|
+
display: this.isSearchIcon ? this.show ? !0 : n : !0
|
|
134
|
+
}), i.push(t), a += 1;
|
|
134
135
|
}
|
|
135
|
-
}),
|
|
136
|
+
}), i;
|
|
136
137
|
};
|
|
137
|
-
return ((
|
|
138
|
-
let
|
|
139
|
-
return
|
|
138
|
+
return ((i) => {
|
|
139
|
+
let a = t(i);
|
|
140
|
+
return a.column = n(this.crud.propOption), a = Object.assign(a, {
|
|
140
141
|
rowKey: e.searchRowKey || "null",
|
|
141
142
|
tabs: !1,
|
|
142
143
|
group: !1,
|
|
@@ -148,20 +149,20 @@ var G = {
|
|
|
148
149
|
enter: e.searchEnter,
|
|
149
150
|
size: e.searchSize,
|
|
150
151
|
submitText: e.searchBtnText || "搜 索",
|
|
151
|
-
submitBtn:
|
|
152
|
+
submitBtn: r(e.searchBtn, q.searchSubBtn),
|
|
152
153
|
submitIcon: this.crud.getBtnIcon("searchBtn"),
|
|
153
154
|
emptyText: e.emptyBtnText || "清 空",
|
|
154
|
-
emptyBtn:
|
|
155
|
+
emptyBtn: r(e.emptyBtn, q.emptyBtn),
|
|
155
156
|
emptyIcon: this.crud.getBtnIcon("emptyBtn"),
|
|
156
157
|
menuSpan: this.show || !this.isSearchIcon || e.searchMenuSpan < 6 ? e.searchMenuSpan : 6,
|
|
157
158
|
menuPosition: e.searchMenuPosition || "center",
|
|
158
159
|
dicFlag: !1,
|
|
159
160
|
dicData: this.crud.DIC
|
|
160
|
-
}),
|
|
161
|
+
}), a;
|
|
161
162
|
})(e);
|
|
162
163
|
},
|
|
163
164
|
isSearchIcon() {
|
|
164
|
-
return
|
|
165
|
+
return r(this.crud.option.searchIcon, this.$AVUE.searchIcon) && this.searchLen > this.searchIndex;
|
|
165
166
|
},
|
|
166
167
|
searchLen() {
|
|
167
168
|
let e = 0;
|
|
@@ -208,7 +209,7 @@ var G = {
|
|
|
208
209
|
return e.replace("Search", "");
|
|
209
210
|
},
|
|
210
211
|
searchChange(e, t) {
|
|
211
|
-
e =
|
|
212
|
+
e = n(e), this.crud.propOption.forEach((t) => {
|
|
212
213
|
t.searchProp && (e[t.searchProp] = e[t.prop], delete e[t.prop]);
|
|
213
214
|
}), this.crud.$emit("search-change", e, t);
|
|
214
215
|
},
|
|
@@ -223,22 +224,22 @@ var G = {
|
|
|
223
224
|
},
|
|
224
225
|
dataFormat() {
|
|
225
226
|
let e = this.crud.option;
|
|
226
|
-
this.searchShow =
|
|
227
|
+
this.searchShow = r(e.searchShow, q.searchShow);
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
230
|
};
|
|
230
231
|
function ne(e, t, n, r, i, a) {
|
|
231
|
-
let o =
|
|
232
|
-
return a.searchFlag ?
|
|
232
|
+
let o = B("FyButton"), s = B("FyForm"), c = B("ElCard");
|
|
233
|
+
return a.searchFlag ? G((L(), T(c, {
|
|
233
234
|
key: 0,
|
|
234
235
|
shadow: a.crud.isCard,
|
|
235
236
|
class: "avue-crud__search"
|
|
236
237
|
}, {
|
|
237
|
-
default:
|
|
238
|
+
default: W(() => [z(e.$slots, "search", {
|
|
238
239
|
row: a.searchForm,
|
|
239
240
|
search: a.searchForm,
|
|
240
241
|
size: a.crud.controlSize
|
|
241
|
-
}),
|
|
242
|
+
}), j(s, {
|
|
242
243
|
ref: "form",
|
|
243
244
|
modelValue: a.searchForm,
|
|
244
245
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => a.searchForm = e),
|
|
@@ -246,27 +247,27 @@ function ne(e, t, n, r, i, a) {
|
|
|
246
247
|
onSubmit: a.searchChange,
|
|
247
248
|
onResetChange: a.resetChange
|
|
248
249
|
}, {
|
|
249
|
-
menuForm:
|
|
250
|
+
menuForm: W((n) => [z(e.$slots, "searchMenu", F(M(Object.assign(n, {
|
|
250
251
|
search: a.searchForm,
|
|
251
252
|
row: a.searchForm
|
|
252
|
-
})))), a.isSearchIcon ? (
|
|
253
|
+
})))), a.isSearchIcon ? (L(), D(w, { key: 0 }, [i.show === !1 ? (L(), T(o, {
|
|
253
254
|
key: 0,
|
|
254
255
|
text: "",
|
|
255
256
|
icon: "el-icon-arrow-down",
|
|
256
257
|
onClick: t[0] || (t[0] = (e) => i.show = !0)
|
|
257
258
|
}, {
|
|
258
|
-
default:
|
|
259
|
+
default: W(() => [...t[3] || (t[3] = [A(" 展 开 ", -1)])]),
|
|
259
260
|
_: 1
|
|
260
|
-
})) :
|
|
261
|
+
})) : E("v-if", !0), i.show === !0 ? (L(), T(o, {
|
|
261
262
|
key: 1,
|
|
262
263
|
text: "",
|
|
263
264
|
icon: "el-icon-arrow-up",
|
|
264
265
|
onClick: t[1] || (t[1] = (e) => i.show = !1)
|
|
265
266
|
}, {
|
|
266
|
-
default:
|
|
267
|
+
default: W(() => [...t[4] || (t[4] = [A(" 收 缩 ", -1)])]),
|
|
267
268
|
_: 1
|
|
268
|
-
})) :
|
|
269
|
-
default:
|
|
269
|
+
})) : E("v-if", !0)], 64)) : E("v-if", !0)]),
|
|
270
|
+
default: W(() => [(L(!0), D(w, null, R(a.crud.searchSlot, (t) => z(e.$slots, t, N({ ref_for: !0 }, Object.assign(e.scope, {
|
|
270
271
|
search: a.searchForm,
|
|
271
272
|
row: a.searchForm
|
|
272
273
|
})))), 256))]),
|
|
@@ -278,11 +279,11 @@ function ne(e, t, n, r, i, a) {
|
|
|
278
279
|
"onResetChange"
|
|
279
280
|
])]),
|
|
280
281
|
_: 3
|
|
281
|
-
}, 8, ["shadow"])), [[ee, i.searchShow && a.searchFlag]]) :
|
|
282
|
+
}, 8, ["shadow"])), [[ee, i.searchShow && a.searchFlag]]) : E("v-if", !0);
|
|
282
283
|
}
|
|
283
|
-
var re = /* @__PURE__ */
|
|
284
|
+
var re = /* @__PURE__ */ v(te, [["render", ne]]), J = {
|
|
284
285
|
name: "HeaderMenu",
|
|
285
|
-
directives: { permission:
|
|
286
|
+
directives: { permission: x },
|
|
286
287
|
inject: ["crud"],
|
|
287
288
|
data() {
|
|
288
289
|
return {
|
|
@@ -324,14 +325,14 @@ var re = /* @__PURE__ */ e(te, [["render", ne]]), K = {
|
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
327
|
] },
|
|
327
|
-
config:
|
|
328
|
+
config: q
|
|
328
329
|
};
|
|
329
330
|
},
|
|
330
331
|
created() {
|
|
331
332
|
this.initFun();
|
|
332
333
|
},
|
|
333
334
|
methods: {
|
|
334
|
-
optVal:
|
|
335
|
+
optVal: r,
|
|
335
336
|
dateChange(e) {
|
|
336
337
|
this.dateCreate ? this.crud.$emit("date-change", e) : this.dateCreate = !0;
|
|
337
338
|
},
|
|
@@ -345,47 +346,47 @@ var re = /* @__PURE__ */ e(te, [["render", ne]]), K = {
|
|
|
345
346
|
this.$Print(this.crud.$refs.table);
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
|
-
},
|
|
349
|
+
}, Y = { class: "avue-crud__menu" }, X = {
|
|
349
350
|
key: 0,
|
|
350
351
|
class: "avue-crud__left"
|
|
351
|
-
},
|
|
352
|
+
}, ie = {
|
|
352
353
|
key: 1,
|
|
353
354
|
class: "avue-crud__right"
|
|
354
355
|
};
|
|
355
|
-
function
|
|
356
|
-
let o =
|
|
357
|
-
return
|
|
358
|
-
a.optVal(a.crud.tableOption.addBtn, i.config.addBtn) ?
|
|
356
|
+
function ae(e, t, n, r, i, a) {
|
|
357
|
+
let o = B("FyButton"), s = B("FyDate"), c = V("permission");
|
|
358
|
+
return L(), D("div", Y, [a.optVal(a.crud.tableOption.menuLeft, !0) ? (L(), D("div", X, [
|
|
359
|
+
a.optVal(a.crud.tableOption.addBtn, i.config.addBtn) ? G((L(), T(o, {
|
|
359
360
|
key: 0,
|
|
360
361
|
type: "primary",
|
|
361
362
|
icon: a.crud.getBtnIcon("addBtn"),
|
|
362
363
|
size: a.crud.isMediumSize,
|
|
363
364
|
onClick: a.crud.rowAdd
|
|
364
365
|
}, {
|
|
365
|
-
default:
|
|
366
|
+
default: W(() => [a.crud.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("addBtn")), 1)], 64))]),
|
|
366
367
|
_: 1
|
|
367
368
|
}, 8, [
|
|
368
369
|
"icon",
|
|
369
370
|
"size",
|
|
370
371
|
"onClick"
|
|
371
|
-
])), [[c, a.crud.getPermission("addBtn")]]) :
|
|
372
|
-
a.optVal(a.crud.tableOption.addRowBtn, i.config.addRowBtn) ?
|
|
372
|
+
])), [[c, a.crud.getPermission("addBtn")]]) : E("v-if", !0),
|
|
373
|
+
a.optVal(a.crud.tableOption.addRowBtn, i.config.addRowBtn) ? G((L(), T(o, {
|
|
373
374
|
key: 1,
|
|
374
375
|
type: "primary",
|
|
375
376
|
icon: a.crud.getBtnIcon("addBtn"),
|
|
376
377
|
size: a.crud.isMediumSize,
|
|
377
378
|
onClick: a.crud.rowCellAdd
|
|
378
379
|
}, {
|
|
379
|
-
default:
|
|
380
|
+
default: W(() => [a.crud.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("addBtn")), 1)], 64))]),
|
|
380
381
|
_: 1
|
|
381
382
|
}, 8, [
|
|
382
383
|
"icon",
|
|
383
384
|
"size",
|
|
384
385
|
"onClick"
|
|
385
|
-
])), [[c, a.crud.getPermission("addRowBtn")]]) :
|
|
386
|
-
|
|
387
|
-
])) :
|
|
388
|
-
a.optVal(a.crud.tableOption.dateBtn, i.config.dateBtn) ? (
|
|
386
|
+
])), [[c, a.crud.getPermission("addRowBtn")]]) : E("v-if", !0),
|
|
387
|
+
z(e.$slots, "menuLeft", { size: a.crud.isMediumSize })
|
|
388
|
+
])) : E("v-if", !0), a.optVal(a.crud.tableOption.menuRight, !0) ? (L(), D("div", ie, [
|
|
389
|
+
a.optVal(a.crud.tableOption.dateBtn, i.config.dateBtn) ? (L(), T(s, {
|
|
389
390
|
key: 0,
|
|
390
391
|
type: "datetimerange",
|
|
391
392
|
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
@@ -401,9 +402,9 @@ function X(e, t, n, r, i, a) {
|
|
|
401
402
|
"picker-options",
|
|
402
403
|
"size",
|
|
403
404
|
"onChange"
|
|
404
|
-
])) :
|
|
405
|
-
|
|
406
|
-
a.optVal(a.crud.tableOption.excelBtn, i.config.excelBtn) ?
|
|
405
|
+
])) : E("v-if", !0),
|
|
406
|
+
z(e.$slots, "menuRight", { size: a.crud.isMediumSize }),
|
|
407
|
+
a.optVal(a.crud.tableOption.excelBtn, i.config.excelBtn) ? G((L(), T(o, {
|
|
407
408
|
key: 1,
|
|
408
409
|
icon: a.crud.getBtnIcon("excelBtn"),
|
|
409
410
|
circle: "",
|
|
@@ -413,8 +414,8 @@ function X(e, t, n, r, i, a) {
|
|
|
413
414
|
"icon",
|
|
414
415
|
"size",
|
|
415
416
|
"onClick"
|
|
416
|
-
])), [[c, a.crud.getPermission("excelBtn")]]) :
|
|
417
|
-
a.optVal(a.crud.tableOption.printBtn, i.config.printBtn) ?
|
|
417
|
+
])), [[c, a.crud.getPermission("excelBtn")]]) : E("v-if", !0),
|
|
418
|
+
a.optVal(a.crud.tableOption.printBtn, i.config.printBtn) ? G((L(), T(o, {
|
|
418
419
|
key: 2,
|
|
419
420
|
icon: a.crud.getBtnIcon("printBtn"),
|
|
420
421
|
circle: "",
|
|
@@ -424,8 +425,8 @@ function X(e, t, n, r, i, a) {
|
|
|
424
425
|
"icon",
|
|
425
426
|
"size",
|
|
426
427
|
"onClick"
|
|
427
|
-
])), [[c, a.crud.getPermission("printBtn")]]) :
|
|
428
|
-
a.optVal(a.crud.tableOption.refreshBtn, i.config.refreshBtn) ?
|
|
428
|
+
])), [[c, a.crud.getPermission("printBtn")]]) : E("v-if", !0),
|
|
429
|
+
a.optVal(a.crud.tableOption.refreshBtn, i.config.refreshBtn) ? G((L(), T(o, {
|
|
429
430
|
key: 3,
|
|
430
431
|
icon: a.crud.getBtnIcon("refreshBtn"),
|
|
431
432
|
circle: "",
|
|
@@ -435,35 +436,35 @@ function X(e, t, n, r, i, a) {
|
|
|
435
436
|
"icon",
|
|
436
437
|
"size",
|
|
437
438
|
"onClick"
|
|
438
|
-
])), [[c, a.crud.getPermission("refreshBtn")]]) :
|
|
439
|
-
a.optVal(a.crud.tableOption.columnBtn, i.config.columnBtn) ?
|
|
439
|
+
])), [[c, a.crud.getPermission("refreshBtn")]]) : E("v-if", !0),
|
|
440
|
+
a.optVal(a.crud.tableOption.columnBtn, i.config.columnBtn) ? G((L(), T(o, {
|
|
440
441
|
key: 4,
|
|
441
442
|
icon: a.crud.getBtnIcon("columnBtn"),
|
|
442
443
|
circle: "",
|
|
443
444
|
size: a.crud.isMediumSize,
|
|
444
445
|
onClick: t[0] || (t[0] = (e) => a.crud.$refs.dialogColumn.handleShow())
|
|
445
|
-
}, null, 8, ["icon", "size"])), [[c, a.crud.getPermission("columnBtn")]]) :
|
|
446
|
-
(a.crud.$refs.headerSearch || {}).searchFlag && a.optVal(a.crud.tableOption.searchShowBtn, !0) ? (
|
|
446
|
+
}, null, 8, ["icon", "size"])), [[c, a.crud.getPermission("columnBtn")]]) : E("v-if", !0),
|
|
447
|
+
(a.crud.$refs.headerSearch || {}).searchFlag && a.optVal(a.crud.tableOption.searchShowBtn, !0) ? (L(), T(o, {
|
|
447
448
|
key: 5,
|
|
448
449
|
icon: a.crud.getBtnIcon("searchBtn"),
|
|
449
450
|
circle: "",
|
|
450
451
|
size: a.crud.isMediumSize,
|
|
451
452
|
onClick: t[1] || (t[1] = (e) => a.crud.$refs.headerSearch.handleSearchShow())
|
|
452
|
-
}, null, 8, ["icon", "size"])) :
|
|
453
|
-
a.optVal(a.crud.tableOption.filterBtn, i.config.filterBtn) ?
|
|
453
|
+
}, null, 8, ["icon", "size"])) : E("v-if", !0),
|
|
454
|
+
a.optVal(a.crud.tableOption.filterBtn, i.config.filterBtn) ? G((L(), T(o, {
|
|
454
455
|
key: 6,
|
|
455
456
|
icon: a.crud.getBtnIcon("filterBtn"),
|
|
456
457
|
circle: "",
|
|
457
458
|
size: a.crud.isMediumSize,
|
|
458
459
|
onClick: t[2] || (t[2] = (e) => a.crud.$refs.dialogFilter.handleShow())
|
|
459
|
-
}, null, 8, ["icon", "size"])), [[c, a.crud.getPermission("filterBtn")]]) :
|
|
460
|
-
])) :
|
|
460
|
+
}, null, 8, ["icon", "size"])), [[c, a.crud.getPermission("filterBtn")]]) : E("v-if", !0)
|
|
461
|
+
])) : E("v-if", !0)]);
|
|
461
462
|
}
|
|
462
|
-
var
|
|
463
|
+
var oe = /* @__PURE__ */ v(J, [["render", ae]]), Z = {}, se = {
|
|
463
464
|
name: "ColumnSlot",
|
|
464
465
|
components: {
|
|
465
|
-
IconTemp:
|
|
466
|
-
FormTemp:
|
|
466
|
+
IconTemp: S,
|
|
467
|
+
FormTemp: u
|
|
467
468
|
},
|
|
468
469
|
inject: ["dynamic", "crud"],
|
|
469
470
|
props: {
|
|
@@ -481,9 +482,9 @@ var ie = /* @__PURE__ */ e(K, [["render", X]]), Z = {}, ae = {
|
|
|
481
482
|
});
|
|
482
483
|
},
|
|
483
484
|
methods: {
|
|
484
|
-
isBlank:
|
|
485
|
-
optVal:
|
|
486
|
-
uploadFun:
|
|
485
|
+
isBlank: C,
|
|
486
|
+
optVal: r,
|
|
487
|
+
uploadFun: s,
|
|
487
488
|
isMediaType(e, t) {
|
|
488
489
|
return i(e, t);
|
|
489
490
|
},
|
|
@@ -503,29 +504,29 @@ var ie = /* @__PURE__ */ e(K, [["render", X]]), Z = {}, ae = {
|
|
|
503
504
|
},
|
|
504
505
|
handleChange(e, t) {
|
|
505
506
|
e.cascader && this.$nextTick(() => {
|
|
506
|
-
let
|
|
507
|
-
|
|
508
|
-
let
|
|
509
|
-
|
|
510
|
-
this.crud.cascaderDIC[s][e.prop] = [],
|
|
511
|
-
}), !(
|
|
507
|
+
let n = e.cascader;
|
|
508
|
+
n.forEach((r) => {
|
|
509
|
+
let i = r, a = t[e.prop], s = t.$index, c = this.findObject(this.columnOption, i);
|
|
510
|
+
C(c) || (C(this.crud.cascaderDIC[s]) && (this.crud.cascaderDIC[s] = {}), this.crud.cascaderIndexList.includes(s) && n.forEach((e) => {
|
|
511
|
+
this.crud.cascaderDIC[s][e.prop] = [], n.forEach((e) => t[e] = "");
|
|
512
|
+
}), !(C(n) || C(a) || C(c)) && d({
|
|
512
513
|
column: c,
|
|
513
|
-
value:
|
|
514
|
+
value: a,
|
|
514
515
|
form: t
|
|
515
516
|
}).then((e) => {
|
|
516
|
-
let
|
|
517
|
-
this.crud.cascaderIndexList.includes(s) || this.crud.cascaderIndexList.push(s), this.crud.cascaderDicList[s] || (this.crud.cascaderDicList[s] = {}), this.crud.cascaderDicList[s][
|
|
517
|
+
let n = e || [];
|
|
518
|
+
this.crud.cascaderIndexList.includes(s) || this.crud.cascaderIndexList.push(s), this.crud.cascaderDicList[s] || (this.crud.cascaderDicList[s] = {}), this.crud.cascaderDicList[s][i] || (this.crud.cascaderDicList[s][i] = n), this.crud.cascaderDIC[s][i] = n, !C(n[c.cascaderIndex]) && !C(n) && !C(c.cascaderIndex) && (t[i] = n[c.cascaderIndex][(c.props || {}).value || o.value]);
|
|
518
519
|
}));
|
|
519
520
|
});
|
|
520
521
|
});
|
|
521
522
|
},
|
|
522
523
|
handleDetail(e, t) {
|
|
523
|
-
let n = t.parentProp ? (this.crud.cascaderDIC[e.$index] || {})[t.prop] : this.crud.DIC[t.prop], r =
|
|
524
|
-
return !
|
|
524
|
+
let n = t.parentProp ? (this.crud.cascaderDIC[e.$index] || {})[t.prop] : this.crud.DIC[t.prop], r = l(e, t, this.crud.tableOption, n);
|
|
525
|
+
return !C(n) && this.crud.tableOption.filterDic !== !0 && (e[`$${t.prop}`] = r), r;
|
|
525
526
|
},
|
|
526
|
-
corArray(e,
|
|
527
|
-
let
|
|
528
|
-
return Array.isArray(
|
|
527
|
+
corArray(e, n) {
|
|
528
|
+
let r = this.handleDetail(e, n);
|
|
529
|
+
return Array.isArray(r) || (r = C(r) ? [] : r.split(" | ")), t(r);
|
|
529
530
|
},
|
|
530
531
|
openImg(e, t, n) {
|
|
531
532
|
let r = this.getImgList(e, t);
|
|
@@ -536,20 +537,20 @@ var ie = /* @__PURE__ */ e(K, [["render", X]]), Z = {}, ae = {
|
|
|
536
537
|
})), this.$ImagePreview(r, n);
|
|
537
538
|
},
|
|
538
539
|
getImgList(e, t) {
|
|
539
|
-
var
|
|
540
|
-
let
|
|
540
|
+
var n, r;
|
|
541
|
+
let i = ((n = t.propsHttp) == null ? void 0 : n.home) || "", a = ((r = t.props) == null ? void 0 : r.value) || o.value, s = this.corArray(e, t);
|
|
541
542
|
return s.forEach((e, t) => {
|
|
542
|
-
s[t] =
|
|
543
|
+
s[t] = i + (e[a] ? e[a] : e);
|
|
543
544
|
}), s;
|
|
544
545
|
}
|
|
545
546
|
}
|
|
546
|
-
},
|
|
547
|
+
}, ce = { key: 1 }, le = {
|
|
547
548
|
key: 0,
|
|
548
549
|
class: "avue-crud__img"
|
|
549
|
-
},
|
|
550
|
-
function
|
|
551
|
-
let o =
|
|
552
|
-
return e.getColumnProp(n.column, "hide") ? (
|
|
550
|
+
}, ue = ["src", "onClick"], de = { key: 1 }, fe = { key: 2 }, pe = ["innerHTML"], me = ["textContent"];
|
|
551
|
+
function he(e, t, n, r, i, a) {
|
|
552
|
+
let o = B("FormTemp"), s = B("ElTooltip"), c = B("ElFormItem"), l = B("ElLink"), u = B("FyRate"), d = B("IconTemp"), f = B("ElTableColumn");
|
|
553
|
+
return e.getColumnProp(n.column, "hide") ? (L(), T(f, {
|
|
553
554
|
key: n.column.prop,
|
|
554
555
|
prop: n.column.prop,
|
|
555
556
|
label: n.column.label,
|
|
@@ -571,23 +572,23 @@ function pe(e, t, n, r, i, a) {
|
|
|
571
572
|
width: e.getColumnProp(n.column, "width"),
|
|
572
573
|
fixed: e.getColumnProp(n.column, "fixed")
|
|
573
574
|
}, {
|
|
574
|
-
header:
|
|
575
|
+
header: W(({ $index: t }) => [a.crud.getSlotName(n.column, "H", a.crud.$slots) ? z(e.$slots, a.crud.getSlotName(n.column, "H"), F(N({ key: 0 }, {
|
|
575
576
|
column: n.column,
|
|
576
577
|
$index: t
|
|
577
|
-
}))) : (
|
|
578
|
-
default:
|
|
578
|
+
}))) : (L(), D("span", ce, U(n.column.label), 1))]),
|
|
579
|
+
default: W(({ row: t, $index: r }) => [t.$cellEdit && n.column.cell ? (L(), T(c, {
|
|
579
580
|
key: 0,
|
|
580
581
|
prop: a.crud.isTree ? "" : `list.${r}.${n.column.prop}`,
|
|
581
582
|
label: a.vaildLabel(n.column, t, " "),
|
|
582
583
|
"label-width": a.vaildLabel(n.column, t, "1px"),
|
|
583
584
|
rules: n.column.rules
|
|
584
585
|
}, {
|
|
585
|
-
default:
|
|
586
|
+
default: W(() => [j(s, {
|
|
586
587
|
content: (a.crud.listError[`list.${r}.${n.column.prop}`] || {}).msg,
|
|
587
588
|
disabled: !(a.crud.listError[`list.${r}.${n.column.prop}`] || {}).valid,
|
|
588
589
|
placement: "top"
|
|
589
590
|
}, {
|
|
590
|
-
default:
|
|
591
|
+
default: W(() => [a.crud.getSlotName(n.column, "F", a.crud.$slots) ? z(e.$slots, a.crud.getSlotName(n.column, "F"), F(N({ key: 0 }, {
|
|
591
592
|
row: t,
|
|
592
593
|
dic: a.crud.DIC[n.column.prop],
|
|
593
594
|
size: a.crud.isMediumSize,
|
|
@@ -595,7 +596,7 @@ function pe(e, t, n, r, i, a) {
|
|
|
595
596
|
disabled: a.crud.btnDisabledList[r],
|
|
596
597
|
label: a.handleDetail(t, n.column),
|
|
597
598
|
$cell: t.$cellEdit
|
|
598
|
-
}))) : (
|
|
599
|
+
}))) : (L(), T(o, N({ key: 1 }, a.uploadFun(n.column, a.crud), {
|
|
599
600
|
modelValue: t[n.column.prop],
|
|
600
601
|
"onUpdate:modelValue": (e) => t[n.column.prop] = e,
|
|
601
602
|
column: n.column,
|
|
@@ -612,9 +613,9 @@ function pe(e, t, n, r, i, a) {
|
|
|
612
613
|
clearable: a.optVal(n.column.clearable, !1),
|
|
613
614
|
"column-slot": a.crud.mainSlot,
|
|
614
615
|
onChange: (e) => a.columnChange(t, n.column, r)
|
|
615
|
-
}),
|
|
616
|
+
}), k({ _: 2 }, [R(a.crud.mainSlot, (t) => ({
|
|
616
617
|
name: t,
|
|
617
|
-
fn:
|
|
618
|
+
fn: W((n) => [z(e.$slots, t, F(M(n)))])
|
|
618
619
|
}))]), 1040, [
|
|
619
620
|
"modelValue",
|
|
620
621
|
"onUpdate:modelValue",
|
|
@@ -637,48 +638,48 @@ function pe(e, t, n, r, i, a) {
|
|
|
637
638
|
"label",
|
|
638
639
|
"label-width",
|
|
639
640
|
"rules"
|
|
640
|
-
])) : a.crud.$slots[n.column.prop] ?
|
|
641
|
+
])) : a.crud.$slots[n.column.prop] ? z(e.$slots, n.column.prop, {
|
|
641
642
|
key: 1,
|
|
642
643
|
row: t,
|
|
643
644
|
index: r,
|
|
644
645
|
dic: a.crud.DIC[n.column.prop],
|
|
645
646
|
size: a.crud.isMediumSize,
|
|
646
647
|
label: a.handleDetail(t, n.column)
|
|
647
|
-
}) : (
|
|
648
|
+
}) : (L(), D(w, { key: 2 }, [["img", "upload"].includes(n.column.type) ? (L(), D("span", le, [(L(!0), D(w, null, R(a.getImgList(t, n.column), (e, r) => (L(), D(w, null, [a.isMediaType(e, n.column.fileType) ? (L(), T(H(a.isMediaType(e, n.column.fileType)), {
|
|
648
649
|
key: r,
|
|
649
650
|
src: e,
|
|
650
|
-
onClick:
|
|
651
|
-
}, null, 8, ["src", "onClick"])) : (
|
|
651
|
+
onClick: K((e) => a.openImg(t, n.column, r), ["stop"])
|
|
652
|
+
}, null, 8, ["src", "onClick"])) : (L(), D("i", {
|
|
652
653
|
key: `e_${r}`,
|
|
653
654
|
src: e,
|
|
654
655
|
class: "el-icon-document",
|
|
655
|
-
onClick:
|
|
656
|
-
}, null, 8,
|
|
656
|
+
onClick: K((e) => a.openImg(t, n.column, r), ["stop"])
|
|
657
|
+
}, null, 8, ue))], 64))), 256))])) : n.column.type === "url" ? (L(), D("span", de, [(L(!0), D(w, null, R(a.corArray(t, n.column), (e, t) => (L(), T(l, {
|
|
657
658
|
key: t,
|
|
658
659
|
type: "primary",
|
|
659
660
|
href: e,
|
|
660
661
|
target: n.column.target || "_blank"
|
|
661
662
|
}, {
|
|
662
|
-
default:
|
|
663
|
+
default: W(() => [A(U(e), 1)]),
|
|
663
664
|
_: 2
|
|
664
|
-
}, 1032, ["href", "target"]))), 128))])) : n.column.type === "rate" ? (
|
|
665
|
+
}, 1032, ["href", "target"]))), 128))])) : n.column.type === "rate" ? (L(), D("span", fe, [j(u, {
|
|
665
666
|
modelValue: t[n.column.prop],
|
|
666
667
|
"onUpdate:modelValue": (e) => t[n.column.prop] = e,
|
|
667
668
|
disabled: ""
|
|
668
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])])) : n.column.type === "color" ? (
|
|
669
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])])) : n.column.type === "color" ? (L(), D("i", {
|
|
669
670
|
key: 3,
|
|
670
671
|
class: "avue-crud__color",
|
|
671
|
-
style:
|
|
672
|
-
}, null, 4)) : n.column.type === "icon" ? (
|
|
672
|
+
style: I({ backgroundColor: t[n.column.prop] })
|
|
673
|
+
}, null, 4)) : n.column.type === "icon" ? (L(), T(d, {
|
|
673
674
|
key: 4,
|
|
674
675
|
text: t[n.column.prop]
|
|
675
|
-
}, null, 8, ["text"])) : n.column.html ? (
|
|
676
|
+
}, null, 8, ["text"])) : n.column.html ? (L(), D("span", {
|
|
676
677
|
key: 5,
|
|
677
678
|
innerHTML: a.handleDetail(t, n.column)
|
|
678
|
-
}, null, 8,
|
|
679
|
+
}, null, 8, pe)) : (L(), D("span", {
|
|
679
680
|
key: 6,
|
|
680
|
-
textContent:
|
|
681
|
-
}, null, 8,
|
|
681
|
+
textContent: U(a.handleDetail(t, n.column))
|
|
682
|
+
}, null, 8, me))], 64))]),
|
|
682
683
|
_: 3
|
|
683
684
|
}, 8, [
|
|
684
685
|
"prop",
|
|
@@ -699,9 +700,9 @@ function pe(e, t, n, r, i, a) {
|
|
|
699
700
|
"header-align",
|
|
700
701
|
"width",
|
|
701
702
|
"fixed"
|
|
702
|
-
])) :
|
|
703
|
+
])) : E("v-if", !0);
|
|
703
704
|
}
|
|
704
|
-
var Q = /* @__PURE__ */
|
|
705
|
+
var Q = /* @__PURE__ */ v(se, [["render", he]]), ge = {
|
|
705
706
|
name: "ColumnDynamic",
|
|
706
707
|
components: { ColumnSlot: Q },
|
|
707
708
|
inject: ["dynamic", "crud"],
|
|
@@ -716,11 +717,11 @@ var Q = /* @__PURE__ */ e(ae, [["render", pe]]), me = {
|
|
|
716
717
|
e.includes(t) && (this[t] = this.dynamic[t]);
|
|
717
718
|
});
|
|
718
719
|
},
|
|
719
|
-
methods: { optVal:
|
|
720
|
+
methods: { optVal: r }
|
|
720
721
|
};
|
|
721
|
-
function
|
|
722
|
-
let o =
|
|
723
|
-
return e.getColumnProp(n.columnOption, "hide") ? (
|
|
722
|
+
function _e(e, t, n, r, i, a) {
|
|
723
|
+
let o = B("ColumnDynamic", !0), s = B("ColumnSlot"), c = B("ElTableColumn");
|
|
724
|
+
return e.getColumnProp(n.columnOption, "hide") ? (L(), T(c, {
|
|
724
725
|
key: n.columnOption.prop,
|
|
725
726
|
prop: n.columnOption.prop,
|
|
726
727
|
label: n.columnOption.label,
|
|
@@ -737,19 +738,19 @@ function he(e, t, n, r, i, a) {
|
|
|
737
738
|
width: e.getColumnProp(n.columnOption, "width"),
|
|
738
739
|
fixed: e.getColumnProp(n.columnOption, "fixed")
|
|
739
740
|
}, {
|
|
740
|
-
default:
|
|
741
|
+
default: W(() => [(L(!0), D(w, null, R(n.columnOption.children, (t) => (L(), D(w, null, [t.children && t.children.length > 0 ? (L(), T(o, {
|
|
741
742
|
key: t.prop,
|
|
742
743
|
"column-option": t
|
|
743
|
-
},
|
|
744
|
+
}, k({ _: 2 }, [R(a.crud.mainSlot, (t) => ({
|
|
744
745
|
name: t,
|
|
745
|
-
fn:
|
|
746
|
-
}))]), 1032, ["column-option"])) : (
|
|
746
|
+
fn: W((n) => [z(e.$slots, t, N({ ref_for: !0 }, n))])
|
|
747
|
+
}))]), 1032, ["column-option"])) : (L(), T(s, {
|
|
747
748
|
key: t.prop,
|
|
748
749
|
column: t,
|
|
749
750
|
"column-option": n.columnOption.children
|
|
750
|
-
},
|
|
751
|
+
}, k({ _: 2 }, [R(a.crud.mainSlot, (t) => ({
|
|
751
752
|
name: t,
|
|
752
|
-
fn:
|
|
753
|
+
fn: W((n) => [z(e.$slots, t, N({ ref_for: !0 }, n))])
|
|
753
754
|
}))]), 1032, ["column", "column-option"]))], 64))), 256))]),
|
|
754
755
|
_: 3
|
|
755
756
|
}, 8, [
|
|
@@ -766,14 +767,14 @@ function he(e, t, n, r, i, a) {
|
|
|
766
767
|
"header-align",
|
|
767
768
|
"width",
|
|
768
769
|
"fixed"
|
|
769
|
-
])) :
|
|
770
|
+
])) : E("v-if", !0);
|
|
770
771
|
}
|
|
771
772
|
//#endregion
|
|
772
773
|
//#region src/components/fy-from/crud/components/Column.vue
|
|
773
|
-
var
|
|
774
|
+
var ve = {
|
|
774
775
|
name: "Column",
|
|
775
776
|
components: {
|
|
776
|
-
ColumnDynamic: /* @__PURE__ */
|
|
777
|
+
ColumnDynamic: /* @__PURE__ */ v(ge, [["render", _e]]),
|
|
777
778
|
ColumnSlot: Q
|
|
778
779
|
},
|
|
779
780
|
inject: ["crud"],
|
|
@@ -786,7 +787,7 @@ var ge = {
|
|
|
786
787
|
props: { columnOption: Array },
|
|
787
788
|
computed: { list() {
|
|
788
789
|
let e = [...this.columnOption];
|
|
789
|
-
return e =
|
|
790
|
+
return e = a(e, "index", (e, t) => {
|
|
790
791
|
var n, r;
|
|
791
792
|
return ((n = this.crud.objectOption[e.prop]) == null ? void 0 : n.index) - ((r = this.crud.objectOption[t.prop]) == null ? void 0 : r.index);
|
|
792
793
|
}), e;
|
|
@@ -798,19 +799,19 @@ var ge = {
|
|
|
798
799
|
},
|
|
799
800
|
handleFilters(e, t) {
|
|
800
801
|
if (t !== !0) return;
|
|
801
|
-
let
|
|
802
|
-
return
|
|
803
|
-
|
|
802
|
+
let n = this.crud.DIC[e.prop] || [], r = [];
|
|
803
|
+
return C(n) ? this.crud.cellForm.list.forEach((t) => {
|
|
804
|
+
r.map((e) => e.text).includes(t[e.prop]) || r.push({
|
|
804
805
|
text: t[e.prop],
|
|
805
806
|
value: t[e.prop]
|
|
806
807
|
});
|
|
807
|
-
}) :
|
|
808
|
-
let
|
|
809
|
-
|
|
810
|
-
text: t[
|
|
811
|
-
value: t[
|
|
808
|
+
}) : n.forEach((t) => {
|
|
809
|
+
let n = e.props || this.crud.tableOption.props || {};
|
|
810
|
+
r.push({
|
|
811
|
+
text: t[n.label || o.label],
|
|
812
|
+
value: t[n.value || o.value]
|
|
812
813
|
});
|
|
813
|
-
}),
|
|
814
|
+
}), r;
|
|
814
815
|
},
|
|
815
816
|
getColumnProp(e, t) {
|
|
816
817
|
let n = this.crud.objectOption[e.prop] || {};
|
|
@@ -821,39 +822,39 @@ var ge = {
|
|
|
821
822
|
}
|
|
822
823
|
}
|
|
823
824
|
};
|
|
824
|
-
function
|
|
825
|
-
let o =
|
|
826
|
-
return
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
(
|
|
825
|
+
function ye(e, t, n, r, i, a) {
|
|
826
|
+
let o = B("ColumnDynamic"), s = B("ColumnSlot");
|
|
827
|
+
return L(), D(w, null, [
|
|
828
|
+
z(e.$slots, "header"),
|
|
829
|
+
E(" 动态列 "),
|
|
830
|
+
(L(!0), D(w, null, R(a.list, (t) => (L(), D(w, null, [t.children && t.children.length > 0 ? (L(), T(o, {
|
|
830
831
|
key: t.pop,
|
|
831
832
|
"column-option": t
|
|
832
|
-
},
|
|
833
|
+
}, k({ _: 2 }, [R(a.crud.mainSlot, (t) => ({
|
|
833
834
|
name: t,
|
|
834
|
-
fn:
|
|
835
|
-
}))]), 1032, ["column-option"])) : (
|
|
835
|
+
fn: W((n) => [z(e.$slots, t, N({ ref_for: !0 }, n))])
|
|
836
|
+
}))]), 1032, ["column-option"])) : (L(), T(s, {
|
|
836
837
|
key: t.prop,
|
|
837
838
|
column: t,
|
|
838
839
|
"column-option": n.columnOption
|
|
839
|
-
},
|
|
840
|
+
}, k({ _: 2 }, [R(a.crud.mainSlot, (t) => ({
|
|
840
841
|
name: t,
|
|
841
|
-
fn:
|
|
842
|
+
fn: W((n) => [z(e.$slots, t, N({ ref_for: !0 }, n))])
|
|
842
843
|
}))]), 1032, ["column", "column-option"]))], 64))), 256)),
|
|
843
|
-
|
|
844
|
-
]);
|
|
844
|
+
z(e.$slots, "footer")
|
|
845
|
+
], 64);
|
|
845
846
|
}
|
|
846
|
-
var
|
|
847
|
+
var be = /* @__PURE__ */ v(ve, [["render", ye]]), xe = {
|
|
847
848
|
name: "ColumnDefault",
|
|
848
849
|
inject: ["crud"],
|
|
849
850
|
data() {
|
|
850
|
-
return { config:
|
|
851
|
+
return { config: q };
|
|
851
852
|
},
|
|
852
853
|
mounted() {
|
|
853
854
|
this.setSort();
|
|
854
855
|
},
|
|
855
856
|
methods: {
|
|
856
|
-
optVal:
|
|
857
|
+
optVal: r,
|
|
857
858
|
indexMethod(e) {
|
|
858
859
|
return e + 1 + ((this.crud.page.currentPage || 1) - 1) * (this.crud.page.pageSize || 10);
|
|
859
860
|
},
|
|
@@ -881,26 +882,26 @@ var ve = /* @__PURE__ */ e(ge, [["render", _e]]), ye = {
|
|
|
881
882
|
}
|
|
882
883
|
}
|
|
883
884
|
};
|
|
884
|
-
function
|
|
885
|
-
let o =
|
|
886
|
-
return
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
a.crud.tableOption.expand ? (
|
|
885
|
+
function Se(e, t, n, r, i, a) {
|
|
886
|
+
let o = B("ElTableColumn");
|
|
887
|
+
return L(), D(w, null, [
|
|
888
|
+
j(o, { width: "1px" }),
|
|
889
|
+
E(" 折叠面板 "),
|
|
890
|
+
a.crud.tableOption.expand ? (L(), T(o, {
|
|
890
891
|
key: "expand",
|
|
891
892
|
type: "expand",
|
|
892
893
|
width: a.crud.tableOption.expandWidth || i.config.expandWidth,
|
|
893
894
|
fixed: a.optVal(a.crud.tableOption.expandFixed, i.config.expandFixed),
|
|
894
895
|
align: "center"
|
|
895
896
|
}, {
|
|
896
|
-
default:
|
|
897
|
+
default: W(({ row: t }) => [z(e.$slots, "expand", {
|
|
897
898
|
row: t,
|
|
898
899
|
index: t.$index
|
|
899
900
|
})]),
|
|
900
901
|
_: 3
|
|
901
|
-
}, 8, ["width", "fixed"])) :
|
|
902
|
-
|
|
903
|
-
a.crud.tableOption.selection ? (
|
|
902
|
+
}, 8, ["width", "fixed"])) : E("v-if", !0),
|
|
903
|
+
E(" 选择框 "),
|
|
904
|
+
a.crud.tableOption.selection ? (L(), T(o, {
|
|
904
905
|
key: "selection",
|
|
905
906
|
fixed: a.optVal(a.crud.tableOption.selectionFixed, i.config.selectionFixed),
|
|
906
907
|
type: "selection",
|
|
@@ -913,9 +914,9 @@ function be(e, t, n, r, i, a) {
|
|
|
913
914
|
"selectable",
|
|
914
915
|
"reserve-selection",
|
|
915
916
|
"width"
|
|
916
|
-
])) :
|
|
917
|
-
|
|
918
|
-
a.optVal(a.crud.tableOption.index) ? (
|
|
917
|
+
])) : E("v-if", !0),
|
|
918
|
+
E(" 序号 "),
|
|
919
|
+
a.optVal(a.crud.tableOption.index) ? (L(), T(o, {
|
|
919
920
|
key: "index",
|
|
920
921
|
fixed: a.optVal(a.crud.tableOption.indexFixed, i.config.indexFixed),
|
|
921
922
|
label: a.crud.tableOption.indexLabel || i.config.indexLabel,
|
|
@@ -928,15 +929,15 @@ function be(e, t, n, r, i, a) {
|
|
|
928
929
|
"label",
|
|
929
930
|
"width",
|
|
930
931
|
"index"
|
|
931
|
-
])) :
|
|
932
|
-
]);
|
|
932
|
+
])) : E("v-if", !0)
|
|
933
|
+
], 64);
|
|
933
934
|
}
|
|
934
|
-
var
|
|
935
|
+
var Ce = /* @__PURE__ */ v(xe, [["render", Se]]), we = {
|
|
935
936
|
name: "ColumnMenu",
|
|
936
|
-
directives: { permission:
|
|
937
|
+
directives: { permission: x },
|
|
937
938
|
inject: ["crud"],
|
|
938
939
|
data() {
|
|
939
|
-
return { config:
|
|
940
|
+
return { config: q };
|
|
940
941
|
},
|
|
941
942
|
computed: {
|
|
942
943
|
menuType() {
|
|
@@ -953,15 +954,15 @@ var xe = /* @__PURE__ */ e(ye, [["render", be]]), Se = {
|
|
|
953
954
|
}
|
|
954
955
|
},
|
|
955
956
|
methods: {
|
|
956
|
-
optVal:
|
|
957
|
+
optVal: r,
|
|
957
958
|
menuText(e) {
|
|
958
959
|
return ["text", "menu"].includes(this.menuType) ? "text" : e;
|
|
959
960
|
}
|
|
960
961
|
}
|
|
961
962
|
};
|
|
962
|
-
function
|
|
963
|
-
let o =
|
|
964
|
-
return
|
|
963
|
+
function Te(e, t, n, r, i, a) {
|
|
964
|
+
let o = B("FyButton"), s = B("ElDropdownItem"), c = B("ElDropdownMenu"), l = B("ElDropdown"), u = B("ElTableColumn"), d = V("permission");
|
|
965
|
+
return L(), D(w, null, [E(" 操作栏 "), a.optVal(a.crud.tableOption.menu, i.config.menu) && a.crud.getPermission("menu") ? (L(), T(u, {
|
|
965
966
|
key: "menu",
|
|
966
967
|
class: "avue-crud__btn",
|
|
967
968
|
prop: "menu",
|
|
@@ -971,45 +972,45 @@ function Ce(e, t, n, r, i, a) {
|
|
|
971
972
|
"header-align": a.crud.tableOption.menuHeaderAlign || i.config.menuHeaderAlign,
|
|
972
973
|
width: a.crud.isMobile ? a.crud.tableOption.menuXsWidth || i.config.menuXsWidth : a.crud.tableOption.menuWidth || i.config.menuWidth
|
|
973
974
|
}, {
|
|
974
|
-
default:
|
|
975
|
+
default: W(({ row: n, $index: r }) => [a.isMenu ? (L(), T(l, {
|
|
975
976
|
key: 0,
|
|
976
977
|
size: a.crud.isMediumSize
|
|
977
978
|
}, {
|
|
978
|
-
dropdown:
|
|
979
|
-
default:
|
|
980
|
-
a.optVal(a.crud.tableOption.viewBtn, i.config.viewBtn) ?
|
|
979
|
+
dropdown: W(() => [j(c, null, {
|
|
980
|
+
default: W(() => [
|
|
981
|
+
a.optVal(a.crud.tableOption.viewBtn, i.config.viewBtn) ? G((L(), T(s, {
|
|
981
982
|
key: 0,
|
|
982
983
|
icon: a.crud.getBtnIcon("viewBtn"),
|
|
983
984
|
onClick: (e) => a.crud.rowView(n, r)
|
|
984
985
|
}, {
|
|
985
|
-
default:
|
|
986
|
+
default: W(() => [A(U(a.crud.menuIcon("viewBtn")), 1)]),
|
|
986
987
|
_: 1
|
|
987
|
-
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("viewBtn", n, r)]]) :
|
|
988
|
-
a.optVal(a.crud.tableOption.editBtn, i.config.editBtn) ?
|
|
988
|
+
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("viewBtn", n, r)]]) : E("v-if", !0),
|
|
989
|
+
a.optVal(a.crud.tableOption.editBtn, i.config.editBtn) ? G((L(), T(s, {
|
|
989
990
|
key: 1,
|
|
990
991
|
icon: a.crud.getBtnIcon("editBtn"),
|
|
991
992
|
onClick: (e) => a.crud.rowEdit(n, r)
|
|
992
993
|
}, {
|
|
993
|
-
default:
|
|
994
|
+
default: W(() => [A(U(a.crud.menuIcon("editBtn")), 1)]),
|
|
994
995
|
_: 1
|
|
995
|
-
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("editBtn", n, r)]]) :
|
|
996
|
-
a.optVal(a.crud.tableOption.copyBtn, i.config.copyBtn) ?
|
|
996
|
+
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("editBtn", n, r)]]) : E("v-if", !0),
|
|
997
|
+
a.optVal(a.crud.tableOption.copyBtn, i.config.copyBtn) ? G((L(), T(s, {
|
|
997
998
|
key: 2,
|
|
998
999
|
icon: a.crud.getBtnIcon("copyBtn"),
|
|
999
1000
|
onClick: (e) => a.crud.rowCopy(n)
|
|
1000
1001
|
}, {
|
|
1001
|
-
default:
|
|
1002
|
+
default: W(() => [A(U(a.crud.menuIcon("copyBtn")), 1)]),
|
|
1002
1003
|
_: 1
|
|
1003
|
-
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("copyBtn", n, r)]]) :
|
|
1004
|
-
a.optVal(a.crud.tableOption.delBtn, i.config.delBtn) ?
|
|
1004
|
+
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("copyBtn", n, r)]]) : E("v-if", !0),
|
|
1005
|
+
a.optVal(a.crud.tableOption.delBtn, i.config.delBtn) ? G((L(), T(s, {
|
|
1005
1006
|
key: 3,
|
|
1006
1007
|
icon: a.crud.getBtnIcon("delBtn"),
|
|
1007
1008
|
onClick: (e) => a.crud.rowDel(n, r)
|
|
1008
1009
|
}, {
|
|
1009
|
-
default:
|
|
1010
|
+
default: W(() => [A(U(a.crud.menuIcon("delBtn")), 1)]),
|
|
1010
1011
|
_: 1
|
|
1011
|
-
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("delBtn", n, r)]]) :
|
|
1012
|
-
|
|
1012
|
+
}, 8, ["icon", "onClick"])), [[d, a.crud.getPermission("delBtn", n, r)]]) : E("v-if", !0),
|
|
1013
|
+
z(e.$slots, "menuBtn", {
|
|
1013
1014
|
row: n,
|
|
1014
1015
|
type: a.menuText("primary"),
|
|
1015
1016
|
disabled: a.crud.btnDisabled,
|
|
@@ -1019,11 +1020,11 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1019
1020
|
]),
|
|
1020
1021
|
_: 2
|
|
1021
1022
|
}, 1024)]),
|
|
1022
|
-
default:
|
|
1023
|
+
default: W(() => [j(o, {
|
|
1023
1024
|
text: "",
|
|
1024
1025
|
size: a.crud.isMediumSize
|
|
1025
1026
|
}, {
|
|
1026
|
-
default:
|
|
1027
|
+
default: W(() => [A(U(a.crud.tableOption.menuBtnTitle || "按钮") + " ", 1), t[0] || (t[0] = O("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1))]),
|
|
1027
1028
|
_: 1
|
|
1028
1029
|
}, 8, ["size"])]),
|
|
1029
1030
|
_: 2
|
|
@@ -1031,16 +1032,16 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1031
1032
|
"button",
|
|
1032
1033
|
"text",
|
|
1033
1034
|
"icon"
|
|
1034
|
-
].includes(a.menuType) ? (
|
|
1035
|
-
a.optVal(a.crud.tableOption.cellBtn, i.config.cellBtn) ? (
|
|
1035
|
+
].includes(a.menuType) ? (L(), D(w, { key: 1 }, [
|
|
1036
|
+
a.optVal(a.crud.tableOption.cellBtn, i.config.cellBtn) ? (L(), D(w, { key: 0 }, [a.optVal(a.crud.tableOption.editBtn, i.config.editBtn) && !n.$cellEdit ? G((L(), T(o, {
|
|
1036
1037
|
key: 0,
|
|
1037
1038
|
type: a.menuText("primary"),
|
|
1038
1039
|
icon: a.crud.getBtnIcon("editBtn"),
|
|
1039
1040
|
size: a.crud.isMediumSize,
|
|
1040
1041
|
disabled: a.crud.btnDisabledList[r],
|
|
1041
|
-
onClick:
|
|
1042
|
+
onClick: K((e) => a.crud.rowCell(n, r), ["stop"])
|
|
1042
1043
|
}, {
|
|
1043
|
-
default:
|
|
1044
|
+
default: W(() => [a.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("editBtn")), 1)], 64))]),
|
|
1044
1045
|
_: 1
|
|
1045
1046
|
}, 8, [
|
|
1046
1047
|
"type",
|
|
@@ -1048,15 +1049,15 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1048
1049
|
"size",
|
|
1049
1050
|
"disabled",
|
|
1050
1051
|
"onClick"
|
|
1051
|
-
])), [[d, a.crud.getPermission("editBtn", n, r)]]) : a.optVal(a.crud.tableOption.saveBtn, i.config.saveBtn) && n.$cellEdit ?
|
|
1052
|
+
])), [[d, a.crud.getPermission("editBtn", n, r)]]) : a.optVal(a.crud.tableOption.saveBtn, i.config.saveBtn) && n.$cellEdit ? G((L(), T(o, {
|
|
1052
1053
|
key: 1,
|
|
1053
1054
|
type: a.menuText("primary"),
|
|
1054
1055
|
icon: a.crud.getBtnIcon("saveBtn"),
|
|
1055
1056
|
size: a.crud.isMediumSize,
|
|
1056
1057
|
disabled: a.crud.btnDisabledList[r],
|
|
1057
|
-
onClick:
|
|
1058
|
+
onClick: K((e) => a.crud.rowCell(n, r), ["stop"])
|
|
1058
1059
|
}, {
|
|
1059
|
-
default:
|
|
1060
|
+
default: W(() => [a.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("saveBtn")), 1)], 64))]),
|
|
1060
1061
|
_: 1
|
|
1061
1062
|
}, 8, [
|
|
1062
1063
|
"type",
|
|
@@ -1064,15 +1065,15 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1064
1065
|
"size",
|
|
1065
1066
|
"disabled",
|
|
1066
1067
|
"onClick"
|
|
1067
|
-
])), [[d, a.crud.getPermission("saveBtn", n, r)]]) :
|
|
1068
|
+
])), [[d, a.crud.getPermission("saveBtn", n, r)]]) : E("v-if", !0), n.$cellEdit ? (L(), T(o, {
|
|
1068
1069
|
key: 2,
|
|
1069
1070
|
type: a.menuText("danger"),
|
|
1070
1071
|
icon: a.crud.getBtnIcon("cancelBtn"),
|
|
1071
1072
|
size: a.crud.isMediumSize,
|
|
1072
1073
|
disabled: a.crud.btnDisabledList[r],
|
|
1073
|
-
onClick:
|
|
1074
|
+
onClick: K((e) => a.crud.rowCancel(n, r), ["stop"])
|
|
1074
1075
|
}, {
|
|
1075
|
-
default:
|
|
1076
|
+
default: W(() => [a.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("cancelBtn")), 1)], 64))]),
|
|
1076
1077
|
_: 1
|
|
1077
1078
|
}, 8, [
|
|
1078
1079
|
"type",
|
|
@@ -1080,16 +1081,16 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1080
1081
|
"size",
|
|
1081
1082
|
"disabled",
|
|
1082
1083
|
"onClick"
|
|
1083
|
-
])) :
|
|
1084
|
-
a.optVal(a.crud.tableOption.viewBtn, i.config.viewBtn) ?
|
|
1084
|
+
])) : E("v-if", !0)], 64)) : E("v-if", !0),
|
|
1085
|
+
a.optVal(a.crud.tableOption.viewBtn, i.config.viewBtn) ? G((L(), T(o, {
|
|
1085
1086
|
key: 1,
|
|
1086
1087
|
type: a.menuText("success"),
|
|
1087
1088
|
icon: a.crud.getBtnIcon("viewBtn"),
|
|
1088
1089
|
size: a.crud.isMediumSize,
|
|
1089
1090
|
disabled: e.btnDisabled,
|
|
1090
|
-
onClick:
|
|
1091
|
+
onClick: K((e) => a.crud.rowView(n, r), ["stop"])
|
|
1091
1092
|
}, {
|
|
1092
|
-
default:
|
|
1093
|
+
default: W(() => [a.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("viewBtn")), 1)], 64))]),
|
|
1093
1094
|
_: 1
|
|
1094
1095
|
}, 8, [
|
|
1095
1096
|
"type",
|
|
@@ -1097,16 +1098,16 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1097
1098
|
"size",
|
|
1098
1099
|
"disabled",
|
|
1099
1100
|
"onClick"
|
|
1100
|
-
])), [[d, a.crud.getPermission("viewBtn", n, r)]]) :
|
|
1101
|
-
a.optVal(a.crud.tableOption.editBtn, i.config.editBtn) && !a.crud.tableOption.cellBtn ?
|
|
1101
|
+
])), [[d, a.crud.getPermission("viewBtn", n, r)]]) : E("v-if", !0),
|
|
1102
|
+
a.optVal(a.crud.tableOption.editBtn, i.config.editBtn) && !a.crud.tableOption.cellBtn ? G((L(), T(o, {
|
|
1102
1103
|
key: 2,
|
|
1103
1104
|
type: a.menuText("primary"),
|
|
1104
1105
|
icon: a.crud.getBtnIcon("editBtn"),
|
|
1105
1106
|
size: a.crud.isMediumSize,
|
|
1106
1107
|
disabled: e.btnDisabled,
|
|
1107
|
-
onClick:
|
|
1108
|
+
onClick: K((e) => a.crud.rowEdit(n, r), ["stop"])
|
|
1108
1109
|
}, {
|
|
1109
|
-
default:
|
|
1110
|
+
default: W(() => [a.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("editBtn")), 1)], 64))]),
|
|
1110
1111
|
_: 1
|
|
1111
1112
|
}, 8, [
|
|
1112
1113
|
"type",
|
|
@@ -1114,16 +1115,16 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1114
1115
|
"size",
|
|
1115
1116
|
"disabled",
|
|
1116
1117
|
"onClick"
|
|
1117
|
-
])), [[d, a.crud.getPermission("editBtn", n, r)]]) :
|
|
1118
|
-
a.optVal(a.crud.tableOption.copyBtn, i.config.copyBtn) ?
|
|
1118
|
+
])), [[d, a.crud.getPermission("editBtn", n, r)]]) : E("v-if", !0),
|
|
1119
|
+
a.optVal(a.crud.tableOption.copyBtn, i.config.copyBtn) ? G((L(), T(o, {
|
|
1119
1120
|
key: 3,
|
|
1120
1121
|
type: a.menuText("primary"),
|
|
1121
1122
|
icon: a.crud.getBtnIcon("copyBtn"),
|
|
1122
1123
|
size: a.crud.isMediumSize,
|
|
1123
1124
|
disabled: e.btnDisabled,
|
|
1124
|
-
onClick:
|
|
1125
|
+
onClick: K((e) => a.crud.rowCopy(n), ["stop"])
|
|
1125
1126
|
}, {
|
|
1126
|
-
default:
|
|
1127
|
+
default: W(() => [a.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("copyBtn")), 1)], 64))]),
|
|
1127
1128
|
_: 1
|
|
1128
1129
|
}, 8, [
|
|
1129
1130
|
"type",
|
|
@@ -1131,16 +1132,16 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1131
1132
|
"size",
|
|
1132
1133
|
"disabled",
|
|
1133
1134
|
"onClick"
|
|
1134
|
-
])), [[d, a.crud.getPermission("copyBtn", n, r)]]) :
|
|
1135
|
-
a.optVal(a.crud.tableOption.delBtn, i.config.delBtn) && !n.$cellEdit ?
|
|
1135
|
+
])), [[d, a.crud.getPermission("copyBtn", n, r)]]) : E("v-if", !0),
|
|
1136
|
+
a.optVal(a.crud.tableOption.delBtn, i.config.delBtn) && !n.$cellEdit ? G((L(), T(o, {
|
|
1136
1137
|
key: 4,
|
|
1137
1138
|
type: a.menuText("danger"),
|
|
1138
1139
|
icon: a.crud.getBtnIcon("delBtn"),
|
|
1139
1140
|
size: a.crud.isMediumSize,
|
|
1140
1141
|
disabled: e.btnDisabled,
|
|
1141
|
-
onClick:
|
|
1142
|
+
onClick: K((e) => a.crud.rowDel(n, r), ["stop"])
|
|
1142
1143
|
}, {
|
|
1143
|
-
default:
|
|
1144
|
+
default: W(() => [a.isIconMenu ? E("v-if", !0) : (L(), D(w, { key: 0 }, [A(U(a.crud.menuIcon("delBtn")), 1)], 64))]),
|
|
1144
1145
|
_: 1
|
|
1145
1146
|
}, 8, [
|
|
1146
1147
|
"type",
|
|
@@ -1148,8 +1149,8 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1148
1149
|
"size",
|
|
1149
1150
|
"disabled",
|
|
1150
1151
|
"onClick"
|
|
1151
|
-
])), [[d, a.crud.getPermission("delBtn", n, r)]]) :
|
|
1152
|
-
], 64)) :
|
|
1152
|
+
])), [[d, a.crud.getPermission("delBtn", n, r)]]) : E("v-if", !0)
|
|
1153
|
+
], 64)) : E("v-if", !0), z(e.$slots, "menu", {
|
|
1153
1154
|
row: n,
|
|
1154
1155
|
type: a.menuText("primary"),
|
|
1155
1156
|
disabled: a.crud.btnDisabled,
|
|
@@ -1163,14 +1164,14 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1163
1164
|
"align",
|
|
1164
1165
|
"header-align",
|
|
1165
1166
|
"width"
|
|
1166
|
-
])) :
|
|
1167
|
+
])) : E("v-if", !0)], 2112);
|
|
1167
1168
|
}
|
|
1168
|
-
var
|
|
1169
|
+
var Ee = /* @__PURE__ */ v(we, [["render", Te]]), De = {
|
|
1169
1170
|
name: "TablePage",
|
|
1170
1171
|
inject: ["crud"],
|
|
1171
1172
|
data() {
|
|
1172
1173
|
return { defaultPage: {
|
|
1173
|
-
single: !
|
|
1174
|
+
single: !0,
|
|
1174
1175
|
total: 0,
|
|
1175
1176
|
pagerCount: 7,
|
|
1176
1177
|
currentPage: 1,
|
|
@@ -1208,7 +1209,7 @@ var we = /* @__PURE__ */ e(Se, [["render", Ce]]), Te = {
|
|
|
1208
1209
|
this.crud.isMobile && (this.defaultPage.layout = "total, sizes, prev, pager, next"), this.pageInit(), this.crud.$emit("on-load", this.defaultPage);
|
|
1209
1210
|
},
|
|
1210
1211
|
methods: {
|
|
1211
|
-
optVal:
|
|
1212
|
+
optVal: r,
|
|
1212
1213
|
pageInit() {
|
|
1213
1214
|
this.defaultPage = Object.assign(this.defaultPage, this.crud.page), this.updateValue();
|
|
1214
1215
|
},
|
|
@@ -1229,14 +1230,14 @@ var we = /* @__PURE__ */ e(Se, [["render", Ce]]), Te = {
|
|
|
1229
1230
|
}
|
|
1230
1231
|
}
|
|
1231
1232
|
};
|
|
1232
|
-
function
|
|
1233
|
-
let o =
|
|
1234
|
-
return a.pageFlag && a.optVal(a.crud.tableOption.page, !0) ? (
|
|
1233
|
+
function Oe(e, t, n, r, i, a) {
|
|
1234
|
+
let o = B("ElPagination"), s = B("ElCard");
|
|
1235
|
+
return a.pageFlag && a.optVal(a.crud.tableOption.page, !0) ? (L(), T(s, {
|
|
1235
1236
|
key: 0,
|
|
1236
1237
|
shadow: a.crud.isCard,
|
|
1237
1238
|
class: "avue-pagination"
|
|
1238
1239
|
}, {
|
|
1239
|
-
default:
|
|
1240
|
+
default: W(() => [z(e.$slots, "page"), j(o, {
|
|
1240
1241
|
"current-page": i.defaultPage.currentPage,
|
|
1241
1242
|
"onUpdate:currentPage": t[0] || (t[0] = (e) => i.defaultPage.currentPage = e),
|
|
1242
1243
|
small: a.crud.size === "mini",
|
|
@@ -1270,10 +1271,11 @@ function Ee(e, t, n, r, i, a) {
|
|
|
1270
1271
|
"onCurrentChange"
|
|
1271
1272
|
])]),
|
|
1272
1273
|
_: 3
|
|
1273
|
-
}, 8, ["shadow"])) :
|
|
1274
|
+
}, 8, ["shadow"])) : E("v-if", !0);
|
|
1274
1275
|
}
|
|
1275
|
-
var
|
|
1276
|
+
var ke = /* @__PURE__ */ v(De, [["render", Oe]]), Ae = {
|
|
1276
1277
|
name: "FyDialogForm",
|
|
1278
|
+
components: { ElementDialog: b },
|
|
1277
1279
|
inject: ["crud"],
|
|
1278
1280
|
data() {
|
|
1279
1281
|
return {
|
|
@@ -1286,8 +1288,8 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1286
1288
|
},
|
|
1287
1289
|
computed: {
|
|
1288
1290
|
option() {
|
|
1289
|
-
let e =
|
|
1290
|
-
return e.boxType = this.boxType, e.column =
|
|
1291
|
+
let e = t(this.crud.tableOption);
|
|
1292
|
+
return e.boxType = this.boxType, e.column = t(this.crud.propOption), e.menuBtn = !1, this.isAdd ? (e.submitBtn = e.saveBtn, e.submitText = this.crud.menuIcon("saveBtn"), e.submitIcon = this.crud.getBtnIcon("saveBtn")) : this.isEdit ? (e.submitBtn = e.updateBtn, e.submitText = this.crud.menuIcon("updateBtn"), e.submitIcon = this.crud.getBtnIcon("updateBtn")) : this.isView && (e.detail = !0), e.emptyBtn = e.cancelBtn, e.emptyText = this.crud.menuIcon("cancelBtn"), e.emptyIcon = this.crud.getBtnIcon("cancelBtn"), this.crud.isGroup || (e.dicFlag = !1, e.dicData = this.crud.DIC), C(e.dicFlag) || e.column.forEach((t) => {
|
|
1291
1293
|
t.boxType = this.boxType, t.dicFlag = t.dicFlag || e.dicFlag;
|
|
1292
1294
|
}), e;
|
|
1293
1295
|
},
|
|
@@ -1304,7 +1306,7 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1304
1306
|
return this.crud.tableOption.dialogDirection;
|
|
1305
1307
|
},
|
|
1306
1308
|
width() {
|
|
1307
|
-
return
|
|
1309
|
+
return r(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${q.dialogWidth}`);
|
|
1308
1310
|
},
|
|
1309
1311
|
dialogType() {
|
|
1310
1312
|
return this.isDrawer ? "ElDrawer" : "ElementDialog";
|
|
@@ -1326,7 +1328,7 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1326
1328
|
},
|
|
1327
1329
|
dialogTitle() {
|
|
1328
1330
|
let e = `${this.boxType}`;
|
|
1329
|
-
return
|
|
1331
|
+
return C(this.boxType) ? "" : this.crud.tableOption[`${e}Title`] || {
|
|
1330
1332
|
tipStartTitle: "当前表格已选择",
|
|
1331
1333
|
tipEndTitle: "项",
|
|
1332
1334
|
editTitle: "编 辑",
|
|
@@ -1342,8 +1344,8 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1342
1344
|
}
|
|
1343
1345
|
},
|
|
1344
1346
|
methods: {
|
|
1345
|
-
optVal:
|
|
1346
|
-
uploadFun:
|
|
1347
|
+
optVal: r,
|
|
1348
|
+
uploadFun: s,
|
|
1347
1349
|
submit() {
|
|
1348
1350
|
this.$refs.tableForm.submit();
|
|
1349
1351
|
},
|
|
@@ -1360,7 +1362,8 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1360
1362
|
"resetForm",
|
|
1361
1363
|
"validateField"
|
|
1362
1364
|
].forEach((e) => {
|
|
1363
|
-
|
|
1365
|
+
var t;
|
|
1366
|
+
this.crud[e] = (t = this.$refs.tableForm) == null ? void 0 : t[e];
|
|
1364
1367
|
});
|
|
1365
1368
|
},
|
|
1366
1369
|
handleChange() {
|
|
@@ -1370,7 +1373,7 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1370
1373
|
this.crud.$emit("tab-click", e, t);
|
|
1371
1374
|
},
|
|
1372
1375
|
handleFullScreen() {
|
|
1373
|
-
this.isDrawer && (
|
|
1376
|
+
this.isDrawer && (C(this.size) ? this.size = "100%" : this.size = ""), this.fullscreen = !this.fullscreen;
|
|
1374
1377
|
},
|
|
1375
1378
|
handleError(e) {
|
|
1376
1379
|
this.crud.$emit("error", e);
|
|
@@ -1379,13 +1382,13 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1379
1382
|
this.isAdd ? this.rowSave(t) : this.isEdit && this.rowUpdate(t);
|
|
1380
1383
|
},
|
|
1381
1384
|
rowSave(e) {
|
|
1382
|
-
this.crud.$emit("row-save",
|
|
1385
|
+
this.crud.$emit("row-save", n(this.crud.tableForm, ["$"]), this.closeDialog, e);
|
|
1383
1386
|
},
|
|
1384
1387
|
rowUpdate(e) {
|
|
1385
|
-
this.crud.$emit("row-update",
|
|
1388
|
+
this.crud.$emit("row-update", n(this.crud.tableForm, ["$"]), this.crud.tableIndex, this.closeDialog, e);
|
|
1386
1389
|
},
|
|
1387
1390
|
closeDialog(e) {
|
|
1388
|
-
e =
|
|
1391
|
+
e = t(e), e && (() => {
|
|
1389
1392
|
if (this.isEdit) {
|
|
1390
1393
|
let { parentList: t, index: n } = this.crud.findData(e[this.crud.rowKey]);
|
|
1391
1394
|
if (t) {
|
|
@@ -1415,12 +1418,12 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1415
1418
|
}
|
|
1416
1419
|
}
|
|
1417
1420
|
};
|
|
1418
|
-
function
|
|
1419
|
-
let o =
|
|
1420
|
-
return i.boxVisible ? (
|
|
1421
|
+
function je(e, t, n, r, i, a) {
|
|
1422
|
+
let o = B("FyForm"), s = B("FyButton");
|
|
1423
|
+
return i.boxVisible ? (L(), T(H(a.dialogType), N({
|
|
1421
1424
|
key: 0,
|
|
1422
|
-
|
|
1423
|
-
"onUpdate:
|
|
1425
|
+
modelValue: i.boxVisible,
|
|
1426
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.boxVisible = e),
|
|
1424
1427
|
"lock-scroll": "",
|
|
1425
1428
|
"show-full-screen": "",
|
|
1426
1429
|
"destroy-on-close": a.crud.tableOption.dialogDestroy,
|
|
@@ -1437,33 +1440,8 @@ function ke(e, t, n, r, i, a) {
|
|
|
1437
1440
|
modal: a.crud.tableOption.dialogModal,
|
|
1438
1441
|
"show-close": a.crud.tableOption.dialogCloseBtn
|
|
1439
1442
|
}, a.params, { "before-close": a.hide }), {
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
modelValue: a.crud.tableForm,
|
|
1443
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.crud.tableForm = e),
|
|
1444
|
-
status: i.disabled,
|
|
1445
|
-
"onUpdate:status": t[1] || (t[1] = (e) => i.disabled = e)
|
|
1446
|
-
}, a.uploadFun({}, a.crud), {
|
|
1447
|
-
option: a.option,
|
|
1448
|
-
onChange: a.handleChange,
|
|
1449
|
-
onSubmit: a.handleSubmit,
|
|
1450
|
-
onResetChange: a.hide,
|
|
1451
|
-
onTabClick: a.handleTabClick,
|
|
1452
|
-
onError: a.handleError
|
|
1453
|
-
}), E({ _: 2 }, [F(a.crud.formSlot, (t) => ({
|
|
1454
|
-
name: a.getSlotName(t),
|
|
1455
|
-
fn: V((n) => [I(e.$slots, t, M(k(Object.assign(n, { type: i.boxType }))))])
|
|
1456
|
-
}))]), 1040, [
|
|
1457
|
-
"modelValue",
|
|
1458
|
-
"status",
|
|
1459
|
-
"option",
|
|
1460
|
-
"onChange",
|
|
1461
|
-
"onSubmit",
|
|
1462
|
-
"onResetChange",
|
|
1463
|
-
"onTabClick",
|
|
1464
|
-
"onError"
|
|
1465
|
-
]), T("span", { class: j(["avue-dialog__footer", `avue-dialog__footer--${a.dialogMenuPosition}`]) }, [
|
|
1466
|
-
a.optVal(a.option.submitBtn, !0) && !a.isView ? (P(), S(s, {
|
|
1443
|
+
footer: W(() => [O("span", { class: P(["avue-dialog__footer", `avue-dialog__footer--${a.dialogMenuPosition}`]) }, [
|
|
1444
|
+
a.optVal(a.option.submitBtn, !0) && !a.isView ? (L(), T(s, {
|
|
1467
1445
|
key: 0,
|
|
1468
1446
|
loading: i.disabled,
|
|
1469
1447
|
size: a.crud.controlSize,
|
|
@@ -1471,38 +1449,64 @@ function ke(e, t, n, r, i, a) {
|
|
|
1471
1449
|
type: "primary",
|
|
1472
1450
|
onClick: a.submit
|
|
1473
1451
|
}, {
|
|
1474
|
-
default:
|
|
1452
|
+
default: W(() => [A(U(a.option.submitText), 1)]),
|
|
1475
1453
|
_: 1
|
|
1476
1454
|
}, 8, [
|
|
1477
1455
|
"loading",
|
|
1478
1456
|
"size",
|
|
1479
1457
|
"icon",
|
|
1480
1458
|
"onClick"
|
|
1481
|
-
])) :
|
|
1482
|
-
a.optVal(a.option.emptyBtn, !0) && !a.isView ? (
|
|
1459
|
+
])) : E("v-if", !0),
|
|
1460
|
+
a.optVal(a.option.emptyBtn, !0) && !a.isView ? (L(), T(s, {
|
|
1483
1461
|
key: 1,
|
|
1484
1462
|
disabled: i.disabled,
|
|
1485
1463
|
size: a.crud.controlSize,
|
|
1486
1464
|
icon: a.option.emptyIcon,
|
|
1487
1465
|
onClick: a.reset
|
|
1488
1466
|
}, {
|
|
1489
|
-
default:
|
|
1467
|
+
default: W(() => [A(U(a.option.emptyText), 1)]),
|
|
1490
1468
|
_: 1
|
|
1491
1469
|
}, 8, [
|
|
1492
1470
|
"disabled",
|
|
1493
1471
|
"size",
|
|
1494
1472
|
"icon",
|
|
1495
1473
|
"onClick"
|
|
1496
|
-
])) :
|
|
1497
|
-
|
|
1474
|
+
])) : E("v-if", !0),
|
|
1475
|
+
z(e.$slots, "menuForm", {
|
|
1498
1476
|
disabled: i.disabled,
|
|
1499
1477
|
size: a.crud.controlSize,
|
|
1500
1478
|
type: i.boxType
|
|
1501
1479
|
})
|
|
1502
1480
|
], 2)]),
|
|
1481
|
+
default: W(() => [j(o, N({
|
|
1482
|
+
ref: "tableForm",
|
|
1483
|
+
modelValue: a.crud.tableForm,
|
|
1484
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.crud.tableForm = e),
|
|
1485
|
+
status: i.disabled,
|
|
1486
|
+
"onUpdate:status": t[1] || (t[1] = (e) => i.disabled = e)
|
|
1487
|
+
}, a.uploadFun({}, a.crud), {
|
|
1488
|
+
option: a.option,
|
|
1489
|
+
onChange: a.handleChange,
|
|
1490
|
+
onSubmit: a.handleSubmit,
|
|
1491
|
+
onResetChange: a.hide,
|
|
1492
|
+
onTabClick: a.handleTabClick,
|
|
1493
|
+
onError: a.handleError
|
|
1494
|
+
}), k({ _: 2 }, [R(a.crud.formSlot, (t) => ({
|
|
1495
|
+
name: a.getSlotName(t),
|
|
1496
|
+
fn: W((n) => [z(e.$slots, t, F(M(Object.assign(n, { type: i.boxType }))))])
|
|
1497
|
+
}))]), 1040, [
|
|
1498
|
+
"modelValue",
|
|
1499
|
+
"status",
|
|
1500
|
+
"option",
|
|
1501
|
+
"onChange",
|
|
1502
|
+
"onSubmit",
|
|
1503
|
+
"onResetChange",
|
|
1504
|
+
"onTabClick",
|
|
1505
|
+
"onError"
|
|
1506
|
+
])]),
|
|
1503
1507
|
_: 3
|
|
1504
1508
|
}, 16, [
|
|
1505
|
-
"
|
|
1509
|
+
"modelValue",
|
|
1506
1510
|
"destroy-on-close",
|
|
1507
1511
|
"wrapper-closable",
|
|
1508
1512
|
"direction",
|
|
@@ -1514,9 +1518,9 @@ function ke(e, t, n, r, i, a) {
|
|
|
1514
1518
|
"modal",
|
|
1515
1519
|
"show-close",
|
|
1516
1520
|
"before-close"
|
|
1517
|
-
])) :
|
|
1521
|
+
])) : E("v-if", !0);
|
|
1518
1522
|
}
|
|
1519
|
-
var
|
|
1523
|
+
var Me = /* @__PURE__ */ v(Ae, [["render", je]]), Ne = {
|
|
1520
1524
|
name: "DialogColumn",
|
|
1521
1525
|
inject: ["crud"],
|
|
1522
1526
|
data() {
|
|
@@ -1565,46 +1569,46 @@ var Ae = /* @__PURE__ */ e(Oe, [["render", ke]]), je = {
|
|
|
1565
1569
|
["hide", "filters"].includes(e) && this.crud.refreshTable();
|
|
1566
1570
|
},
|
|
1567
1571
|
rowDrop() {
|
|
1568
|
-
let e = this.$refs.table.$el.querySelectorAll(
|
|
1572
|
+
let e = this.$refs.table.$el.querySelectorAll(q.dropRowClass)[0];
|
|
1569
1573
|
this.crud.tableDrop("column", e, (e) => {
|
|
1570
1574
|
let t = e.oldIndex, n = e.newIndex;
|
|
1571
1575
|
this.crud.headerSort(t, n), this.crud.refreshTable(() => this.rowDrop());
|
|
1572
1576
|
});
|
|
1573
1577
|
}
|
|
1574
1578
|
}
|
|
1575
|
-
},
|
|
1576
|
-
function
|
|
1577
|
-
let o =
|
|
1578
|
-
return i.columnBox ? (
|
|
1579
|
-
|
|
1580
|
-
"onUpdate:
|
|
1579
|
+
}, Pe = { key: 0 };
|
|
1580
|
+
function Fe(e, t, n, r, i, a) {
|
|
1581
|
+
let o = B("ElTableColumn"), s = B("ElCheckbox"), c = B("ElTable"), l = B("ElDrawer");
|
|
1582
|
+
return i.columnBox ? (L(), D("div", Pe, [j(l, {
|
|
1583
|
+
modelValue: i.columnBox,
|
|
1584
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.columnBox = e),
|
|
1581
1585
|
class: "avue-crud__dialog avue-crud__column avue-dialog",
|
|
1582
1586
|
"lock-scroll": "",
|
|
1583
1587
|
"append-to-body": "",
|
|
1584
1588
|
title: "列显隐",
|
|
1585
1589
|
size: a.crud.isMobile ? "100%" : "40%"
|
|
1586
1590
|
}, {
|
|
1587
|
-
default:
|
|
1591
|
+
default: W(() => [j(c, {
|
|
1588
1592
|
ref: "table",
|
|
1589
1593
|
data: i.data,
|
|
1590
1594
|
height: "100%",
|
|
1591
1595
|
border: ""
|
|
1592
1596
|
}, {
|
|
1593
|
-
default:
|
|
1597
|
+
default: W(() => [j(o, {
|
|
1594
1598
|
key: "label",
|
|
1595
1599
|
align: "center",
|
|
1596
1600
|
width: "100",
|
|
1597
1601
|
"header-align": "center",
|
|
1598
1602
|
prop: "label",
|
|
1599
1603
|
label: "列名"
|
|
1600
|
-
}), (
|
|
1604
|
+
}), (L(!0), D(w, null, R(a.defaultColumn, (e, t) => (L(), D(w, null, [e.hide === !0 ? E("v-if", !0) : (L(), T(o, {
|
|
1601
1605
|
key: t,
|
|
1602
1606
|
label: e.label,
|
|
1603
1607
|
prop: e.prop,
|
|
1604
1608
|
align: "center",
|
|
1605
1609
|
"header-align": "center"
|
|
1606
1610
|
}, {
|
|
1607
|
-
default:
|
|
1611
|
+
default: W(({ row: t }) => [j(s, {
|
|
1608
1612
|
modelValue: a.crud.objectOption[t.prop][e.prop],
|
|
1609
1613
|
"onUpdate:modelValue": (n) => a.crud.objectOption[t.prop][e.prop] = n,
|
|
1610
1614
|
onChange: (t) => a.handleChange(e.prop)
|
|
@@ -1618,10 +1622,11 @@ function Ne(e, t, n, r, i, a) {
|
|
|
1618
1622
|
_: 1
|
|
1619
1623
|
}, 8, ["data"])]),
|
|
1620
1624
|
_: 1
|
|
1621
|
-
}, 8, ["
|
|
1625
|
+
}, 8, ["modelValue", "size"])])) : E("v-if", !0);
|
|
1622
1626
|
}
|
|
1623
|
-
var
|
|
1627
|
+
var Ie = /* @__PURE__ */ v(Ne, [["render", Fe]]), Le = {
|
|
1624
1628
|
name: "DialogExcel",
|
|
1629
|
+
components: { ElementDialog: b },
|
|
1625
1630
|
inject: ["crud"],
|
|
1626
1631
|
data() {
|
|
1627
1632
|
return {
|
|
@@ -1643,12 +1648,12 @@ var Pe = /* @__PURE__ */ e(je, [["render", Ne]]), $ = {
|
|
|
1643
1648
|
}), this.box = !1;
|
|
1644
1649
|
},
|
|
1645
1650
|
handleSum() {
|
|
1646
|
-
let e = this.crud.tableOption,
|
|
1647
|
-
return this.form.params.includes("data") &&
|
|
1648
|
-
let a = r
|
|
1649
|
-
|
|
1651
|
+
let e = this.crud.tableOption, n = this.crud.propOption, r = this.form.type ? this.crud.list : this.crud.tableSelect, i = [];
|
|
1652
|
+
return this.form.params.includes("data") && r.forEach((r) => {
|
|
1653
|
+
let a = t(r);
|
|
1654
|
+
n.forEach((t) => {
|
|
1650
1655
|
let n = t.parentProp ? (this.crud.cascaderDIC[t.$index] || {})[t.prop] : this.crud.DIC[t.prop];
|
|
1651
|
-
a[t.prop] =
|
|
1656
|
+
a[t.prop] = l(a, t, e, n);
|
|
1652
1657
|
}), i.push(a);
|
|
1653
1658
|
}), this.form.params.includes("sum") && e.showSummary && i.push(this.crud.sumsList), i;
|
|
1654
1659
|
},
|
|
@@ -1719,68 +1724,68 @@ var Pe = /* @__PURE__ */ e(je, [["render", Ne]]), $ = {
|
|
|
1719
1724
|
}, this.form.type = this.crud.selectLen === 0;
|
|
1720
1725
|
},
|
|
1721
1726
|
getColumnOption() {
|
|
1722
|
-
let e =
|
|
1723
|
-
e.forEach((
|
|
1724
|
-
let a =
|
|
1725
|
-
a && !Array.isArray(a) ? delete
|
|
1727
|
+
let e = t(this.crud.columnOption), n = [], r = (e = []) => {
|
|
1728
|
+
e.forEach((t, i) => {
|
|
1729
|
+
let a = t.children;
|
|
1730
|
+
a && !Array.isArray(a) ? delete t.children : t.showColumn === !1 ? e.splice(i, 1) : (n.push(t.prop), t.children && r(a));
|
|
1726
1731
|
});
|
|
1727
1732
|
};
|
|
1728
|
-
|
|
1733
|
+
r(e), this.columnOption = e, this.form.prop = n;
|
|
1729
1734
|
},
|
|
1730
1735
|
getColumn() {
|
|
1731
|
-
let e =
|
|
1736
|
+
let e = t(this.columnOption), n = this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();
|
|
1732
1737
|
if (!this.form.params) return [];
|
|
1733
1738
|
if (this.form.params.includes("headers")) {
|
|
1734
|
-
let
|
|
1739
|
+
let t = (e = []) => {
|
|
1735
1740
|
e.forEach((r, i) => {
|
|
1736
|
-
|
|
1741
|
+
n.includes(r.prop) ? r.children && t(r.children) : e.splice(i, 1);
|
|
1737
1742
|
});
|
|
1738
1743
|
};
|
|
1739
|
-
return
|
|
1744
|
+
return t(e), e;
|
|
1740
1745
|
} else {
|
|
1741
|
-
let
|
|
1746
|
+
let t = [], r = (e = []) => {
|
|
1742
1747
|
e.forEach((e) => {
|
|
1743
|
-
e.children ? r(e.children) :
|
|
1748
|
+
e.children ? r(e.children) : n.includes(e.prop) && t.push(e);
|
|
1744
1749
|
});
|
|
1745
1750
|
};
|
|
1746
|
-
return r(e),
|
|
1751
|
+
return r(e), t;
|
|
1747
1752
|
}
|
|
1748
1753
|
}
|
|
1749
1754
|
}
|
|
1750
|
-
},
|
|
1751
|
-
function
|
|
1752
|
-
let o =
|
|
1753
|
-
return i.box ? (
|
|
1754
|
-
|
|
1755
|
-
"onUpdate:
|
|
1755
|
+
}, Re = { key: 0 }, ze = { class: "dialog-footer" };
|
|
1756
|
+
function Be(e, t, n, r, i, a) {
|
|
1757
|
+
let o = B("FyForm"), s = B("FyButton"), c = B("ElementDialog");
|
|
1758
|
+
return i.box ? (L(), D("div", Re, [j(c, {
|
|
1759
|
+
modelValue: i.box,
|
|
1760
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.box = e),
|
|
1756
1761
|
title: "导出",
|
|
1757
1762
|
"lock-scroll": "",
|
|
1758
1763
|
class: "avue-dialog",
|
|
1759
1764
|
width: a.crud.isMobile ? "100%" : "30%"
|
|
1760
1765
|
}, {
|
|
1761
|
-
footer:
|
|
1766
|
+
footer: W(() => [O("span", ze, [j(s, {
|
|
1762
1767
|
type: "primary",
|
|
1763
1768
|
size: a.crud.isMediumSize,
|
|
1764
1769
|
onClick: a.handleSubmit
|
|
1765
1770
|
}, {
|
|
1766
|
-
default:
|
|
1771
|
+
default: W(() => [...t[3] || (t[3] = [A("确定", -1)])]),
|
|
1767
1772
|
_: 1
|
|
1768
|
-
}, 8, ["size", "onClick"]),
|
|
1773
|
+
}, 8, ["size", "onClick"]), j(s, {
|
|
1769
1774
|
size: a.crud.isMediumSize,
|
|
1770
1775
|
onClick: t[1] || (t[1] = (e) => i.box = !1)
|
|
1771
1776
|
}, {
|
|
1772
|
-
default:
|
|
1777
|
+
default: W(() => [...t[4] || (t[4] = [A("取消", -1)])]),
|
|
1773
1778
|
_: 1
|
|
1774
1779
|
}, 8, ["size"])])]),
|
|
1775
|
-
default:
|
|
1780
|
+
default: W(() => [j(o, {
|
|
1776
1781
|
modelValue: i.form,
|
|
1777
1782
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.form = e),
|
|
1778
1783
|
option: i.option
|
|
1779
1784
|
}, null, 8, ["modelValue", "option"])]),
|
|
1780
1785
|
_: 1
|
|
1781
|
-
}, 8, ["
|
|
1786
|
+
}, 8, ["modelValue", "width"])])) : E("v-if", !0);
|
|
1782
1787
|
}
|
|
1783
|
-
var
|
|
1788
|
+
var Ve = /* @__PURE__ */ v(Le, [["render", Be]]), $ = {
|
|
1784
1789
|
name: "DialogFilter",
|
|
1785
1790
|
inject: ["crud"],
|
|
1786
1791
|
data() {
|
|
@@ -1831,7 +1836,7 @@ var Re = /* @__PURE__ */ e($, [["render", Le]]), ze = {
|
|
|
1831
1836
|
},
|
|
1832
1837
|
getColumnOption() {
|
|
1833
1838
|
let e = [];
|
|
1834
|
-
|
|
1839
|
+
t(this.crud.propOption).forEach((t) => {
|
|
1835
1840
|
t.showColumn !== !1 && e.push(Object.assign(t, { value: t.prop }));
|
|
1836
1841
|
}), this.columnOption = e, this.columnObj = this.columnOption[0];
|
|
1837
1842
|
},
|
|
@@ -1868,58 +1873,58 @@ var Re = /* @__PURE__ */ e($, [["render", Le]]), ze = {
|
|
|
1868
1873
|
});
|
|
1869
1874
|
}
|
|
1870
1875
|
}
|
|
1871
|
-
},
|
|
1872
|
-
function
|
|
1873
|
-
let o =
|
|
1874
|
-
return i.box ? (
|
|
1875
|
-
|
|
1876
|
-
"onUpdate:
|
|
1877
|
-
class:
|
|
1876
|
+
}, He = { key: 0 }, Ue = { class: "avue-crud__filter-menu" };
|
|
1877
|
+
function We(e, t, n, r, i, a) {
|
|
1878
|
+
let o = B("FyButton"), s = B("ElButtonGroup"), c = B("FySelect"), l = B("FyInput"), u = B("ElCol"), d = B("ElRow"), f = B("ElDrawer");
|
|
1879
|
+
return i.box ? (L(), D("div", He, [j(f, {
|
|
1880
|
+
modelValue: i.box,
|
|
1881
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => i.box = e),
|
|
1882
|
+
class: P([["avue-crud__dialog", "avue-crud__filter"], "avue-dialog"]),
|
|
1878
1883
|
"lock-scroll": "",
|
|
1879
1884
|
"append-to-body": "",
|
|
1880
1885
|
title: "过滤条件",
|
|
1881
1886
|
size: a.crud.isMobile ? "100%" : "60%"
|
|
1882
1887
|
}, {
|
|
1883
|
-
default:
|
|
1884
|
-
default:
|
|
1885
|
-
|
|
1886
|
-
default:
|
|
1887
|
-
|
|
1888
|
+
default: W(() => [j(d, { span: 24 }, {
|
|
1889
|
+
default: W(() => [
|
|
1890
|
+
O("div", Ue, [j(s, null, {
|
|
1891
|
+
default: W(() => [
|
|
1892
|
+
j(o, {
|
|
1888
1893
|
type: "primary",
|
|
1889
1894
|
size: a.crud.isMediumSize,
|
|
1890
1895
|
onClick: a.handleAdd
|
|
1891
1896
|
}, {
|
|
1892
|
-
default:
|
|
1897
|
+
default: W(() => [...t[2] || (t[2] = [A(" 新增条件 ", -1)])]),
|
|
1893
1898
|
_: 1
|
|
1894
1899
|
}, 8, ["size", "onClick"]),
|
|
1895
|
-
|
|
1900
|
+
j(o, {
|
|
1896
1901
|
type: "primary",
|
|
1897
1902
|
size: a.crud.isMediumSize,
|
|
1898
1903
|
onClick: a.handleClear
|
|
1899
1904
|
}, {
|
|
1900
|
-
default:
|
|
1905
|
+
default: W(() => [...t[3] || (t[3] = [A(" 清空条件 ", -1)])]),
|
|
1901
1906
|
_: 1
|
|
1902
1907
|
}, 8, ["size", "onClick"]),
|
|
1903
|
-
|
|
1908
|
+
j(o, {
|
|
1904
1909
|
type: "primary",
|
|
1905
1910
|
size: a.crud.isMediumSize,
|
|
1906
1911
|
onClick: a.handleValueClear
|
|
1907
1912
|
}, {
|
|
1908
|
-
default:
|
|
1913
|
+
default: W(() => [...t[4] || (t[4] = [A(" 清空数据 ", -1)])]),
|
|
1909
1914
|
_: 1
|
|
1910
1915
|
}, 8, ["size", "onClick"])
|
|
1911
1916
|
]),
|
|
1912
1917
|
_: 1
|
|
1913
1918
|
})]),
|
|
1914
|
-
(
|
|
1919
|
+
(L(!0), D(w, null, R(i.list, (e, t) => (L(), T(u, {
|
|
1915
1920
|
key: t,
|
|
1916
1921
|
md: 12,
|
|
1917
1922
|
xs: 24,
|
|
1918
1923
|
sm: 12,
|
|
1919
1924
|
class: "avue-crud__filter-item"
|
|
1920
1925
|
}, {
|
|
1921
|
-
default:
|
|
1922
|
-
|
|
1926
|
+
default: W(() => [
|
|
1927
|
+
j(c, {
|
|
1923
1928
|
modelValue: e.text,
|
|
1924
1929
|
"onUpdate:modelValue": (t) => e.text = t,
|
|
1925
1930
|
dic: i.columnOption,
|
|
@@ -1934,7 +1939,7 @@ function He(e, t, n, r, i, a) {
|
|
|
1934
1939
|
"size",
|
|
1935
1940
|
"onChange"
|
|
1936
1941
|
]),
|
|
1937
|
-
|
|
1942
|
+
j(c, {
|
|
1938
1943
|
modelValue: e.symbol,
|
|
1939
1944
|
"onUpdate:modelValue": (t) => e.symbol = t,
|
|
1940
1945
|
class: "avue-crud__filter-symbol",
|
|
@@ -1947,7 +1952,7 @@ function He(e, t, n, r, i, a) {
|
|
|
1947
1952
|
"dic",
|
|
1948
1953
|
"size"
|
|
1949
1954
|
]),
|
|
1950
|
-
|
|
1955
|
+
j(l, {
|
|
1951
1956
|
modelValue: e.value,
|
|
1952
1957
|
"onUpdate:modelValue": (t) => e.value = t,
|
|
1953
1958
|
size: a.crud.isMediumSize,
|
|
@@ -1957,7 +1962,7 @@ function He(e, t, n, r, i, a) {
|
|
|
1957
1962
|
"onUpdate:modelValue",
|
|
1958
1963
|
"size"
|
|
1959
1964
|
]),
|
|
1960
|
-
|
|
1965
|
+
j(o, {
|
|
1961
1966
|
type: "danger",
|
|
1962
1967
|
class: "avue-crud__filter-icon",
|
|
1963
1968
|
circle: "",
|
|
@@ -1967,22 +1972,22 @@ function He(e, t, n, r, i, a) {
|
|
|
1967
1972
|
]),
|
|
1968
1973
|
_: 2
|
|
1969
1974
|
}, 1024))), 128)),
|
|
1970
|
-
|
|
1975
|
+
j(u, {
|
|
1971
1976
|
span: 24,
|
|
1972
1977
|
class: "avue-form__menu avue-form__menu--right"
|
|
1973
1978
|
}, {
|
|
1974
|
-
default:
|
|
1979
|
+
default: W(() => [j(o, {
|
|
1975
1980
|
type: "primary",
|
|
1976
1981
|
size: a.crud.isMediumSize,
|
|
1977
1982
|
onClick: a.handleSubmit
|
|
1978
1983
|
}, {
|
|
1979
|
-
default:
|
|
1984
|
+
default: W(() => [...t[5] || (t[5] = [A(" 确 定 ", -1)])]),
|
|
1980
1985
|
_: 1
|
|
1981
|
-
}, 8, ["size", "onClick"]),
|
|
1986
|
+
}, 8, ["size", "onClick"]), j(o, {
|
|
1982
1987
|
size: a.crud.isMediumSize,
|
|
1983
1988
|
onClick: t[0] || (t[0] = (e) => i.box = !1)
|
|
1984
1989
|
}, {
|
|
1985
|
-
default:
|
|
1990
|
+
default: W(() => [...t[6] || (t[6] = [A(" 取 消 ", -1)])]),
|
|
1986
1991
|
_: 1
|
|
1987
1992
|
}, 8, ["size"])]),
|
|
1988
1993
|
_: 1
|
|
@@ -1991,26 +1996,27 @@ function He(e, t, n, r, i, a) {
|
|
|
1991
1996
|
_: 1
|
|
1992
1997
|
})]),
|
|
1993
1998
|
_: 1
|
|
1994
|
-
}, 8, ["
|
|
1999
|
+
}, 8, ["modelValue", "size"])])) : E("v-if", !0);
|
|
1995
2000
|
}
|
|
1996
2001
|
//#endregion
|
|
1997
2002
|
//#region src/components/fy-from/crud/FyCurd.vue
|
|
1998
|
-
var
|
|
2003
|
+
var Ge = {
|
|
1999
2004
|
name: "FyCurd",
|
|
2000
2005
|
components: {
|
|
2001
|
-
DialogFilter: /* @__PURE__ */
|
|
2002
|
-
DialogExcel:
|
|
2003
|
-
DialogColumn:
|
|
2004
|
-
FyDialogForm:
|
|
2005
|
-
TablePage:
|
|
2006
|
-
ColumnMenu:
|
|
2007
|
-
ColumnDefault:
|
|
2008
|
-
Column:
|
|
2009
|
-
HeaderMenu:
|
|
2010
|
-
HeaderSearch: re
|
|
2006
|
+
DialogFilter: /* @__PURE__ */ v($, [["render", We]]),
|
|
2007
|
+
DialogExcel: Ve,
|
|
2008
|
+
DialogColumn: Ie,
|
|
2009
|
+
FyDialogForm: Me,
|
|
2010
|
+
TablePage: ke,
|
|
2011
|
+
ColumnMenu: Ee,
|
|
2012
|
+
ColumnDefault: Ce,
|
|
2013
|
+
Column: be,
|
|
2014
|
+
HeaderMenu: oe,
|
|
2015
|
+
HeaderSearch: re,
|
|
2016
|
+
FyButton: y
|
|
2011
2017
|
},
|
|
2012
|
-
directives: { permission:
|
|
2013
|
-
mixins: [
|
|
2018
|
+
directives: { permission: x },
|
|
2019
|
+
mixins: [c],
|
|
2014
2020
|
provide() {
|
|
2015
2021
|
return { crud: this };
|
|
2016
2022
|
},
|
|
@@ -2067,7 +2073,7 @@ var Ue = {
|
|
|
2067
2073
|
return {
|
|
2068
2074
|
reload: Math.random(),
|
|
2069
2075
|
cellForm: { list: [] },
|
|
2070
|
-
config:
|
|
2076
|
+
config: q,
|
|
2071
2077
|
list: [],
|
|
2072
2078
|
listError: {},
|
|
2073
2079
|
tableForm: {},
|
|
@@ -2097,13 +2103,13 @@ var Ue = {
|
|
|
2097
2103
|
return this.tableOption.columnSort;
|
|
2098
2104
|
},
|
|
2099
2105
|
rowParentKey() {
|
|
2100
|
-
return this.option.rowParentKey ||
|
|
2106
|
+
return this.option.rowParentKey || o.rowParentKey;
|
|
2101
2107
|
},
|
|
2102
2108
|
childrenKey() {
|
|
2103
|
-
return this.treeProps.children ||
|
|
2109
|
+
return this.treeProps.children || o.children;
|
|
2104
2110
|
},
|
|
2105
2111
|
hasChildrenKey() {
|
|
2106
|
-
return this.treeProps.hasChildren ||
|
|
2112
|
+
return this.treeProps.hasChildren || o.hasChildren;
|
|
2107
2113
|
},
|
|
2108
2114
|
treeProps() {
|
|
2109
2115
|
return this.tableOption.treeProps || {};
|
|
@@ -2138,7 +2144,7 @@ var Ue = {
|
|
|
2138
2144
|
Array.isArray(n.children) ? t(n.children) : e.push(n);
|
|
2139
2145
|
});
|
|
2140
2146
|
}
|
|
2141
|
-
return t(this.columnOption), e =
|
|
2147
|
+
return t(this.columnOption), e = g(e), e;
|
|
2142
2148
|
},
|
|
2143
2149
|
isShowSummary() {
|
|
2144
2150
|
return this.option.showSummary;
|
|
@@ -2202,8 +2208,8 @@ var Ue = {
|
|
|
2202
2208
|
this.dataInit(), this.getTableHeight(), this.refreshTable();
|
|
2203
2209
|
},
|
|
2204
2210
|
methods: {
|
|
2205
|
-
setPx:
|
|
2206
|
-
optVal:
|
|
2211
|
+
setPx: e,
|
|
2212
|
+
optVal: r,
|
|
2207
2213
|
handleValidate(e, t, n) {
|
|
2208
2214
|
this.listError[e] || (this.listError[e] = {
|
|
2209
2215
|
valid: !1,
|
|
@@ -2211,7 +2217,7 @@ var Ue = {
|
|
|
2211
2217
|
}), this.listError[e].valid = !t, this.listError[e].msg = n;
|
|
2212
2218
|
},
|
|
2213
2219
|
getPermission(e, t, n) {
|
|
2214
|
-
return typeof this.permission == "function" ? this.permission(e, t, n) :
|
|
2220
|
+
return typeof this.permission == "function" ? this.permission(e, t, n) : C(this.permission[e]) ? !0 : this.permission[e];
|
|
2215
2221
|
},
|
|
2216
2222
|
getTableHeight() {
|
|
2217
2223
|
this.isAutoHeight ? this.$nextTick(() => {
|
|
@@ -2235,17 +2241,17 @@ var Ue = {
|
|
|
2235
2241
|
});
|
|
2236
2242
|
},
|
|
2237
2243
|
menuIcon(e) {
|
|
2238
|
-
return
|
|
2244
|
+
return r(this.tableOption[`${e}Text`], f(`crud.${e}`));
|
|
2239
2245
|
},
|
|
2240
2246
|
getBtnIcon(e) {
|
|
2241
2247
|
let t = `${e}Icon`;
|
|
2242
|
-
return this.tableOption[t] ||
|
|
2248
|
+
return this.tableOption[t] || q[t];
|
|
2243
2249
|
},
|
|
2244
2250
|
validateField(e) {
|
|
2245
2251
|
return this.$refs.dialogForm.$refs.tableForm.validateField(e);
|
|
2246
2252
|
},
|
|
2247
2253
|
selectClear() {
|
|
2248
|
-
this.$emit("selection-clear",
|
|
2254
|
+
this.$emit("selection-clear", t(this.tableSelect)), this.$refs.table.clearSelection();
|
|
2249
2255
|
},
|
|
2250
2256
|
toggleRowSelection(e, t) {
|
|
2251
2257
|
this.$refs.table.toggleRowSelection(e, t);
|
|
@@ -2257,8 +2263,8 @@ var Ue = {
|
|
|
2257
2263
|
this.$refs.table.setCurrentRow(e);
|
|
2258
2264
|
},
|
|
2259
2265
|
dataInit() {
|
|
2260
|
-
this.list = this.data, this.list.forEach((e,
|
|
2261
|
-
e.$cellEdit && !this.cascaderFormList[
|
|
2266
|
+
this.list = this.data, this.list.forEach((e, n) => {
|
|
2267
|
+
e.$cellEdit && !this.cascaderFormList[n] && (this.cascaderFormList[n] = t(e)), e.$cellEdit = e.$cellEdit || !1, e.$index = n;
|
|
2262
2268
|
});
|
|
2263
2269
|
},
|
|
2264
2270
|
headerDragend(e, t, n, r) {
|
|
@@ -2331,31 +2337,31 @@ var Ue = {
|
|
|
2331
2337
|
this.$emit("cell-dblclick", e, t, n, r);
|
|
2332
2338
|
},
|
|
2333
2339
|
rowCellAdd(e = {}) {
|
|
2334
|
-
let
|
|
2335
|
-
e =
|
|
2340
|
+
let n = this.list.length, r = h(this.propOption).tableForm;
|
|
2341
|
+
e = t({
|
|
2336
2342
|
$cellEdit: !0,
|
|
2337
|
-
$index:
|
|
2338
|
-
...
|
|
2343
|
+
$index: n,
|
|
2344
|
+
...r,
|
|
2339
2345
|
...e
|
|
2340
2346
|
}), this.list.push(e);
|
|
2341
2347
|
},
|
|
2342
2348
|
rowCancel(e, t) {
|
|
2343
|
-
|
|
2349
|
+
C(e[this.rowKey]) ? (this.list.splice(t, 1), delete this.cascaderDIC[t]) : (this.cascaderFormList[t].$cellEdit = !1, this.cascaderDIC[t] = this.cascaderDicList[t], this.list[t] = this.cascaderFormList[t]), delete this.cascaderDicList[t], delete this.cascaderFormList[t], this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1);
|
|
2344
2350
|
},
|
|
2345
2351
|
rowCell(e, t) {
|
|
2346
2352
|
e.$cellEdit ? this.rowCellUpdate(e, t) : this.rowCellEdit(e, t);
|
|
2347
2353
|
},
|
|
2348
|
-
rowCellUpdate(e,
|
|
2349
|
-
e =
|
|
2350
|
-
let
|
|
2351
|
-
this.btnDisabledList[
|
|
2354
|
+
rowCellUpdate(e, n) {
|
|
2355
|
+
e = t(e);
|
|
2356
|
+
let r = this.validateCellField(n), i = () => {
|
|
2357
|
+
this.btnDisabledList[n] = !1, this.btnDisabled = !1, this.list[n].$cellEdit = !1, this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(n), 1), delete this.cascaderFormList[n];
|
|
2352
2358
|
}, a = () => {
|
|
2353
|
-
this.btnDisabledList[
|
|
2359
|
+
this.btnDisabledList[n] = !1, this.btnDisabled = !1;
|
|
2354
2360
|
};
|
|
2355
|
-
|
|
2361
|
+
r && (this.btnDisabledList[n] = !0, this.btnDisabled = !0, C(e[this.rowKey]) ? this.$emit("row-save", e, i, a) : this.$emit("row-update", e, n, i, a));
|
|
2356
2362
|
},
|
|
2357
|
-
rowCellEdit(e,
|
|
2358
|
-
e.$cellEdit = !0, this.cascaderFormList[
|
|
2363
|
+
rowCellEdit(e, n) {
|
|
2364
|
+
e.$cellEdit = !0, this.cascaderFormList[n] = t(e), this.cascaderDicList[n] = t(this.cascaderDIC[n]);
|
|
2359
2365
|
},
|
|
2360
2366
|
validateCellForm() {
|
|
2361
2367
|
return new Promise((e) => {
|
|
@@ -2387,16 +2393,16 @@ var Ue = {
|
|
|
2387
2393
|
return this.$refs.dialogForm.$refs.tableForm.getPropRef(e);
|
|
2388
2394
|
},
|
|
2389
2395
|
setVal() {
|
|
2390
|
-
this.$emit("
|
|
2396
|
+
this.$emit("update:modelValue", this.tableForm), this.$emit("change", this.tableForm);
|
|
2391
2397
|
},
|
|
2392
|
-
rowEdit(e,
|
|
2393
|
-
this.tableForm =
|
|
2398
|
+
rowEdit(e, n) {
|
|
2399
|
+
this.tableForm = t(e), this.tableIndex = n, this.setVal(), this.$refs.dialogForm.show("edit");
|
|
2394
2400
|
},
|
|
2395
2401
|
rowCopy(e) {
|
|
2396
|
-
this.tableForm =
|
|
2402
|
+
this.tableForm = t(e), delete this.tableForm[this.rowKey], this.tableIndex = -1, this.setVal(), this.$refs.dialogForm.show("add");
|
|
2397
2403
|
},
|
|
2398
|
-
rowView(e,
|
|
2399
|
-
this.tableForm =
|
|
2404
|
+
rowView(e, n) {
|
|
2405
|
+
this.tableForm = t(e), this.tableIndex = n, this.setVal(), this.$refs.dialogForm.show("view");
|
|
2400
2406
|
},
|
|
2401
2407
|
rowDel(e, t) {
|
|
2402
2408
|
this.$emit("row-del", e, t, () => {
|
|
@@ -2439,12 +2445,12 @@ var Ue = {
|
|
|
2439
2445
|
tableDrop(e, t, n) {
|
|
2440
2446
|
if (!(this.isSortable !== !0 && (e === "row" && !this.isRowSort || e === "column" && !this.isColumnSort))) {
|
|
2441
2447
|
if (!window.Sortable) {
|
|
2442
|
-
|
|
2448
|
+
_.logs("Sortable");
|
|
2443
2449
|
return;
|
|
2444
2450
|
}
|
|
2445
2451
|
window.Sortable.create(t, {
|
|
2446
|
-
ghostClass:
|
|
2447
|
-
chosenClass:
|
|
2452
|
+
ghostClass: q.ghostClass,
|
|
2453
|
+
chosenClass: q.ghostClass,
|
|
2448
2454
|
animation: 500,
|
|
2449
2455
|
delay: 0,
|
|
2450
2456
|
onEnd: (e) => n(e)
|
|
@@ -2465,70 +2471,71 @@ var Ue = {
|
|
|
2465
2471
|
return n(this.list), t;
|
|
2466
2472
|
}
|
|
2467
2473
|
}
|
|
2468
|
-
},
|
|
2469
|
-
function
|
|
2470
|
-
let o =
|
|
2471
|
-
return
|
|
2472
|
-
e.tableOption.title ? (
|
|
2474
|
+
}, Ke = { class: "avue-crud avue-crud--card" }, qe = { class: "avue-crud__tip-name" }, Je = { class: "avue-crud__tip-count" };
|
|
2475
|
+
function Ye(e, t, n, r, i, a) {
|
|
2476
|
+
let o = B("HeaderSearch"), s = B("HeaderMenu"), c = B("FyButton"), l = B("ElTag"), u = B("ColumnDefault"), d = B("ColumnMenu"), f = B("Column"), p = B("ElEmpty"), m = B("ElTable"), h = B("ElForm"), g = B("TablePage"), _ = B("FyDialogForm"), v = B("DialogColumn"), y = B("DialogExcel"), b = B("DialogFilter"), x = V("permission"), S = V("loading");
|
|
2477
|
+
return L(), D("div", Ke, [
|
|
2478
|
+
e.tableOption.title ? (L(), T(H(e.tableOption.titleSize || "h2"), {
|
|
2473
2479
|
key: 0,
|
|
2474
|
-
style:
|
|
2480
|
+
style: I(e.tableOption.titleStyle)
|
|
2475
2481
|
}, {
|
|
2476
|
-
default:
|
|
2482
|
+
default: W(() => [A(U(e.tableOption.title), 1)]),
|
|
2477
2483
|
_: 1
|
|
2478
|
-
}, 8, ["style"])) :
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
search:
|
|
2482
|
-
searchMenu:
|
|
2484
|
+
}, 8, ["style"])) : E("v-if", !0),
|
|
2485
|
+
E(" 搜索组件 "),
|
|
2486
|
+
j(o, { ref: "headerSearch" }, k({
|
|
2487
|
+
search: W((t) => [z(e.$slots, "search", F(M(t)))]),
|
|
2488
|
+
searchMenu: W((t) => [z(e.$slots, "searchMenu", F(M(t)))]),
|
|
2483
2489
|
_: 2
|
|
2484
|
-
}, [
|
|
2490
|
+
}, [R(a.searchSlot, (t) => ({
|
|
2485
2491
|
name: t,
|
|
2486
|
-
fn:
|
|
2492
|
+
fn: W((n) => [z(e.$slots, t, F(M(n)))])
|
|
2487
2493
|
}))]), 1536),
|
|
2488
|
-
|
|
2489
|
-
a.optVal(e.tableOption.header, !0) ? (
|
|
2494
|
+
E(" 表格功能列 "),
|
|
2495
|
+
a.optVal(e.tableOption.header, !0) ? (L(), T(s, {
|
|
2490
2496
|
key: 1,
|
|
2491
2497
|
ref: "headerMenu"
|
|
2492
2498
|
}, {
|
|
2493
|
-
menuLeft:
|
|
2494
|
-
menuRight:
|
|
2499
|
+
menuLeft: W((t) => [z(e.$slots, "menuLeft", F(M(t)))]),
|
|
2500
|
+
menuRight: W((t) => [z(e.$slots, "menuRight", F(M(t)))]),
|
|
2495
2501
|
_: 3
|
|
2496
|
-
}, 512)) :
|
|
2497
|
-
a.optVal(e.tableOption.tip, i.config.tip) && e.tableOption.selection ? (
|
|
2502
|
+
}, 512)) : E("v-if", !0),
|
|
2503
|
+
a.optVal(e.tableOption.tip, i.config.tip) && e.tableOption.selection ? (L(), T(l, {
|
|
2498
2504
|
key: 2,
|
|
2505
|
+
"disable-transitions": "",
|
|
2499
2506
|
class: "avue-crud__tip"
|
|
2500
2507
|
}, {
|
|
2501
|
-
default:
|
|
2502
|
-
|
|
2503
|
-
t[0] || (t[0] =
|
|
2504
|
-
|
|
2505
|
-
t[1] || (t[1] =
|
|
2508
|
+
default: W(() => [
|
|
2509
|
+
O("span", qe, [
|
|
2510
|
+
t[0] || (t[0] = A(" 当前表格已选择 ", -1)),
|
|
2511
|
+
O("span", Je, U(a.selectLen), 1),
|
|
2512
|
+
t[1] || (t[1] = A(" 项 ", -1))
|
|
2506
2513
|
]),
|
|
2507
|
-
a.optVal(e.tableOption.selectClearBtn, i.config.selectClearBtn) && e.tableOption.selection ?
|
|
2514
|
+
a.optVal(e.tableOption.selectClearBtn, i.config.selectClearBtn) && e.tableOption.selection ? G((L(), T(c, {
|
|
2508
2515
|
key: 0,
|
|
2509
2516
|
text: "",
|
|
2510
2517
|
onClick: a.selectClear
|
|
2511
2518
|
}, {
|
|
2512
|
-
default:
|
|
2519
|
+
default: W(() => [...t[2] || (t[2] = [A(" 清 空 ", -1)])]),
|
|
2513
2520
|
_: 1
|
|
2514
|
-
}, 8, ["onClick"])), [[x, a.getPermission("selectClearBtn")]]) :
|
|
2515
|
-
|
|
2521
|
+
}, 8, ["onClick"])), [[x, a.getPermission("selectClearBtn")]]) : E("v-if", !0),
|
|
2522
|
+
z(e.$slots, "tip")
|
|
2516
2523
|
]),
|
|
2517
2524
|
_: 3
|
|
2518
|
-
})) :
|
|
2519
|
-
|
|
2520
|
-
|
|
2525
|
+
})) : E("v-if", !0),
|
|
2526
|
+
z(e.$slots, "header"),
|
|
2527
|
+
j(h, {
|
|
2521
2528
|
ref: "cellForm",
|
|
2522
2529
|
model: i.cellForm,
|
|
2523
2530
|
"show-message": !1,
|
|
2524
2531
|
onValidate: a.handleValidate
|
|
2525
2532
|
}, {
|
|
2526
|
-
default:
|
|
2533
|
+
default: W(() => [G((L(), T(m, {
|
|
2527
2534
|
key: i.reload,
|
|
2528
2535
|
ref: "table",
|
|
2529
2536
|
data: i.cellForm.list,
|
|
2530
2537
|
"row-key": e.rowKey,
|
|
2531
|
-
class:
|
|
2538
|
+
class: P({ "avue-crud--indeterminate": a.optVal(e.tableOption.indeterminate, !1) }),
|
|
2532
2539
|
size: e.$AVUE.tableSize || e.controlSize,
|
|
2533
2540
|
lazy: a.optVal(e.tableOption.lazy, !1),
|
|
2534
2541
|
load: a.treeLoad,
|
|
@@ -2570,50 +2577,50 @@ function qe(e, t, n, r, i, a) {
|
|
|
2570
2577
|
onSelectAll: a.selectAll,
|
|
2571
2578
|
onSortChange: a.sortChange
|
|
2572
2579
|
}, {
|
|
2573
|
-
empty:
|
|
2580
|
+
empty: W(() => [e.$slots.empty ? z(e.$slots, "empty", { key: 0 }) : (L(), T(p, {
|
|
2574
2581
|
key: 1,
|
|
2575
2582
|
"image-size": 100,
|
|
2576
2583
|
class: "avue-crud__empty",
|
|
2577
2584
|
description: e.tableOption.emptyText
|
|
2578
2585
|
}, null, 8, ["description"]))]),
|
|
2579
|
-
default:
|
|
2580
|
-
header:
|
|
2581
|
-
expand:
|
|
2586
|
+
default: W(() => [j(f, { "column-option": a.columnOption }, k({
|
|
2587
|
+
header: W(() => [j(u, { ref: "columnDefault" }, {
|
|
2588
|
+
expand: W(({ row: t, index: n }) => [z(e.$slots, "expand", {
|
|
2582
2589
|
row: t,
|
|
2583
2590
|
index: n
|
|
2584
2591
|
})]),
|
|
2585
2592
|
_: 3
|
|
2586
2593
|
}, 512)]),
|
|
2587
|
-
footer:
|
|
2588
|
-
menu:
|
|
2589
|
-
menuBtn:
|
|
2594
|
+
footer: W(() => [j(d, null, {
|
|
2595
|
+
menu: W((t) => [z(e.$slots, "menu", F(M(t)))]),
|
|
2596
|
+
menuBtn: W((t) => [z(e.$slots, "menuBtn", F(M(t)))]),
|
|
2590
2597
|
_: 3
|
|
2591
2598
|
})]),
|
|
2592
2599
|
_: 2
|
|
2593
|
-
}, [
|
|
2600
|
+
}, [R(a.mainSlot, (t) => ({
|
|
2594
2601
|
name: t,
|
|
2595
|
-
fn:
|
|
2602
|
+
fn: W((n) => [z(e.$slots, t, F(M(n)))])
|
|
2596
2603
|
}))]), 1032, ["column-option"])]),
|
|
2597
2604
|
_: 3
|
|
2598
|
-
}, 8, /* @__PURE__ */ "data.row-key.class.size.lazy.load.tree-props.expand-row-keys.default-expand-all.highlight-current-row.show-summary.summary-method.span-method.stripe.show-header.default-sort.row-class-name.cell-class-name.row-style.cell-style.fit.header-cell-class-name.max-height.height.width.border.onCurrentChange.onExpandChange.onHeaderDragend.onRowClick.onRowDblclick.onCellMouseEnter.onCellMouseLeave.onCellClick.onHeaderClick.onRowContextmenu.onHeaderContextmenu.onCellDblclick.onFilterChange.onSelectionChange.onSelect.onSelectAll.onSortChange".split("."))), [[
|
|
2605
|
+
}, 8, /* @__PURE__ */ "data.row-key.class.size.lazy.load.tree-props.expand-row-keys.default-expand-all.highlight-current-row.show-summary.summary-method.span-method.stripe.show-header.default-sort.row-class-name.cell-class-name.row-style.cell-style.fit.header-cell-class-name.max-height.height.width.border.onCurrentChange.onExpandChange.onHeaderDragend.onRowClick.onRowDblclick.onCellMouseEnter.onCellMouseLeave.onCellClick.onHeaderClick.onRowContextmenu.onHeaderContextmenu.onCellDblclick.onFilterChange.onSelectionChange.onSelect.onSelectAll.onSortChange".split("."))), [[S, n.tableLoading]])]),
|
|
2599
2606
|
_: 3
|
|
2600
2607
|
}, 8, ["model", "onValidate"]),
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
menuForm:
|
|
2608
|
+
z(e.$slots, "footer"),
|
|
2609
|
+
E(" 分页 "),
|
|
2610
|
+
j(g, { ref: "tablePage" }, null, 512),
|
|
2611
|
+
E(" 表单 "),
|
|
2612
|
+
j(_, { ref: "dialogForm" }, k({
|
|
2613
|
+
menuForm: W((t) => [z(e.$slots, "menuForm", F(M(t)))]),
|
|
2607
2614
|
_: 2
|
|
2608
|
-
}, [
|
|
2615
|
+
}, [R(a.formSlot, (t) => ({
|
|
2609
2616
|
name: t,
|
|
2610
|
-
fn:
|
|
2617
|
+
fn: W((n) => [z(e.$slots, t, F(M(n)))])
|
|
2611
2618
|
}))]), 1536),
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2619
|
+
j(v, { ref: "dialogColumn" }, null, 512),
|
|
2620
|
+
j(y, { ref: "dialogExcel" }, null, 512),
|
|
2621
|
+
j(b, { ref: "dialogFilter" }, null, 512)
|
|
2615
2622
|
]);
|
|
2616
2623
|
}
|
|
2617
|
-
var
|
|
2624
|
+
var Xe = /* @__PURE__ */ v(Ge, [["render", Ye]]);
|
|
2618
2625
|
//#endregion
|
|
2619
|
-
export {
|
|
2626
|
+
export { Xe as t };
|