@web-utils/form-ui 1.0.0-beta78 → 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/chunks/{DOdaQmeD.mjs → B8NokGUg.mjs} +2941 -2981
- package/chunks/{D4FXesiK2.mjs → Bu1M7um22.mjs} +1 -1
- package/chunks/{BUdSoC0y.mjs → C-zPVdz-.mjs} +46 -45
- package/chunks/{CfZWeZDD.mjs → CONqKD47.mjs} +1 -1
- package/chunks/{C4TRh7-t2.mjs → ChP-pNSi2.mjs} +1 -1
- package/chunks/{BPkYHRo52.mjs → D6mInNk02.mjs} +71 -69
- package/chunks/{YuRYvOxL.mjs → DMSbDBCP.mjs} +194 -193
- package/chunks/{Cwh7YPxJ.mjs → D_q3C3v4.mjs} +184 -183
- package/chunks/{DDcaXGrf2.mjs → DgH_4qOn2.mjs} +3 -0
- package/chunks/{DydcNRkF.mjs → DhqOVe4S.mjs} +99 -98
- package/chunks/{xe1XzZUE2.mjs → Dz_TTgwF2.mjs} +91 -89
- package/chunks/{DvGAwr6C.mjs → T2V8nxIu.mjs} +361 -360
- package/chunks/{8i6khBvL2.mjs → mqi8hesW2.mjs} +8 -8
- package/chunks/{D9p3yGUu.mjs → tqW2DSco.mjs} +47 -46
- package/data-table-picker/index.mjs +16 -15
- package/editable-tree/index.mjs +111 -110
- package/flow-designer/index.d.ts +1 -26
- package/flow-designer/index.mjs +1 -1
- package/flow-designer/style.css +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-view/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +8 -8
- package/package.json +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-view/index.mjs +90 -88
- package/toolbar/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
|
@@ -5,21 +5,23 @@ 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
7
|
import { n as o } from "./CkLpOk7H.mjs";
|
|
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 {
|
|
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 };
|