@web-utils/form-ui 1.0.0-beta72 → 1.0.0-beta74
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/address-input/index.mjs +1 -1
- package/affix/index.d.ts +0 -2
- package/affix/index.mjs +2 -3
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -16
- package/chunks/-fXBgN9b2.mjs +37 -0
- package/chunks/{-UHCmZBh.mjs → -yfgKY3g.mjs} +1 -1
- package/chunks/{Ciy3EJGG2.mjs → -zgWD713.mjs} +44 -45
- package/chunks/{qFn9SqfB2.mjs → 7_9hAeqb.mjs} +72 -73
- package/chunks/{CidE_6Q52.mjs → 8A7LSgb4.mjs} +26 -27
- package/chunks/B0BOjeph2.mjs +108 -0
- package/chunks/BE4V5Vf5.mjs +133 -0
- package/chunks/{Diidem-9.mjs → BGJjAw5E.mjs} +1 -1
- package/chunks/{BJNI7n9Z.mjs → BH7VEktl.mjs} +19 -19
- package/chunks/{BrJzSp9f.mjs → BI6kCG2j2.mjs} +2 -2
- package/chunks/BctSGDgW2.mjs +29 -0
- package/chunks/BhIWiH5R.mjs +661 -0
- package/chunks/BhzlH7Az.mjs +90 -0
- package/chunks/{DWjZMJ1e2.mjs → Bj0kgDOA.mjs} +132 -133
- package/chunks/{DmEOzzaP2.mjs → BrelfRGo2.mjs} +14 -14
- package/chunks/{X6BItEt1.mjs → BsqIRxSS.mjs} +6 -7
- package/chunks/{Bnm0osro.mjs → Byy1rvPO.mjs} +13 -16
- package/chunks/{iPHgzcZ0.mjs → C6mb7Nru2.mjs} +4 -4
- package/chunks/{Bhkk9TmJ2.mjs → CFoSvMJ-2.mjs} +1 -1
- package/chunks/{Vrr45MGv.mjs → CO3taG7t2.mjs} +1 -1
- package/chunks/{QAHALDuF2.mjs → CWBRpkHy.mjs} +138 -139
- package/chunks/Ccxbv7uz2.mjs +34 -0
- package/chunks/Ce4tNNzg2.mjs +63 -0
- package/chunks/{SEQG09ut.mjs → CelJ2L8A2.mjs} +2 -2
- package/chunks/CjYOitzM2.mjs +31 -0
- package/chunks/Cknuquqx.mjs +32 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/CwyebsNL2.mjs +39 -0
- package/chunks/{CJl5ZiUq2.mjs → D4Pd8rZi.mjs} +28 -30
- package/chunks/D6YM84Pf2.mjs +29 -0
- package/chunks/{DlROUHPJ2.mjs → DTq5QLoT.mjs} +43 -43
- package/chunks/{5oaTzHT-2.mjs → DVMfVn-M.mjs} +14 -13
- package/chunks/DVdQHb_v.mjs +50 -0
- package/chunks/{YS7hFnUB2.mjs → Daa7nl7U.mjs} +19 -19
- package/chunks/{D6TSUCGL.mjs → Dh_BQpvC2.mjs} +2 -2
- package/chunks/DizOY5i8.mjs +69 -0
- package/chunks/{Czi7_tAe.mjs → DjaV6_cg2.mjs} +2 -2
- package/chunks/{CKWgRCN52.mjs → Dm3gQGoV2.mjs} +2 -2
- package/chunks/DqW9QtF3.mjs +68 -0
- package/chunks/{CKbOqPFm2.mjs → DqWJCka8.mjs} +9 -9
- package/chunks/{CIerTjpq2.mjs → DrWUdRj32.mjs} +2 -2
- package/chunks/{BrSZZNRc.mjs → DucSg7Mt.mjs} +70 -72
- package/chunks/Dv7YRB2U2.mjs +25 -0
- package/chunks/DyLQsqWJ.mjs +61 -0
- package/chunks/HsHwYW1a.mjs +99 -0
- package/chunks/KDVLIvaS.mjs +30 -0
- package/chunks/{BHwRv4F0.mjs → Lkg7bYLD2.mjs} +73 -74
- package/chunks/OBTStTaa.mjs +179 -0
- package/chunks/{DSnICEQN.mjs → Opn85Hlx2.mjs} +1 -1
- package/chunks/{C9nRNgwm2.mjs → QTy8g5MS.mjs} +589 -763
- package/chunks/{CsA_9MVv.mjs → YdNYH25C.mjs} +1 -1
- package/chunks/_q6JzJYp.mjs +773 -0
- package/chunks/{BiYsC43_.mjs → gTgPZrgY2.mjs} +119 -120
- package/chunks/{D2FNAA1a.mjs → jsgk7Yse2.mjs} +2 -2
- package/chunks/nL59ZuIk.mjs +58 -0
- package/chunks/{BJuAz5lX2.mjs → sWVkgzQt2.mjs} +2 -2
- package/chunks/{DN2qkQvd.mjs → tjwOOiNr2.mjs} +31 -32
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +9 -10
- package/data-card/index.mjs +8 -9
- package/data-card-text/index.mjs +8 -9
- package/data-display/index.mjs +9 -10
- package/data-icons/index.mjs +9 -10
- package/data-imgtext/index.mjs +9 -11
- package/data-operatext/index.mjs +8 -9
- package/data-panel/index.mjs +9 -10
- package/data-pay/index.mjs +10 -12
- package/data-price/index.mjs +8 -9
- package/data-progress/index.mjs +10 -11
- package/data-rotate/index.mjs +9 -10
- package/data-table-picker/index.mjs +11 -12
- package/data-tabs/index.mjs +9 -10
- package/dict-render/index.mjs +1 -1
- package/e-charts/index.mjs +2 -2
- package/easy-popup/index.mjs +1 -1
- package/editable-progress/index.mjs +8 -8
- package/editable-tree/index.mjs +595 -2
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/flex-box/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flex-scroller/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +3 -3
- package/guide-steps/index.mjs +77 -2
- package/guide-steps/style.css +1 -1
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +12 -11
- package/image-preview/index.d.ts +1 -153
- package/image-preview/index.mjs +201 -2
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +101 -101
- package/input-number-range/index.mjs +7 -7
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -4
- package/package.json +5 -1
- package/page-index/index.mjs +14 -14
- package/page-index-top/index.mjs +12 -12
- package/pageable-table/index.mjs +1 -1
- package/pageable-table/style.css +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/props/col.mjs +1 -1
- package/props/form-item.mjs +1 -1
- package/sign-panel/index.mjs +1 -1
- package/skeleton-panel/index.mjs +3 -3
- package/split-pane/index.mjs +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +109 -110
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +21 -23
- package/text-ellipsis/index.d.ts +1 -1
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.d.ts +1 -1
- package/vue-video-player/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +47 -50
- package/year-calendar/index.mjs +1 -1
- package/year-calendar/style.css +1 -1
- package/chunks/49634Q2N2.mjs +0 -936
- package/chunks/77cFhiAz.mjs +0 -13
- package/chunks/7JVbVOff2.mjs +0 -46
- package/chunks/B1ATN2my.mjs +0 -26
- package/chunks/B7O8aGqC2.mjs +0 -58
- package/chunks/BBPczt0U.mjs +0 -4
- package/chunks/BCwAowl1.mjs +0 -589
- package/chunks/BDVLN2ly.mjs +0 -105
- package/chunks/BEIlrURf.mjs +0 -251
- package/chunks/BEysX5TF2.mjs +0 -1038
- package/chunks/BHVyaqk0.mjs +0 -736
- package/chunks/BIj6pa8Z.mjs +0 -15
- package/chunks/BMWg0Wyj.mjs +0 -223
- package/chunks/BOsml5YC.mjs +0 -69
- package/chunks/BPwFiWYl2.mjs +0 -226
- package/chunks/BVIHqL6g.mjs +0 -17
- package/chunks/BVSQ6DfJ.mjs +0 -17
- package/chunks/BWqFKbFT.mjs +0 -1
- package/chunks/B__5L22p2.mjs +0 -346
- package/chunks/Bcpewc6H.mjs +0 -1279
- package/chunks/Bdeug17L.mjs +0 -42
- package/chunks/BffxPn8a.mjs +0 -34
- package/chunks/BgKQXQO_.mjs +0 -3093
- package/chunks/Bgw_3soo.mjs +0 -35
- package/chunks/BjCfQFUL.mjs +0 -54
- package/chunks/BjWs-r2V.mjs +0 -25
- package/chunks/BlB1fEo92.mjs +0 -8
- package/chunks/BmP9lQmT.mjs +0 -1
- package/chunks/BrYtAPbN2.mjs +0 -161
- package/chunks/BsKwchVA.mjs +0 -14
- package/chunks/Bxo1Of95.mjs +0 -479
- package/chunks/BzFYbCpR.mjs +0 -25
- package/chunks/C6puxasG.mjs +0 -34
- package/chunks/C7l9aZGE.mjs +0 -577
- package/chunks/CDRNaOEg2.mjs +0 -274
- package/chunks/CG7AYiWy.mjs +0 -1
- package/chunks/CLzc_j7_.mjs +0 -234
- package/chunks/CQSTyCVP.mjs +0 -6
- package/chunks/CQxz8uUc.mjs +0 -454
- package/chunks/CU8bKuD12.mjs +0 -237
- package/chunks/CUF58PQ6.mjs +0 -1
- package/chunks/CUMFv5zJ2.mjs +0 -136
- package/chunks/C_eGir-J.mjs +0 -17
- package/chunks/Cb6Zx6UC.mjs +0 -29
- package/chunks/Cb_S4x_i2.mjs +0 -1098
- package/chunks/CbgD7y-5.mjs +0 -5
- package/chunks/CbsGuLZz2.mjs +0 -105
- package/chunks/CcT5SsZk.mjs +0 -48
- package/chunks/CcnjxILx.mjs +0 -1
- package/chunks/ChkCT6Mm.mjs +0 -4
- package/chunks/CiFlMt6Z.mjs +0 -41
- package/chunks/CiOqOUkG.mjs +0 -1
- package/chunks/CkXf_DVJ2.mjs +0 -1
- package/chunks/CnCSm3LY2.mjs +0 -4
- package/chunks/CnqWFDqp2.mjs +0 -244
- package/chunks/Cq0oEWRi2.mjs +0 -384
- package/chunks/CtBIjjQc2.mjs +0 -58
- package/chunks/Ctd3_wOH2.mjs +0 -6
- package/chunks/CuoYjthQ.mjs +0 -643
- package/chunks/CwhXr2Qc.mjs +0 -1
- package/chunks/D-hj62se2.mjs +0 -525
- package/chunks/D3VpXXqv.mjs +0 -1331
- package/chunks/D3Xixh5v.mjs +0 -5
- package/chunks/D4oNQiIK.mjs +0 -461
- package/chunks/D7O9ov79.mjs +0 -447
- package/chunks/D8fid28s2.mjs +0 -42
- package/chunks/DJdhVUFO2.mjs +0 -2435
- package/chunks/DJo_1CEK2.mjs +0 -61
- package/chunks/DMBx2EQl.mjs +0 -107
- package/chunks/DOCwznnS.mjs +0 -62
- package/chunks/DStwh2ne.mjs +0 -281
- package/chunks/D_5z5Xeq2.mjs +0 -37
- package/chunks/Df9VO_Wn2.mjs +0 -2
- package/chunks/Dg9Q-Tbi2.mjs +0 -299
- package/chunks/Diyl8upM.mjs +0 -277
- package/chunks/DjIPzCCR.mjs +0 -2
- package/chunks/DnBzQ-xh.mjs +0 -4
- package/chunks/Dp195RgF.mjs +0 -2
- package/chunks/Dqu1Etz62.mjs +0 -52
- package/chunks/DrKq_frR.mjs +0 -98
- package/chunks/DrXfCf172.mjs +0 -440
- package/chunks/DsZznbt2.mjs +0 -208
- package/chunks/Dsd58O0g.mjs +0 -25
- package/chunks/DssopN-n2.mjs +0 -97
- package/chunks/Dtq1xYk8.mjs +0 -47
- package/chunks/FeuisuNY2.mjs +0 -88
- package/chunks/GEtlriHC.mjs +0 -188
- package/chunks/GsvG1yFW.mjs +0 -1919
- package/chunks/IheQdJ0z.mjs +0 -267
- package/chunks/KGmxNbpi.mjs +0 -21
- package/chunks/PNyFONog2.mjs +0 -69
- package/chunks/T70m4caR.mjs +0 -1095
- package/chunks/ZBsqmcIN2.mjs +0 -622
- package/chunks/akEzJ4kG.mjs +0 -18
- package/chunks/fX1GD0G5.mjs +0 -70
- package/chunks/gh52LMTG.mjs +0 -12
- package/chunks/hgAOQY9a.mjs +0 -406
- package/chunks/iu5J8EF_.mjs +0 -197
- package/chunks/lGc5ksPb.mjs +0 -279
- package/chunks/pZQfJv282.mjs +0 -4
- package/chunks/qrHhuZXg.mjs +0 -465
- package/chunks/r8gDbwly.mjs +0 -1
- package/chunks/vpwjmKdg2.mjs +0 -32
- package/css/style.css +0 -1
- package/css/style10.css +0 -1
- package/css/style11.css +0 -1
- package/css/style12.css +0 -1
- package/css/style13.css +0 -1
- package/css/style14.css +0 -1
- package/css/style15.css +0 -1
- package/css/style16.css +0 -1
- package/css/style17.css +0 -1
- package/css/style18.css +0 -1
- package/css/style19.css +0 -1
- package/css/style2.css +0 -1
- package/css/style20.css +0 -1
- package/css/style21.css +0 -1
- package/css/style22.css +0 -1
- package/css/style23.css +0 -1
- package/css/style24.css +0 -1
- package/css/style25.css +0 -1
- package/css/style26.css +0 -1
- package/css/style27.css +0 -1
- package/css/style28.css +0 -1
- package/css/style29.css +0 -1
- package/css/style3.css +0 -1
- package/css/style4.css +0 -1
- package/css/style5.css +0 -1
- package/css/style6.css +0 -1
- package/css/style7.css +0 -1
- package/css/style8.css +0 -1
- package/css/style9.css +0 -1
- package/form-date-picker/style.css +0 -1
- package/form-image/style.css +0 -1
- package/form-input-time/style.css +0 -1
- package/form-radio-group/style.css +0 -1
- package/form-rate/style.css +0 -1
- package/form-time-select/style.css +0 -1
- /package/chunks/{CZnBtJW02.mjs → BBvIPqcc.mjs} +0 -0
- /package/chunks/{iIozz7ce.mjs → BoCxKwBf.mjs} +0 -0
- /package/chunks/{BxRjXAwz.mjs → CE67pCwD.mjs} +0 -0
- /package/chunks/{DWhGFQkb2.mjs → CQeEP_Tl.mjs} +0 -0
- /package/chunks/{BQ0e8kIi.mjs → CaczibeD.mjs} +0 -0
- /package/chunks/{B_80qPvY.mjs → DZCryyFG.mjs} +0 -0
- /package/chunks/{q5iCsXNv.mjs → Dq63V0CC.mjs} +0 -0
- /package/chunks/{CRjUGi_-.mjs → OEBJ-trG.mjs} +0 -0
- /package/chunks/{GYddfy8T.mjs → fjtZc9Rq2.mjs} +0 -0
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { n as e } from "./CjjJimnU.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { t as l } from "./Cq0oEWRi2.mjs";
|
|
8
|
-
import { t as u } from "./D8fid28s2.mjs";
|
|
9
|
-
import { t as d } from "./BPwFiWYl2.mjs";
|
|
10
|
-
/* empty css */
|
|
11
|
-
import "./CiOqOUkG.mjs";
|
|
12
|
-
import { t as f } from "./BQ0e8kIi.mjs";
|
|
13
|
-
import "./CwhXr2Qc.mjs";
|
|
14
|
-
import "./ChkCT6Mm.mjs";
|
|
15
|
-
import "./BWqFKbFT.mjs";
|
|
16
|
-
import "./r8gDbwly.mjs";
|
|
2
|
+
import { t } from "./CaczibeD.mjs";
|
|
3
|
+
import { t as n } from "./OBTStTaa.mjs";
|
|
4
|
+
import { ElButton as r, ElDivider as i, ElDrawer as a, ElForm as o, ElFormItem as s, ElInput as c, ElOption as l, ElSelect as u, ElTable as d, ElTableColumn as f } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import "element-plus/es/components/input/style/css";
|
|
17
7
|
import { Fragment as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, openBlock as b, renderList as x, withCtx as S, withModifiers as C } from "vue";
|
|
18
8
|
import { fastClone as w } from "@web-utils/core";
|
|
9
|
+
import "element-plus/es/components/button/style/css";
|
|
10
|
+
import "element-plus/es/components/drawer/style/css";
|
|
11
|
+
import "element-plus/es/components/table/style/css";
|
|
12
|
+
import "element-plus/es/components/table-column/style/css";
|
|
13
|
+
import "element-plus/es/components/form/style/css";
|
|
14
|
+
import "element-plus/es/components/form-item/style/css";
|
|
15
|
+
import "element-plus/es/components/select/style/css";
|
|
16
|
+
import "element-plus/es/components/option/style/css";
|
|
17
|
+
import "element-plus/es/components/divider/style/css";
|
|
19
18
|
//#region src/components/bpmn-process-designer/components/penal/form/ElementForm.vue
|
|
20
19
|
var T = /* @__PURE__ */ e({ default: () => F }), E = {
|
|
21
20
|
name: "ElementForm",
|
|
@@ -144,17 +143,17 @@ var T = /* @__PURE__ */ e({ default: () => F }), E = {
|
|
|
144
143
|
class: "listener-filed__title",
|
|
145
144
|
style: { "padding-bottom": "6px" }
|
|
146
145
|
}, N = { class: "element-drawer__button" };
|
|
147
|
-
function P(e,
|
|
148
|
-
let F =
|
|
146
|
+
function P(e, t, w, T, E, P) {
|
|
147
|
+
let F = c, I = s, L = l, R = u, z = o, B = i, V = f, H = r, U = d, W = a, G = n;
|
|
149
148
|
return b(), g("div", D, [
|
|
150
149
|
y(z, {
|
|
151
150
|
"label-width": "80px",
|
|
152
|
-
onSubmit:
|
|
151
|
+
onSubmit: t[2] || (t[2] = C(() => {}, ["prevent"]))
|
|
153
152
|
}, {
|
|
154
153
|
default: S(() => [y(I, { label: "表单标识" }, {
|
|
155
154
|
default: S(() => [y(F, {
|
|
156
155
|
modelValue: E.formKey,
|
|
157
|
-
"onUpdate:modelValue":
|
|
156
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => E.formKey = e),
|
|
158
157
|
clearable: "",
|
|
159
158
|
onChange: P.updateElementFormKey
|
|
160
159
|
}, null, 8, ["modelValue", "onChange"])]),
|
|
@@ -162,7 +161,7 @@ function P(e, f, w, T, E, P) {
|
|
|
162
161
|
}), y(I, { label: "业务标识" }, {
|
|
163
162
|
default: S(() => [y(R, {
|
|
164
163
|
modelValue: E.businessKey,
|
|
165
|
-
"onUpdate:modelValue":
|
|
164
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => E.businessKey = e),
|
|
166
165
|
onChange: P.updateElementBusinessKey
|
|
167
166
|
}, {
|
|
168
167
|
default: S(() => [(b(!0), g(p, null, x(E.fieldList, (e) => (b(), m(L, {
|
|
@@ -181,7 +180,7 @@ function P(e, f, w, T, E, P) {
|
|
|
181
180
|
}),
|
|
182
181
|
h("字段列表"),
|
|
183
182
|
_("div", O, [y(B, null, {
|
|
184
|
-
default: S(() => [...
|
|
183
|
+
default: S(() => [...t[23] || (t[23] = [_("i", { class: "el-icon-coin" }, null, -1), v(" 表单字段 ", -1)])]),
|
|
185
184
|
_: 1
|
|
186
185
|
}), y(U, {
|
|
187
186
|
data: E.fieldList,
|
|
@@ -218,21 +217,21 @@ function P(e, f, w, T, E, P) {
|
|
|
218
217
|
label: "操作",
|
|
219
218
|
width: "90px"
|
|
220
219
|
}, {
|
|
221
|
-
default: S(({ row: e, $index:
|
|
220
|
+
default: S(({ row: e, $index: n }) => [
|
|
222
221
|
y(H, {
|
|
223
222
|
text: "",
|
|
224
|
-
onClick: (
|
|
223
|
+
onClick: (t) => P.openFieldForm(e, n)
|
|
225
224
|
}, {
|
|
226
|
-
default: S(() => [...
|
|
225
|
+
default: S(() => [...t[24] || (t[24] = [v("编辑", -1)])]),
|
|
227
226
|
_: 1
|
|
228
227
|
}, 8, ["onClick"]),
|
|
229
228
|
y(B, { direction: "vertical" }),
|
|
230
229
|
y(H, {
|
|
231
230
|
text: "",
|
|
232
231
|
style: { color: "#ff4d4f" },
|
|
233
|
-
onClick: (
|
|
232
|
+
onClick: (t) => P.removeField(e, n)
|
|
234
233
|
}, {
|
|
235
|
-
default: S(() => [...
|
|
234
|
+
default: S(() => [...t[25] || (t[25] = [v("移除", -1)])]),
|
|
236
235
|
_: 1
|
|
237
236
|
}, 8, ["onClick"])
|
|
238
237
|
]),
|
|
@@ -244,15 +243,15 @@ function P(e, f, w, T, E, P) {
|
|
|
244
243
|
_("div", k, [y(H, {
|
|
245
244
|
type: "primary",
|
|
246
245
|
icon: "el-icon-plus",
|
|
247
|
-
onClick:
|
|
246
|
+
onClick: t[3] || (t[3] = (e) => P.openFieldForm(null, -1))
|
|
248
247
|
}, {
|
|
249
|
-
default: S(() => [...
|
|
248
|
+
default: S(() => [...t[26] || (t[26] = [v("添加字段", -1)])]),
|
|
250
249
|
_: 1
|
|
251
250
|
})]),
|
|
252
251
|
h("字段配置侧边栏"),
|
|
253
252
|
y(W, {
|
|
254
253
|
visible: E.fieldModelVisible,
|
|
255
|
-
"onUpdate:visible":
|
|
254
|
+
"onUpdate:visible": t[15] || (t[15] = (e) => E.fieldModelVisible = e),
|
|
256
255
|
class: "flow-drawer",
|
|
257
256
|
title: "字段配置",
|
|
258
257
|
size: `${P.width}px`,
|
|
@@ -264,13 +263,13 @@ function P(e, f, w, T, E, P) {
|
|
|
264
263
|
y(z, {
|
|
265
264
|
model: E.formFieldForm,
|
|
266
265
|
"label-width": "90px",
|
|
267
|
-
onSubmit:
|
|
266
|
+
onSubmit: t[10] || (t[10] = C(() => {}, ["prevent"]))
|
|
268
267
|
}, {
|
|
269
268
|
default: S(() => [
|
|
270
269
|
y(I, { label: "字段ID" }, {
|
|
271
270
|
default: S(() => [y(F, {
|
|
272
271
|
modelValue: E.formFieldForm.id,
|
|
273
|
-
"onUpdate:modelValue":
|
|
272
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => E.formFieldForm.id = e),
|
|
274
273
|
clearable: ""
|
|
275
274
|
}, null, 8, ["modelValue"])]),
|
|
276
275
|
_: 1
|
|
@@ -278,7 +277,7 @@ function P(e, f, w, T, E, P) {
|
|
|
278
277
|
y(I, { label: "类型" }, {
|
|
279
278
|
default: S(() => [y(R, {
|
|
280
279
|
modelValue: E.formFieldForm.typeType,
|
|
281
|
-
"onUpdate:modelValue":
|
|
280
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => E.formFieldForm.typeType = e),
|
|
282
281
|
placeholder: "请选择字段类型",
|
|
283
282
|
clearable: "",
|
|
284
283
|
onChange: P.changeFieldTypeType
|
|
@@ -298,7 +297,7 @@ function P(e, f, w, T, E, P) {
|
|
|
298
297
|
}, {
|
|
299
298
|
default: S(() => [y(F, {
|
|
300
299
|
modelValue: E.formFieldForm.type,
|
|
301
|
-
"onUpdate:modelValue":
|
|
300
|
+
"onUpdate:modelValue": t[6] || (t[6] = (e) => E.formFieldForm.type = e),
|
|
302
301
|
clearable: ""
|
|
303
302
|
}, null, 8, ["modelValue"])]),
|
|
304
303
|
_: 1
|
|
@@ -306,7 +305,7 @@ function P(e, f, w, T, E, P) {
|
|
|
306
305
|
y(I, { label: "名称" }, {
|
|
307
306
|
default: S(() => [y(F, {
|
|
308
307
|
modelValue: E.formFieldForm.label,
|
|
309
|
-
"onUpdate:modelValue":
|
|
308
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => E.formFieldForm.label = e),
|
|
310
309
|
clearable: ""
|
|
311
310
|
}, null, 8, ["modelValue"])]),
|
|
312
311
|
_: 1
|
|
@@ -317,7 +316,7 @@ function P(e, f, w, T, E, P) {
|
|
|
317
316
|
}, {
|
|
318
317
|
default: S(() => [y(F, {
|
|
319
318
|
modelValue: E.formFieldForm.datePattern,
|
|
320
|
-
"onUpdate:modelValue":
|
|
319
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => E.formFieldForm.datePattern = e),
|
|
321
320
|
clearable: ""
|
|
322
321
|
}, null, 8, ["modelValue"])]),
|
|
323
322
|
_: 1
|
|
@@ -325,7 +324,7 @@ function P(e, f, w, T, E, P) {
|
|
|
325
324
|
y(I, { label: "默认值" }, {
|
|
326
325
|
default: S(() => [y(F, {
|
|
327
326
|
modelValue: E.formFieldForm.defaultValue,
|
|
328
|
-
"onUpdate:modelValue":
|
|
327
|
+
"onUpdate:modelValue": t[9] || (t[9] = (e) => E.formFieldForm.defaultValue = e),
|
|
329
328
|
clearable: ""
|
|
330
329
|
}, null, 8, ["modelValue"])]),
|
|
331
330
|
_: 1
|
|
@@ -336,11 +335,11 @@ function P(e, f, w, T, E, P) {
|
|
|
336
335
|
h(" 枚举值设置 "),
|
|
337
336
|
E.formFieldForm.type === "enum" ? (b(), g(p, { key: 0 }, [
|
|
338
337
|
y(B, { key: "enum-divider" }),
|
|
339
|
-
_("p", A, [
|
|
338
|
+
_("p", A, [t[28] || (t[28] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 枚举值列表: ")], -1)), y(H, {
|
|
340
339
|
type: "primary",
|
|
341
|
-
onClick:
|
|
340
|
+
onClick: t[11] || (t[11] = (e) => P.openFieldOptionForm(null, -1, "enum"))
|
|
342
341
|
}, {
|
|
343
|
-
default: S(() => [...
|
|
342
|
+
default: S(() => [...t[27] || (t[27] = [v("添加枚举值", -1)])]),
|
|
344
343
|
_: 1
|
|
345
344
|
})]),
|
|
346
345
|
y(U, {
|
|
@@ -372,21 +371,21 @@ function P(e, f, w, T, E, P) {
|
|
|
372
371
|
label: "操作",
|
|
373
372
|
width: "90px"
|
|
374
373
|
}, {
|
|
375
|
-
default: S(({ row: e, $index:
|
|
374
|
+
default: S(({ row: e, $index: n }) => [
|
|
376
375
|
y(H, {
|
|
377
376
|
text: "",
|
|
378
|
-
onClick: (
|
|
377
|
+
onClick: (t) => P.openFieldOptionForm(e, n, "enum")
|
|
379
378
|
}, {
|
|
380
|
-
default: S(() => [...
|
|
379
|
+
default: S(() => [...t[29] || (t[29] = [v("编辑", -1)])]),
|
|
381
380
|
_: 1
|
|
382
381
|
}, 8, ["onClick"]),
|
|
383
382
|
y(B, { direction: "vertical" }),
|
|
384
383
|
y(H, {
|
|
385
384
|
text: "",
|
|
386
385
|
style: { color: "#ff4d4f" },
|
|
387
|
-
onClick: (
|
|
386
|
+
onClick: (t) => P.removeFieldOptionItem(e, n, "enum")
|
|
388
387
|
}, {
|
|
389
|
-
default: S(() => [...
|
|
388
|
+
default: S(() => [...t[30] || (t[30] = [v("移除", -1)])]),
|
|
390
389
|
_: 1
|
|
391
390
|
}, 8, ["onClick"])
|
|
392
391
|
]),
|
|
@@ -398,12 +397,12 @@ function P(e, f, w, T, E, P) {
|
|
|
398
397
|
], 64)) : h("v-if", !0),
|
|
399
398
|
h(" 校验规则 "),
|
|
400
399
|
y(B, { key: "validation-divider" }),
|
|
401
|
-
_("p", j, [
|
|
400
|
+
_("p", j, [t[32] || (t[32] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 约束条件列表: ")], -1)), y(H, {
|
|
402
401
|
type: "primary",
|
|
403
402
|
style: { "margin-left": "auto" },
|
|
404
|
-
onClick:
|
|
403
|
+
onClick: t[12] || (t[12] = (e) => P.openFieldOptionForm(null, -1, "constraint"))
|
|
405
404
|
}, {
|
|
406
|
-
default: S(() => [...
|
|
405
|
+
default: S(() => [...t[31] || (t[31] = [v(" 添加约束 ", -1)])]),
|
|
407
406
|
_: 1
|
|
408
407
|
})]),
|
|
409
408
|
y(U, {
|
|
@@ -435,21 +434,21 @@ function P(e, f, w, T, E, P) {
|
|
|
435
434
|
label: "操作",
|
|
436
435
|
width: "90px"
|
|
437
436
|
}, {
|
|
438
|
-
default: S(({ row: e, $index:
|
|
437
|
+
default: S(({ row: e, $index: n }) => [
|
|
439
438
|
y(H, {
|
|
440
439
|
text: "",
|
|
441
|
-
onClick: (
|
|
440
|
+
onClick: (t) => P.openFieldOptionForm(e, n, "constraint")
|
|
442
441
|
}, {
|
|
443
|
-
default: S(() => [...
|
|
442
|
+
default: S(() => [...t[33] || (t[33] = [v("编辑", -1)])]),
|
|
444
443
|
_: 1
|
|
445
444
|
}, 8, ["onClick"]),
|
|
446
445
|
y(B, { direction: "vertical" }),
|
|
447
446
|
y(H, {
|
|
448
447
|
text: "",
|
|
449
448
|
style: { color: "#ff4d4f" },
|
|
450
|
-
onClick: (
|
|
449
|
+
onClick: (t) => P.removeFieldOptionItem(e, n, "constraint")
|
|
451
450
|
}, {
|
|
452
|
-
default: S(() => [...
|
|
451
|
+
default: S(() => [...t[34] || (t[34] = [v(" 移除 ", -1)])]),
|
|
453
452
|
_: 1
|
|
454
453
|
}, 8, ["onClick"])
|
|
455
454
|
]),
|
|
@@ -460,12 +459,12 @@ function P(e, f, w, T, E, P) {
|
|
|
460
459
|
}, 8, ["data"]),
|
|
461
460
|
h(" 表单属性 "),
|
|
462
461
|
y(B, { key: "property-divider" }),
|
|
463
|
-
_("p", M, [
|
|
462
|
+
_("p", M, [t[36] || (t[36] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 字段属性列表: ")], -1)), y(H, {
|
|
464
463
|
type: "primary",
|
|
465
464
|
style: { "margin-left": "auto" },
|
|
466
|
-
onClick:
|
|
465
|
+
onClick: t[13] || (t[13] = (e) => P.openFieldOptionForm(null, -1, "property"))
|
|
467
466
|
}, {
|
|
468
|
-
default: S(() => [...
|
|
467
|
+
default: S(() => [...t[35] || (t[35] = [v(" 添加属性 ", -1)])]),
|
|
469
468
|
_: 1
|
|
470
469
|
})]),
|
|
471
470
|
y(U, {
|
|
@@ -497,21 +496,21 @@ function P(e, f, w, T, E, P) {
|
|
|
497
496
|
label: "操作",
|
|
498
497
|
width: "90px"
|
|
499
498
|
}, {
|
|
500
|
-
default: S(({ row: e, $index:
|
|
499
|
+
default: S(({ row: e, $index: n }) => [
|
|
501
500
|
y(H, {
|
|
502
501
|
text: "",
|
|
503
|
-
onClick: (
|
|
502
|
+
onClick: (t) => P.openFieldOptionForm(e, n, "property")
|
|
504
503
|
}, {
|
|
505
|
-
default: S(() => [...
|
|
504
|
+
default: S(() => [...t[37] || (t[37] = [v("编辑", -1)])]),
|
|
506
505
|
_: 1
|
|
507
506
|
}, 8, ["onClick"]),
|
|
508
507
|
y(B, { direction: "vertical" }),
|
|
509
508
|
y(H, {
|
|
510
509
|
text: "",
|
|
511
510
|
style: { color: "#ff4d4f" },
|
|
512
|
-
onClick: (
|
|
511
|
+
onClick: (t) => P.removeFieldOptionItem(e, n, "property")
|
|
513
512
|
}, {
|
|
514
|
-
default: S(() => [...
|
|
513
|
+
default: S(() => [...t[38] || (t[38] = [v(" 移除 ", -1)])]),
|
|
515
514
|
_: 1
|
|
516
515
|
}, 8, ["onClick"])
|
|
517
516
|
]),
|
|
@@ -521,14 +520,14 @@ function P(e, f, w, T, E, P) {
|
|
|
521
520
|
_: 1
|
|
522
521
|
}, 8, ["data"]),
|
|
523
522
|
h(" 底部按钮 "),
|
|
524
|
-
_("div", N, [y(H, { onClick:
|
|
525
|
-
default: S(() => [...
|
|
523
|
+
_("div", N, [y(H, { onClick: t[14] || (t[14] = (e) => E.fieldModelVisible = !1) }, {
|
|
524
|
+
default: S(() => [...t[39] || (t[39] = [v("取 消", -1)])]),
|
|
526
525
|
_: 1
|
|
527
526
|
}), y(H, {
|
|
528
527
|
type: "primary",
|
|
529
528
|
onClick: P.saveField
|
|
530
529
|
}, {
|
|
531
|
-
default: S(() => [...
|
|
530
|
+
default: S(() => [...t[40] || (t[40] = [v("保 存", -1)])]),
|
|
532
531
|
_: 1
|
|
533
532
|
}, 8, ["onClick"])])
|
|
534
533
|
]),
|
|
@@ -536,27 +535,27 @@ function P(e, f, w, T, E, P) {
|
|
|
536
535
|
}, 8, ["visible", "size"]),
|
|
537
536
|
y(G, {
|
|
538
537
|
visible: E.fieldOptionModelVisible,
|
|
539
|
-
"onUpdate:visible":
|
|
538
|
+
"onUpdate:visible": t[22] || (t[22] = (e) => E.fieldOptionModelVisible = e),
|
|
540
539
|
class: "flow-dialog",
|
|
541
540
|
title: E.optionModelTitle,
|
|
542
541
|
width: "600px",
|
|
543
542
|
"append-to-body": "",
|
|
544
543
|
"destroy-on-close": ""
|
|
545
544
|
}, {
|
|
546
|
-
footer: S(() => [y(H, { onClick:
|
|
547
|
-
default: S(() => [...
|
|
545
|
+
footer: S(() => [y(H, { onClick: t[21] || (t[21] = (e) => E.fieldOptionModelVisible = !1) }, {
|
|
546
|
+
default: S(() => [...t[41] || (t[41] = [v("取 消", -1)])]),
|
|
548
547
|
_: 1
|
|
549
548
|
}), y(H, {
|
|
550
549
|
type: "primary",
|
|
551
550
|
onClick: P.saveFieldOption
|
|
552
551
|
}, {
|
|
553
|
-
default: S(() => [...
|
|
552
|
+
default: S(() => [...t[42] || (t[42] = [v("确 定", -1)])]),
|
|
554
553
|
_: 1
|
|
555
554
|
}, 8, ["onClick"])]),
|
|
556
555
|
default: S(() => [y(z, {
|
|
557
556
|
model: E.fieldOptionForm,
|
|
558
557
|
"label-width": "96px",
|
|
559
|
-
onSubmit:
|
|
558
|
+
onSubmit: t[20] || (t[20] = C(() => {}, ["prevent"]))
|
|
560
559
|
}, {
|
|
561
560
|
default: S(() => [
|
|
562
561
|
E.fieldOptionType === "constraint" ? h("v-if", !0) : (b(), m(I, {
|
|
@@ -565,7 +564,7 @@ function P(e, f, w, T, E, P) {
|
|
|
565
564
|
}, {
|
|
566
565
|
default: S(() => [y(F, {
|
|
567
566
|
modelValue: E.fieldOptionForm.id,
|
|
568
|
-
"onUpdate:modelValue":
|
|
567
|
+
"onUpdate:modelValue": t[16] || (t[16] = (e) => E.fieldOptionForm.id = e),
|
|
569
568
|
clearable: ""
|
|
570
569
|
}, null, 8, ["modelValue"])]),
|
|
571
570
|
_: 1
|
|
@@ -576,7 +575,7 @@ function P(e, f, w, T, E, P) {
|
|
|
576
575
|
}, {
|
|
577
576
|
default: S(() => [y(F, {
|
|
578
577
|
modelValue: E.fieldOptionForm.name,
|
|
579
|
-
"onUpdate:modelValue":
|
|
578
|
+
"onUpdate:modelValue": t[17] || (t[17] = (e) => E.fieldOptionForm.name = e),
|
|
580
579
|
clearable: ""
|
|
581
580
|
}, null, 8, ["modelValue"])]),
|
|
582
581
|
_: 1
|
|
@@ -587,7 +586,7 @@ function P(e, f, w, T, E, P) {
|
|
|
587
586
|
}, {
|
|
588
587
|
default: S(() => [y(F, {
|
|
589
588
|
modelValue: E.fieldOptionForm.config,
|
|
590
|
-
"onUpdate:modelValue":
|
|
589
|
+
"onUpdate:modelValue": t[18] || (t[18] = (e) => E.fieldOptionForm.config = e),
|
|
591
590
|
clearable: ""
|
|
592
591
|
}, null, 8, ["modelValue"])]),
|
|
593
592
|
_: 1
|
|
@@ -598,7 +597,7 @@ function P(e, f, w, T, E, P) {
|
|
|
598
597
|
}, {
|
|
599
598
|
default: S(() => [y(F, {
|
|
600
599
|
modelValue: E.fieldOptionForm.value,
|
|
601
|
-
"onUpdate:modelValue":
|
|
600
|
+
"onUpdate:modelValue": t[19] || (t[19] = (e) => E.fieldOptionForm.value = e),
|
|
602
601
|
clearable: ""
|
|
603
602
|
}, null, 8, ["modelValue"])]),
|
|
604
603
|
_: 1
|
|
@@ -610,6 +609,6 @@ function P(e, f, w, T, E, P) {
|
|
|
610
609
|
}, 8, ["visible", "title"])
|
|
611
610
|
]);
|
|
612
611
|
}
|
|
613
|
-
var F = /* @__PURE__ */
|
|
612
|
+
var F = /* @__PURE__ */ t(E, [["render", P]]);
|
|
614
613
|
//#endregion
|
|
615
614
|
export { T as n, F as t };
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import { allProps as a, predicate as o } from "../props/form.mjs";
|
|
9
|
-
import s from "../form-advice/index.mjs";
|
|
10
|
-
import c from "../form-red-table/index.mjs";
|
|
1
|
+
import { m as e } from "./ClVh1Lek.mjs";
|
|
2
|
+
import { formHolderContextKey as t, formViewContextKey as n } from "../constants/index.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/form.mjs";
|
|
4
|
+
import a from "../form-advice/index.mjs";
|
|
5
|
+
import o from "../form-red-table/index.mjs";
|
|
6
|
+
import { ElForm as s, ElRow as c } from "element-plus/es";
|
|
7
|
+
import "element-plus/es/components/base/style/css";
|
|
11
8
|
import { computed as l, createVNode as u, inject as d, mergeProps as f, nextTick as p, provide as m, reactive as h, toRef as g, useTemplateRef as _ } from "vue";
|
|
12
9
|
import { animate as v } from "@web-utils/core";
|
|
10
|
+
import "element-plus/es/components/row/style/css";
|
|
11
|
+
import "element-plus/es/components/form/style/css";
|
|
13
12
|
//#endregion
|
|
14
13
|
//#region src/components/form/FormHolder.vue
|
|
15
14
|
var y = {
|
|
16
15
|
name: "FormHolder",
|
|
17
16
|
inheritAttrs: !1,
|
|
18
|
-
props: { ...
|
|
17
|
+
props: { ...r },
|
|
19
18
|
emits: {},
|
|
20
|
-
setup(
|
|
21
|
-
let { autoBindProps: S, listeners: C } =
|
|
19
|
+
setup(r, { slots: y, expose: b, attrs: x }) {
|
|
20
|
+
let { autoBindProps: S, listeners: C } = e(r, { predicate: i }), w = d(n, null), T = _("form"), E = l(() => r.notTableForm === void 0 ? (w == null ? void 0 : w.tableForm) === void 0 ? !1 : w == null ? void 0 : w.tableForm : !r.notTableForm), D = l(() => E.value ? !1 : r.showMessage), O = l(() => {
|
|
22
21
|
let e = {};
|
|
23
|
-
return
|
|
22
|
+
return r.disabledFields && r.disabledFields.forEach((t) => {
|
|
24
23
|
e[t] = !0;
|
|
25
24
|
}), e;
|
|
26
25
|
}), k = l(() => {
|
|
27
26
|
let e = {};
|
|
28
|
-
return
|
|
27
|
+
return r.enabledFields && r.enabledFields.length && r.enabledFields.forEach((t) => {
|
|
29
28
|
e[t] = !0;
|
|
30
29
|
}), e;
|
|
31
30
|
}), A = l(() => {
|
|
32
31
|
let e = {};
|
|
33
|
-
return
|
|
32
|
+
return r.requiredFields && r.requiredFields.length && r.requiredFields.forEach((t) => {
|
|
34
33
|
e[t] = !0;
|
|
35
34
|
}), e;
|
|
36
|
-
}), j = l(() =>
|
|
35
|
+
}), j = l(() => r.disabled === !0 ? !0 : r.disabled), M = g(() => r.enabledFields), N = g(() => r.requiredFields), P = g(() => r.disabledFields), F = async () => {
|
|
37
36
|
await p();
|
|
38
37
|
let e = T.value.$el.querySelector(".el-form-item.is-error");
|
|
39
38
|
e && e.scrollIntoView({
|
|
@@ -69,7 +68,7 @@ var y = {
|
|
|
69
68
|
setInitialValues: (e) => T.value.setInitialValues(e),
|
|
70
69
|
getFields: () => T.value.fields
|
|
71
70
|
});
|
|
72
|
-
return m(
|
|
71
|
+
return m(t, I), b(I), () => u(s, f(C.value, S.value, x, {
|
|
73
72
|
ref: "form",
|
|
74
73
|
class: [
|
|
75
74
|
"form-holder",
|
|
@@ -79,26 +78,26 @@ var y = {
|
|
|
79
78
|
"show-message": D.value
|
|
80
79
|
}), { default: () => {
|
|
81
80
|
if (E.value) {
|
|
82
|
-
var e, t,
|
|
81
|
+
var e, t, n;
|
|
83
82
|
return [
|
|
84
83
|
(e = y.top) == null ? void 0 : e.call(y),
|
|
85
|
-
u(
|
|
84
|
+
u(o, {
|
|
86
85
|
class: { "hide-error-message": E.value },
|
|
87
|
-
columns:
|
|
88
|
-
"col-count":
|
|
86
|
+
columns: r.columns,
|
|
87
|
+
"col-count": r.colCount
|
|
89
88
|
}, { default: () => {
|
|
90
89
|
var e;
|
|
91
|
-
return [(e = y.default) == null ? void 0 : e.call(y),
|
|
92
|
-
"label-colspan":
|
|
93
|
-
"value-colspan":
|
|
90
|
+
return [(e = y.default) == null ? void 0 : e.call(y), r.showAdvice ? u(a, {
|
|
91
|
+
"label-colspan": r.commentLabelColspan,
|
|
92
|
+
"value-colspan": r.commentValueColspan
|
|
94
93
|
}, null) : null];
|
|
95
94
|
} }),
|
|
96
95
|
(t = y.bottom) == null ? void 0 : t.call(y),
|
|
97
|
-
u("div", { class: "red-form-footer" }, [(
|
|
96
|
+
u("div", { class: "red-form-footer" }, [(n = y.footer) == null ? void 0 : n.call(y)])
|
|
98
97
|
];
|
|
99
98
|
} else {
|
|
100
99
|
var i;
|
|
101
|
-
return
|
|
100
|
+
return r.wrapRow ? u(c, null, { default: () => {
|
|
102
101
|
var e;
|
|
103
102
|
return [(e = y.default) == null ? void 0 : e.call(y)];
|
|
104
103
|
} }) : (i = y.default) == null ? void 0 : i.call(y);
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { n as e, o as t } from "./BE4V5Vf5.mjs";
|
|
2
|
+
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/select.mjs";
|
|
4
|
+
import { ElOption as a, ElSelect as o } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
|
|
7
|
+
import { isNumber as f, isPlainObject as p, isString as m } from "@web-utils/core";
|
|
8
|
+
import "element-plus/es/components/select/style/css";
|
|
9
|
+
import "element-plus/es/components/option/style/css";
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormSelect.vue
|
|
12
|
+
var h = {
|
|
13
|
+
name: "FormSelect",
|
|
14
|
+
inheritAttrs: !1,
|
|
15
|
+
props: { ...r },
|
|
16
|
+
emits: { ...e },
|
|
17
|
+
setup(e, { emit: r, slots: h, attrs: g }) {
|
|
18
|
+
let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = t(e, {
|
|
19
|
+
emit: r,
|
|
20
|
+
slots: h,
|
|
21
|
+
attrs: g,
|
|
22
|
+
predicate: i,
|
|
23
|
+
messagePrefix: "请选择"
|
|
24
|
+
}), C = u(null), w = u(!1);
|
|
25
|
+
d(() => {
|
|
26
|
+
if (e.multiple && e.multipleStringMode) {
|
|
27
|
+
var t;
|
|
28
|
+
C.value = (t = e.modelValue) == null ? void 0 : t.split(",").filter((e) => e);
|
|
29
|
+
} else C.value = e.modelValue;
|
|
30
|
+
});
|
|
31
|
+
let T = (t) => {
|
|
32
|
+
if (e.multiple && e.multipleStringMode ? _(t.join(e.multipleStringSeparator)) : _(t), e.emitLabel) {
|
|
33
|
+
let n = O.value.find((n) => n[e.props.value] === t), i = n == null ? void 0 : n[e.props.label];
|
|
34
|
+
i !== e.optionLabel && r("update:optionLabel", i);
|
|
35
|
+
}
|
|
36
|
+
}, { dictItems: E } = n(e), D = u([]), O = s(() => {
|
|
37
|
+
if (e.dictType) return E.value;
|
|
38
|
+
if (e.remote) return D.value;
|
|
39
|
+
if (e.gender) return [{
|
|
40
|
+
[e.props.label]: "男",
|
|
41
|
+
[e.props.value]: e.chinese ? "男" : e.typing ? 1 : "1"
|
|
42
|
+
}, {
|
|
43
|
+
[e.props.label]: "女",
|
|
44
|
+
[e.props.value]: e.chinese ? "女" : e.typing ? 2 : "2"
|
|
45
|
+
}];
|
|
46
|
+
if (e.confirm) return [{
|
|
47
|
+
[e.props.label]: "是",
|
|
48
|
+
[e.props.value]: e.chinese ? "是" : e.english ? "Y" : e.typing ? 1 : "1"
|
|
49
|
+
}, {
|
|
50
|
+
[e.props.label]: "否",
|
|
51
|
+
[e.props.value]: e.chinese ? "否" : e.english ? "N" : e.typing ? 0 : "0"
|
|
52
|
+
}];
|
|
53
|
+
if (e.all) return [{
|
|
54
|
+
[e.props.value]: "",
|
|
55
|
+
[e.props.label]: "全部"
|
|
56
|
+
}, ...e.options];
|
|
57
|
+
if (e.start && e.end) return Array(e.end - e.start + 1).fill(1).map((t, n) => ({
|
|
58
|
+
[e.props.label]: e.start + n,
|
|
59
|
+
[e.props.value]: e.start + n
|
|
60
|
+
}));
|
|
61
|
+
if (e.year) {
|
|
62
|
+
let t = (/* @__PURE__ */ new Date()).getFullYear(), n = [], r = 10;
|
|
63
|
+
f(e.year) && (r = e.year);
|
|
64
|
+
for (let i = -r; i <= r; i++) {
|
|
65
|
+
let r = t + i;
|
|
66
|
+
n.push({
|
|
67
|
+
[e.props.label]: r,
|
|
68
|
+
[e.props.value]: r
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return n;
|
|
72
|
+
}
|
|
73
|
+
return e.options ? e.options.map((t) => (t[e.props.value] = t[e.props.value] ?? t[e.props.label], t)) : [];
|
|
74
|
+
}), k = async (t) => {
|
|
75
|
+
try {
|
|
76
|
+
var n;
|
|
77
|
+
w.value = !0;
|
|
78
|
+
let r = await e.remoteMethod(t, e.prop);
|
|
79
|
+
((n = r.data.data) == null ? void 0 : n.length) >= 0 ? m(r.data.data[0]) ? D.value = r.data.data.map((t) => ({
|
|
80
|
+
[e.props.value]: t,
|
|
81
|
+
[e.props.label]: t
|
|
82
|
+
})) : p(r.data.data[0]) && (D.value = r.data.data) : D.value = [];
|
|
83
|
+
} catch {}
|
|
84
|
+
w.value = !1;
|
|
85
|
+
};
|
|
86
|
+
return d(() => {
|
|
87
|
+
e.remote && k();
|
|
88
|
+
}), () => v({ vNodes: c(o, l(x.value, S.value, {
|
|
89
|
+
offset: e.dropDownOffset,
|
|
90
|
+
"model-value": C.value,
|
|
91
|
+
"onUpdate:modelValue": T,
|
|
92
|
+
disabled: b.value,
|
|
93
|
+
placeholder: y.value
|
|
94
|
+
}), {
|
|
95
|
+
...h,
|
|
96
|
+
default: h.default || (() => {
|
|
97
|
+
var e;
|
|
98
|
+
return (e = O.value) == null ? void 0 : e.map(({ value: e, label: t }) => c(a, {
|
|
99
|
+
key: e,
|
|
100
|
+
label: t,
|
|
101
|
+
value: e
|
|
102
|
+
}, null));
|
|
103
|
+
})
|
|
104
|
+
}) });
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { h as t };
|