@web-utils/form-ui 1.0.0-beta77 → 1.0.0-beta79
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.d.ts +52 -0
- package/affix/index.d.ts +30 -0
- package/awesome-button/index.d.ts +60 -0
- package/capsule-tab/index.d.ts +30 -0
- package/card/index.d.ts +41 -0
- package/chunks/{Dhdoa4M6.mjs → 22GsbC-1.mjs} +1 -1
- package/chunks/{DRXM1Mt22.mjs → B4GsYMXo.mjs} +1 -1
- package/chunks/{l5bfIjYm.mjs → B8NokGUg.mjs} +4715 -5034
- package/chunks/{CWaId08S2.mjs → BEghYt1s2.mjs} +1 -1
- package/chunks/{CGVBF4Ml.mjs → BQytQPLa.mjs} +58 -51
- package/chunks/{D5_ezGUV2.mjs → BVUClQOx.mjs} +2 -2
- package/chunks/{Dpzw7Rtp.mjs → BWTQ3qdg.mjs} +1 -1
- package/chunks/{uDwSrV7X2.mjs → Bo8lYN4n2.mjs} +2 -2
- package/chunks/{D6qJXu04.mjs → Bs926z902.mjs} +48 -49
- package/chunks/{BVsvRLea2.mjs → Bu1M7um22.mjs} +2 -2
- package/chunks/{CeEYChF4.mjs → Bvn6wnku.mjs} +2 -2
- package/chunks/{CyQmVphZ.mjs → C-zPVdz-.mjs} +35 -35
- package/chunks/{BZRmdKBG.mjs → CDalOJtl2.mjs} +65 -66
- package/chunks/{lPQBM7xc2.mjs → CGmbnjKL.mjs} +2 -2
- package/chunks/{kAaQhLJs2.mjs → COA3tHyu2.mjs} +1 -1
- package/chunks/{CVM0lwn22.mjs → CONqKD47.mjs} +2 -2
- package/chunks/{BTNnujZA2.mjs → CTYReSXN.mjs} +1 -1
- package/chunks/{BK6DiJfX2.mjs → ChP-pNSi2.mjs} +3 -3
- package/chunks/{DMDsZeqv.mjs → CiMBKxeJ.mjs} +1 -1
- package/chunks/{Dgwcljur.mjs → CkLpOk7H.mjs} +1 -1
- package/chunks/{CI-pH-gR2.mjs → Co0M4G3P.mjs} +1 -1
- package/chunks/{DS4Iw8Y42.mjs → D6mInNk02.mjs} +80 -78
- package/chunks/{BM8snKHN2.mjs → DH-B0Lkz2.mjs} +2 -2
- package/chunks/{Bq9KMIsC.mjs → DMSbDBCP.mjs} +143 -143
- package/chunks/{Cg6ahpHk.mjs → DQMWqQFe2.mjs} +2 -2
- package/chunks/{DFa2J7ul.mjs → D_q3C3v4.mjs} +130 -130
- package/chunks/{DyGddGTO.mjs → DbcxJ45j.mjs} +96 -97
- package/chunks/{B-WTB0ce2.mjs → DcgE9SF_2.mjs} +1 -1
- package/chunks/{Bh2SlzOo.mjs → DgH_4qOn2.mjs} +3 -0
- package/chunks/{CeI6Qrij.mjs → DhqOVe4S.mjs} +100 -99
- package/chunks/{285I1DfO.mjs → Dnb8jUG_.mjs} +14 -15
- package/chunks/{BaB0bq4I2.mjs → DxeRdYI82.mjs} +1 -1
- package/chunks/{JjnlFlI02.mjs → Dz_TTgwF2.mjs} +92 -90
- package/chunks/{C3pzNRoU2.mjs → T2V8nxIu.mjs} +363 -362
- package/chunks/{BLBHnUme2.mjs → Zdhb_SRi2.mjs} +1 -1
- package/chunks/{BvlU_Z6D2.mjs → eX0Esdvw2.mjs} +1 -1
- package/chunks/{CoPlnbwi2.mjs → hBvPGqka.mjs} +2 -2
- package/chunks/{BkoWiWEW.mjs → mqi8hesW2.mjs} +190 -191
- package/chunks/{DP7eF99m2.mjs → oXiNltCq.mjs} +1 -1
- package/chunks/{x2jJ6cfy2.mjs → shY1VkIE2.mjs} +1 -1
- package/chunks/{ohCkWdwS.mjs → tSaeUhnr.mjs} +1 -1
- package/chunks/{C0gLPKS8.mjs → tqW2DSco.mjs} +48 -47
- package/code-mirror-editor/index.d.ts +50 -0
- package/confirm-button/index.d.ts +122 -0
- package/confirmable/index.d.ts +93 -0
- package/context-menu/index.d.ts +183 -0
- package/count-up/index.d.ts +70 -0
- package/custom-scrollbar/index.d.ts +49 -0
- package/data-box/index.d.ts +30 -0
- package/data-card/index.d.ts +20 -0
- package/data-card-text/index.d.ts +21 -0
- package/data-display/index.d.ts +20 -0
- package/data-icons/index.d.ts +21 -0
- package/data-imgtext/index.d.ts +18 -0
- package/data-operatext/index.d.ts +17 -0
- package/data-panel/index.d.ts +19 -0
- package/data-pay/index.d.ts +19 -0
- package/data-price/index.d.ts +17 -0
- package/data-progress/index.d.ts +19 -0
- package/data-rotate/index.d.ts +21 -0
- package/data-table-picker/index.d.ts +61 -0
- package/data-table-picker/index.mjs +16 -15
- package/data-tabs/index.d.ts +21 -0
- package/dict-render/index.d.ts +28 -0
- package/e-charts/index.d.ts +79 -0
- package/easy-popup/index.d.ts +114 -0
- package/editable-progress/index.d.ts +68 -0
- package/editable-tree/index.d.ts +281 -0
- package/editable-tree/index.mjs +111 -110
- package/element-dialog/index.d.ts +376 -0
- package/element-resize-observer/index.d.ts +8 -0
- package/empty-view/index.d.ts +29 -0
- package/error-view/index.d.ts +25 -0
- package/flex-box/index.d.ts +44 -0
- package/flex-column/index.d.ts +41 -0
- package/flex-item/index.d.ts +77 -0
- package/flex-row/index.d.ts +41 -0
- package/flex-scroll-area/index.d.ts +22 -0
- package/flex-scroller/index.d.ts +26 -0
- package/flow-designer/index.d.ts +286 -0
- package/flow-designer/index.mjs +1 -1
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.d.ts +62 -0
- package/form-advice/index.d.ts +9 -0
- package/form-button/index.d.ts +123 -0
- package/form-card/index.d.ts +14 -0
- package/form-cascader/index.d.ts +478 -0
- package/form-cascader/index.mjs +1 -1
- package/form-cell/index.d.ts +25 -0
- package/form-checkbox/index.d.ts +314 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +373 -0
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +480 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +162 -0
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +220 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +378 -0
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +223 -0
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +376 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +376 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +329 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +376 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +270 -0
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.d.ts +441 -0
- package/form-input-time/index.mjs +1 -1
- package/form-item-config-provider/index.d.ts +40 -0
- package/form-item-group/index.d.ts +92 -0
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +190 -0
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +374 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +325 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +606 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +352 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +343 -0
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +287 -0
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +235 -0
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +325 -0
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.d.ts +715 -0
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.d.ts +717 -0
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.d.ts +226 -0
- package/form-view/index.mjs +2 -2
- package/guide-steps/index.d.ts +31 -0
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.d.ts +18 -0
- package/iframe-window/index.d.ts +9 -0
- package/image-cropper/index.d.ts +365 -0
- package/image-preview/index.d.ts +61 -0
- package/image-viewer/index.d.ts +25 -0
- package/index.css +1 -1
- package/index.d.ts +119 -119
- package/index.mjs +121 -121
- package/input-number-range/index.d.ts +41 -0
- package/keyboard/index.d.ts +64 -0
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.d.ts +65 -0
- package/name-avatar/index.d.ts +62 -0
- package/nav-bar/index.d.ts +21 -0
- package/package.json +1 -1
- package/page/index.d.ts +21 -0
- package/page-header/index.d.ts +27 -0
- package/page-index/index.d.ts +82 -0
- package/page-index-top/index.d.ts +38 -0
- package/page-skeleton/index.d.ts +30 -0
- package/page-skeleton-new/index.d.ts +34 -0
- package/pageable-table/index.d.ts +400 -0
- package/photo-swipe/index.d.ts +18 -0
- package/photo-swipe/index.mjs +1 -1
- package/props/date.d.ts +1 -4
- package/props/date.mjs +18 -5
- package/sign-panel/index.d.ts +85 -0
- package/skeleton-panel/index.d.ts +27 -0
- package/split-pane/index.d.ts +106 -0
- package/split-pane/index.mjs +1 -1
- package/stateful/index.d.ts +92 -0
- package/sub-table/index.d.ts +109 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.d.ts +109 -0
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.d.ts +27 -0
- package/table-column/index.d.ts +163 -0
- package/table-column-def/index.d.ts +97 -0
- package/table-view/index.d.ts +346 -0
- package/table-view/index.mjs +92 -90
- package/tag-render/index.d.ts +48 -0
- package/text-ellipsis/index.d.ts +111 -0
- package/toolbar/index.d.ts +129 -0
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +189 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.d.ts +47 -0
- package/vue-tags-input/index.d.ts +373 -0
- package/vue-tree-select/index.d.ts +1489 -0
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.d.ts +117 -0
- package/watermark/index.d.ts +97 -0
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +1 -1
- package/chunks/CjjJimnU.mjs +0 -20
- /package/chunks/{tJ_t87kJ.mjs → 6dNVtIN32.mjs} +0 -0
- /package/chunks/{CJ7Ai-mH2.mjs → B1luuf_A2.mjs} +0 -0
- /package/chunks/{B1jgu0ci.mjs → BAG_R87k2.mjs} +0 -0
- /package/chunks/{gNfZhMJk2.mjs → BM5LdxU72.mjs} +0 -0
- /package/chunks/{CZeL7oiY2.mjs → BhHMGhJ8.mjs} +0 -0
- /package/chunks/{z6tpYT0z.mjs → BwL9Xz1F.mjs} +0 -0
- /package/chunks/{B2Y1LWJ3.mjs → Dkw6LNCq2.mjs} +0 -0
- /package/chunks/{b_78-Wov2.mjs → FZqu01np2.mjs} +0 -0
- /package/chunks/{hPAfGilD.mjs → KOJEsarR2.mjs} +0 -0
- /package/chunks/{3UWcbJcG.mjs → PEU1JRcN2.mjs} +0 -0
|
@@ -4,22 +4,24 @@ import { t as n } from "./Cb7kjZa-.mjs";
|
|
|
4
4
|
import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
|
|
5
5
|
import { t as i } from "./mnqSaATq.mjs";
|
|
6
6
|
import { t as a } from "./tzjUpVIj.mjs";
|
|
7
|
-
import { n as o } from "./
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
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 {
|
|
7
|
+
import { n as o } from "./CkLpOk7H.mjs";
|
|
8
|
+
import { t as s } from "./tSaeUhnr.mjs";
|
|
9
|
+
import { t as c } from "./22GsbC-1.mjs";
|
|
10
|
+
import { t as l } from "./BWTQ3qdg.mjs";
|
|
11
|
+
import { t as u } from "./Bvn6wnku.mjs";
|
|
12
|
+
import { t as d } from "./CiMBKxeJ.mjs";
|
|
13
|
+
import { t as f } from "./CTYReSXN.mjs";
|
|
14
|
+
import { t as p } from "./BVUClQOx.mjs";
|
|
15
|
+
import { t as m } from "./DxeRdYI82.mjs";
|
|
16
|
+
import ee from "../table-column-def/index.mjs";
|
|
17
|
+
import { ElMessage as h, formContextKey as g, formItemContextKey as _ } from "element-plus/es";
|
|
18
|
+
import "element-plus/es/components/base/style/css";
|
|
19
|
+
import { Fragment as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as C, createTextVNode as w, createVNode as T, mergeProps as E, normalizeClass as D, openBlock as O, renderList as k, renderSlot as A, resolveComponent as j, toDisplayString as M, toHandlers as N, withCtx as P, withModifiers as F } from "vue";
|
|
20
|
+
import { findTreeChildren as I, isFunction as L } from "@web-utils/core";
|
|
21
|
+
import "element-plus/es/components/message/style/css";
|
|
22
|
+
import { cloneDeep as R } from "@web-utils/integrations/lodash";
|
|
21
23
|
//#region src/components/table/sub-table-plus.ts
|
|
22
|
-
var
|
|
24
|
+
var z = {
|
|
23
25
|
modelValue: Array,
|
|
24
26
|
prop: String,
|
|
25
27
|
columns: Array,
|
|
@@ -46,22 +48,22 @@ var R = {
|
|
|
46
48
|
onRowDbClick: Function,
|
|
47
49
|
showMessage: Boolean,
|
|
48
50
|
pageSize: Number
|
|
49
|
-
},
|
|
51
|
+
}, B = {
|
|
50
52
|
name: "SubTablePlus",
|
|
51
53
|
inject: {
|
|
52
54
|
elForm: {
|
|
53
|
-
from:
|
|
55
|
+
from: g,
|
|
54
56
|
default: ""
|
|
55
57
|
},
|
|
56
58
|
elFormItem: {
|
|
57
|
-
from:
|
|
59
|
+
from: _,
|
|
58
60
|
default: ""
|
|
59
61
|
}
|
|
60
62
|
},
|
|
61
63
|
provide() {
|
|
62
64
|
return { [r]: this.rowDbClick };
|
|
63
65
|
},
|
|
64
|
-
props: { ...
|
|
66
|
+
props: { ...z },
|
|
65
67
|
emits: {
|
|
66
68
|
...o,
|
|
67
69
|
"add-row": null
|
|
@@ -115,7 +117,7 @@ var R = {
|
|
|
115
117
|
},
|
|
116
118
|
methods: {
|
|
117
119
|
getCellType(e, t) {
|
|
118
|
-
return
|
|
120
|
+
return L(t.getType) ? t.getType(e, t) : t.type;
|
|
119
121
|
},
|
|
120
122
|
getInputAttr(e, t, n) {
|
|
121
123
|
var r;
|
|
@@ -137,9 +139,9 @@ var R = {
|
|
|
137
139
|
async remove(e, t) {
|
|
138
140
|
try {
|
|
139
141
|
if (this.delApi) try {
|
|
140
|
-
await this.delApi([e.id]),
|
|
142
|
+
await this.delApi([e.id]), h.success("删除成功!"), this.refresh();
|
|
141
143
|
} catch {
|
|
142
|
-
|
|
144
|
+
h.error("删除失败!");
|
|
143
145
|
}
|
|
144
146
|
else this.rows.splice(t, 1);
|
|
145
147
|
} catch {}
|
|
@@ -148,7 +150,7 @@ var R = {
|
|
|
148
150
|
if (this.fetchApi) this.addRow();
|
|
149
151
|
else {
|
|
150
152
|
var n;
|
|
151
|
-
let e =
|
|
153
|
+
let e = R(this.rowProps), r = await ((n = this.initRow) == null ? void 0 : n.call(this, e, t));
|
|
152
154
|
t === -1 ? this.rows.push(r || e) : this.rows.splice(t + 1, 0, r || e);
|
|
153
155
|
}
|
|
154
156
|
},
|
|
@@ -157,14 +159,14 @@ var R = {
|
|
|
157
159
|
},
|
|
158
160
|
async delRow() {
|
|
159
161
|
if (!this.selectedRows.length) {
|
|
160
|
-
|
|
162
|
+
h.warning("请选择要删除的记录!");
|
|
161
163
|
return;
|
|
162
164
|
}
|
|
163
165
|
try {
|
|
164
166
|
if (this.delApi) try {
|
|
165
|
-
await this.delApi(this.selectedRows.map((e) => e.id)),
|
|
167
|
+
await this.delApi(this.selectedRows.map((e) => e.id)), h.success("删除成功!"), this.refresh();
|
|
166
168
|
} catch {
|
|
167
|
-
|
|
169
|
+
h.error("删除失败!");
|
|
168
170
|
}
|
|
169
171
|
else this.$emit("update:modelValue", this.rows.filter((e) => !this.selectedRows.includes(e)));
|
|
170
172
|
} catch {}
|
|
@@ -174,14 +176,14 @@ var R = {
|
|
|
174
176
|
},
|
|
175
177
|
getVal(e, t, n) {
|
|
176
178
|
var r, i;
|
|
177
|
-
if (
|
|
179
|
+
if (L(n.getVal)) return n.getVal(e, t, n);
|
|
178
180
|
if (n.type === "select" && (r = n.attrs) != null && r.options) {
|
|
179
181
|
let r = n.attrs.options.find((n) => n.modelValue === e[t.property] || n.code === e[t.property]);
|
|
180
182
|
if (r) return r.label || r.name;
|
|
181
183
|
}
|
|
182
184
|
if (n.type === "checkbox1") return e[t.property] === !0 || e[t.property] === "1" || e[t.property] === "Y" ? "是" : "否";
|
|
183
185
|
if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
|
|
184
|
-
let [r] =
|
|
186
|
+
let [r] = I(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
|
|
185
187
|
if (r) return r[n.attrs.valueKey || "label"];
|
|
186
188
|
}
|
|
187
189
|
return e[t.property];
|
|
@@ -202,10 +204,10 @@ var R = {
|
|
|
202
204
|
(t = this.onRowDbClick) == null || t.call(this, ...e);
|
|
203
205
|
}
|
|
204
206
|
}
|
|
205
|
-
},
|
|
207
|
+
}, V = { class: "table-header flex-row" }, H = { class: "flex-item" }, U = { class: "flex-not-shrink" }, W = {
|
|
206
208
|
key: 0,
|
|
207
209
|
style: { color: "#f56c6c" }
|
|
208
|
-
},
|
|
210
|
+
}, G = ["title"], K = ["onClick"], q = {
|
|
209
211
|
key: 0,
|
|
210
212
|
class: "flex-row vertical-center horizon-center",
|
|
211
213
|
style: {
|
|
@@ -214,11 +216,11 @@ var R = {
|
|
|
214
216
|
"border-top": "none"
|
|
215
217
|
}
|
|
216
218
|
};
|
|
217
|
-
function
|
|
218
|
-
var
|
|
219
|
-
let L = i, R =
|
|
220
|
-
return
|
|
221
|
-
|
|
219
|
+
function J(e, t, r, o, h, g) {
|
|
220
|
+
var _, I;
|
|
221
|
+
let L = i, R = l, z = c, B = p, J = j("FormInputUser"), Y = j("FormInputDepartment"), X = m, Z = d, Q = s, te = u, ne = f, re = a, $ = ee, ie = n;
|
|
222
|
+
return O(), x("div", { class: D(["sub-table-plus", { "hide-message": !e.showMessage }]) }, [
|
|
223
|
+
T(ie, E(e.$attrs, {
|
|
222
224
|
ref: "table",
|
|
223
225
|
"auto-height": "",
|
|
224
226
|
data: e.fetchApi ? null : h.rows,
|
|
@@ -234,9 +236,9 @@ function q(e, t, r, o, h, g) {
|
|
|
234
236
|
index: e.index,
|
|
235
237
|
"row-db-click": g.rowDbClick,
|
|
236
238
|
onRowDblclick: g.rowDbClick
|
|
237
|
-
},
|
|
238
|
-
default:
|
|
239
|
-
|
|
239
|
+
}, N(g.listeners), { onSelectionChange: g.onSelectionChange }), C({
|
|
240
|
+
default: P(() => [
|
|
241
|
+
A(e.$slots, "columns", { columns: e.columns }, () => [(O(!0), x(v, null, k(g.filteredColumns, (t) => (O(), y($, {
|
|
240
242
|
key: t.prop,
|
|
241
243
|
label: t.label,
|
|
242
244
|
width: t.width,
|
|
@@ -247,16 +249,16 @@ function q(e, t, r, o, h, g) {
|
|
|
247
249
|
options: t.options,
|
|
248
250
|
"show-overflow-tooltip": !t.editable && t.showOverflowTooltip
|
|
249
251
|
}, {
|
|
250
|
-
header:
|
|
251
|
-
default:
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
header: P(() => [!e.disabled && t.required ? (O(), x("span", W, "*")) : b("v-if", !0), S("span", { title: t.label }, M(t.label), 9, G)]),
|
|
253
|
+
default: P(({ row: n, column: r, $index: i }) => [
|
|
254
|
+
b("tag 插槽"),
|
|
255
|
+
A(e.$slots, "tag", {
|
|
254
256
|
row: n,
|
|
255
257
|
column: r,
|
|
256
258
|
index: i
|
|
257
259
|
}),
|
|
258
|
-
|
|
259
|
-
|
|
260
|
+
b("列默认插槽,名字和 prop 保持一致"),
|
|
261
|
+
A(e.$slots, t.prop, {
|
|
260
262
|
row: n,
|
|
261
263
|
column: r,
|
|
262
264
|
wrapCol: !1,
|
|
@@ -266,19 +268,19 @@ function q(e, t, r, o, h, g) {
|
|
|
266
268
|
editable: t.editable
|
|
267
269
|
}, () => {
|
|
268
270
|
var e;
|
|
269
|
-
return [g.enabled && t.editable === !0 ? (
|
|
271
|
+
return [g.enabled && t.editable === !0 ? (O(), x(v, { key: 0 }, [g.getCellType(n, t) === "input" ? (O(), y(R, E({
|
|
270
272
|
key: 0,
|
|
271
273
|
ref_for: !0
|
|
272
274
|
}, g.getInputAttr(n, t, i), {
|
|
273
275
|
onBlur: () => g.onBlur(n, t),
|
|
274
276
|
"onUpdate:modelValue": (e) => g.onInput(n, e, t)
|
|
275
|
-
}), null, 16, ["onBlur", "onUpdate:modelValue"])) : g.getCellType(n, t) === "checkbox1" ? (
|
|
277
|
+
}), null, 16, ["onBlur", "onUpdate:modelValue"])) : g.getCellType(n, t) === "checkbox1" ? (O(), y(z, E({
|
|
276
278
|
key: 1,
|
|
277
279
|
ref_for: !0
|
|
278
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "inputPhoneNumber" ? (
|
|
280
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "inputPhoneNumber" ? (O(), y(B, E({
|
|
279
281
|
key: 2,
|
|
280
282
|
ref_for: !0
|
|
281
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "user" ? (
|
|
283
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "user" ? (O(), x(v, { key: 3 }, [t.single ? (O(), y(J, E({
|
|
282
284
|
key: 0,
|
|
283
285
|
ref_for: !0
|
|
284
286
|
}, g.getInputAttr(n, t, i), {
|
|
@@ -293,10 +295,10 @@ function q(e, t, r, o, h, g) {
|
|
|
293
295
|
"name",
|
|
294
296
|
"onUpdate:name",
|
|
295
297
|
"onUpdate:modelValue"
|
|
296
|
-
])) : (
|
|
298
|
+
])) : (O(), y(J, E({
|
|
297
299
|
key: 1,
|
|
298
300
|
ref_for: !0
|
|
299
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : g.getCellType(n, t) === "department" ? (
|
|
301
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : g.getCellType(n, t) === "department" ? (O(), x(v, { key: 4 }, [t.single ? (O(), y(Y, E({
|
|
300
302
|
key: 0,
|
|
301
303
|
ref_for: !0
|
|
302
304
|
}, g.getInputAttr(n, t, i), {
|
|
@@ -307,13 +309,13 @@ function q(e, t, r, o, h, g) {
|
|
|
307
309
|
"name",
|
|
308
310
|
"onUpdate:name",
|
|
309
311
|
"onUpdate:modelValue"
|
|
310
|
-
])) : (
|
|
312
|
+
])) : (O(), y(Y, E({
|
|
311
313
|
key: 1,
|
|
312
314
|
ref_for: !0
|
|
313
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : g.getCellType(n, t) === "select" ? (
|
|
315
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : g.getCellType(n, t) === "select" ? (O(), y(X, E({
|
|
314
316
|
key: 5,
|
|
315
317
|
ref_for: !0
|
|
316
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "datePicker" ? (
|
|
318
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "datePicker" ? (O(), y(Z, E({
|
|
317
319
|
key: 6,
|
|
318
320
|
ref_for: !0
|
|
319
321
|
}, g.getInputAttr(n, t, i), {
|
|
@@ -328,16 +330,16 @@ function q(e, t, r, o, h, g) {
|
|
|
328
330
|
"end",
|
|
329
331
|
"onUpdate:end",
|
|
330
332
|
"onUpdate:modelValue"
|
|
331
|
-
])) : g.getCellType(n, t) === "cascader" ? (
|
|
333
|
+
])) : g.getCellType(n, t) === "cascader" ? (O(), y(Q, E({
|
|
332
334
|
key: 7,
|
|
333
335
|
ref_for: !0
|
|
334
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "checkbox" ? (
|
|
336
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "checkbox" ? (O(), y(te, E({
|
|
335
337
|
key: 8,
|
|
336
338
|
ref_for: !0
|
|
337
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "number" ? (
|
|
339
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : g.getCellType(n, t) === "number" ? (O(), y(ne, E({
|
|
338
340
|
key: 9,
|
|
339
341
|
ref_for: !0
|
|
340
|
-
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
342
|
+
}, g.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => g.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (O(), x(v, { key: 10 }, [w(M(g.getVal(n, r, t)), 1)], 64))], 64)) : t.dictType || (e = t.options) != null && e.length ? (O(), y(re, {
|
|
341
343
|
key: 1,
|
|
342
344
|
"dict-type": t.dictType,
|
|
343
345
|
"id-as-value": t.idAsValue,
|
|
@@ -352,7 +354,7 @@ function q(e, t, r, o, h, g) {
|
|
|
352
354
|
"column",
|
|
353
355
|
"row",
|
|
354
356
|
"options"
|
|
355
|
-
])) : (
|
|
357
|
+
])) : (O(), x(v, { key: 2 }, [w(M(g.getVal(n, r, t)), 1)], 64))];
|
|
356
358
|
})
|
|
357
359
|
]),
|
|
358
360
|
_: 2
|
|
@@ -366,24 +368,24 @@ function q(e, t, r, o, h, g) {
|
|
|
366
368
|
"options",
|
|
367
369
|
"show-overflow-tooltip"
|
|
368
370
|
]))), 128))]),
|
|
369
|
-
|
|
371
|
+
A(e.$slots, "handle", {
|
|
370
372
|
add: g.add,
|
|
371
373
|
remove: g.remove
|
|
372
374
|
}),
|
|
373
|
-
!e.disabled && g.hasHandleMenus ? (
|
|
375
|
+
!e.disabled && g.hasHandleMenus ? (O(), y($, {
|
|
374
376
|
key: 0,
|
|
375
377
|
label: "操作",
|
|
376
378
|
width: "80",
|
|
377
379
|
align: "center",
|
|
378
380
|
prop: "menu"
|
|
379
381
|
}, {
|
|
380
|
-
header:
|
|
382
|
+
header: P(({ column: t, $index: n }) => [A(e.$slots, "handle-column-header", {
|
|
381
383
|
column: t,
|
|
382
384
|
index: n
|
|
383
|
-
}, () => [
|
|
384
|
-
default:
|
|
385
|
+
}, () => [w(M(t.label), 1)])]),
|
|
386
|
+
default: P(({ row: t, $index: n }) => {
|
|
385
387
|
var r, i, a;
|
|
386
|
-
return [(r = e.handleMenus) != null && r.includes("add") && ((i = e.modelValue) == null ? void 0 : i.length) < e.limit ? (
|
|
388
|
+
return [(r = e.handleMenus) != null && r.includes("add") && ((i = e.modelValue) == null ? void 0 : i.length) < e.limit ? (O(), x("i", {
|
|
387
389
|
key: 0,
|
|
388
390
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
389
391
|
style: {
|
|
@@ -392,45 +394,45 @@ function q(e, t, r, o, h, g) {
|
|
|
392
394
|
cursor: "pointer"
|
|
393
395
|
},
|
|
394
396
|
title: "添加",
|
|
395
|
-
onClick:
|
|
396
|
-
}, null, 8,
|
|
397
|
+
onClick: F((e) => g.add(t, n), ["stop"])
|
|
398
|
+
}, null, 8, K)) : b("v-if", !0), (a = e.handleMenus) != null && a.includes("delete") ? (O(), y(L, {
|
|
397
399
|
key: 1,
|
|
398
400
|
class: "el-icon-error sub-table-handle-button table-button-remove",
|
|
399
401
|
confirm: "",
|
|
400
402
|
text: "",
|
|
401
403
|
title: "删除",
|
|
402
404
|
message: "您确定要删除该行吗?",
|
|
403
|
-
onClick:
|
|
404
|
-
}, null, 8, ["onClick"])) :
|
|
405
|
+
onClick: F((e) => g.remove(t, n), ["stop"])
|
|
406
|
+
}, null, 8, ["onClick"])) : b("v-if", !0)];
|
|
405
407
|
}),
|
|
406
408
|
_: 3
|
|
407
|
-
})) :
|
|
409
|
+
})) : b("v-if", !0)
|
|
408
410
|
]),
|
|
409
411
|
_: 2
|
|
410
412
|
}, [!e.disabled || g.hasToolBarMenu ? {
|
|
411
413
|
name: "toolbar",
|
|
412
|
-
fn:
|
|
414
|
+
fn: P(() => [S("div", V, [A(e.$slots, "toolbar", {
|
|
413
415
|
addRow: g.addRow,
|
|
414
416
|
delRow: g.delRow,
|
|
415
417
|
refresh: g.refresh
|
|
416
|
-
}, () => [
|
|
418
|
+
}, () => [S("div", H, [A(e.$slots, "toolbar-left", {
|
|
417
419
|
addRow: g.addRow,
|
|
418
420
|
delRow: g.delRow,
|
|
419
421
|
refresh: g.refresh
|
|
420
422
|
}, () => {
|
|
421
423
|
var n, r, i;
|
|
422
424
|
return [
|
|
423
|
-
(n = e.toolbarMenus) != null && n.includes("add") ? (
|
|
425
|
+
(n = e.toolbarMenus) != null && n.includes("add") ? (O(), y(L, {
|
|
424
426
|
key: 0,
|
|
425
427
|
class: "table-header-button add",
|
|
426
428
|
icon: "el-icon-circle-plus",
|
|
427
429
|
type: "text",
|
|
428
430
|
onClick: g.addRow
|
|
429
431
|
}, {
|
|
430
|
-
default:
|
|
432
|
+
default: P(() => [...t[2] || (t[2] = [w(" 添加 ", -1)])]),
|
|
431
433
|
_: 1
|
|
432
|
-
}, 8, ["onClick"])) :
|
|
433
|
-
(r = e.toolbarMenus) != null && r.includes("delete") ? (
|
|
434
|
+
}, 8, ["onClick"])) : b("v-if", !0),
|
|
435
|
+
(r = e.toolbarMenus) != null && r.includes("delete") ? (O(), y(L, {
|
|
434
436
|
key: 1,
|
|
435
437
|
disabled: h.selectedRows.length <= 0,
|
|
436
438
|
class: "table-header-button remove",
|
|
@@ -440,10 +442,10 @@ function q(e, t, r, o, h, g) {
|
|
|
440
442
|
text: "",
|
|
441
443
|
onClick: g.delRow
|
|
442
444
|
}, {
|
|
443
|
-
default:
|
|
445
|
+
default: P(() => [...t[3] || (t[3] = [w(" 删除 ", -1)])]),
|
|
444
446
|
_: 1
|
|
445
|
-
}, 8, ["disabled", "onClick"])) :
|
|
446
|
-
(i = e.toolbarMenus) != null && i.includes("refresh") ? (
|
|
447
|
+
}, 8, ["disabled", "onClick"])) : b("v-if", !0),
|
|
448
|
+
(i = e.toolbarMenus) != null && i.includes("refresh") ? (O(), y(L, {
|
|
447
449
|
key: 2,
|
|
448
450
|
class: "table-header-button refresh",
|
|
449
451
|
icon: "el-icon-refresh-left",
|
|
@@ -451,29 +453,29 @@ function q(e, t, r, o, h, g) {
|
|
|
451
453
|
disabled: !1,
|
|
452
454
|
onClick: g.refresh
|
|
453
455
|
}, {
|
|
454
|
-
default:
|
|
456
|
+
default: P(() => [...t[4] || (t[4] = [w(" 刷新 ", -1)])]),
|
|
455
457
|
_: 1
|
|
456
|
-
}, 8, ["onClick"])) :
|
|
458
|
+
}, 8, ["onClick"])) : b("v-if", !0)
|
|
457
459
|
];
|
|
458
|
-
}),
|
|
460
|
+
}), A(e.$slots, "toolbar-left-append", {
|
|
459
461
|
addRow: g.addRow,
|
|
460
462
|
delRow: g.delRow,
|
|
461
463
|
refresh: g.refresh
|
|
462
|
-
})]),
|
|
464
|
+
})]), S("div", U, [A(e.$slots, "toolbar-right", {
|
|
463
465
|
removeSelectedRows: g.removeSelectedRows,
|
|
464
466
|
selectedRows: h.selectedRows
|
|
465
467
|
})])])])]),
|
|
466
468
|
key: "0"
|
|
467
469
|
} : void 0, e.bottomAddButton ? {
|
|
468
470
|
name: "empty",
|
|
469
|
-
fn:
|
|
471
|
+
fn: P(() => [S("i", {
|
|
470
472
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
471
473
|
style: {
|
|
472
474
|
"font-size": "20px",
|
|
473
475
|
cursor: "pointer"
|
|
474
476
|
},
|
|
475
477
|
title: "添加",
|
|
476
|
-
onClick: t[0] || (t[0] =
|
|
478
|
+
onClick: t[0] || (t[0] = F((t) => {
|
|
477
479
|
var n;
|
|
478
480
|
return g.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
|
|
479
481
|
}, ["stop"]))
|
|
@@ -493,21 +495,21 @@ function q(e, t, r, o, h, g) {
|
|
|
493
495
|
"onRowDblclick",
|
|
494
496
|
"onSelectionChange"
|
|
495
497
|
]),
|
|
496
|
-
|
|
497
|
-
!e.disabled && e.bottomAddButton && ((
|
|
498
|
+
b("底部添加按钮"),
|
|
499
|
+
!e.disabled && e.bottomAddButton && ((_ = e.modelValue) == null ? void 0 : _.length) < e.limit && ((I = e.modelValue) == null ? void 0 : I.length) > 0 ? (O(), x("div", q, [S("i", {
|
|
498
500
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
499
501
|
style: {
|
|
500
502
|
"font-size": "20px",
|
|
501
503
|
cursor: "pointer"
|
|
502
504
|
},
|
|
503
505
|
title: "添加",
|
|
504
|
-
onClick: t[1] || (t[1] =
|
|
506
|
+
onClick: t[1] || (t[1] = F((t) => {
|
|
505
507
|
var n;
|
|
506
508
|
return g.add(null, ((n = e.modelValue) == null ? void 0 : n.length) ?? 0);
|
|
507
509
|
}, ["stop"]))
|
|
508
|
-
})])) :
|
|
510
|
+
})])) : b("v-if", !0)
|
|
509
511
|
], 2);
|
|
510
512
|
}
|
|
511
|
-
var
|
|
513
|
+
var Y = /* @__PURE__ */ t(B, [["render", J]]);
|
|
512
514
|
//#endregion
|
|
513
|
-
export {
|
|
515
|
+
export { z as n, Y as t };
|