@web-utils/component 5.0.0-beta02 → 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.me083T8V.mjs → FyCurd.DmIW6Tjw.mjs} +500 -496
- package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.Dh77gj0Z.mjs} +158 -156
- package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
- package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
- package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
- package/chunks/dataformat.BpAzVPYN.mjs +165 -0
- package/chunks/{dic.C0abEij9.mjs → dic.N2PNjL8o.mjs} +1 -1
- package/chunks/{event.Dv4XTu8B.mjs → event.BevSLXu4.mjs} +10 -14
- 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 +17 -21
- package/fy-empty/index.mjs +4 -4
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-input/index.mjs +3 -3
- package/fy-input-color/index.mjs +2 -3
- 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 +19 -19
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +3 -3
- package/fy-rate/index.mjs +3 -3
- package/fy-select/index.mjs +31 -31
- package/fy-slider/index.mjs +5 -5
- package/fy-switch/index.mjs +3 -3
- 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 -142
- package/index.mjs +31 -179
- package/monaco-editor/index.mjs +1 -1
- package/package.json +11 -13
- package/web-types.json +2461 -20206
- 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 -55
- 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 -441
- 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.D0ByhRTi.mjs +0 -648
- package/chunks/ElementBaseInfo.B3pY8TkD.mjs +0 -209
- package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
- package/chunks/ElementForm.D_lXbe--.mjs +0 -627
- package/chunks/ElementListeners.Cufwd4bp.mjs +0 -656
- package/chunks/ElementMultiInstance.BhY8NY2z.mjs +0 -290
- package/chunks/ElementOtherConfig.DX1ZJ9w2.mjs +0 -51
- package/chunks/ElementProperties.BRafADXp.mjs +0 -196
- package/chunks/ElementTaskConfig.B6pqRir_.mjs +0 -446
- package/chunks/FlowCondition.Dvwji23j.mjs +0 -194
- package/chunks/FlowDesigner.LL-vXDIE.mjs +0 -5100
- package/chunks/FormBlock.Co7l6USP.mjs +0 -117
- package/chunks/FormCascader.DMY3uNc8.mjs +0 -1227
- package/chunks/FormInputTime.BC4FfWwY.mjs +0 -1774
- package/chunks/FormItem.BSXI2cZU.mjs +0 -89
- package/chunks/FormItemGroup.D2Htta7J.mjs +0 -149
- package/chunks/FormSelect.CY0K-izg.mjs +0 -1473
- package/chunks/FormSwitch.DLqFXaFF.mjs +0 -297
- package/chunks/FormTemp.PJFfNRls.mjs +0 -139
- package/chunks/FyFormDesign.BCxVyiWY.mjs +0 -5600
- package/chunks/ImagePreview.ByEWJYdu.mjs +0 -639
- package/chunks/Keyboard.4hi7CjGc.mjs +0 -379
- package/chunks/PageableTable.Ba3XSbZ5.mjs +0 -660
- package/chunks/RecordVideo.VRFTaHSp.mjs +0 -116
- package/chunks/SignalAndMessage.DYhKWs3X.mjs +0 -198
- package/chunks/SplitPane.Bwe5Rc0J.mjs +0 -219
- package/chunks/TableColumn.72HOXQkb.mjs +0 -186
- package/chunks/TableView.BxfsOAxU.mjs +0 -484
- package/chunks/Toolbar.BVziVmyT.mjs +0 -219
- package/chunks/UserTaskListeners.CkeyTpnn.mjs +0 -599
- package/chunks/VueCron.DEvY5-i7.mjs +0 -1823
- package/chunks/VueTreeSelect.C6Ycu28Z.mjs +0 -1873
- package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
- package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
- package/chunks/core.DXaMPWGV.mjs +0 -51
- package/chunks/dataformat.CteBVoOe.mjs +0 -144
- package/chunks/dictionary.BRhZD-WH.mjs +0 -19
- package/chunks/dictionary.CNNpjPL2.mjs +0 -87
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/focus-trap.FbvlqAGe.mjs +0 -211
- package/chunks/form-input.BUGZmAI1.mjs +0 -34
- package/chunks/form-item.Ca8U2bIR.mjs +0 -712
- package/chunks/form-pick.DT5kumy4.mjs +0 -7
- package/chunks/form-validate.CUvMwtPN.mjs +0 -11
- package/chunks/icon.CxCY22-F.mjs +0 -26
- package/chunks/icon.ym7735_x.mjs +0 -251
- package/chunks/init.6jGmuY99.mjs +0 -115
- package/chunks/input.C2GWsuXE.mjs +0 -547
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/message.C4NdvfbE.mjs +0 -400
- package/chunks/photo-swipe.BxnG4lip.mjs +0 -55
- package/chunks/radio.CeLeSOEo.mjs +0 -273
- package/chunks/scroll.DWjS-gnW.mjs +0 -28
- package/chunks/scrollbar.CAmrlKi9.mjs +0 -345
- package/chunks/slot.DT5QwXL-.mjs +0 -25
- package/chunks/style.BmlGmjpO.mjs +0 -325
- package/chunks/sub-table-plus-props.CRX7ERxJ.mjs +0 -28
- package/chunks/tab-mixin.7zuMMM1E.mjs +0 -70
- package/chunks/tag.ZhEIVRpP.mjs +0 -141
- package/chunks/tooltip.DNiltmX1.mjs +0 -1939
- package/chunks/typescript.CLl-2siQ.mjs +0 -18
- package/chunks/use-aria.BW7nWOl1.mjs +0 -17
- package/chunks/use-composition.mUaomyno.mjs +0 -47
- package/chunks/use-deprecated.BfDSbZS9.mjs +0 -12
- package/chunks/use-empty-values.D8KYIiKR.mjs +0 -81
- package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
- package/chunks/use-global-config.DRovgom9.mjs +0 -57
- package/chunks/use-locale.Be9HCpTQ.mjs +0 -188
- package/chunks/util.Ce4MHRmD.mjs +0 -103
- package/chunks/utilSelf.BttmSVX6.mjs +0 -46
- package/chunks/utils.BGJfM4oG.mjs +0 -60
- package/chunks/utils.CSPl1l4f.mjs +0 -14
- package/chunks/validator.DuBSEj8O.mjs +0 -5
- package/chunks/vnode.C3PXzhmg.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 -195
- 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 -120
- package/data-tabs/index.mjs +0 -67
- package/data-tabs/style.css +0 -1
- package/dynamic-table/index.mjs +0 -166
- 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 -48
- package/empty-view/style.css +0 -1
- package/error-view/index.mjs +0 -39
- 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 -129
- 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 -6
- package/helper-function.mjs +0 -49
- 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 -39
- package/iframe-window/style.css +0 -1
- package/image-cropper/index.mjs +0 -171
- 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 -78
- 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/login/index.mjs +0 -252
- package/login/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 -100
- 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 -225
- 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 -72
- package/static-pageable-table/style.css +0 -1
- package/sub-table/index.mjs +0 -508
- package/sub-table/style.css +0 -1
- package/sub-table-plus/index.mjs +0 -593
- 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 -80
- 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 -143
- package/utils/style.css +0 -1
- 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 -145
- 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.BLDb9e6G.mjs → packages.W76nKiMk.mjs} +0 -0
- /package/chunks/{permission.C-IUDxQQ.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
|
|
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] ||
|
|
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
|
-
|
|
1023
|
+
default: W(() => [j(o, {
|
|
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) {
|
|
@@ -1394,7 +1397,7 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1394
1397
|
}
|
|
1395
1398
|
} else if (this.isAdd) {
|
|
1396
1399
|
let { item: t } = this.crud.findData(e[this.crud.rowParentKey]);
|
|
1397
|
-
t ? (t[this.crud.childrenKey] ||
|
|
1400
|
+
t ? (t[this.crud.childrenKey] || (t[this.crud.childrenKey] = []), this.crud.tableOption.lazy && (t[this.crud.hasChildrenKey] = !0), t[this.crud.childrenKey].push(e)) : this.crud.list.push(e);
|
|
1398
1401
|
}
|
|
1399
1402
|
})(), this.hide();
|
|
1400
1403
|
},
|
|
@@ -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,47 +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
|
-
size: "default",
|
|
1592
1595
|
border: ""
|
|
1593
1596
|
}, {
|
|
1594
|
-
default:
|
|
1597
|
+
default: W(() => [j(o, {
|
|
1595
1598
|
key: "label",
|
|
1596
1599
|
align: "center",
|
|
1597
1600
|
width: "100",
|
|
1598
1601
|
"header-align": "center",
|
|
1599
1602
|
prop: "label",
|
|
1600
1603
|
label: "列名"
|
|
1601
|
-
}), (
|
|
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, {
|
|
1602
1605
|
key: t,
|
|
1603
1606
|
label: e.label,
|
|
1604
1607
|
prop: e.prop,
|
|
1605
1608
|
align: "center",
|
|
1606
1609
|
"header-align": "center"
|
|
1607
1610
|
}, {
|
|
1608
|
-
default:
|
|
1611
|
+
default: W(({ row: t }) => [j(s, {
|
|
1609
1612
|
modelValue: a.crud.objectOption[t.prop][e.prop],
|
|
1610
1613
|
"onUpdate:modelValue": (n) => a.crud.objectOption[t.prop][e.prop] = n,
|
|
1611
1614
|
onChange: (t) => a.handleChange(e.prop)
|
|
@@ -1619,10 +1622,11 @@ function Ne(e, t, n, r, i, a) {
|
|
|
1619
1622
|
_: 1
|
|
1620
1623
|
}, 8, ["data"])]),
|
|
1621
1624
|
_: 1
|
|
1622
|
-
}, 8, ["
|
|
1625
|
+
}, 8, ["modelValue", "size"])])) : E("v-if", !0);
|
|
1623
1626
|
}
|
|
1624
|
-
var
|
|
1627
|
+
var Ie = /* @__PURE__ */ v(Ne, [["render", Fe]]), Le = {
|
|
1625
1628
|
name: "DialogExcel",
|
|
1629
|
+
components: { ElementDialog: b },
|
|
1626
1630
|
inject: ["crud"],
|
|
1627
1631
|
data() {
|
|
1628
1632
|
return {
|
|
@@ -1644,12 +1648,12 @@ var Pe = /* @__PURE__ */ e(je, [["render", Ne]]), $ = {
|
|
|
1644
1648
|
}), this.box = !1;
|
|
1645
1649
|
},
|
|
1646
1650
|
handleSum() {
|
|
1647
|
-
let e = this.crud.tableOption,
|
|
1648
|
-
return this.form.params.includes("data") &&
|
|
1649
|
-
let a = r
|
|
1650
|
-
|
|
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) => {
|
|
1651
1655
|
let n = t.parentProp ? (this.crud.cascaderDIC[t.$index] || {})[t.prop] : this.crud.DIC[t.prop];
|
|
1652
|
-
a[t.prop] =
|
|
1656
|
+
a[t.prop] = l(a, t, e, n);
|
|
1653
1657
|
}), i.push(a);
|
|
1654
1658
|
}), this.form.params.includes("sum") && e.showSummary && i.push(this.crud.sumsList), i;
|
|
1655
1659
|
},
|
|
@@ -1720,68 +1724,68 @@ var Pe = /* @__PURE__ */ e(je, [["render", Ne]]), $ = {
|
|
|
1720
1724
|
}, this.form.type = this.crud.selectLen === 0;
|
|
1721
1725
|
},
|
|
1722
1726
|
getColumnOption() {
|
|
1723
|
-
let e =
|
|
1724
|
-
e.forEach((
|
|
1725
|
-
let a =
|
|
1726
|
-
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));
|
|
1727
1731
|
});
|
|
1728
1732
|
};
|
|
1729
|
-
|
|
1733
|
+
r(e), this.columnOption = e, this.form.prop = n;
|
|
1730
1734
|
},
|
|
1731
1735
|
getColumn() {
|
|
1732
|
-
let e =
|
|
1736
|
+
let e = t(this.columnOption), n = this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();
|
|
1733
1737
|
if (!this.form.params) return [];
|
|
1734
1738
|
if (this.form.params.includes("headers")) {
|
|
1735
|
-
let
|
|
1739
|
+
let t = (e = []) => {
|
|
1736
1740
|
e.forEach((r, i) => {
|
|
1737
|
-
|
|
1741
|
+
n.includes(r.prop) ? r.children && t(r.children) : e.splice(i, 1);
|
|
1738
1742
|
});
|
|
1739
1743
|
};
|
|
1740
|
-
return
|
|
1744
|
+
return t(e), e;
|
|
1741
1745
|
} else {
|
|
1742
|
-
let
|
|
1746
|
+
let t = [], r = (e = []) => {
|
|
1743
1747
|
e.forEach((e) => {
|
|
1744
|
-
e.children ? r(e.children) :
|
|
1748
|
+
e.children ? r(e.children) : n.includes(e.prop) && t.push(e);
|
|
1745
1749
|
});
|
|
1746
1750
|
};
|
|
1747
|
-
return r(e),
|
|
1751
|
+
return r(e), t;
|
|
1748
1752
|
}
|
|
1749
1753
|
}
|
|
1750
1754
|
}
|
|
1751
|
-
},
|
|
1752
|
-
function
|
|
1753
|
-
let o =
|
|
1754
|
-
return i.box ? (
|
|
1755
|
-
|
|
1756
|
-
"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),
|
|
1757
1761
|
title: "导出",
|
|
1758
1762
|
"lock-scroll": "",
|
|
1759
1763
|
class: "avue-dialog",
|
|
1760
1764
|
width: a.crud.isMobile ? "100%" : "30%"
|
|
1761
1765
|
}, {
|
|
1762
|
-
footer:
|
|
1766
|
+
footer: W(() => [O("span", ze, [j(s, {
|
|
1763
1767
|
type: "primary",
|
|
1764
1768
|
size: a.crud.isMediumSize,
|
|
1765
1769
|
onClick: a.handleSubmit
|
|
1766
1770
|
}, {
|
|
1767
|
-
default:
|
|
1771
|
+
default: W(() => [...t[3] || (t[3] = [A("确定", -1)])]),
|
|
1768
1772
|
_: 1
|
|
1769
|
-
}, 8, ["size", "onClick"]),
|
|
1773
|
+
}, 8, ["size", "onClick"]), j(s, {
|
|
1770
1774
|
size: a.crud.isMediumSize,
|
|
1771
1775
|
onClick: t[1] || (t[1] = (e) => i.box = !1)
|
|
1772
1776
|
}, {
|
|
1773
|
-
default:
|
|
1777
|
+
default: W(() => [...t[4] || (t[4] = [A("取消", -1)])]),
|
|
1774
1778
|
_: 1
|
|
1775
1779
|
}, 8, ["size"])])]),
|
|
1776
|
-
default:
|
|
1780
|
+
default: W(() => [j(o, {
|
|
1777
1781
|
modelValue: i.form,
|
|
1778
1782
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.form = e),
|
|
1779
1783
|
option: i.option
|
|
1780
1784
|
}, null, 8, ["modelValue", "option"])]),
|
|
1781
1785
|
_: 1
|
|
1782
|
-
}, 8, ["
|
|
1786
|
+
}, 8, ["modelValue", "width"])])) : E("v-if", !0);
|
|
1783
1787
|
}
|
|
1784
|
-
var
|
|
1788
|
+
var Ve = /* @__PURE__ */ v(Le, [["render", Be]]), $ = {
|
|
1785
1789
|
name: "DialogFilter",
|
|
1786
1790
|
inject: ["crud"],
|
|
1787
1791
|
data() {
|
|
@@ -1832,7 +1836,7 @@ var Re = /* @__PURE__ */ e($, [["render", Le]]), ze = {
|
|
|
1832
1836
|
},
|
|
1833
1837
|
getColumnOption() {
|
|
1834
1838
|
let e = [];
|
|
1835
|
-
|
|
1839
|
+
t(this.crud.propOption).forEach((t) => {
|
|
1836
1840
|
t.showColumn !== !1 && e.push(Object.assign(t, { value: t.prop }));
|
|
1837
1841
|
}), this.columnOption = e, this.columnObj = this.columnOption[0];
|
|
1838
1842
|
},
|
|
@@ -1869,58 +1873,58 @@ var Re = /* @__PURE__ */ e($, [["render", Le]]), ze = {
|
|
|
1869
1873
|
});
|
|
1870
1874
|
}
|
|
1871
1875
|
}
|
|
1872
|
-
},
|
|
1873
|
-
function
|
|
1874
|
-
let o =
|
|
1875
|
-
return i.box ? (
|
|
1876
|
-
|
|
1877
|
-
"onUpdate:
|
|
1878
|
-
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"]),
|
|
1879
1883
|
"lock-scroll": "",
|
|
1880
1884
|
"append-to-body": "",
|
|
1881
1885
|
title: "过滤条件",
|
|
1882
1886
|
size: a.crud.isMobile ? "100%" : "60%"
|
|
1883
1887
|
}, {
|
|
1884
|
-
default:
|
|
1885
|
-
default:
|
|
1886
|
-
|
|
1887
|
-
default:
|
|
1888
|
-
|
|
1888
|
+
default: W(() => [j(d, { span: 24 }, {
|
|
1889
|
+
default: W(() => [
|
|
1890
|
+
O("div", Ue, [j(s, null, {
|
|
1891
|
+
default: W(() => [
|
|
1892
|
+
j(o, {
|
|
1889
1893
|
type: "primary",
|
|
1890
1894
|
size: a.crud.isMediumSize,
|
|
1891
1895
|
onClick: a.handleAdd
|
|
1892
1896
|
}, {
|
|
1893
|
-
default:
|
|
1897
|
+
default: W(() => [...t[2] || (t[2] = [A(" 新增条件 ", -1)])]),
|
|
1894
1898
|
_: 1
|
|
1895
1899
|
}, 8, ["size", "onClick"]),
|
|
1896
|
-
|
|
1900
|
+
j(o, {
|
|
1897
1901
|
type: "primary",
|
|
1898
1902
|
size: a.crud.isMediumSize,
|
|
1899
1903
|
onClick: a.handleClear
|
|
1900
1904
|
}, {
|
|
1901
|
-
default:
|
|
1905
|
+
default: W(() => [...t[3] || (t[3] = [A(" 清空条件 ", -1)])]),
|
|
1902
1906
|
_: 1
|
|
1903
1907
|
}, 8, ["size", "onClick"]),
|
|
1904
|
-
|
|
1908
|
+
j(o, {
|
|
1905
1909
|
type: "primary",
|
|
1906
1910
|
size: a.crud.isMediumSize,
|
|
1907
1911
|
onClick: a.handleValueClear
|
|
1908
1912
|
}, {
|
|
1909
|
-
default:
|
|
1913
|
+
default: W(() => [...t[4] || (t[4] = [A(" 清空数据 ", -1)])]),
|
|
1910
1914
|
_: 1
|
|
1911
1915
|
}, 8, ["size", "onClick"])
|
|
1912
1916
|
]),
|
|
1913
1917
|
_: 1
|
|
1914
1918
|
})]),
|
|
1915
|
-
(
|
|
1919
|
+
(L(!0), D(w, null, R(i.list, (e, t) => (L(), T(u, {
|
|
1916
1920
|
key: t,
|
|
1917
1921
|
md: 12,
|
|
1918
1922
|
xs: 24,
|
|
1919
1923
|
sm: 12,
|
|
1920
1924
|
class: "avue-crud__filter-item"
|
|
1921
1925
|
}, {
|
|
1922
|
-
default:
|
|
1923
|
-
|
|
1926
|
+
default: W(() => [
|
|
1927
|
+
j(c, {
|
|
1924
1928
|
modelValue: e.text,
|
|
1925
1929
|
"onUpdate:modelValue": (t) => e.text = t,
|
|
1926
1930
|
dic: i.columnOption,
|
|
@@ -1935,7 +1939,7 @@ function He(e, t, n, r, i, a) {
|
|
|
1935
1939
|
"size",
|
|
1936
1940
|
"onChange"
|
|
1937
1941
|
]),
|
|
1938
|
-
|
|
1942
|
+
j(c, {
|
|
1939
1943
|
modelValue: e.symbol,
|
|
1940
1944
|
"onUpdate:modelValue": (t) => e.symbol = t,
|
|
1941
1945
|
class: "avue-crud__filter-symbol",
|
|
@@ -1948,7 +1952,7 @@ function He(e, t, n, r, i, a) {
|
|
|
1948
1952
|
"dic",
|
|
1949
1953
|
"size"
|
|
1950
1954
|
]),
|
|
1951
|
-
|
|
1955
|
+
j(l, {
|
|
1952
1956
|
modelValue: e.value,
|
|
1953
1957
|
"onUpdate:modelValue": (t) => e.value = t,
|
|
1954
1958
|
size: a.crud.isMediumSize,
|
|
@@ -1958,10 +1962,9 @@ function He(e, t, n, r, i, a) {
|
|
|
1958
1962
|
"onUpdate:modelValue",
|
|
1959
1963
|
"size"
|
|
1960
1964
|
]),
|
|
1961
|
-
|
|
1965
|
+
j(o, {
|
|
1962
1966
|
type: "danger",
|
|
1963
1967
|
class: "avue-crud__filter-icon",
|
|
1964
|
-
size: "default",
|
|
1965
1968
|
circle: "",
|
|
1966
1969
|
icon: "el-icon-minus",
|
|
1967
1970
|
onClick: (e) => a.handleDelete(t)
|
|
@@ -1969,22 +1972,22 @@ function He(e, t, n, r, i, a) {
|
|
|
1969
1972
|
]),
|
|
1970
1973
|
_: 2
|
|
1971
1974
|
}, 1024))), 128)),
|
|
1972
|
-
|
|
1975
|
+
j(u, {
|
|
1973
1976
|
span: 24,
|
|
1974
1977
|
class: "avue-form__menu avue-form__menu--right"
|
|
1975
1978
|
}, {
|
|
1976
|
-
default:
|
|
1979
|
+
default: W(() => [j(o, {
|
|
1977
1980
|
type: "primary",
|
|
1978
1981
|
size: a.crud.isMediumSize,
|
|
1979
1982
|
onClick: a.handleSubmit
|
|
1980
1983
|
}, {
|
|
1981
|
-
default:
|
|
1984
|
+
default: W(() => [...t[5] || (t[5] = [A(" 确 定 ", -1)])]),
|
|
1982
1985
|
_: 1
|
|
1983
|
-
}, 8, ["size", "onClick"]),
|
|
1986
|
+
}, 8, ["size", "onClick"]), j(o, {
|
|
1984
1987
|
size: a.crud.isMediumSize,
|
|
1985
1988
|
onClick: t[0] || (t[0] = (e) => i.box = !1)
|
|
1986
1989
|
}, {
|
|
1987
|
-
default:
|
|
1990
|
+
default: W(() => [...t[6] || (t[6] = [A(" 取 消 ", -1)])]),
|
|
1988
1991
|
_: 1
|
|
1989
1992
|
}, 8, ["size"])]),
|
|
1990
1993
|
_: 1
|
|
@@ -1993,26 +1996,27 @@ function He(e, t, n, r, i, a) {
|
|
|
1993
1996
|
_: 1
|
|
1994
1997
|
})]),
|
|
1995
1998
|
_: 1
|
|
1996
|
-
}, 8, ["
|
|
1999
|
+
}, 8, ["modelValue", "size"])])) : E("v-if", !0);
|
|
1997
2000
|
}
|
|
1998
2001
|
//#endregion
|
|
1999
2002
|
//#region src/components/fy-from/crud/FyCurd.vue
|
|
2000
|
-
var
|
|
2003
|
+
var Ge = {
|
|
2001
2004
|
name: "FyCurd",
|
|
2002
2005
|
components: {
|
|
2003
|
-
DialogFilter: /* @__PURE__ */
|
|
2004
|
-
DialogExcel:
|
|
2005
|
-
DialogColumn:
|
|
2006
|
-
FyDialogForm:
|
|
2007
|
-
TablePage:
|
|
2008
|
-
ColumnMenu:
|
|
2009
|
-
ColumnDefault:
|
|
2010
|
-
Column:
|
|
2011
|
-
HeaderMenu:
|
|
2012
|
-
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
|
|
2013
2017
|
},
|
|
2014
|
-
directives: { permission:
|
|
2015
|
-
mixins: [
|
|
2018
|
+
directives: { permission: x },
|
|
2019
|
+
mixins: [c],
|
|
2016
2020
|
provide() {
|
|
2017
2021
|
return { crud: this };
|
|
2018
2022
|
},
|
|
@@ -2036,7 +2040,7 @@ var Ue = {
|
|
|
2036
2040
|
type: [Function, Object],
|
|
2037
2041
|
default: () => ({})
|
|
2038
2042
|
},
|
|
2039
|
-
|
|
2043
|
+
modelValue: {
|
|
2040
2044
|
type: Object,
|
|
2041
2045
|
default: () => ({})
|
|
2042
2046
|
},
|
|
@@ -2069,7 +2073,7 @@ var Ue = {
|
|
|
2069
2073
|
return {
|
|
2070
2074
|
reload: Math.random(),
|
|
2071
2075
|
cellForm: { list: [] },
|
|
2072
|
-
config:
|
|
2076
|
+
config: q,
|
|
2073
2077
|
list: [],
|
|
2074
2078
|
listError: {},
|
|
2075
2079
|
tableForm: {},
|
|
@@ -2099,13 +2103,13 @@ var Ue = {
|
|
|
2099
2103
|
return this.tableOption.columnSort;
|
|
2100
2104
|
},
|
|
2101
2105
|
rowParentKey() {
|
|
2102
|
-
return this.option.rowParentKey ||
|
|
2106
|
+
return this.option.rowParentKey || o.rowParentKey;
|
|
2103
2107
|
},
|
|
2104
2108
|
childrenKey() {
|
|
2105
|
-
return this.treeProps.children ||
|
|
2109
|
+
return this.treeProps.children || o.children;
|
|
2106
2110
|
},
|
|
2107
2111
|
hasChildrenKey() {
|
|
2108
|
-
return this.treeProps.hasChildren ||
|
|
2112
|
+
return this.treeProps.hasChildren || o.hasChildren;
|
|
2109
2113
|
},
|
|
2110
2114
|
treeProps() {
|
|
2111
2115
|
return this.tableOption.treeProps || {};
|
|
@@ -2140,7 +2144,7 @@ var Ue = {
|
|
|
2140
2144
|
Array.isArray(n.children) ? t(n.children) : e.push(n);
|
|
2141
2145
|
});
|
|
2142
2146
|
}
|
|
2143
|
-
return t(this.columnOption), e =
|
|
2147
|
+
return t(this.columnOption), e = g(e), e;
|
|
2144
2148
|
},
|
|
2145
2149
|
isShowSummary() {
|
|
2146
2150
|
return this.option.showSummary;
|
|
@@ -2180,9 +2184,9 @@ var Ue = {
|
|
|
2180
2184
|
}
|
|
2181
2185
|
},
|
|
2182
2186
|
watch: {
|
|
2183
|
-
|
|
2187
|
+
modelValue: {
|
|
2184
2188
|
handler() {
|
|
2185
|
-
this.tableForm = this.
|
|
2189
|
+
this.tableForm = this.modelValue;
|
|
2186
2190
|
},
|
|
2187
2191
|
immediate: !0,
|
|
2188
2192
|
deep: !0
|
|
@@ -2204,16 +2208,16 @@ var Ue = {
|
|
|
2204
2208
|
this.dataInit(), this.getTableHeight(), this.refreshTable();
|
|
2205
2209
|
},
|
|
2206
2210
|
methods: {
|
|
2207
|
-
setPx:
|
|
2208
|
-
optVal:
|
|
2211
|
+
setPx: e,
|
|
2212
|
+
optVal: r,
|
|
2209
2213
|
handleValidate(e, t, n) {
|
|
2210
|
-
this.listError[e] ||
|
|
2214
|
+
this.listError[e] || (this.listError[e] = {
|
|
2211
2215
|
valid: !1,
|
|
2212
2216
|
msg: ""
|
|
2213
2217
|
}), this.listError[e].valid = !t, this.listError[e].msg = n;
|
|
2214
2218
|
},
|
|
2215
2219
|
getPermission(e, t, n) {
|
|
2216
|
-
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];
|
|
2217
2221
|
},
|
|
2218
2222
|
getTableHeight() {
|
|
2219
2223
|
this.isAutoHeight ? this.$nextTick(() => {
|
|
@@ -2237,17 +2241,17 @@ var Ue = {
|
|
|
2237
2241
|
});
|
|
2238
2242
|
},
|
|
2239
2243
|
menuIcon(e) {
|
|
2240
|
-
return
|
|
2244
|
+
return r(this.tableOption[`${e}Text`], f(`crud.${e}`));
|
|
2241
2245
|
},
|
|
2242
2246
|
getBtnIcon(e) {
|
|
2243
2247
|
let t = `${e}Icon`;
|
|
2244
|
-
return this.tableOption[t] ||
|
|
2248
|
+
return this.tableOption[t] || q[t];
|
|
2245
2249
|
},
|
|
2246
2250
|
validateField(e) {
|
|
2247
2251
|
return this.$refs.dialogForm.$refs.tableForm.validateField(e);
|
|
2248
2252
|
},
|
|
2249
2253
|
selectClear() {
|
|
2250
|
-
this.$emit("selection-clear",
|
|
2254
|
+
this.$emit("selection-clear", t(this.tableSelect)), this.$refs.table.clearSelection();
|
|
2251
2255
|
},
|
|
2252
2256
|
toggleRowSelection(e, t) {
|
|
2253
2257
|
this.$refs.table.toggleRowSelection(e, t);
|
|
@@ -2259,12 +2263,12 @@ var Ue = {
|
|
|
2259
2263
|
this.$refs.table.setCurrentRow(e);
|
|
2260
2264
|
},
|
|
2261
2265
|
dataInit() {
|
|
2262
|
-
this.list = this.data, this.list.forEach((e,
|
|
2263
|
-
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;
|
|
2264
2268
|
});
|
|
2265
2269
|
},
|
|
2266
2270
|
headerDragend(e, t, n, r) {
|
|
2267
|
-
this.objectOption[n.property] &&
|
|
2271
|
+
this.objectOption[n.property] && (this.objectOption[n.property].width = e), this.$emit("header-dragend", e, t, n, r);
|
|
2268
2272
|
},
|
|
2269
2273
|
headerSort(e, t) {
|
|
2270
2274
|
let n = this.columnOption, r = n.splice(e, 1)[0];
|
|
@@ -2333,31 +2337,31 @@ var Ue = {
|
|
|
2333
2337
|
this.$emit("cell-dblclick", e, t, n, r);
|
|
2334
2338
|
},
|
|
2335
2339
|
rowCellAdd(e = {}) {
|
|
2336
|
-
let
|
|
2337
|
-
e =
|
|
2340
|
+
let n = this.list.length, r = h(this.propOption).tableForm;
|
|
2341
|
+
e = t({
|
|
2338
2342
|
$cellEdit: !0,
|
|
2339
|
-
$index:
|
|
2340
|
-
...
|
|
2343
|
+
$index: n,
|
|
2344
|
+
...r,
|
|
2341
2345
|
...e
|
|
2342
2346
|
}), this.list.push(e);
|
|
2343
2347
|
},
|
|
2344
2348
|
rowCancel(e, t) {
|
|
2345
|
-
|
|
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);
|
|
2346
2350
|
},
|
|
2347
2351
|
rowCell(e, t) {
|
|
2348
2352
|
e.$cellEdit ? this.rowCellUpdate(e, t) : this.rowCellEdit(e, t);
|
|
2349
2353
|
},
|
|
2350
|
-
rowCellUpdate(e,
|
|
2351
|
-
e =
|
|
2352
|
-
let
|
|
2353
|
-
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];
|
|
2354
2358
|
}, a = () => {
|
|
2355
|
-
this.btnDisabledList[
|
|
2359
|
+
this.btnDisabledList[n] = !1, this.btnDisabled = !1;
|
|
2356
2360
|
};
|
|
2357
|
-
|
|
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));
|
|
2358
2362
|
},
|
|
2359
|
-
rowCellEdit(e,
|
|
2360
|
-
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]);
|
|
2361
2365
|
},
|
|
2362
2366
|
validateCellForm() {
|
|
2363
2367
|
return new Promise((e) => {
|
|
@@ -2389,16 +2393,16 @@ var Ue = {
|
|
|
2389
2393
|
return this.$refs.dialogForm.$refs.tableForm.getPropRef(e);
|
|
2390
2394
|
},
|
|
2391
2395
|
setVal() {
|
|
2392
|
-
this.$emit("
|
|
2396
|
+
this.$emit("update:modelValue", this.tableForm), this.$emit("change", this.tableForm);
|
|
2393
2397
|
},
|
|
2394
|
-
rowEdit(e,
|
|
2395
|
-
this.tableForm =
|
|
2398
|
+
rowEdit(e, n) {
|
|
2399
|
+
this.tableForm = t(e), this.tableIndex = n, this.setVal(), this.$refs.dialogForm.show("edit");
|
|
2396
2400
|
},
|
|
2397
2401
|
rowCopy(e) {
|
|
2398
|
-
this.tableForm =
|
|
2402
|
+
this.tableForm = t(e), delete this.tableForm[this.rowKey], this.tableIndex = -1, this.setVal(), this.$refs.dialogForm.show("add");
|
|
2399
2403
|
},
|
|
2400
|
-
rowView(e,
|
|
2401
|
-
this.tableForm =
|
|
2404
|
+
rowView(e, n) {
|
|
2405
|
+
this.tableForm = t(e), this.tableIndex = n, this.setVal(), this.$refs.dialogForm.show("view");
|
|
2402
2406
|
},
|
|
2403
2407
|
rowDel(e, t) {
|
|
2404
2408
|
this.$emit("row-del", e, t, () => {
|
|
@@ -2441,12 +2445,12 @@ var Ue = {
|
|
|
2441
2445
|
tableDrop(e, t, n) {
|
|
2442
2446
|
if (!(this.isSortable !== !0 && (e === "row" && !this.isRowSort || e === "column" && !this.isColumnSort))) {
|
|
2443
2447
|
if (!window.Sortable) {
|
|
2444
|
-
|
|
2448
|
+
_.logs("Sortable");
|
|
2445
2449
|
return;
|
|
2446
2450
|
}
|
|
2447
2451
|
window.Sortable.create(t, {
|
|
2448
|
-
ghostClass:
|
|
2449
|
-
chosenClass:
|
|
2452
|
+
ghostClass: q.ghostClass,
|
|
2453
|
+
chosenClass: q.ghostClass,
|
|
2450
2454
|
animation: 500,
|
|
2451
2455
|
delay: 0,
|
|
2452
2456
|
onEnd: (e) => n(e)
|
|
@@ -2467,71 +2471,71 @@ var Ue = {
|
|
|
2467
2471
|
return n(this.list), t;
|
|
2468
2472
|
}
|
|
2469
2473
|
}
|
|
2470
|
-
},
|
|
2471
|
-
function
|
|
2472
|
-
let o =
|
|
2473
|
-
return
|
|
2474
|
-
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"), {
|
|
2475
2479
|
key: 0,
|
|
2476
|
-
style:
|
|
2480
|
+
style: I(e.tableOption.titleStyle)
|
|
2477
2481
|
}, {
|
|
2478
|
-
default:
|
|
2482
|
+
default: W(() => [A(U(e.tableOption.title), 1)]),
|
|
2479
2483
|
_: 1
|
|
2480
|
-
}, 8, ["style"])) :
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
search:
|
|
2484
|
-
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)))]),
|
|
2485
2489
|
_: 2
|
|
2486
|
-
}, [
|
|
2490
|
+
}, [R(a.searchSlot, (t) => ({
|
|
2487
2491
|
name: t,
|
|
2488
|
-
fn:
|
|
2492
|
+
fn: W((n) => [z(e.$slots, t, F(M(n)))])
|
|
2489
2493
|
}))]), 1536),
|
|
2490
|
-
|
|
2491
|
-
a.optVal(e.tableOption.header, !0) ? (
|
|
2494
|
+
E(" 表格功能列 "),
|
|
2495
|
+
a.optVal(e.tableOption.header, !0) ? (L(), T(s, {
|
|
2492
2496
|
key: 1,
|
|
2493
2497
|
ref: "headerMenu"
|
|
2494
2498
|
}, {
|
|
2495
|
-
menuLeft:
|
|
2496
|
-
menuRight:
|
|
2499
|
+
menuLeft: W((t) => [z(e.$slots, "menuLeft", F(M(t)))]),
|
|
2500
|
+
menuRight: W((t) => [z(e.$slots, "menuRight", F(M(t)))]),
|
|
2497
2501
|
_: 3
|
|
2498
|
-
}, 512)) :
|
|
2499
|
-
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, {
|
|
2500
2504
|
key: 2,
|
|
2505
|
+
"disable-transitions": "",
|
|
2501
2506
|
class: "avue-crud__tip"
|
|
2502
2507
|
}, {
|
|
2503
|
-
default:
|
|
2504
|
-
|
|
2505
|
-
t[0] || (t[0] =
|
|
2506
|
-
|
|
2507
|
-
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))
|
|
2508
2513
|
]),
|
|
2509
|
-
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, {
|
|
2510
2515
|
key: 0,
|
|
2511
|
-
|
|
2512
|
-
size: "default",
|
|
2516
|
+
text: "",
|
|
2513
2517
|
onClick: a.selectClear
|
|
2514
2518
|
}, {
|
|
2515
|
-
default:
|
|
2519
|
+
default: W(() => [...t[2] || (t[2] = [A(" 清 空 ", -1)])]),
|
|
2516
2520
|
_: 1
|
|
2517
|
-
}, 8, ["onClick"])), [[x, a.getPermission("selectClearBtn")]]) :
|
|
2518
|
-
|
|
2521
|
+
}, 8, ["onClick"])), [[x, a.getPermission("selectClearBtn")]]) : E("v-if", !0),
|
|
2522
|
+
z(e.$slots, "tip")
|
|
2519
2523
|
]),
|
|
2520
2524
|
_: 3
|
|
2521
|
-
})) :
|
|
2522
|
-
|
|
2523
|
-
|
|
2525
|
+
})) : E("v-if", !0),
|
|
2526
|
+
z(e.$slots, "header"),
|
|
2527
|
+
j(h, {
|
|
2524
2528
|
ref: "cellForm",
|
|
2525
2529
|
model: i.cellForm,
|
|
2526
2530
|
"show-message": !1,
|
|
2527
2531
|
onValidate: a.handleValidate
|
|
2528
2532
|
}, {
|
|
2529
|
-
default:
|
|
2533
|
+
default: W(() => [G((L(), T(m, {
|
|
2530
2534
|
key: i.reload,
|
|
2531
2535
|
ref: "table",
|
|
2532
2536
|
data: i.cellForm.list,
|
|
2533
2537
|
"row-key": e.rowKey,
|
|
2534
|
-
class:
|
|
2538
|
+
class: P({ "avue-crud--indeterminate": a.optVal(e.tableOption.indeterminate, !1) }),
|
|
2535
2539
|
size: e.$AVUE.tableSize || e.controlSize,
|
|
2536
2540
|
lazy: a.optVal(e.tableOption.lazy, !1),
|
|
2537
2541
|
load: a.treeLoad,
|
|
@@ -2573,50 +2577,50 @@ function qe(e, t, n, r, i, a) {
|
|
|
2573
2577
|
onSelectAll: a.selectAll,
|
|
2574
2578
|
onSortChange: a.sortChange
|
|
2575
2579
|
}, {
|
|
2576
|
-
empty:
|
|
2580
|
+
empty: W(() => [e.$slots.empty ? z(e.$slots, "empty", { key: 0 }) : (L(), T(p, {
|
|
2577
2581
|
key: 1,
|
|
2578
2582
|
"image-size": 100,
|
|
2579
2583
|
class: "avue-crud__empty",
|
|
2580
2584
|
description: e.tableOption.emptyText
|
|
2581
2585
|
}, null, 8, ["description"]))]),
|
|
2582
|
-
default:
|
|
2583
|
-
header:
|
|
2584
|
-
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", {
|
|
2585
2589
|
row: t,
|
|
2586
2590
|
index: n
|
|
2587
2591
|
})]),
|
|
2588
2592
|
_: 3
|
|
2589
2593
|
}, 512)]),
|
|
2590
|
-
footer:
|
|
2591
|
-
menu:
|
|
2592
|
-
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)))]),
|
|
2593
2597
|
_: 3
|
|
2594
2598
|
})]),
|
|
2595
2599
|
_: 2
|
|
2596
|
-
}, [
|
|
2600
|
+
}, [R(a.mainSlot, (t) => ({
|
|
2597
2601
|
name: t,
|
|
2598
|
-
fn:
|
|
2602
|
+
fn: W((n) => [z(e.$slots, t, F(M(n)))])
|
|
2599
2603
|
}))]), 1032, ["column-option"])]),
|
|
2600
2604
|
_: 3
|
|
2601
|
-
}, 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]])]),
|
|
2602
2606
|
_: 3
|
|
2603
2607
|
}, 8, ["model", "onValidate"]),
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
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)))]),
|
|
2610
2614
|
_: 2
|
|
2611
|
-
}, [
|
|
2615
|
+
}, [R(a.formSlot, (t) => ({
|
|
2612
2616
|
name: t,
|
|
2613
|
-
fn:
|
|
2617
|
+
fn: W((n) => [z(e.$slots, t, F(M(n)))])
|
|
2614
2618
|
}))]), 1536),
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2619
|
+
j(v, { ref: "dialogColumn" }, null, 512),
|
|
2620
|
+
j(y, { ref: "dialogExcel" }, null, 512),
|
|
2621
|
+
j(b, { ref: "dialogFilter" }, null, 512)
|
|
2618
2622
|
]);
|
|
2619
2623
|
}
|
|
2620
|
-
var
|
|
2624
|
+
var Xe = /* @__PURE__ */ v(Ge, [["render", Ye]]);
|
|
2621
2625
|
//#endregion
|
|
2622
|
-
export {
|
|
2626
|
+
export { Xe as t };
|