@web-utils/form-ui 1.0.0-beta71 → 1.0.0-beta73
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 -14
- package/chunks/-fXBgN9b2.mjs +37 -0
- package/chunks/{B3d4fdGH.mjs → -yfgKY3g.mjs} +1 -1
- package/chunks/{BeWNlclr.mjs → -zgWD713.mjs} +44 -40
- package/chunks/{5itVLmv82.mjs → 8A7LSgb4.mjs} +26 -25
- package/chunks/{DoOkwYtO.mjs → Apjns0ZM.mjs} +72 -67
- package/chunks/B0BOjeph2.mjs +108 -0
- package/chunks/BD6_5FSI.mjs +178 -0
- package/chunks/BE4V5Vf5.mjs +133 -0
- package/chunks/{DfJJr053.mjs → BGJjAw5E.mjs} +1 -1
- package/chunks/{DhQF2ZlD.mjs → BH7VEktl.mjs} +19 -17
- package/chunks/{CjmfMN1X2.mjs → BI6kCG2j2.mjs} +2 -2
- package/chunks/{6kdakei5.mjs → BYtFzO-8.mjs} +138 -133
- package/chunks/{CaRunrOV2.mjs → B_AUZSOW.mjs} +589 -760
- package/chunks/BctSGDgW2.mjs +29 -0
- package/chunks/{B5voIv4_.mjs → Bes1uXng.mjs} +28 -24
- package/chunks/BhIWiH5R.mjs +661 -0
- package/chunks/BhzlH7Az.mjs +90 -0
- package/chunks/{D6vTCC1Z2.mjs → BrelfRGo2.mjs} +14 -13
- package/chunks/{Z0BPDZlb.mjs → BsqIRxSS.mjs} +6 -5
- package/chunks/{TtxSplBB.mjs → C--HDCqy.mjs} +13 -10
- package/chunks/{DTUh8o0p2.mjs → C6mb7Nru2.mjs} +4 -4
- package/chunks/{CIybFvu92.mjs → CFoSvMJ-2.mjs} +1 -1
- package/chunks/{Ch_zaHx9.mjs → CO3taG7t2.mjs} +1 -1
- package/chunks/{DNSPORak.mjs → CZUhA3sf.mjs} +298 -4
- package/chunks/Ccxbv7uz2.mjs +34 -0
- package/chunks/Ce4tNNzg2.mjs +63 -0
- package/chunks/{B1GA44yT2.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/{9rQitPz7.mjs → D6DYxngS.mjs} +132 -127
- package/chunks/D6YM84Pf2.mjs +29 -0
- package/chunks/{BkEMJ725.mjs → DTq5QLoT.mjs} +43 -39
- package/chunks/{BvcK4D8A2.mjs → DVMfVn-M.mjs} +14 -10
- package/chunks/DVdQHb_v.mjs +50 -0
- package/chunks/{BaLjN8Ow.mjs → Daa7nl7U.mjs} +19 -15
- package/chunks/{D9qn1x3X2.mjs → Dh_BQpvC2.mjs} +2 -2
- package/chunks/DizOY5i8.mjs +69 -0
- package/chunks/{BQNqBw8h2.mjs → DjaV6_cg2.mjs} +2 -2
- package/chunks/{CbbjpJFg2.mjs → Dm3gQGoV2.mjs} +2 -2
- package/chunks/DqW9QtF3.mjs +68 -0
- package/chunks/{DbtlO6wD.mjs → DqWJCka8.mjs} +9 -7
- package/chunks/{BI-ZFlSw2.mjs → DrWUdRj32.mjs} +2 -2
- 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/{DxL9oojv2.mjs → Lkg7bYLD2.mjs} +73 -74
- package/chunks/{T_jwNKBr.mjs → Opn85Hlx2.mjs} +1 -1
- package/chunks/{BoId6V9J.mjs → YdNYH25C.mjs} +1 -1
- package/chunks/{BvbjlaN02.mjs → gTgPZrgY2.mjs} +119 -120
- package/chunks/{3gUkQF12.mjs → jsgk7Yse2.mjs} +2 -2
- package/chunks/nL59ZuIk.mjs +58 -0
- package/chunks/{CDqVJ7U3.mjs → neuEq1De.mjs} +70 -67
- package/chunks/{B8wGY5Hs2.mjs → sWVkgzQt2.mjs} +2 -2
- package/chunks/{Wl17p0C82.mjs → tjwOOiNr2.mjs} +31 -30
- 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 -8
- package/data-card/index.mjs +8 -7
- package/data-card-text/index.mjs +8 -7
- package/data-display/index.mjs +9 -8
- package/data-icons/index.mjs +9 -8
- package/data-imgtext/index.mjs +9 -8
- package/data-operatext/index.mjs +8 -7
- package/data-panel/index.mjs +9 -8
- package/data-pay/index.mjs +10 -9
- package/data-price/index.mjs +8 -7
- package/data-progress/index.mjs +10 -9
- package/data-rotate/index.mjs +9 -8
- package/data-table-picker/index.mjs +11 -10
- package/data-tabs/index.mjs +9 -8
- 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 -7
- package/editable-tree/index.mjs +595 -2
- package/element-dialog/index.mjs +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-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-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/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-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +101 -101
- package/input-number-range/index.mjs +7 -6
- 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 -2
- package/package.json +5 -1
- package/page-index/index.mjs +14 -13
- package/page-index-top/index.mjs +12 -10
- package/pageable-table/index.mjs +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 -2
- 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 +108 -106
- package/tag-render/index.mjs +21 -20
- 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 -46
- package/year-calendar/index.mjs +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/BBqq6o072.mjs +0 -243
- package/chunks/BCVhSMZN.mjs +0 -1328
- package/chunks/BDVLN2ly.mjs +0 -105
- package/chunks/BEysX5TF2.mjs +0 -1038
- package/chunks/BIj6pa8Z.mjs +0 -15
- package/chunks/BJby9uHB2.mjs +0 -233
- package/chunks/BUAQybGW.mjs +0 -230
- package/chunks/BVIHqL6g.mjs +0 -17
- package/chunks/BVSQ6DfJ.mjs +0 -17
- package/chunks/B__5L22p2.mjs +0 -346
- package/chunks/Baam4z-g.mjs +0 -275
- package/chunks/Bdeug17L.mjs +0 -42
- package/chunks/BecO0t0_2.mjs +0 -2430
- package/chunks/BffxPn8a.mjs +0 -34
- 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/BrYtAPbN2.mjs +0 -161
- package/chunks/BsKwchVA.mjs +0 -14
- package/chunks/BsM0L7CS.mjs +0 -132
- package/chunks/C5f3Xfsc2.mjs +0 -36
- package/chunks/C7l9aZGE.mjs +0 -577
- package/chunks/CFvkR9Ze2.mjs +0 -31
- package/chunks/CGM03LI5.mjs +0 -588
- package/chunks/CPejK_GQ2.mjs +0 -383
- package/chunks/CQSTyCVP.mjs +0 -6
- package/chunks/CQxz8uUc.mjs +0 -454
- package/chunks/CR29QUwT2.mjs +0 -28
- package/chunks/CWvo-ucD.mjs +0 -446
- package/chunks/C_eGir-J.mjs +0 -17
- package/chunks/Calzy0Az.mjs +0 -1275
- package/chunks/CbgD7y-5.mjs +0 -5
- package/chunks/CbsGuLZz2.mjs +0 -105
- package/chunks/CcT5SsZk.mjs +0 -48
- package/chunks/CdBytH8S.mjs +0 -266
- package/chunks/CiFlMt6Z.mjs +0 -41
- package/chunks/Cjkq49252.mjs +0 -60
- package/chunks/CnCSm3LY2.mjs +0 -4
- package/chunks/CsLrkldT2.mjs +0 -225
- package/chunks/Csiz_xCa2.mjs +0 -273
- package/chunks/Ctd3_wOH2.mjs +0 -6
- package/chunks/Cu2A_1vk2.mjs +0 -106
- package/chunks/CuoF9V8s.mjs +0 -3091
- package/chunks/CwBq1JZV.mjs +0 -250
- package/chunks/CwWfRmD3.mjs +0 -57
- package/chunks/CwqeV7002.mjs +0 -67
- package/chunks/Cy8jqgun2.mjs +0 -41
- package/chunks/D-hj62se2.mjs +0 -525
- package/chunks/D3Xixh5v.mjs +0 -5
- package/chunks/D4oNQiIK.mjs +0 -461
- package/chunks/D8r81QxD.mjs +0 -732
- package/chunks/DL0o_C092.mjs +0 -1093
- package/chunks/DLgn1tQG2.mjs +0 -60
- package/chunks/DStwh2ne.mjs +0 -281
- package/chunks/DXiLi19u2.mjs +0 -33
- package/chunks/DZ0frL1U.mjs +0 -69
- package/chunks/D_qwjNah.mjs +0 -1094
- package/chunks/Dg9Q-Tbi2.mjs +0 -299
- package/chunks/Dls3rTka2.mjs +0 -24
- package/chunks/DnBzQ-xh.mjs +0 -4
- package/chunks/DoNfjRR1.mjs +0 -68
- package/chunks/DrKq_frR.mjs +0 -98
- package/chunks/DsYXqJLZ.mjs +0 -641
- package/chunks/DsZznbt2.mjs +0 -208
- package/chunks/Dsd58O0g.mjs +0 -25
- package/chunks/Dtq1xYk8.mjs +0 -47
- package/chunks/EA6hte7s2.mjs +0 -49
- package/chunks/FeuisuNY2.mjs +0 -88
- package/chunks/GEtlriHC.mjs +0 -188
- package/chunks/GsvG1yFW.mjs +0 -1919
- package/chunks/KGmxNbpi.mjs +0 -21
- package/chunks/Q2Mal3Qn2.mjs +0 -439
- package/chunks/akEzJ4kG.mjs +0 -18
- package/chunks/cMuWbLPt.mjs +0 -196
- package/chunks/gh52LMTG.mjs +0 -12
- package/chunks/hgAOQY9a.mjs +0 -406
- package/chunks/lGc5ksPb.mjs +0 -279
- package/chunks/mD3gmiOy2.mjs +0 -96
- package/chunks/nLBvkerV2.mjs +0 -621
- package/chunks/pZQfJv282.mjs +0 -4
- package/chunks/qrHhuZXg.mjs +0 -465
- package/chunks/uqKZ4RIo.mjs +0 -222
- /package/chunks/{B31ub5xS.mjs → BBvIPqcc.mjs} +0 -0
- /package/chunks/{e70aZf3z.mjs → BoCxKwBf.mjs} +0 -0
- /package/chunks/{h-Uhst9y.mjs → CE67pCwD.mjs} +0 -0
- /package/chunks/{BMTtnkb7.mjs → CQeEP_Tl.mjs} +0 -0
- /package/chunks/{BwYEpK-u.mjs → CaczibeD.mjs} +0 -0
- /package/chunks/{BPpMbPS8.mjs → DZCryyFG.mjs} +0 -0
- /package/chunks/{BVuwiZGi.mjs → Dq63V0CC.mjs} +0 -0
- /package/chunks/{C1RsHtGI.mjs → OEBJ-trG.mjs} +0 -0
- /package/chunks/{7Cv9Cq-02.mjs → fjtZc9Rq2.mjs} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as i } from "./
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { cloneDeep as L } from "@web-utils/integrations/lodash";
|
|
1
|
+
import { s as e } from "./ClVh1Lek.mjs";
|
|
2
|
+
import { t } from "./CaczibeD.mjs";
|
|
3
|
+
import { t as n } from "./BhIWiH5R.mjs";
|
|
4
|
+
import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
|
|
5
|
+
import { t as i } from "./BH7VEktl.mjs";
|
|
6
|
+
import { t as a } from "./Dq63V0CC.mjs";
|
|
7
|
+
import { n as o } from "./BE4V5Vf5.mjs";
|
|
8
|
+
import { t as s } from "./nL59ZuIk.mjs";
|
|
9
|
+
import { t as c } from "./Cknuquqx.mjs";
|
|
10
|
+
import { t as l } from "./DqW9QtF3.mjs";
|
|
11
|
+
import { t as u } from "./HsHwYW1a.mjs";
|
|
12
|
+
import { t as d } from "./DyLQsqWJ.mjs";
|
|
13
|
+
import { t as f } from "./-fXBgN9b2.mjs";
|
|
14
|
+
import { t as p } from "./Dm3gQGoV2.mjs";
|
|
15
|
+
import { t as m } from "./B0BOjeph2.mjs";
|
|
16
|
+
import h from "../table-column-def/index.mjs";
|
|
17
|
+
import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, mergeProps as w, normalizeClass as T, openBlock as E, renderList as D, renderSlot as O, resolveComponent as k, toDisplayString as A, toHandlers as ee, withCtx as j, withModifiers as M } from "vue";
|
|
18
|
+
import { findTreeChildren as N, isFunction as P } from "@web-utils/core";
|
|
19
|
+
import { cloneDeep as F } from "@web-utils/integrations/lodash";
|
|
20
|
+
import { formContextKey as I, formItemContextKey as L } from "element-plus";
|
|
22
21
|
//#region src/components/table/sub-table-plus.ts
|
|
23
22
|
var R = {
|
|
24
23
|
modelValue: Array,
|
|
@@ -51,20 +50,20 @@ var R = {
|
|
|
51
50
|
name: "SubTablePlus",
|
|
52
51
|
inject: {
|
|
53
52
|
elForm: {
|
|
54
|
-
from:
|
|
53
|
+
from: I,
|
|
55
54
|
default: ""
|
|
56
55
|
},
|
|
57
56
|
elFormItem: {
|
|
58
|
-
from:
|
|
57
|
+
from: L,
|
|
59
58
|
default: ""
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
61
|
provide() {
|
|
63
|
-
return { [
|
|
62
|
+
return { [r]: this.rowDbClick };
|
|
64
63
|
},
|
|
65
64
|
props: { ...R },
|
|
66
65
|
emits: {
|
|
67
|
-
...
|
|
66
|
+
...o,
|
|
68
67
|
"add-row": null
|
|
69
68
|
},
|
|
70
69
|
data() {
|
|
@@ -92,7 +91,7 @@ var R = {
|
|
|
92
91
|
}), e;
|
|
93
92
|
},
|
|
94
93
|
listeners() {
|
|
95
|
-
return
|
|
94
|
+
return e(this.$attrs);
|
|
96
95
|
},
|
|
97
96
|
filteredColumns() {
|
|
98
97
|
return this.columns.filter((e) => e.label && !e.hide && !e.slot);
|
|
@@ -116,7 +115,7 @@ var R = {
|
|
|
116
115
|
},
|
|
117
116
|
methods: {
|
|
118
117
|
getCellType(e, t) {
|
|
119
|
-
return
|
|
118
|
+
return P(t.getType) ? t.getType(e, t) : t.type;
|
|
120
119
|
},
|
|
121
120
|
getInputAttr(e, t, n) {
|
|
122
121
|
var r;
|
|
@@ -149,7 +148,7 @@ var R = {
|
|
|
149
148
|
if (this.fetchApi) this.addRow();
|
|
150
149
|
else {
|
|
151
150
|
var n;
|
|
152
|
-
let e =
|
|
151
|
+
let e = F(this.rowProps), r = await ((n = this.initRow) == null ? void 0 : n.call(this, e, t));
|
|
153
152
|
t === -1 ? this.rows.push(r || e) : this.rows.splice(t + 1, 0, r || e);
|
|
154
153
|
}
|
|
155
154
|
},
|
|
@@ -175,14 +174,14 @@ var R = {
|
|
|
175
174
|
},
|
|
176
175
|
getVal(e, t, n) {
|
|
177
176
|
var r, i;
|
|
178
|
-
if (
|
|
177
|
+
if (P(n.getVal)) return n.getVal(e, t, n);
|
|
179
178
|
if (n.type === "select" && (r = n.attrs) != null && r.options) {
|
|
180
179
|
let r = n.attrs.options.find((n) => n.modelValue === e[t.property] || n.code === e[t.property]);
|
|
181
180
|
if (r) return r.label || r.name;
|
|
182
181
|
}
|
|
183
182
|
if (n.type === "checkbox1") return e[t.property] === !0 || e[t.property] === "1" || e[t.property] === "Y" ? "是" : "否";
|
|
184
183
|
if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
|
|
185
|
-
let [r] =
|
|
184
|
+
let [r] = N(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
|
|
186
185
|
if (r) return r[n.attrs.valueKey || "label"];
|
|
187
186
|
}
|
|
188
187
|
return e[t.property];
|
|
@@ -215,14 +214,14 @@ var R = {
|
|
|
215
214
|
"border-top": "none"
|
|
216
215
|
}
|
|
217
216
|
};
|
|
218
|
-
function q(e, t,
|
|
217
|
+
function q(e, t, r, o, N, P) {
|
|
219
218
|
var F, I;
|
|
220
|
-
let L =
|
|
221
|
-
return
|
|
222
|
-
|
|
219
|
+
let L = i, R = l, z = c, q = p, J = k("FormInputUser"), Y = k("FormInputDepartment"), X = m, Z = d, Q = s, te = u, ne = f, re = a, $ = h, ie = n;
|
|
220
|
+
return E(), y("div", { class: T(["sub-table-plus", { "hide-message": !e.showMessage }]) }, [
|
|
221
|
+
C(ie, w(e.$attrs, {
|
|
223
222
|
ref: "table",
|
|
224
223
|
"auto-height": "",
|
|
225
|
-
data: e.fetchApi ? null :
|
|
224
|
+
data: e.fetchApi ? null : N.rows,
|
|
226
225
|
api: e.fetchApi,
|
|
227
226
|
"payload-style": "body",
|
|
228
227
|
"show-summary": e.showSummary,
|
|
@@ -233,11 +232,11 @@ function q(e, t, n, a, o, c) {
|
|
|
233
232
|
"hide-on-single-page": "",
|
|
234
233
|
selection: e.selection,
|
|
235
234
|
index: e.index,
|
|
236
|
-
"row-db-click":
|
|
237
|
-
onRowDblclick:
|
|
238
|
-
},
|
|
239
|
-
default:
|
|
240
|
-
|
|
235
|
+
"row-db-click": P.rowDbClick,
|
|
236
|
+
onRowDblclick: P.rowDbClick
|
|
237
|
+
}, ee(P.listeners), { onSelectionChange: P.onSelectionChange }), x({
|
|
238
|
+
default: j(() => [
|
|
239
|
+
O(e.$slots, "columns", { columns: e.columns }, () => [(E(!0), y(g, null, D(P.filteredColumns, (t) => (E(), _($, {
|
|
241
240
|
key: t.prop,
|
|
242
241
|
label: t.label,
|
|
243
242
|
width: t.width,
|
|
@@ -248,16 +247,16 @@ function q(e, t, n, a, o, c) {
|
|
|
248
247
|
options: t.options,
|
|
249
248
|
"show-overflow-tooltip": !t.editable && t.showOverflowTooltip
|
|
250
249
|
}, {
|
|
251
|
-
header:
|
|
252
|
-
default:
|
|
253
|
-
|
|
254
|
-
|
|
250
|
+
header: j(() => [!e.disabled && t.required ? (E(), y("span", U, "*")) : v("v-if", !0), b("span", { title: t.label }, A(t.label), 9, W)]),
|
|
251
|
+
default: j(({ row: n, column: r, $index: i }) => [
|
|
252
|
+
v("tag 插槽"),
|
|
253
|
+
O(e.$slots, "tag", {
|
|
255
254
|
row: n,
|
|
256
255
|
column: r,
|
|
257
256
|
index: i
|
|
258
257
|
}),
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
v("列默认插槽,名字和 prop 保持一致"),
|
|
259
|
+
O(e.$slots, t.prop, {
|
|
261
260
|
row: n,
|
|
262
261
|
column: r,
|
|
263
262
|
wrapCol: !1,
|
|
@@ -267,78 +266,78 @@ function q(e, t, n, a, o, c) {
|
|
|
267
266
|
editable: t.editable
|
|
268
267
|
}, () => {
|
|
269
268
|
var e;
|
|
270
|
-
return [
|
|
269
|
+
return [P.enabled && t.editable === !0 ? (E(), y(g, { key: 0 }, [P.getCellType(n, t) === "input" ? (E(), _(R, w({
|
|
271
270
|
key: 0,
|
|
272
271
|
ref_for: !0
|
|
273
|
-
},
|
|
274
|
-
onBlur: () =>
|
|
275
|
-
"onUpdate:modelValue": (e) =>
|
|
276
|
-
}), null, 16, ["onBlur", "onUpdate:modelValue"])) :
|
|
272
|
+
}, P.getInputAttr(n, t, i), {
|
|
273
|
+
onBlur: () => P.onBlur(n, t),
|
|
274
|
+
"onUpdate:modelValue": (e) => P.onInput(n, e, t)
|
|
275
|
+
}), null, 16, ["onBlur", "onUpdate:modelValue"])) : P.getCellType(n, t) === "checkbox1" ? (E(), _(z, w({
|
|
277
276
|
key: 1,
|
|
278
277
|
ref_for: !0
|
|
279
|
-
},
|
|
278
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "inputPhoneNumber" ? (E(), _(q, w({
|
|
280
279
|
key: 2,
|
|
281
280
|
ref_for: !0
|
|
282
|
-
},
|
|
281
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "user" ? (E(), y(g, { key: 3 }, [t.single ? (E(), _(J, w({
|
|
283
282
|
key: 0,
|
|
284
283
|
ref_for: !0
|
|
285
|
-
},
|
|
284
|
+
}, P.getInputAttr(n, t, i), {
|
|
286
285
|
id: n[r.idProp || `${r.property}Id`],
|
|
287
286
|
"onUpdate:id": (e) => n[r.idProp || `${r.property}Id`] = e,
|
|
288
287
|
name: n[r.property],
|
|
289
288
|
"onUpdate:name": (e) => n[r.property] = e,
|
|
290
|
-
"onUpdate:modelValue": (e) =>
|
|
289
|
+
"onUpdate:modelValue": (e) => P.onInput(n, e, t)
|
|
291
290
|
}), null, 16, [
|
|
292
291
|
"id",
|
|
293
292
|
"onUpdate:id",
|
|
294
293
|
"name",
|
|
295
294
|
"onUpdate:name",
|
|
296
295
|
"onUpdate:modelValue"
|
|
297
|
-
])) : (
|
|
296
|
+
])) : (E(), _(J, w({
|
|
298
297
|
key: 1,
|
|
299
298
|
ref_for: !0
|
|
300
|
-
},
|
|
299
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : P.getCellType(n, t) === "department" ? (E(), y(g, { key: 4 }, [t.single ? (E(), _(Y, w({
|
|
301
300
|
key: 0,
|
|
302
301
|
ref_for: !0
|
|
303
|
-
},
|
|
302
|
+
}, P.getInputAttr(n, t, i), {
|
|
304
303
|
name: n[r.property],
|
|
305
304
|
"onUpdate:name": (e) => n[r.property] = e,
|
|
306
|
-
"onUpdate:modelValue": (e) =>
|
|
305
|
+
"onUpdate:modelValue": (e) => P.onInput(n, e, t)
|
|
307
306
|
}), null, 16, [
|
|
308
307
|
"name",
|
|
309
308
|
"onUpdate:name",
|
|
310
309
|
"onUpdate:modelValue"
|
|
311
|
-
])) : (
|
|
310
|
+
])) : (E(), _(Y, w({
|
|
312
311
|
key: 1,
|
|
313
312
|
ref_for: !0
|
|
314
|
-
},
|
|
313
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : P.getCellType(n, t) === "select" ? (E(), _(X, w({
|
|
315
314
|
key: 5,
|
|
316
315
|
ref_for: !0
|
|
317
|
-
},
|
|
316
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "datePicker" ? (E(), _(Z, w({
|
|
318
317
|
key: 6,
|
|
319
318
|
ref_for: !0
|
|
320
|
-
},
|
|
319
|
+
}, P.getInputAttr(n, t, i), {
|
|
321
320
|
start: n[t.start],
|
|
322
321
|
"onUpdate:start": (e) => n[t.start] = e,
|
|
323
322
|
end: n[t.end],
|
|
324
323
|
"onUpdate:end": (e) => n[t.end] = e,
|
|
325
|
-
"onUpdate:modelValue": (e) =>
|
|
324
|
+
"onUpdate:modelValue": (e) => P.onInput(n, e, t)
|
|
326
325
|
}), null, 16, [
|
|
327
326
|
"start",
|
|
328
327
|
"onUpdate:start",
|
|
329
328
|
"end",
|
|
330
329
|
"onUpdate:end",
|
|
331
330
|
"onUpdate:modelValue"
|
|
332
|
-
])) :
|
|
331
|
+
])) : P.getCellType(n, t) === "cascader" ? (E(), _(Q, w({
|
|
333
332
|
key: 7,
|
|
334
333
|
ref_for: !0
|
|
335
|
-
},
|
|
334
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "checkbox" ? (E(), _(te, w({
|
|
336
335
|
key: 8,
|
|
337
336
|
ref_for: !0
|
|
338
|
-
},
|
|
337
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : P.getCellType(n, t) === "number" ? (E(), _(ne, w({
|
|
339
338
|
key: 9,
|
|
340
339
|
ref_for: !0
|
|
341
|
-
},
|
|
340
|
+
}, P.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => P.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (E(), y(g, { key: 10 }, [S(A(P.getVal(n, r, t)), 1)], 64))], 64)) : t.dictType || (e = t.options) != null && e.length ? (E(), _(re, {
|
|
342
341
|
key: 1,
|
|
343
342
|
"dict-type": t.dictType,
|
|
344
343
|
"id-as-value": t.idAsValue,
|
|
@@ -353,7 +352,7 @@ function q(e, t, n, a, o, c) {
|
|
|
353
352
|
"column",
|
|
354
353
|
"row",
|
|
355
354
|
"options"
|
|
356
|
-
])) : (
|
|
355
|
+
])) : (E(), y(g, { key: 2 }, [S(A(P.getVal(n, r, t)), 1)], 64))];
|
|
357
356
|
})
|
|
358
357
|
]),
|
|
359
358
|
_: 2
|
|
@@ -367,24 +366,24 @@ function q(e, t, n, a, o, c) {
|
|
|
367
366
|
"options",
|
|
368
367
|
"show-overflow-tooltip"
|
|
369
368
|
]))), 128))]),
|
|
370
|
-
|
|
371
|
-
add:
|
|
372
|
-
remove:
|
|
369
|
+
O(e.$slots, "handle", {
|
|
370
|
+
add: P.add,
|
|
371
|
+
remove: P.remove
|
|
373
372
|
}),
|
|
374
|
-
!e.disabled &&
|
|
373
|
+
!e.disabled && P.hasHandleMenus ? (E(), _($, {
|
|
375
374
|
key: 0,
|
|
376
375
|
label: "操作",
|
|
377
376
|
width: "80",
|
|
378
377
|
align: "center",
|
|
379
378
|
prop: "menu"
|
|
380
379
|
}, {
|
|
381
|
-
header:
|
|
380
|
+
header: j(({ column: t, $index: n }) => [O(e.$slots, "handle-column-header", {
|
|
382
381
|
column: t,
|
|
383
382
|
index: n
|
|
384
|
-
}, () => [
|
|
385
|
-
default:
|
|
383
|
+
}, () => [S(A(t.label), 1)])]),
|
|
384
|
+
default: j(({ row: t, $index: n }) => {
|
|
386
385
|
var r, i, a;
|
|
387
|
-
return [(r = e.handleMenus) != null && r.includes("add") && ((i = e.modelValue) == null ? void 0 : i.length) < e.limit ? (
|
|
386
|
+
return [(r = e.handleMenus) != null && r.includes("add") && ((i = e.modelValue) == null ? void 0 : i.length) < e.limit ? (E(), y("i", {
|
|
388
387
|
key: 0,
|
|
389
388
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
390
389
|
style: {
|
|
@@ -393,90 +392,90 @@ function q(e, t, n, a, o, c) {
|
|
|
393
392
|
cursor: "pointer"
|
|
394
393
|
},
|
|
395
394
|
title: "添加",
|
|
396
|
-
onClick:
|
|
397
|
-
}, null, 8, G)) :
|
|
395
|
+
onClick: M((e) => P.add(t, n), ["stop"])
|
|
396
|
+
}, null, 8, G)) : v("v-if", !0), (a = e.handleMenus) != null && a.includes("delete") ? (E(), _(L, {
|
|
398
397
|
key: 1,
|
|
399
398
|
class: "el-icon-error sub-table-handle-button table-button-remove",
|
|
400
399
|
confirm: "",
|
|
401
400
|
text: "",
|
|
402
401
|
title: "删除",
|
|
403
402
|
message: "您确定要删除该行吗?",
|
|
404
|
-
onClick:
|
|
405
|
-
}, null, 8, ["onClick"])) :
|
|
403
|
+
onClick: M((e) => P.remove(t, n), ["stop"])
|
|
404
|
+
}, null, 8, ["onClick"])) : v("v-if", !0)];
|
|
406
405
|
}),
|
|
407
406
|
_: 3
|
|
408
|
-
})) :
|
|
407
|
+
})) : v("v-if", !0)
|
|
409
408
|
]),
|
|
410
409
|
_: 2
|
|
411
|
-
}, [!e.disabled ||
|
|
410
|
+
}, [!e.disabled || P.hasToolBarMenu ? {
|
|
412
411
|
name: "toolbar",
|
|
413
|
-
fn:
|
|
414
|
-
addRow:
|
|
415
|
-
delRow:
|
|
416
|
-
refresh:
|
|
417
|
-
}, () => [
|
|
418
|
-
addRow:
|
|
419
|
-
delRow:
|
|
420
|
-
refresh:
|
|
412
|
+
fn: j(() => [b("div", B, [O(e.$slots, "toolbar", {
|
|
413
|
+
addRow: P.addRow,
|
|
414
|
+
delRow: P.delRow,
|
|
415
|
+
refresh: P.refresh
|
|
416
|
+
}, () => [b("div", V, [O(e.$slots, "toolbar-left", {
|
|
417
|
+
addRow: P.addRow,
|
|
418
|
+
delRow: P.delRow,
|
|
419
|
+
refresh: P.refresh
|
|
421
420
|
}, () => {
|
|
422
421
|
var n, r, i;
|
|
423
422
|
return [
|
|
424
|
-
(n = e.toolbarMenus) != null && n.includes("add") ? (
|
|
423
|
+
(n = e.toolbarMenus) != null && n.includes("add") ? (E(), _(L, {
|
|
425
424
|
key: 0,
|
|
426
425
|
class: "table-header-button add",
|
|
427
426
|
icon: "el-icon-circle-plus",
|
|
428
427
|
type: "text",
|
|
429
|
-
onClick:
|
|
428
|
+
onClick: P.addRow
|
|
430
429
|
}, {
|
|
431
|
-
default:
|
|
430
|
+
default: j(() => [...t[2] || (t[2] = [S(" 添加 ", -1)])]),
|
|
432
431
|
_: 1
|
|
433
|
-
}, 8, ["onClick"])) :
|
|
434
|
-
(r = e.toolbarMenus) != null && r.includes("delete") ? (
|
|
432
|
+
}, 8, ["onClick"])) : v("v-if", !0),
|
|
433
|
+
(r = e.toolbarMenus) != null && r.includes("delete") ? (E(), _(L, {
|
|
435
434
|
key: 1,
|
|
436
|
-
disabled:
|
|
435
|
+
disabled: N.selectedRows.length <= 0,
|
|
437
436
|
class: "table-header-button remove",
|
|
438
437
|
confirm: "",
|
|
439
438
|
message: "您确定要删除选中的记录吗?",
|
|
440
439
|
icon: "el-icon-error",
|
|
441
440
|
text: "",
|
|
442
|
-
onClick:
|
|
441
|
+
onClick: P.delRow
|
|
443
442
|
}, {
|
|
444
|
-
default:
|
|
443
|
+
default: j(() => [...t[3] || (t[3] = [S(" 删除 ", -1)])]),
|
|
445
444
|
_: 1
|
|
446
|
-
}, 8, ["disabled", "onClick"])) :
|
|
447
|
-
(i = e.toolbarMenus) != null && i.includes("refresh") ? (
|
|
445
|
+
}, 8, ["disabled", "onClick"])) : v("v-if", !0),
|
|
446
|
+
(i = e.toolbarMenus) != null && i.includes("refresh") ? (E(), _(L, {
|
|
448
447
|
key: 2,
|
|
449
448
|
class: "table-header-button refresh",
|
|
450
449
|
icon: "el-icon-refresh-left",
|
|
451
450
|
text: "",
|
|
452
451
|
disabled: !1,
|
|
453
|
-
onClick:
|
|
452
|
+
onClick: P.refresh
|
|
454
453
|
}, {
|
|
455
|
-
default:
|
|
454
|
+
default: j(() => [...t[4] || (t[4] = [S(" 刷新 ", -1)])]),
|
|
456
455
|
_: 1
|
|
457
|
-
}, 8, ["onClick"])) :
|
|
456
|
+
}, 8, ["onClick"])) : v("v-if", !0)
|
|
458
457
|
];
|
|
459
|
-
}),
|
|
460
|
-
addRow:
|
|
461
|
-
delRow:
|
|
462
|
-
refresh:
|
|
463
|
-
})]),
|
|
464
|
-
removeSelectedRows:
|
|
465
|
-
selectedRows:
|
|
458
|
+
}), O(e.$slots, "toolbar-left-append", {
|
|
459
|
+
addRow: P.addRow,
|
|
460
|
+
delRow: P.delRow,
|
|
461
|
+
refresh: P.refresh
|
|
462
|
+
})]), b("div", H, [O(e.$slots, "toolbar-right", {
|
|
463
|
+
removeSelectedRows: P.removeSelectedRows,
|
|
464
|
+
selectedRows: N.selectedRows
|
|
466
465
|
})])])])]),
|
|
467
466
|
key: "0"
|
|
468
467
|
} : void 0, e.bottomAddButton ? {
|
|
469
468
|
name: "empty",
|
|
470
|
-
fn:
|
|
469
|
+
fn: j(() => [b("i", {
|
|
471
470
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
472
471
|
style: {
|
|
473
472
|
"font-size": "20px",
|
|
474
473
|
cursor: "pointer"
|
|
475
474
|
},
|
|
476
475
|
title: "添加",
|
|
477
|
-
onClick: t[0] || (t[0] =
|
|
476
|
+
onClick: t[0] || (t[0] = M((t) => {
|
|
478
477
|
var n;
|
|
479
|
-
return
|
|
478
|
+
return P.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
|
|
480
479
|
}, ["stop"]))
|
|
481
480
|
})]),
|
|
482
481
|
key: "1"
|
|
@@ -494,21 +493,21 @@ function q(e, t, n, a, o, c) {
|
|
|
494
493
|
"onRowDblclick",
|
|
495
494
|
"onSelectionChange"
|
|
496
495
|
]),
|
|
497
|
-
|
|
498
|
-
!e.disabled && e.bottomAddButton && ((F = e.modelValue) == null ? void 0 : F.length) < e.limit && ((I = e.modelValue) == null ? void 0 : I.length) > 0 ? (
|
|
496
|
+
v("底部添加按钮"),
|
|
497
|
+
!e.disabled && e.bottomAddButton && ((F = e.modelValue) == null ? void 0 : F.length) < e.limit && ((I = e.modelValue) == null ? void 0 : I.length) > 0 ? (E(), y("div", K, [b("i", {
|
|
499
498
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
500
499
|
style: {
|
|
501
500
|
"font-size": "20px",
|
|
502
501
|
cursor: "pointer"
|
|
503
502
|
},
|
|
504
503
|
title: "添加",
|
|
505
|
-
onClick: t[1] || (t[1] =
|
|
504
|
+
onClick: t[1] || (t[1] = M((t) => {
|
|
506
505
|
var n;
|
|
507
|
-
return
|
|
506
|
+
return P.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
|
|
508
507
|
}, ["stop"]))
|
|
509
|
-
})])) :
|
|
508
|
+
})])) : v("v-if", !0)
|
|
510
509
|
], 2);
|
|
511
510
|
}
|
|
512
|
-
var J = /* @__PURE__ */
|
|
511
|
+
var J = /* @__PURE__ */ t(z, [["render", q]]);
|
|
513
512
|
//#endregion
|
|
514
513
|
export { R as n, J as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as e } from "./
|
|
1
|
+
import { s as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { goBack as t, hasAuthority as n } from "../api/index.mjs";
|
|
3
3
|
import { toolbarContextKey as r } from "../constants/index.mjs";
|
|
4
|
-
import { t as i } from "./
|
|
4
|
+
import { t as i } from "./BH7VEktl.mjs";
|
|
5
5
|
import { Comment as a, createVNode as o } from "vue";
|
|
6
6
|
import { NOOP as s, capitalize as c } from "@web-utils/core";
|
|
7
7
|
//#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { allProps as e, predicate as t } from "../props/cascader.mjs";
|
|
2
|
+
import { n, o as r } from "./BE4V5Vf5.mjs";
|
|
3
|
+
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
|
+
import { ElCascader as a } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import "element-plus/es/components/cascader/style/css";
|
|
7
|
+
import { computed as o, createVNode as s, mergeProps as c } from "vue";
|
|
8
|
+
import { findTreeChildren as l, isArray as u, isString as d, setParent as f } from "@web-utils/core";
|
|
9
|
+
import { cloneDeep as p } from "@web-utils/integrations/lodash";
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormCascader.vue
|
|
12
|
+
var m = {
|
|
13
|
+
name: "FormCascader",
|
|
14
|
+
props: { ...e },
|
|
15
|
+
emits: { ...n },
|
|
16
|
+
setup(e, { emit: n, slots: m, attrs: h }) {
|
|
17
|
+
let { emitInput: g, render: _, placeholder: v, disabled: y, listeners: b, inputProps: x } = r(e, {
|
|
18
|
+
emit: n,
|
|
19
|
+
slots: m,
|
|
20
|
+
attrs: h,
|
|
21
|
+
predicate: t
|
|
22
|
+
}), { dictItems: S } = i(e), C = o(() => {
|
|
23
|
+
if (e.dictType) return S.value;
|
|
24
|
+
if (e.options) {
|
|
25
|
+
let t = p(e.options);
|
|
26
|
+
return e.last && f(t), t;
|
|
27
|
+
} else return [];
|
|
28
|
+
}), w = o(() => {
|
|
29
|
+
if (e.join) return u(e.modelValue) ? e.modelValue : d(e.modelValue) ? e.modelValue.split(e.separator) : [];
|
|
30
|
+
if (e.last) {
|
|
31
|
+
let [t] = l(C.value, (t) => t[e.valueKey] === e.modelValue), n = [];
|
|
32
|
+
for (; t;) n.push(t[e.valueKey]), t = t.parent;
|
|
33
|
+
return n.reverse();
|
|
34
|
+
}
|
|
35
|
+
return e.modelValue;
|
|
36
|
+
}), T = (t) => {
|
|
37
|
+
e.join && u(t) ? g(t.join(e.separator)) : g(e.last ? t[t.length - 1] : t);
|
|
38
|
+
};
|
|
39
|
+
return () => _({ vNodes: s(a, c(b.value, x.value, {
|
|
40
|
+
style: "width: 100%",
|
|
41
|
+
class: { "is-readonly": e.readonly },
|
|
42
|
+
"model-value": w.value,
|
|
43
|
+
options: C.value,
|
|
44
|
+
props: {
|
|
45
|
+
checkStrictly: e.checkStrictly,
|
|
46
|
+
label: e.labelKey,
|
|
47
|
+
value: e.valueKey,
|
|
48
|
+
emitPath: e.emitPath,
|
|
49
|
+
expandTrigger: "hover"
|
|
50
|
+
},
|
|
51
|
+
disabled: y.value,
|
|
52
|
+
placeholder: v.value,
|
|
53
|
+
"onUpdate:modelValue": T
|
|
54
|
+
}), null) });
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { m as t };
|