@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
|
@@ -2,22 +2,24 @@ import { t as e } from "./B1MSrc6f.mjs";
|
|
|
2
2
|
import { t } from "./Cb7kjZa-.mjs";
|
|
3
3
|
import { t as n } from "./mnqSaATq.mjs";
|
|
4
4
|
import { t as r } from "./tzjUpVIj.mjs";
|
|
5
|
-
import { n as i } from "./
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import { t as l } from "./
|
|
11
|
-
import { t as u } from "./
|
|
12
|
-
import { t as d } from "./
|
|
5
|
+
import { n as i } from "./CkLpOk7H.mjs";
|
|
6
|
+
import { t as a } from "./tSaeUhnr.mjs";
|
|
7
|
+
import { t as o } from "./BWTQ3qdg.mjs";
|
|
8
|
+
import { t as s } from "./Bvn6wnku.mjs";
|
|
9
|
+
import { t as c } from "./CiMBKxeJ.mjs";
|
|
10
|
+
import { t as l } from "./CTYReSXN.mjs";
|
|
11
|
+
import { t as u } from "./BVUClQOx.mjs";
|
|
12
|
+
import { t as d } from "./DxeRdYI82.mjs";
|
|
13
13
|
import f from "../table-column-def/index.mjs";
|
|
14
|
-
import { t as p } from "./
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
14
|
+
import { t as p } from "./Bo8lYN4n2.mjs";
|
|
15
|
+
import { ElMessage as m, formContextKey as h, formItemContextKey as g } from "element-plus/es";
|
|
16
|
+
import "element-plus/es/components/base/style/css";
|
|
17
|
+
import { Fragment as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, openBlock as E, renderList as D, renderSlot as O, resolveComponent as k, toDisplayString as A, withCtx as j, withModifiers as M } from "vue";
|
|
18
|
+
import { findTreeChildren as N, isFunction as P } from "@web-utils/core";
|
|
19
|
+
import "element-plus/es/components/message/style/css";
|
|
20
|
+
import { cloneDeep as F } from "@web-utils/integrations/lodash";
|
|
19
21
|
//#region src/components/table/sub-table.ts
|
|
20
|
-
var
|
|
22
|
+
var I = {
|
|
21
23
|
modelValue: Array,
|
|
22
24
|
columns: Array,
|
|
23
25
|
allowEmpty: Boolean,
|
|
@@ -51,7 +53,7 @@ var F = {
|
|
|
51
53
|
selectionWidth: String,
|
|
52
54
|
fetchApi: Function,
|
|
53
55
|
delApi: Function
|
|
54
|
-
},
|
|
56
|
+
}, L = {
|
|
55
57
|
name: "SubTable",
|
|
56
58
|
emits: {
|
|
57
59
|
...i,
|
|
@@ -59,15 +61,15 @@ var F = {
|
|
|
59
61
|
},
|
|
60
62
|
inject: {
|
|
61
63
|
elForm: {
|
|
62
|
-
from:
|
|
64
|
+
from: h,
|
|
63
65
|
default: ""
|
|
64
66
|
},
|
|
65
67
|
elFormItem: {
|
|
66
|
-
from:
|
|
68
|
+
from: g,
|
|
67
69
|
default: ""
|
|
68
70
|
}
|
|
69
71
|
},
|
|
70
|
-
props: { ...
|
|
72
|
+
props: { ...I },
|
|
71
73
|
data() {
|
|
72
74
|
return {
|
|
73
75
|
rows: [],
|
|
@@ -109,7 +111,7 @@ var F = {
|
|
|
109
111
|
},
|
|
110
112
|
methods: {
|
|
111
113
|
getCellType(e, t) {
|
|
112
|
-
return
|
|
114
|
+
return P(t.getType) ? t.getType(e, t) : t.type;
|
|
113
115
|
},
|
|
114
116
|
getInputAttr(e, t, n) {
|
|
115
117
|
var r;
|
|
@@ -134,7 +136,7 @@ var F = {
|
|
|
134
136
|
} catch {}
|
|
135
137
|
},
|
|
136
138
|
add(e, t) {
|
|
137
|
-
let n =
|
|
139
|
+
let n = F(this.rowProps);
|
|
138
140
|
this.rows.splice(t + 1, 0, n);
|
|
139
141
|
},
|
|
140
142
|
addRow() {
|
|
@@ -142,17 +144,17 @@ var F = {
|
|
|
142
144
|
},
|
|
143
145
|
async delRow() {
|
|
144
146
|
if (!this.selectedRows.length) {
|
|
145
|
-
|
|
147
|
+
m.warning("请选择要删除的记录!");
|
|
146
148
|
return;
|
|
147
149
|
}
|
|
148
150
|
try {
|
|
149
151
|
if (this.delApi) try {
|
|
150
152
|
await this.delApi(this.selectedRows.map((e) => e.id).join(",")), this.refresh();
|
|
151
153
|
} catch {
|
|
152
|
-
|
|
154
|
+
m.error("删除失败!");
|
|
153
155
|
}
|
|
154
156
|
else this.$emit("update:modelValue", this.rows.filter((e) => !this.selectedRows.includes(e)));
|
|
155
|
-
|
|
157
|
+
m.success("删除成功!");
|
|
156
158
|
} catch {}
|
|
157
159
|
},
|
|
158
160
|
refresh() {
|
|
@@ -165,26 +167,26 @@ var F = {
|
|
|
165
167
|
if (r) return r.name;
|
|
166
168
|
}
|
|
167
169
|
if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
|
|
168
|
-
let [r] =
|
|
170
|
+
let [r] = N(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
|
|
169
171
|
if (r) return r[n.attrs.valueKey || "label"];
|
|
170
172
|
}
|
|
171
173
|
return e[t.property];
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
|
-
},
|
|
176
|
+
}, R = {
|
|
175
177
|
key: 0,
|
|
176
178
|
class: "table-header"
|
|
177
|
-
},
|
|
179
|
+
}, z = {
|
|
178
180
|
key: 0,
|
|
179
181
|
style: { color: "#f56c6c" }
|
|
180
|
-
},
|
|
181
|
-
function
|
|
182
|
-
let P = n, F = o, I = u,
|
|
183
|
-
return
|
|
182
|
+
}, B = ["onClick"];
|
|
183
|
+
function V(e, i, m, h, g, N) {
|
|
184
|
+
let P = n, F = o, I = u, L = k("FormInputUser"), V = k("FormInputDepartment"), H = d, U = c, W = a, G = s, K = l, q = p, J = r, Y = f, X = t;
|
|
185
|
+
return E(), v(X, T({
|
|
184
186
|
ref: "table",
|
|
185
187
|
class: "sub-table",
|
|
186
188
|
"auto-height": "",
|
|
187
|
-
data:
|
|
189
|
+
data: g.rows,
|
|
188
190
|
api: e.fetchApi,
|
|
189
191
|
"show-summary": e.showSummary,
|
|
190
192
|
"selection-width": e.selectionWidth
|
|
@@ -193,9 +195,9 @@ function B(e, i, m, h, M, N) {
|
|
|
193
195
|
selection: N.enabled,
|
|
194
196
|
"row-db-click": e.rowDbClick,
|
|
195
197
|
onSelectionChange: N.onSelectionChange
|
|
196
|
-
}),
|
|
197
|
-
default:
|
|
198
|
-
|
|
198
|
+
}), S({
|
|
199
|
+
default: j(() => [
|
|
200
|
+
O(e.$slots, "columns", { columns: e.columns }, () => [(E(!0), b(_, null, D(N.filteredColumns, (t) => (E(), v(Y, {
|
|
199
201
|
key: t.prop,
|
|
200
202
|
label: t.label,
|
|
201
203
|
width: t.width,
|
|
@@ -206,34 +208,34 @@ function B(e, i, m, h, M, N) {
|
|
|
206
208
|
options: t.options,
|
|
207
209
|
"show-overflow-tooltip": !N.available && t.showOverflowTooltip
|
|
208
210
|
}, {
|
|
209
|
-
header:
|
|
210
|
-
default:
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
header: j(() => [!e.disabled && t.required ? (E(), b("span", z, "*")) : y("v-if", !0), C(" " + A(t.label), 1)]),
|
|
212
|
+
default: j(({ row: n, column: r, $index: i }) => [
|
|
213
|
+
y("tag 插槽"),
|
|
214
|
+
O(e.$slots, "tag", {
|
|
213
215
|
row: n,
|
|
214
216
|
column: r,
|
|
215
217
|
index: i
|
|
216
218
|
}),
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
y("列默认插槽,名字和 prop 保持一致"),
|
|
220
|
+
O(e.$slots, t.prop, {
|
|
219
221
|
row: n,
|
|
220
222
|
column: r,
|
|
221
223
|
index: i
|
|
222
224
|
}, () => {
|
|
223
225
|
var e;
|
|
224
|
-
return [N.available ? (
|
|
226
|
+
return [N.available ? (E(), b(_, { key: 0 }, [N.getCellType(n, t) === "input" ? (E(), v(F, T({
|
|
225
227
|
key: 0,
|
|
226
228
|
ref_for: !0
|
|
227
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (
|
|
229
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (E(), v(I, T({
|
|
228
230
|
key: 1,
|
|
229
231
|
ref_for: !0
|
|
230
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (
|
|
232
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (E(), b(_, { key: 2 }, [t.single ? (E(), v(L, T({
|
|
231
233
|
key: 0,
|
|
232
234
|
ref_for: !0
|
|
233
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
235
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (E(), v(L, T({
|
|
234
236
|
key: 1,
|
|
235
237
|
ref_for: !0
|
|
236
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (
|
|
238
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (E(), b(_, { key: 3 }, [t.single ? (E(), v(V, T({
|
|
237
239
|
key: 0,
|
|
238
240
|
ref_for: !0
|
|
239
241
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -244,16 +246,16 @@ function B(e, i, m, h, M, N) {
|
|
|
244
246
|
"name",
|
|
245
247
|
"onUpdate:name",
|
|
246
248
|
"onUpdate:modelValue"
|
|
247
|
-
])) : (
|
|
249
|
+
])) : (E(), v(V, T({
|
|
248
250
|
key: 1,
|
|
249
251
|
ref_for: !0
|
|
250
252
|
}, N.getInputAttr(n, t, i), {
|
|
251
253
|
disabled: N.isInputDisabled(n, t),
|
|
252
254
|
"onUpdate:modelValue": (e) => N.onInput(n, e, t)
|
|
253
|
-
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (
|
|
255
|
+
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (E(), v(H, T({
|
|
254
256
|
key: 4,
|
|
255
257
|
ref_for: !0
|
|
256
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (
|
|
258
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (E(), v(U, T({
|
|
257
259
|
key: 5,
|
|
258
260
|
ref_for: !0
|
|
259
261
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -268,19 +270,19 @@ function B(e, i, m, h, M, N) {
|
|
|
268
270
|
"end",
|
|
269
271
|
"onUpdate:end",
|
|
270
272
|
"onUpdate:modelValue"
|
|
271
|
-
])) : N.getCellType(n, t) === "cascader" ? (
|
|
273
|
+
])) : N.getCellType(n, t) === "cascader" ? (E(), v(W, T({
|
|
272
274
|
key: 6,
|
|
273
275
|
ref_for: !0
|
|
274
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (
|
|
276
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (E(), v(G, T({
|
|
275
277
|
key: 7,
|
|
276
278
|
ref_for: !0
|
|
277
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (
|
|
279
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (E(), v(K, T({
|
|
278
280
|
key: 8,
|
|
279
281
|
ref_for: !0
|
|
280
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (
|
|
282
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (E(), v(q, T({
|
|
281
283
|
key: 9,
|
|
282
284
|
ref_for: !0
|
|
283
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
285
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (E(), b(_, { key: 10 }, [C(A(N.getVal(n, r, t)), 1)], 64))], 64)) : t.dicType || (e = t.options) != null && e.length ? (E(), v(J, {
|
|
284
286
|
key: 1,
|
|
285
287
|
"dict-type": t.dicType,
|
|
286
288
|
"id-as-value": t.idAsValue,
|
|
@@ -295,7 +297,7 @@ function B(e, i, m, h, M, N) {
|
|
|
295
297
|
"column",
|
|
296
298
|
"row",
|
|
297
299
|
"options"
|
|
298
|
-
])) : (
|
|
300
|
+
])) : (E(), b(_, { key: 2 }, [C(A(N.getVal(n, r, t)), 1)], 64))];
|
|
299
301
|
})
|
|
300
302
|
]),
|
|
301
303
|
_: 2
|
|
@@ -309,13 +311,13 @@ function B(e, i, m, h, M, N) {
|
|
|
309
311
|
"options",
|
|
310
312
|
"show-overflow-tooltip"
|
|
311
313
|
]))), 128))]),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
+
y(" 自定义操作列 "),
|
|
315
|
+
O(e.$slots, "handle", {
|
|
314
316
|
add: N.add,
|
|
315
317
|
remove: N.remove
|
|
316
318
|
}),
|
|
317
|
-
|
|
318
|
-
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (
|
|
319
|
+
y(" 操作列 "),
|
|
320
|
+
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (E(), v(Y, {
|
|
319
321
|
key: 0,
|
|
320
322
|
label: "操作",
|
|
321
323
|
fixed: "right",
|
|
@@ -323,11 +325,11 @@ function B(e, i, m, h, M, N) {
|
|
|
323
325
|
align: "center",
|
|
324
326
|
prop: "menu"
|
|
325
327
|
}, {
|
|
326
|
-
header:
|
|
328
|
+
header: j(({ column: t, $index: n }) => [O(e.$slots, "handle-column-header", {
|
|
327
329
|
column: t,
|
|
328
330
|
index: n
|
|
329
|
-
}, () => [
|
|
330
|
-
default:
|
|
331
|
+
}, () => [C(A(t.label), 1)])]),
|
|
332
|
+
default: j(({ row: t, $index: n }) => [e.showHandleColumnAddButton && e.modelValue.length < e.maxLimit ? (E(), b("i", {
|
|
331
333
|
key: 0,
|
|
332
334
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
333
335
|
style: {
|
|
@@ -336,8 +338,8 @@ function B(e, i, m, h, M, N) {
|
|
|
336
338
|
cursor: "pointer"
|
|
337
339
|
},
|
|
338
340
|
title: "添加",
|
|
339
|
-
onClick:
|
|
340
|
-
}, null, 8,
|
|
341
|
+
onClick: M((e) => N.add(t, n), ["stop"])
|
|
342
|
+
}, null, 8, B)) : y("v-if", !0), e.modelValue && e.modelValue.length > 1 || e.allowEmpty ? (E(), v(P, {
|
|
341
343
|
key: 1,
|
|
342
344
|
class: "el-icon-error sub-table-handle-button table-button-remove",
|
|
343
345
|
style: {
|
|
@@ -348,27 +350,27 @@ function B(e, i, m, h, M, N) {
|
|
|
348
350
|
confirm: "",
|
|
349
351
|
text: "",
|
|
350
352
|
message: "您确定要删除该行吗?",
|
|
351
|
-
onClick:
|
|
352
|
-
}, null, 8, ["onClick"])) :
|
|
353
|
+
onClick: M((e) => N.remove(t, n), ["stop"])
|
|
354
|
+
}, null, 8, ["onClick"])) : y("v-if", !0)]),
|
|
353
355
|
_: 3
|
|
354
|
-
})) :
|
|
356
|
+
})) : y("v-if", !0)
|
|
355
357
|
]),
|
|
356
358
|
_: 2
|
|
357
359
|
}, [e.editable ? void 0 : {
|
|
358
360
|
name: "toolbar",
|
|
359
|
-
fn:
|
|
361
|
+
fn: j(() => [N.enabled || e.fetchApi ? (E(), b("div", R, [O(e.$slots, "toolbar", {
|
|
360
362
|
addRow: N.addRow,
|
|
361
363
|
delRow: N.delRow,
|
|
362
364
|
refresh: N.refresh
|
|
363
|
-
}, () => [N.enabled ? (
|
|
365
|
+
}, () => [N.enabled ? (E(), b(_, { key: 0 }, [w(P, {
|
|
364
366
|
class: "table-header-button add",
|
|
365
367
|
icon: "el-icon-circle-plus",
|
|
366
368
|
type: "text",
|
|
367
369
|
onClick: N.addRow
|
|
368
370
|
}, {
|
|
369
|
-
default:
|
|
371
|
+
default: j(() => [...i[1] || (i[1] = [C(" 添加 ", -1)])]),
|
|
370
372
|
_: 1
|
|
371
|
-
}, 8, ["onClick"]),
|
|
373
|
+
}, 8, ["onClick"]), w(P, {
|
|
372
374
|
class: "table-header-button remove",
|
|
373
375
|
confirm: "",
|
|
374
376
|
message: "您确定要删除选中的记录吗?",
|
|
@@ -376,9 +378,9 @@ function B(e, i, m, h, M, N) {
|
|
|
376
378
|
text: "",
|
|
377
379
|
onClick: N.delRow
|
|
378
380
|
}, {
|
|
379
|
-
default:
|
|
381
|
+
default: j(() => [...i[2] || (i[2] = [C(" 删除 ", -1)])]),
|
|
380
382
|
_: 1
|
|
381
|
-
}, 8, ["onClick"])], 64)) :
|
|
383
|
+
}, 8, ["onClick"])], 64)) : y("v-if", !0), e.fetchApi ? (E(), v(P, {
|
|
382
384
|
key: 1,
|
|
383
385
|
class: "table-header-button refresh",
|
|
384
386
|
icon: "el-icon-refresh-left",
|
|
@@ -386,20 +388,20 @@ function B(e, i, m, h, M, N) {
|
|
|
386
388
|
disabled: !1,
|
|
387
389
|
onClick: N.refresh
|
|
388
390
|
}, {
|
|
389
|
-
default:
|
|
391
|
+
default: j(() => [...i[3] || (i[3] = [C(" 刷新 ", -1)])]),
|
|
390
392
|
_: 1
|
|
391
|
-
}, 8, ["onClick"])) :
|
|
393
|
+
}, 8, ["onClick"])) : y("v-if", !0)])])) : y("v-if", !0)]),
|
|
392
394
|
key: "0"
|
|
393
395
|
}, e.allowEmpty && !e.disabled && e.showEmptyAddButton ? {
|
|
394
396
|
name: "empty",
|
|
395
|
-
fn:
|
|
397
|
+
fn: j(() => [x("i", {
|
|
396
398
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
397
399
|
style: {
|
|
398
400
|
"font-size": "20px",
|
|
399
401
|
cursor: "pointer"
|
|
400
402
|
},
|
|
401
403
|
title: "添加",
|
|
402
|
-
onClick: i[0] || (i[0] =
|
|
404
|
+
onClick: i[0] || (i[0] = M((e) => N.add(null, 0), ["stop"]))
|
|
403
405
|
})]),
|
|
404
406
|
key: "1"
|
|
405
407
|
} : void 0]), 1040, [
|
|
@@ -412,6 +414,6 @@ function B(e, i, m, h, M, N) {
|
|
|
412
414
|
"onSelectionChange"
|
|
413
415
|
]);
|
|
414
416
|
}
|
|
415
|
-
var
|
|
417
|
+
var H = /* @__PURE__ */ e(L, [["render", V]]);
|
|
416
418
|
//#endregion
|
|
417
|
-
export {
|
|
419
|
+
export { I as n, H as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
2
|
-
import { t as n } from "./
|
|
1
|
+
import { n as e, o as t } from "./CkLpOk7H.mjs";
|
|
2
|
+
import { t as n } from "./FZqu01np2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/tree-select.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
5
5
|
//#endregion
|