@es-plus/vue2 1.1.3 → 1.1.4
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/dist/es-plus-vue2.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getNestedValue as G, setNestedValue as K, resolveFormLayProps as
|
|
1
|
+
import { getNestedValue as G, setNestedValue as K, resolveFormLayProps as Le, getRowColsAlgorithm as Ct, configFormField as St, formatConfigOut as Bt, getEveryFormQueryField as Ft, queryTableListMethod as kt, getGlobalConfig as me, getButtonPosition as nt, createSelectionState as xt, restoreSelectionForPage as It, clearAllSelection as Rt, applySelectionChange as Ot, isObject as pe, findValueByKey as wt, configureEsPlus as Pt } from "@es-plus/core";
|
|
2
2
|
import { configureEsPlus as Mn } from "@es-plus/core";
|
|
3
3
|
import * as $t from "vue";
|
|
4
4
|
import ct from "vue";
|
|
5
5
|
import * as Ve from "@vue/composition-api";
|
|
6
6
|
import { MessageBox as ot } from "element-ui";
|
|
7
|
-
const Ht = ct.version || "", [Tt = "0",
|
|
7
|
+
const Ht = ct.version || "", [Tt = "0", Lt = "0"] = Ht.split("."), At = Number(Tt), zt = Number(Lt), ut = At === 2 && zt >= 7, te = ut ? $t : Ve, z = te.ref, ze = te.reactive, S = te.computed, de = te.watch, Ue = te.onMounted, jt = te.onBeforeUnmount, Et = te.onUpdated, ie = te.defineComponent, ce = te.inject, dt = te.provide, xe = te.nextTick, Ke = te.getCurrentInstance, ue = te.h;
|
|
8
8
|
var it;
|
|
9
9
|
const st = (it = Ve.default) != null ? it : Ve;
|
|
10
10
|
function Be(n) {
|
|
@@ -34,11 +34,11 @@ function Dt() {
|
|
|
34
34
|
// ─────────────────────────────────────────────────────────────────
|
|
35
35
|
[
|
|
36
36
|
"Input",
|
|
37
|
-
(f, p, { row:
|
|
38
|
-
const h = Y(
|
|
37
|
+
(f, p, { row: r }) => {
|
|
38
|
+
const h = Y(r), d = G(p, r.prop), v = oe(r, (m) => K(p, r.prop, m));
|
|
39
39
|
return f("el-input", {
|
|
40
40
|
attrs: h,
|
|
41
|
-
props: { value: d, ...
|
|
41
|
+
props: { value: d, ...r.props },
|
|
42
42
|
on: v
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -48,11 +48,11 @@ function Dt() {
|
|
|
48
48
|
// ─────────────────────────────────────────────────────────────────
|
|
49
49
|
[
|
|
50
50
|
"InputNumber",
|
|
51
|
-
(f, p, { row:
|
|
52
|
-
const h = Y(
|
|
51
|
+
(f, p, { row: r }) => {
|
|
52
|
+
const h = Y(r), d = G(p, r.prop), v = oe(r, (m) => K(p, r.prop, m));
|
|
53
53
|
return f("el-input-number", {
|
|
54
54
|
attrs: h,
|
|
55
|
-
props: { value: d, ...
|
|
55
|
+
props: { value: d, ...r.props },
|
|
56
56
|
on: v
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -62,13 +62,13 @@ function Dt() {
|
|
|
62
62
|
// ─────────────────────────────────────────────────────────────────
|
|
63
63
|
[
|
|
64
64
|
"Select",
|
|
65
|
-
(f, p, { row:
|
|
66
|
-
const h = Y(
|
|
65
|
+
(f, p, { row: r }) => {
|
|
66
|
+
const h = Y(r), d = G(p, r.prop), v = Be(r.dataOptions), m = oe(r, (_) => K(p, r.prop, _));
|
|
67
67
|
return f(
|
|
68
68
|
"el-select",
|
|
69
69
|
{
|
|
70
70
|
attrs: h,
|
|
71
|
-
props: { value: d, ...
|
|
71
|
+
props: { value: d, ...r.props },
|
|
72
72
|
on: m
|
|
73
73
|
},
|
|
74
74
|
v.map(
|
|
@@ -86,11 +86,11 @@ function Dt() {
|
|
|
86
86
|
// ─────────────────────────────────────────────────────────────────
|
|
87
87
|
[
|
|
88
88
|
"datePicker",
|
|
89
|
-
(f, p, { row:
|
|
90
|
-
const h = Y(
|
|
89
|
+
(f, p, { row: r }) => {
|
|
90
|
+
const h = Y(r), d = G(p, r.prop), v = oe(r, (m) => K(p, r.prop, m));
|
|
91
91
|
return f("el-date-picker", {
|
|
92
92
|
attrs: h,
|
|
93
|
-
props: { value: d, ...
|
|
93
|
+
props: { value: d, ...r.props },
|
|
94
94
|
on: v
|
|
95
95
|
});
|
|
96
96
|
}
|
|
@@ -100,11 +100,11 @@ function Dt() {
|
|
|
100
100
|
// ─────────────────────────────────────────────────────────────────
|
|
101
101
|
[
|
|
102
102
|
"timePicker",
|
|
103
|
-
(f, p, { row:
|
|
104
|
-
const h = Y(
|
|
103
|
+
(f, p, { row: r }) => {
|
|
104
|
+
const h = Y(r), d = G(p, r.prop), v = oe(r, (m) => K(p, r.prop, m));
|
|
105
105
|
return f("el-time-picker", {
|
|
106
106
|
attrs: h,
|
|
107
|
-
props: { value: d, ...
|
|
107
|
+
props: { value: d, ...r.props },
|
|
108
108
|
on: v
|
|
109
109
|
});
|
|
110
110
|
}
|
|
@@ -114,11 +114,11 @@ function Dt() {
|
|
|
114
114
|
// ─────────────────────────────────────────────────────────────────
|
|
115
115
|
[
|
|
116
116
|
"Slider",
|
|
117
|
-
(f, p, { row:
|
|
118
|
-
const h = Y(
|
|
117
|
+
(f, p, { row: r }) => {
|
|
118
|
+
const h = Y(r), d = G(p, r.prop), v = oe(r, (m) => K(p, r.prop, m));
|
|
119
119
|
return f("el-slider", {
|
|
120
120
|
attrs: h,
|
|
121
|
-
props: { value: d, ...
|
|
121
|
+
props: { value: d, ...r.props },
|
|
122
122
|
on: v
|
|
123
123
|
});
|
|
124
124
|
}
|
|
@@ -130,13 +130,13 @@ function Dt() {
|
|
|
130
130
|
// ─────────────────────────────────────────────────────────────────
|
|
131
131
|
[
|
|
132
132
|
"ColorPicker",
|
|
133
|
-
(f, p, { row:
|
|
134
|
-
const h = Y(
|
|
133
|
+
(f, p, { row: r }) => {
|
|
134
|
+
const h = Y(r), d = G(p, r.prop), v = r.on || {}, m = {};
|
|
135
135
|
for (const [_, T] of Object.entries(v))
|
|
136
136
|
typeof T == "function" && (m[_] = T);
|
|
137
|
-
return typeof m.change != "function" && (m.change = (_) => K(p,
|
|
137
|
+
return typeof m.change != "function" && (m.change = (_) => K(p, r.prop, _)), f("el-color-picker", {
|
|
138
138
|
attrs: h,
|
|
139
|
-
props: { value: d, ...
|
|
139
|
+
props: { value: d, ...r.props },
|
|
140
140
|
on: m
|
|
141
141
|
});
|
|
142
142
|
}
|
|
@@ -147,14 +147,14 @@ function Dt() {
|
|
|
147
147
|
// ─────────────────────────────────────────────────────────────────
|
|
148
148
|
[
|
|
149
149
|
"Transfer",
|
|
150
|
-
(f, p, { row:
|
|
151
|
-
const h = Y(
|
|
150
|
+
(f, p, { row: r }) => {
|
|
151
|
+
const h = Y(r), d = G(p, r.prop), v = Be(r.dataOptions), m = oe(r, (_) => K(p, r.prop, _));
|
|
152
152
|
return f("el-transfer", {
|
|
153
153
|
attrs: h,
|
|
154
154
|
props: {
|
|
155
155
|
value: d,
|
|
156
156
|
data: v.map((_) => ({ key: _.value, label: _.label, disabled: _.disabled })),
|
|
157
|
-
...
|
|
157
|
+
...r.props
|
|
158
158
|
},
|
|
159
159
|
on: m
|
|
160
160
|
});
|
|
@@ -165,8 +165,8 @@ function Dt() {
|
|
|
165
165
|
// ─────────────────────────────────────────────────────────────────
|
|
166
166
|
[
|
|
167
167
|
"Cascader",
|
|
168
|
-
(f, p, { row:
|
|
169
|
-
const h = Y(
|
|
168
|
+
(f, p, { row: r }) => {
|
|
169
|
+
const h = Y(r), d = G(p, r.prop), v = Be(r.dataOptions), m = oe(r, (_) => K(p, r.prop, _));
|
|
170
170
|
return f("el-cascader", {
|
|
171
171
|
// key 强制 dataOptions 变化时重渲染,Element UI 内部 cache 否则不刷新
|
|
172
172
|
key: JSON.stringify(v),
|
|
@@ -174,7 +174,7 @@ function Dt() {
|
|
|
174
174
|
props: {
|
|
175
175
|
value: d,
|
|
176
176
|
options: v,
|
|
177
|
-
...
|
|
177
|
+
...r.props
|
|
178
178
|
},
|
|
179
179
|
on: m
|
|
180
180
|
});
|
|
@@ -185,13 +185,13 @@ function Dt() {
|
|
|
185
185
|
// ─────────────────────────────────────────────────────────────────
|
|
186
186
|
[
|
|
187
187
|
"Radio",
|
|
188
|
-
(f, p, { row:
|
|
189
|
-
const h = Y(
|
|
188
|
+
(f, p, { row: r }) => {
|
|
189
|
+
const h = Y(r), d = G(p, r.prop), v = Be(r.dataOptions), m = oe(r, (_) => K(p, r.prop, _));
|
|
190
190
|
return f(
|
|
191
191
|
"el-radio-group",
|
|
192
192
|
{
|
|
193
193
|
attrs: h,
|
|
194
|
-
props: { value: d, ...
|
|
194
|
+
props: { value: d, ...r.props },
|
|
195
195
|
on: m
|
|
196
196
|
},
|
|
197
197
|
v.map(
|
|
@@ -213,13 +213,13 @@ function Dt() {
|
|
|
213
213
|
// ─────────────────────────────────────────────────────────────────
|
|
214
214
|
[
|
|
215
215
|
"Checkbox",
|
|
216
|
-
(f, p, { row:
|
|
217
|
-
const h = Y(
|
|
216
|
+
(f, p, { row: r }) => {
|
|
217
|
+
const h = Y(r), d = G(p, r.prop), v = Be(r.dataOptions), m = oe(r, (_) => K(p, r.prop, _));
|
|
218
218
|
return f(
|
|
219
219
|
"el-checkbox-group",
|
|
220
220
|
{
|
|
221
221
|
attrs: h,
|
|
222
|
-
props: { value: d, ...
|
|
222
|
+
props: { value: d, ...r.props },
|
|
223
223
|
on: m
|
|
224
224
|
},
|
|
225
225
|
v.map(
|
|
@@ -240,11 +240,11 @@ function Dt() {
|
|
|
240
240
|
// ─────────────────────────────────────────────────────────────────
|
|
241
241
|
[
|
|
242
242
|
"Switch",
|
|
243
|
-
(f, p, { row:
|
|
244
|
-
const h = Y(
|
|
243
|
+
(f, p, { row: r }) => {
|
|
244
|
+
const h = Y(r), d = G(p, r.prop), v = oe(r, (m) => K(p, r.prop, m));
|
|
245
245
|
return f("el-switch", {
|
|
246
246
|
attrs: h,
|
|
247
|
-
props: { value: d, ...
|
|
247
|
+
props: { value: d, ...r.props },
|
|
248
248
|
on: v
|
|
249
249
|
});
|
|
250
250
|
}
|
|
@@ -254,11 +254,11 @@ function Dt() {
|
|
|
254
254
|
// ─────────────────────────────────────────────────────────────────
|
|
255
255
|
[
|
|
256
256
|
"Rate",
|
|
257
|
-
(f, p, { row:
|
|
258
|
-
const h = Y(
|
|
257
|
+
(f, p, { row: r }) => {
|
|
258
|
+
const h = Y(r), d = G(p, r.prop), v = oe(r, (m) => K(p, r.prop, m));
|
|
259
259
|
return f("el-rate", {
|
|
260
260
|
attrs: h,
|
|
261
|
-
props: { value: d, ...
|
|
261
|
+
props: { value: d, ...r.props },
|
|
262
262
|
on: v
|
|
263
263
|
});
|
|
264
264
|
}
|
|
@@ -268,23 +268,23 @@ function Dt() {
|
|
|
268
268
|
// ─────────────────────────────────────────────────────────────────
|
|
269
269
|
[
|
|
270
270
|
"Upload",
|
|
271
|
-
(f, p, { row:
|
|
272
|
-
const h =
|
|
273
|
-
var
|
|
274
|
-
const w = (
|
|
275
|
-
w && (u.url = w), u.status = "success", u.response =
|
|
276
|
-
}, W = (
|
|
277
|
-
u.status = "fail", u.error =
|
|
278
|
-
}, V = T ? (
|
|
279
|
-
const u =
|
|
271
|
+
(f, p, { row: r }) => {
|
|
272
|
+
const h = r.prop, d = Y(r), v = r.props || {}, m = r.on || {}, _ = G(p, h) || [], T = typeof r.httpRequest == "function", j = r.triggerRender, N = r.fileRender, U = j ? j(f) : f("el-button", { props: { size: "mini", type: "primary" } }, ["选择文件"]), M = (a, u, y) => {
|
|
273
|
+
var A, k;
|
|
274
|
+
const w = (a == null ? void 0 : a.link) || (a == null ? void 0 : a.url) || ((A = a == null ? void 0 : a.data) == null ? void 0 : A.link) || ((k = a == null ? void 0 : a.data) == null ? void 0 : k.url);
|
|
275
|
+
w && (u.url = w), u.status = "success", u.response = a, typeof m.success == "function" && m.success(a, u, y), K(p, h, [...y]);
|
|
276
|
+
}, W = (a, u, y) => {
|
|
277
|
+
u.status = "fail", u.error = a, typeof m.error == "function" && m.error(a, u, y), K(p, h, [...y]);
|
|
278
|
+
}, V = T ? (a) => {
|
|
279
|
+
const u = r.httpRequest;
|
|
280
280
|
u({
|
|
281
|
-
file:
|
|
282
|
-
filename:
|
|
283
|
-
onProgress:
|
|
281
|
+
file: a.file,
|
|
282
|
+
filename: a.file.name,
|
|
283
|
+
onProgress: a.onProgress
|
|
284
284
|
}).then((y) => {
|
|
285
285
|
const w = (y == null ? void 0 : y.data) || y;
|
|
286
|
-
|
|
287
|
-
}).catch((y) =>
|
|
286
|
+
a.onSuccess(w);
|
|
287
|
+
}).catch((y) => a.onError(y));
|
|
288
288
|
} : void 0, J = {
|
|
289
289
|
preview: "onPreview",
|
|
290
290
|
change: "onChange",
|
|
@@ -294,13 +294,13 @@ function Dt() {
|
|
|
294
294
|
remove: "onRemove",
|
|
295
295
|
exceed: "onExceed"
|
|
296
296
|
}, R = {};
|
|
297
|
-
for (const [
|
|
298
|
-
if (typeof u != "function" ||
|
|
299
|
-
const y = J[
|
|
297
|
+
for (const [a, u] of Object.entries(m)) {
|
|
298
|
+
if (typeof u != "function" || a === "success" || a === "error" || a === "remove") continue;
|
|
299
|
+
const y = J[a];
|
|
300
300
|
y && (R[y] = u);
|
|
301
301
|
}
|
|
302
|
-
return R.onSuccess = M, R.onError = W, R.onRemove = (
|
|
303
|
-
typeof m.remove == "function" && m.remove(
|
|
302
|
+
return R.onSuccess = M, R.onError = W, R.onRemove = (a, u) => {
|
|
303
|
+
typeof m.remove == "function" && m.remove(a, u), K(p, h, [...u]);
|
|
304
304
|
}, f(
|
|
305
305
|
"el-upload",
|
|
306
306
|
{
|
|
@@ -321,8 +321,8 @@ function Dt() {
|
|
|
321
321
|
},
|
|
322
322
|
// Vue 2 的 scopedSlots 用于自定义文件项渲染
|
|
323
323
|
scopedSlots: N ? {
|
|
324
|
-
file: ({ file:
|
|
325
|
-
const u = _.filter((y) => y !==
|
|
324
|
+
file: ({ file: a }) => N(f, a, () => {
|
|
325
|
+
const u = _.filter((y) => y !== a);
|
|
326
326
|
K(p, h, u);
|
|
327
327
|
})
|
|
328
328
|
} : void 0
|
|
@@ -346,7 +346,7 @@ function Dt() {
|
|
|
346
346
|
function qt(n) {
|
|
347
347
|
const e = z(!1), o = S(() => {
|
|
348
348
|
var m;
|
|
349
|
-
const h =
|
|
349
|
+
const h = Le(n.layoutFormProps);
|
|
350
350
|
if (!h || !Object.keys(h).length) return !1;
|
|
351
351
|
const d = h.isBtnHiden, v = h.isBtnHidden;
|
|
352
352
|
return !!((m = d != null ? d : v) != null && m);
|
|
@@ -357,14 +357,14 @@ function qt(n) {
|
|
|
357
357
|
gutter: 20,
|
|
358
358
|
...((d = n.layoutFormProps) == null ? void 0 : d.rowLayProps) || {}
|
|
359
359
|
};
|
|
360
|
-
}), i = S(() =>
|
|
360
|
+
}), i = S(() => Le(n.layoutFormProps)), l = S(() => {
|
|
361
361
|
var h;
|
|
362
362
|
return (h = n.layoutFormProps) == null ? void 0 : h.setOptions;
|
|
363
363
|
}), c = S(
|
|
364
364
|
() => Ct(n.formItemList || [])
|
|
365
365
|
), B = () => {
|
|
366
366
|
var m;
|
|
367
|
-
const h =
|
|
367
|
+
const h = Le(n.layoutFormProps);
|
|
368
368
|
if (!h || !Object.keys(h).length) return 0;
|
|
369
369
|
const d = h.minfoldRows, v = h.minFoldRows;
|
|
370
370
|
return Number((m = d != null ? d : v) != null ? m : 0) || 0;
|
|
@@ -373,7 +373,7 @@ function qt(n) {
|
|
|
373
373
|
return h > 0 && h < c.value.rowNum;
|
|
374
374
|
}), f = S(() => {
|
|
375
375
|
var j;
|
|
376
|
-
const { rowNum: h, columnRow: d } = c.value, v = d[h - 1] || [], m = Number((j =
|
|
376
|
+
const { rowNum: h, columnRow: d } = c.value, v = d[h - 1] || [], m = Number((j = Le(n.layoutFormProps)) == null ? void 0 : j.btnColSpan) || 0, T = 24 - v.reduce(
|
|
377
377
|
(N, U) => {
|
|
378
378
|
var M;
|
|
379
379
|
return N + (((M = n.formItemList[U]) == null ? void 0 : M.span) || 24);
|
|
@@ -493,8 +493,8 @@ const Vt = ie({
|
|
|
493
493
|
const g = o == null ? void 0 : o.proxy;
|
|
494
494
|
return (g == null ? void 0 : g.$refs) || {};
|
|
495
495
|
}, i = S(() => {
|
|
496
|
-
var
|
|
497
|
-
const g = o == null ? void 0 : o.proxy, b = (H = (
|
|
496
|
+
var L, H;
|
|
497
|
+
const g = o == null ? void 0 : o.proxy, b = (H = (L = g == null ? void 0 : g.$vnode) == null ? void 0 : L.data) == null ? void 0 : H.model;
|
|
498
498
|
return b && typeof b == "object" && typeof b.callback != "function" ? b : n.model;
|
|
499
499
|
}), l = ($e = (Pe = ce("$esPlusForm", null)) != null ? Pe : me().EsForm) != null ? $e : {}, c = (he = (Ce = ce("$EsPlus", null)) != null ? Ce : me()) != null ? he : {}, B = (g) => {
|
|
500
500
|
if (!g) return !0;
|
|
@@ -505,17 +505,17 @@ const Vt = ie({
|
|
|
505
505
|
return typeof f == "function" ? f() : f;
|
|
506
506
|
const g = o == null ? void 0 : o.proxy, b = g == null ? void 0 : g.getTableInstantce;
|
|
507
507
|
return typeof b == "function" ? b() : b;
|
|
508
|
-
}),
|
|
508
|
+
}), r = S(() => {
|
|
509
509
|
const g = p.value;
|
|
510
510
|
return !!(g && Object.keys(g).length);
|
|
511
511
|
}), h = (g) => g ? g.startsWith("el-icon-") ? g : `el-icon-${g.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase()}` : void 0, d = (g) => {
|
|
512
|
-
const { icon: b, ...
|
|
513
|
-
if (
|
|
514
|
-
const H = je(
|
|
515
|
-
H !== void 0 && (
|
|
512
|
+
const { icon: b, ...L } = g;
|
|
513
|
+
if (L.size !== void 0) {
|
|
514
|
+
const H = je(L.size);
|
|
515
|
+
H !== void 0 && (L.size = H);
|
|
516
516
|
} else
|
|
517
|
-
|
|
518
|
-
return
|
|
517
|
+
L.size = "mini";
|
|
518
|
+
return L;
|
|
519
519
|
}, v = (g) => {
|
|
520
520
|
const b = g.disabled;
|
|
521
521
|
return typeof b == "function" ? !!b() : !!b;
|
|
@@ -528,16 +528,16 @@ const Vt = ie({
|
|
|
528
528
|
model: i.value,
|
|
529
529
|
rules: n.rules,
|
|
530
530
|
validateOnRuleChange: !1
|
|
531
|
-
},
|
|
532
|
-
return
|
|
531
|
+
}, L = je(b.size);
|
|
532
|
+
return L !== void 0 && (b.size = L), (b.labelWidth === void 0 || b.labelWidth === "" || b.labelWidth === null) && (b.labelWidth = "auto"), b;
|
|
533
533
|
}), V = z(/* @__PURE__ */ new Set());
|
|
534
534
|
de(
|
|
535
535
|
() => n.formItemList,
|
|
536
536
|
async (g) => {
|
|
537
|
-
const b = Array.isArray(g) ? g : [],
|
|
537
|
+
const b = Array.isArray(g) ? g : [], L = b.filter(
|
|
538
538
|
(x) => x && x.isInitRun !== !1 && !V.value.has(x.prop)
|
|
539
539
|
);
|
|
540
|
-
if (!
|
|
540
|
+
if (!L.length) {
|
|
541
541
|
_.value = b.map((x) => {
|
|
542
542
|
var D;
|
|
543
543
|
if (!x) return null;
|
|
@@ -546,8 +546,8 @@ const Vt = ie({
|
|
|
546
546
|
}).filter((x) => !!x);
|
|
547
547
|
return;
|
|
548
548
|
}
|
|
549
|
-
const H = await U(
|
|
550
|
-
|
|
549
|
+
const H = await U(L, N);
|
|
550
|
+
L.forEach((x) => V.value.add(x.prop)), _.value = b.map((x) => {
|
|
551
551
|
var X;
|
|
552
552
|
if (!x) return null;
|
|
553
553
|
const $ = H.find((ee) => ee && ee.prop === x.prop), D = _.value.find((ee) => ee && ee.prop === x.prop);
|
|
@@ -577,11 +577,11 @@ const Vt = ie({
|
|
|
577
577
|
return J.value;
|
|
578
578
|
}
|
|
579
579
|
}), {
|
|
580
|
-
folded:
|
|
580
|
+
folded: a,
|
|
581
581
|
isBtnHidden: u,
|
|
582
582
|
rowLayout: y,
|
|
583
583
|
formLayout: w,
|
|
584
|
-
getRowColsAlgorithm:
|
|
584
|
+
getRowColsAlgorithm: A,
|
|
585
585
|
isFold: k,
|
|
586
586
|
getBtnColSpan: E,
|
|
587
587
|
formItem: Q,
|
|
@@ -597,39 +597,39 @@ const Vt = ie({
|
|
|
597
597
|
const se = S(() => ({
|
|
598
598
|
colRightBtn: n.configBtn.filter((g) => g.direction === "right" || !g.direction),
|
|
599
599
|
colLeftBtn: n.configBtn.filter((g) => g.direction === "left")
|
|
600
|
-
})),
|
|
600
|
+
})), ae = S(() => typeof n.renderBtn == "function"), ne = (g) => {
|
|
601
601
|
var H, x;
|
|
602
|
-
const b = t().formRef,
|
|
603
|
-
(x = g.click) == null || x.call(g, i.value, b,
|
|
604
|
-
}, _e = (g, b,
|
|
602
|
+
const b = t().formRef, L = (H = p.value) == null ? void 0 : H.httpRequestInstance;
|
|
603
|
+
(x = g.click) == null || x.call(g, i.value, b, L);
|
|
604
|
+
}, _e = (g, b, L) => {
|
|
605
605
|
var x, $, D;
|
|
606
606
|
const H = p.value;
|
|
607
|
-
|
|
607
|
+
L === "query" ? r.value && ((x = H == null ? void 0 : H.httpRequestInstance) == null || x.call(H, g)) : L === "rest" && b && (r.value && (($ = H == null ? void 0 : H.httpRequestInstance) == null || $.call(H, g)), (D = b.resetFields) == null || D.call(b));
|
|
608
608
|
}, De = (g) => {
|
|
609
|
-
var
|
|
609
|
+
var L, H, x;
|
|
610
610
|
const b = t().formRef;
|
|
611
611
|
if (g.triggerEvent && ["query", "rest"].includes(g.key || ""))
|
|
612
612
|
_e(i.value, b, g.key);
|
|
613
613
|
else {
|
|
614
|
-
g.key === "rest" && b && ((
|
|
614
|
+
g.key === "rest" && b && ((L = b.resetFields) == null || L.call(b));
|
|
615
615
|
const $ = (H = p.value) == null ? void 0 : H.httpRequestInstance;
|
|
616
616
|
(x = g.click) == null || x.call(g, i.value, b, $);
|
|
617
617
|
}
|
|
618
618
|
}, qe = (g) => {
|
|
619
|
-
if (
|
|
620
|
-
const { style: b, ...
|
|
621
|
-
return { style: { marginBottom: "10px", ...b || {} }, ...
|
|
619
|
+
if (r.value) {
|
|
620
|
+
const { style: b, ...L } = g;
|
|
621
|
+
return { style: { marginBottom: "10px", ...b || {} }, ...L };
|
|
622
622
|
}
|
|
623
623
|
return g;
|
|
624
624
|
}, fe = () => t().formRef, Ie = () => {
|
|
625
625
|
const g = fe();
|
|
626
626
|
return g ? new Promise((b) => {
|
|
627
627
|
try {
|
|
628
|
-
const
|
|
628
|
+
const L = g.validate((H) => {
|
|
629
629
|
b(!!H);
|
|
630
630
|
});
|
|
631
|
-
|
|
632
|
-
} catch (
|
|
631
|
+
L && typeof L.then == "function" && L.then(b).catch(() => b(!1));
|
|
632
|
+
} catch (L) {
|
|
633
633
|
b(!1);
|
|
634
634
|
}
|
|
635
635
|
}) : Promise.resolve(!1);
|
|
@@ -643,9 +643,9 @@ const Vt = ie({
|
|
|
643
643
|
var b;
|
|
644
644
|
return (b = fe()) == null ? void 0 : b.validateField(g);
|
|
645
645
|
}, ye = async (g) => {
|
|
646
|
-
const
|
|
647
|
-
if (!
|
|
648
|
-
(await U(
|
|
646
|
+
const L = J.value.filter((x) => x && g.includes(x.prop));
|
|
647
|
+
if (!L.length) return;
|
|
648
|
+
(await U(L, N)).forEach((x) => {
|
|
649
649
|
if (!x) return;
|
|
650
650
|
const $ = _.value.findIndex((D) => D && D.prop === x.prop);
|
|
651
651
|
$ !== -1 && (_.value[$] = {
|
|
@@ -672,9 +672,9 @@ const Vt = ie({
|
|
|
672
672
|
formItem: Q,
|
|
673
673
|
isBtnHidden: u,
|
|
674
674
|
isFold: k,
|
|
675
|
-
folded:
|
|
675
|
+
folded: a,
|
|
676
676
|
getBtnColSpan: E,
|
|
677
|
-
isRenderBtn:
|
|
677
|
+
isRenderBtn: ae,
|
|
678
678
|
colRightLeftList: se,
|
|
679
679
|
formInputComponents: T,
|
|
680
680
|
formInstance: m,
|
|
@@ -683,7 +683,7 @@ const Vt = ie({
|
|
|
683
683
|
// 重复暴露会在 @vue/composition-api 下触发 "already declared as a prop" 警告。
|
|
684
684
|
// 模板中的 :model 引用 resolvedModel(用于解析 v-model 兼容),其它 props 直接使用名称。
|
|
685
685
|
resolvedModel: i,
|
|
686
|
-
getRowColsAlgorithm:
|
|
686
|
+
getRowColsAlgorithm: A,
|
|
687
687
|
changeFolded: q,
|
|
688
688
|
// 方法
|
|
689
689
|
checkPermission: B,
|
|
@@ -845,8 +845,8 @@ const nn = tn.exports, ft = (n) => n ? n.startsWith("el-icon-") ? n : `el-icon-$
|
|
|
845
845
|
}
|
|
846
846
|
},
|
|
847
847
|
setup(n) {
|
|
848
|
-
var
|
|
849
|
-
const e = (h = (
|
|
848
|
+
var r, h;
|
|
849
|
+
const e = (h = (r = ce("$EsPlus", null)) != null ? r : me()) != null ? h : {}, o = (d, v) => {
|
|
850
850
|
if (!v) return !0;
|
|
851
851
|
const m = e.permission;
|
|
852
852
|
return typeof m == "function" ? m(v) : !0;
|
|
@@ -886,17 +886,17 @@ const nn = tn.exports, ft = (n) => n ? n.startsWith("el-icon-") ? n : `el-icon-$
|
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
|
-
var
|
|
889
|
+
var an = function() {
|
|
890
890
|
var e = this, o = e._self._c;
|
|
891
891
|
return e._self._setupProxy, e.showContainer ? o("div", { staticClass: "flex-float btns" }, [o("div", { staticClass: "left-text" }, [e._v(" " + e._s(e.leftText) + " ")]), o("div", { staticClass: "btn-container_block" }, [o("div", { staticClass: "btn-left" }, [e._l(e.processedBtnLeft, function(t, i) {
|
|
892
892
|
return [t.isHide ? e._e() : o("div", { key: t.name || i, style: e.buttonContainerStyle(i) }, [t.render && typeof t.render == "function" ? o("render-dom", { attrs: { render: t.render } }) : o("el-button", e._b({ attrs: { type: t.type || "", size: e.resolveBtnSize(t), icon: e.getCompIcon(t.icon), loading: t.loading || !1, disabled: e.getDisabledState(t) }, on: { click: () => t.click && t.click(e.instance) } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")])], 1)];
|
|
893
893
|
})], 2), o("div", { staticClass: "btn-right" }, [e._l(e.processedBtnRight, function(t, i) {
|
|
894
894
|
return [t.isHide ? e._e() : o("div", { key: t.name || i, style: e.buttonContainerStyle(i) }, [t.render && typeof t.render == "function" ? o("render-dom", { attrs: { render: t.render } }) : o("el-button", e._b({ attrs: { type: t.type || "", size: e.resolveBtnSize(t), icon: e.getCompIcon(t.icon), loading: t.loading || !1, disabled: e.getDisabledState(t) }, on: { click: () => t.click && t.click(e.instance) } }, "el-button", e.filterOptions(t), !1), [e._v(" " + e._s(t.name) + " ")])], 1)];
|
|
895
895
|
})], 2)])]) : e._e();
|
|
896
|
-
},
|
|
896
|
+
}, rn = [], ln = /* @__PURE__ */ ge(
|
|
897
897
|
sn,
|
|
898
|
-
rn,
|
|
899
898
|
an,
|
|
899
|
+
rn,
|
|
900
900
|
!1,
|
|
901
901
|
null,
|
|
902
902
|
"2b641efd"
|
|
@@ -917,7 +917,7 @@ function un(n, e, o, t, i) {
|
|
|
917
917
|
if (!d) return;
|
|
918
918
|
const v = typeof i.tabHeight == "number" ? i.tabHeight : i.heightType === "height" ? f(d.parentElement) || d.offsetHeight : parseInt(i.tabHeight, 10) || 450, m = isNaN(v) ? 450 : v, _ = m - F(), T = B(_) ? F() + 300 : m, j = ((W = t.value) == null ? void 0 : W.offsetHeight) || 0, N = ((V = e.value) == null ? void 0 : V.offsetHeight) || 0, U = ((R = (J = o.value) == null ? void 0 : J.$el) == null ? void 0 : R.offsetHeight) || 0, M = Math.floor(T) - Math.round(j + N + U);
|
|
919
919
|
l.value !== M && (l.value = M);
|
|
920
|
-
},
|
|
920
|
+
}, r = () => {
|
|
921
921
|
xe(() => {
|
|
922
922
|
if (!n.value || typeof ResizeObserver == "undefined") return;
|
|
923
923
|
c.value = new ResizeObserver(() => {
|
|
@@ -931,7 +931,7 @@ function un(n, e, o, t, i) {
|
|
|
931
931
|
}, h = () => {
|
|
932
932
|
c.value && (c.value.disconnect(), c.value = null);
|
|
933
933
|
};
|
|
934
|
-
return Ue(() =>
|
|
934
|
+
return Ue(() => r()), jt(() => h()), { tableHeight: l, resizeObservers: p, startObserver: r, stopObserver: h };
|
|
935
935
|
}
|
|
936
936
|
function dn(n) {
|
|
937
937
|
const e = xt(), o = z([]), t = z({}), i = z(!1), l = () => {
|
|
@@ -955,13 +955,13 @@ function dn(n) {
|
|
|
955
955
|
xe(n ? () => {
|
|
956
956
|
It(e, f, p, n), e.isInitChange = !1, l();
|
|
957
957
|
} : () => {
|
|
958
|
-
var
|
|
959
|
-
(
|
|
958
|
+
var r;
|
|
959
|
+
(r = p.clearSelection) == null || r.call(p), e.isInitChange = !1, l();
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
const
|
|
964
|
+
const at = {
|
|
965
965
|
multiSelect: !1,
|
|
966
966
|
expand: !1,
|
|
967
967
|
snIndex: !1,
|
|
@@ -994,7 +994,8 @@ const rt = {
|
|
|
994
994
|
"rowHeight",
|
|
995
995
|
"estimatedRowHeight",
|
|
996
996
|
"overscanCount",
|
|
997
|
-
"rowClassName"
|
|
997
|
+
"rowClassName",
|
|
998
|
+
"lazyLoad"
|
|
998
999
|
]), pn = (n) => n.toLowerCase().replace(/(\s|^)[a-z]/g, (e) => e.toUpperCase()), mn = (n) => {
|
|
999
1000
|
const e = {};
|
|
1000
1001
|
for (const o in n)
|
|
@@ -1007,7 +1008,7 @@ const rt = {
|
|
|
1007
1008
|
e[i] = n[o];
|
|
1008
1009
|
} else o === "key" && (e.prop = n[o]), e[o] = n[o];
|
|
1009
1010
|
return e.align || (e.align = "center"), e;
|
|
1010
|
-
},
|
|
1011
|
+
}, rt = (n) => {
|
|
1011
1012
|
const e = ["total", "pageSize", "current", "tableData"];
|
|
1012
1013
|
return pe(n) ? Object.keys(n).every((o) => e.find((t) => t === o) && n[o] && typeof n[o] == "string") : !1;
|
|
1013
1014
|
}, gn = ie({
|
|
@@ -1032,7 +1033,7 @@ const rt = {
|
|
|
1032
1033
|
},
|
|
1033
1034
|
options: {
|
|
1034
1035
|
type: Object,
|
|
1035
|
-
default: () => ({ ...
|
|
1036
|
+
default: () => ({ ...at })
|
|
1036
1037
|
},
|
|
1037
1038
|
pagination: {
|
|
1038
1039
|
type: Object,
|
|
@@ -1059,17 +1060,16 @@ const rt = {
|
|
|
1059
1060
|
(n.options.virtual === !0 || n.options.engine === "virtual") && console.warn(
|
|
1060
1061
|
"[@es-plus/vue2] 虚拟滚动 (virtual: true) 在 Vue 2 + Element UI 下不可用,已降级为普通 el-table 渲染。如需虚拟滚动请使用 Vue 3 + Element Plus 版本(@es-plus/vue3)。"
|
|
1061
1062
|
);
|
|
1062
|
-
const f = z(null), p = z(null),
|
|
1063
|
+
const f = z(null), p = z(null), r = z(null), h = z(null), d = z(null), v = z(`table_${Math.random().toString(36).substring(2, 12)}`), m = z([]), _ = S(() => m.value && m.value.length ? m.value : n.dataSource), T = z([...n.columns]);
|
|
1063
1064
|
de(
|
|
1064
1065
|
() => n.columns,
|
|
1065
1066
|
(s) => {
|
|
1066
1067
|
T.value = [...s];
|
|
1067
|
-
}
|
|
1068
|
-
{ deep: !0 }
|
|
1068
|
+
}
|
|
1069
1069
|
);
|
|
1070
1070
|
const j = z(!1), N = z(!1), U = z(!1), M = () => {
|
|
1071
1071
|
const s = l == null ? void 0 : l.proxy;
|
|
1072
|
-
!s || !s.$refs || (d.value = s.$refs.tableContainerEl || null,
|
|
1072
|
+
!s || !s.$refs || (d.value = s.$refs.tableContainerEl || null, r.value = s.$refs.headBarRef || null, h.value = s.$refs.paginationRef || null, p.value = s.$refs.tbBtnRef || null, f.value = s.$refs.tableRef || null);
|
|
1073
1073
|
}, W = ce("bodyFormInstance", () => {
|
|
1074
1074
|
}), V = ce("getVisibleShow", !1), J = S(
|
|
1075
1075
|
() => typeof V == "function" ? V() : V
|
|
@@ -1081,11 +1081,11 @@ const rt = {
|
|
|
1081
1081
|
size: "small",
|
|
1082
1082
|
isSmall: !0,
|
|
1083
1083
|
...n.pagination
|
|
1084
|
-
}),
|
|
1084
|
+
}), a = z(null), u = S(() => {
|
|
1085
1085
|
const s = n.options.entryQuery;
|
|
1086
1086
|
return s && pe(s) && Object.keys(s).length ? s : {};
|
|
1087
1087
|
}), y = S(() => {
|
|
1088
|
-
if (n.options.configTableOut && pe(n.options.configTableOut) && Object.keys(n.options.configTableOut).length &&
|
|
1088
|
+
if (n.options.configTableOut && pe(n.options.configTableOut) && Object.keys(n.options.configTableOut).length && rt(n.options.configTableOut))
|
|
1089
1089
|
return n.options.configTableOut;
|
|
1090
1090
|
if (c != null && c.configQueryFieldOutput && typeof c.configQueryFieldOutput == "function") {
|
|
1091
1091
|
const s = c.configQueryFieldOutput({
|
|
@@ -1094,7 +1094,7 @@ const rt = {
|
|
|
1094
1094
|
current: "pageNo",
|
|
1095
1095
|
tableData: "rows"
|
|
1096
1096
|
});
|
|
1097
|
-
if (
|
|
1097
|
+
if (rt(s)) return s;
|
|
1098
1098
|
}
|
|
1099
1099
|
return {
|
|
1100
1100
|
total: "records",
|
|
@@ -1109,8 +1109,8 @@ const rt = {
|
|
|
1109
1109
|
var I;
|
|
1110
1110
|
return ((I = C == null ? void 0 : C.$options) == null ? void 0 : I.name) === "EsForm";
|
|
1111
1111
|
});
|
|
1112
|
-
return O ? (
|
|
1113
|
-
}),
|
|
1112
|
+
return O ? (a.value = O, W(O), O) : {};
|
|
1113
|
+
}), A = S(() => {
|
|
1114
1114
|
const s = o.default;
|
|
1115
1115
|
if (typeof s == "function") {
|
|
1116
1116
|
const C = s();
|
|
@@ -1128,7 +1128,7 @@ const rt = {
|
|
|
1128
1128
|
} : { type: "string", value: "" }), se = S(() => {
|
|
1129
1129
|
const s = q.value;
|
|
1130
1130
|
return s.type === "object" && s.value && typeof s.value == "object" ? s.value : {};
|
|
1131
|
-
}),
|
|
1131
|
+
}), ae = S(() => {
|
|
1132
1132
|
const s = q.value;
|
|
1133
1133
|
return s.type === "string" ? s.value : "";
|
|
1134
1134
|
}), ne = S(() => {
|
|
@@ -1180,9 +1180,9 @@ const rt = {
|
|
|
1180
1180
|
const I = P[C.prop] || P[C.key];
|
|
1181
1181
|
return I == null || I === "" ? C.emptyPlaceholder || "-" : I;
|
|
1182
1182
|
}), (C.prop === "operate" || C.key === "operate") && C.btns && !C.render && (C.render = (P, { row: I }) => {
|
|
1183
|
-
var
|
|
1183
|
+
var re;
|
|
1184
1184
|
return ue("div", [
|
|
1185
|
-
(
|
|
1185
|
+
(re = C.btns) == null ? void 0 : re.filter((Z) => F(Z.permissionValue)).map(
|
|
1186
1186
|
(Z) => (
|
|
1187
1187
|
// Element UI text 按钮:type="text" 而非 text 属性
|
|
1188
1188
|
ue(
|
|
@@ -1223,17 +1223,17 @@ const rt = {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
return s;
|
|
1225
1225
|
}), $e = S(() => {
|
|
1226
|
-
const s = mn({ ...
|
|
1226
|
+
const s = mn({ ...at, ...n.options }), { align: O, ...C } = s, P = {};
|
|
1227
1227
|
for (const I in C)
|
|
1228
1228
|
fn.has(I) || (P[I] = C[I]);
|
|
1229
1229
|
if (P.size !== void 0) {
|
|
1230
1230
|
const I = je(P.size);
|
|
1231
1231
|
I !== void 0 && (P.size = I);
|
|
1232
1232
|
}
|
|
1233
|
-
return P;
|
|
1233
|
+
return typeof n.options.lazyLoad == "function" && (P.load = n.options.lazyLoad), P;
|
|
1234
1234
|
}), { tableHeight: Ce, resizeObservers: he } = un(
|
|
1235
1235
|
d,
|
|
1236
|
-
|
|
1236
|
+
r,
|
|
1237
1237
|
p,
|
|
1238
1238
|
h,
|
|
1239
1239
|
{
|
|
@@ -1246,7 +1246,7 @@ const rt = {
|
|
|
1246
1246
|
}), {
|
|
1247
1247
|
multipleSelection: g,
|
|
1248
1248
|
handleSelectionChange: b,
|
|
1249
|
-
initSelection:
|
|
1249
|
+
initSelection: L,
|
|
1250
1250
|
clearAllSelection: H
|
|
1251
1251
|
} = dn(n.options.rowkey), x = (s) => {
|
|
1252
1252
|
b(s, R.value.current || 1);
|
|
@@ -1270,7 +1270,7 @@ const rt = {
|
|
|
1270
1270
|
), de(
|
|
1271
1271
|
() => n.dataSource,
|
|
1272
1272
|
(s) => {
|
|
1273
|
-
|
|
1273
|
+
L(s, f.value);
|
|
1274
1274
|
}
|
|
1275
1275
|
);
|
|
1276
1276
|
let X = null;
|
|
@@ -1294,17 +1294,17 @@ const rt = {
|
|
|
1294
1294
|
const C = y.value;
|
|
1295
1295
|
if (pe(C) && Object.keys(C).length) {
|
|
1296
1296
|
const P = {};
|
|
1297
|
-
Object.entries(C).forEach(([I,
|
|
1297
|
+
Object.entries(C).forEach(([I, re]) => {
|
|
1298
1298
|
var Se;
|
|
1299
1299
|
if (!O.includes(I)) return;
|
|
1300
|
-
const le = (Se = s[
|
|
1300
|
+
const le = (Se = s[re]) != null ? Se : wt(s, re);
|
|
1301
1301
|
I === "tableData" ? m.value = Array.isArray(le) ? le : [] : P[I] = typeof le == "number" ? le : parseInt(le, 10) || 0;
|
|
1302
1302
|
}), Object.keys(P).length && (R.value = { ...R.value, ...P });
|
|
1303
1303
|
}
|
|
1304
1304
|
}, Me = (s, O = {}) => {
|
|
1305
1305
|
var et, tt;
|
|
1306
|
-
const { success: C, fail: P } = O, I = ((et = n.options) == null ? void 0 : et.apiParams) || {},
|
|
1307
|
-
if (!
|
|
1306
|
+
const { success: C, fail: P } = O, I = ((et = n.options) == null ? void 0 : et.apiParams) || {}, re = ((tt = n.options) == null ? void 0 : tt.actionUrl) || I.url || "";
|
|
1307
|
+
if (!re || !Object.keys(I).length) return;
|
|
1308
1308
|
const Z = w.value, le = Z && Z.props && Z.props.model ? { ...Z.props.model } : u.value || {}, Se = ee("brcb", {
|
|
1309
1309
|
...le,
|
|
1310
1310
|
...s,
|
|
@@ -1316,7 +1316,7 @@ const rt = {
|
|
|
1316
1316
|
j.value = !0;
|
|
1317
1317
|
try {
|
|
1318
1318
|
const ve = await bt({
|
|
1319
|
-
url:
|
|
1319
|
+
url: re,
|
|
1320
1320
|
formParams: vt,
|
|
1321
1321
|
headers: I.headers || {},
|
|
1322
1322
|
...Ye,
|
|
@@ -1383,8 +1383,8 @@ const rt = {
|
|
|
1383
1383
|
toggleSelection: (s) => {
|
|
1384
1384
|
var O, C;
|
|
1385
1385
|
s ? s.forEach((P) => {
|
|
1386
|
-
var I,
|
|
1387
|
-
(
|
|
1386
|
+
var I, re;
|
|
1387
|
+
(re = (I = f.value) == null ? void 0 : I.toggleRowSelection) == null || re.call(I, P);
|
|
1388
1388
|
}) : (C = (O = f.value) == null ? void 0 : O.clearSelection) == null || C.call(O);
|
|
1389
1389
|
},
|
|
1390
1390
|
clearAllSelection: () => H(f.value),
|
|
@@ -1411,7 +1411,7 @@ const rt = {
|
|
|
1411
1411
|
// refs
|
|
1412
1412
|
tableRef: f,
|
|
1413
1413
|
tbBtnRef: p,
|
|
1414
|
-
headBarRef:
|
|
1414
|
+
headBarRef: r,
|
|
1415
1415
|
paginationRef: h,
|
|
1416
1416
|
tableId: v,
|
|
1417
1417
|
tableData: m,
|
|
@@ -1419,16 +1419,16 @@ const rt = {
|
|
|
1419
1419
|
// state
|
|
1420
1420
|
loadStatus: we,
|
|
1421
1421
|
paginationConfig: R,
|
|
1422
|
-
formInstance:
|
|
1422
|
+
formInstance: a,
|
|
1423
1423
|
// computeds
|
|
1424
1424
|
filteredColumns: Pe,
|
|
1425
1425
|
tableBindAttrs: He,
|
|
1426
|
-
hasDefaultSlot:
|
|
1426
|
+
hasDefaultSlot: A,
|
|
1427
1427
|
heightType: k,
|
|
1428
1428
|
tabHeight: E,
|
|
1429
1429
|
slotStyles: q,
|
|
1430
1430
|
slotStyleValue: se,
|
|
1431
|
-
slotClassValue:
|
|
1431
|
+
slotClassValue: ae,
|
|
1432
1432
|
slotState: N,
|
|
1433
1433
|
showPagination: U,
|
|
1434
1434
|
containerStyle: Q,
|
|
@@ -1483,7 +1483,7 @@ var yn = function() {
|
|
|
1483
1483
|
hn,
|
|
1484
1484
|
!1,
|
|
1485
1485
|
null,
|
|
1486
|
-
"
|
|
1486
|
+
"cf8d6168"
|
|
1487
1487
|
);
|
|
1488
1488
|
const Fe = vn.exports;
|
|
1489
1489
|
Fe.install = function(n) {
|
|
@@ -1566,8 +1566,8 @@ const Bn = Sn.exports, Fn = ie({
|
|
|
1566
1566
|
},
|
|
1567
1567
|
emits: ["update:visible", "closed", "submit"],
|
|
1568
1568
|
setup(n, { emit: e, attrs: o, slots: t, expose: i }) {
|
|
1569
|
-
var w,
|
|
1570
|
-
const l = Ke(), c = z(null), B = ze({}), F = z(!1), f = l, p = (
|
|
1569
|
+
var w, A;
|
|
1570
|
+
const l = Ke(), c = z(null), B = ze({}), F = z(!1), f = l, p = (A = (w = ce("$EsPlus", null)) != null ? w : me()) != null ? A : {}, r = (k) => {
|
|
1571
1571
|
if (!k) return !0;
|
|
1572
1572
|
const E = p.permission;
|
|
1573
1573
|
return typeof E == "function" ? E(k) : !0;
|
|
@@ -1577,7 +1577,7 @@ const Bn = Sn.exports, Fn = ie({
|
|
|
1577
1577
|
click: Q,
|
|
1578
1578
|
permissionValue: q,
|
|
1579
1579
|
name: se,
|
|
1580
|
-
disabled:
|
|
1580
|
+
disabled: ae,
|
|
1581
1581
|
key: ne,
|
|
1582
1582
|
..._e
|
|
1583
1583
|
} = k;
|
|
@@ -1617,7 +1617,7 @@ const Bn = Sn.exports, Fn = ie({
|
|
|
1617
1617
|
lyFormInstance: c,
|
|
1618
1618
|
dialogInstance: f,
|
|
1619
1619
|
getRefs: () => B
|
|
1620
|
-
})),
|
|
1620
|
+
})), a = (k) => {
|
|
1621
1621
|
const E = k.click;
|
|
1622
1622
|
typeof E == "function" && E(B.currentRef, {
|
|
1623
1623
|
close: T,
|
|
@@ -1648,11 +1648,11 @@ const Bn = Sn.exports, Fn = ie({
|
|
|
1648
1648
|
// methods
|
|
1649
1649
|
handleClose: T,
|
|
1650
1650
|
handleFullscreen: m,
|
|
1651
|
-
handleBtnClick:
|
|
1651
|
+
handleBtnClick: a,
|
|
1652
1652
|
onDialogClose: j,
|
|
1653
1653
|
onDialogClosed: N,
|
|
1654
1654
|
beforeCloseHandler: U,
|
|
1655
|
-
checkPermission:
|
|
1655
|
+
checkPermission: r,
|
|
1656
1656
|
filterOptions: h,
|
|
1657
1657
|
getDisabled: d,
|
|
1658
1658
|
getCompIcon: ft,
|
|
@@ -1720,8 +1720,8 @@ function Ee(n, e = {}) {
|
|
|
1720
1720
|
t && (t.$destroy(), t.$el && t.$el.parentNode && t.$el.parentNode.removeChild(t.$el), t = null);
|
|
1721
1721
|
}, c = (B) => {
|
|
1722
1722
|
if (t)
|
|
1723
|
-
return Object.entries(B).forEach(([
|
|
1724
|
-
|
|
1723
|
+
return Object.entries(B).forEach(([r, h]) => {
|
|
1724
|
+
r.startsWith("on") || (t[r] = h);
|
|
1725
1725
|
}), t.visible = !0, t;
|
|
1726
1726
|
const F = {
|
|
1727
1727
|
visible: !0,
|
|
@@ -1731,8 +1731,8 @@ function Ee(n, e = {}) {
|
|
|
1731
1731
|
}, f = F.onClosed, p = F.onSubmit;
|
|
1732
1732
|
return F.onClosed = () => {
|
|
1733
1733
|
f == null || f(), i();
|
|
1734
|
-
}, F.onSubmit = (
|
|
1735
|
-
p == null || p(
|
|
1734
|
+
}, F.onSubmit = (r = i) => {
|
|
1735
|
+
p == null || p(r);
|
|
1736
1736
|
}, t = lt(n, F, F.appendTo), t;
|
|
1737
1737
|
};
|
|
1738
1738
|
return c.close = i, c.destroy = l, c;
|
|
@@ -1770,8 +1770,8 @@ const wn = ie({
|
|
|
1770
1770
|
const t = z(null), i = z(null), l = z([]), c = ze({});
|
|
1771
1771
|
de(
|
|
1772
1772
|
() => n.schema.formItems,
|
|
1773
|
-
(
|
|
1774
|
-
|
|
1773
|
+
(a) => {
|
|
1774
|
+
a && a.forEach((u) => {
|
|
1775
1775
|
u.prop && !(u.prop in c) && (c[u.prop] = "");
|
|
1776
1776
|
});
|
|
1777
1777
|
},
|
|
@@ -1783,31 +1783,31 @@ const wn = ie({
|
|
|
1783
1783
|
total: 0,
|
|
1784
1784
|
...n.schema.pagination || {}
|
|
1785
1785
|
}), F = S(() => {
|
|
1786
|
-
var w,
|
|
1786
|
+
var w, A;
|
|
1787
1787
|
if (n.schema.dialogs) return n.schema.dialogs;
|
|
1788
1788
|
if (!((w = n.schema.dialogFormItems) != null && w.length)) return {};
|
|
1789
|
-
const
|
|
1790
|
-
width: ((
|
|
1789
|
+
const a = {
|
|
1790
|
+
width: ((A = n.schema.dialogOptions) == null ? void 0 : A.width) || "600px",
|
|
1791
1791
|
formItems: n.schema.dialogFormItems,
|
|
1792
1792
|
...n.schema.dialogOptions || {}
|
|
1793
1793
|
}, u = {}, y = n.schema.actions || ["add", "edit", "delete"];
|
|
1794
|
-
return y.includes("add") && (u.add = { ...
|
|
1794
|
+
return y.includes("add") && (u.add = { ...a, title: "新增" }), y.includes("edit") && (u.edit = { ...a, title: "编辑" }), y.includes("view") && (u.view = { ...a, title: "查看", isHiddenFooter: !0 }), u;
|
|
1795
1795
|
}), f = S(() => {
|
|
1796
1796
|
if (n.schema.toolbarBtns) return n.schema.toolbarBtns;
|
|
1797
1797
|
if (n.schema.dialogs || n.schema.operationColumn !== void 0) return [];
|
|
1798
|
-
const
|
|
1799
|
-
return
|
|
1798
|
+
const a = n.schema.actions || ["add", "edit", "delete"], u = [];
|
|
1799
|
+
return a.includes("add") && u.push({
|
|
1800
1800
|
name: "新增",
|
|
1801
1801
|
type: "primary",
|
|
1802
1802
|
key: "add",
|
|
1803
1803
|
icon: "Plus",
|
|
1804
1804
|
dialogKey: "add"
|
|
1805
|
-
}),
|
|
1805
|
+
}), a.includes("export") && u.push({
|
|
1806
1806
|
name: "导出",
|
|
1807
1807
|
key: "export",
|
|
1808
1808
|
icon: "Download",
|
|
1809
1809
|
actionType: "export"
|
|
1810
|
-
}),
|
|
1810
|
+
}), a.includes("import") && u.push({
|
|
1811
1811
|
name: "导入",
|
|
1812
1812
|
key: "import",
|
|
1813
1813
|
icon: "Upload",
|
|
@@ -1815,15 +1815,15 @@ const wn = ie({
|
|
|
1815
1815
|
}), u;
|
|
1816
1816
|
}), p = S(
|
|
1817
1817
|
() => {
|
|
1818
|
-
var
|
|
1818
|
+
var A;
|
|
1819
1819
|
if (n.schema.operationColumn !== void 0) return n.schema.operationColumn;
|
|
1820
|
-
const
|
|
1821
|
-
if ((
|
|
1820
|
+
const a = n.schema.actions || ["add", "edit", "delete"];
|
|
1821
|
+
if ((A = n.schema.columns) == null ? void 0 : A.some(
|
|
1822
1822
|
(k) => k.prop === "action" || k.prop === "operate" || k.btns
|
|
1823
1823
|
)) return;
|
|
1824
|
-
if (
|
|
1824
|
+
if (a.filter((k) => ["edit", "delete", "view"].includes(k)).length === 0) return !1;
|
|
1825
1825
|
const w = [];
|
|
1826
|
-
return
|
|
1826
|
+
return a.includes("view") && w.push({ name: "查看", type: "primary", key: "view", dialogKey: "view" }), a.includes("edit") && w.push({ name: "编辑", type: "primary", key: "edit", dialogKey: "edit" }), a.includes("delete") && w.push({
|
|
1827
1827
|
name: "删除",
|
|
1828
1828
|
type: "danger",
|
|
1829
1829
|
key: "delete",
|
|
@@ -1835,35 +1835,35 @@ const wn = ie({
|
|
|
1835
1835
|
btns: w
|
|
1836
1836
|
};
|
|
1837
1837
|
}
|
|
1838
|
-
),
|
|
1838
|
+
), r = S(() => {
|
|
1839
1839
|
if (n.schema.queryBtns) return n.schema.queryBtns;
|
|
1840
|
-
const
|
|
1840
|
+
const a = [
|
|
1841
1841
|
{ name: "查询", type: "primary", key: "query", triggerEvent: !0 },
|
|
1842
1842
|
{ name: "重置", key: "rest", triggerEvent: !0 }
|
|
1843
1843
|
], u = f.value.map((y) => {
|
|
1844
1844
|
const w = { ...y };
|
|
1845
1845
|
return w.click || (w.click = () => _(y)), w;
|
|
1846
1846
|
});
|
|
1847
|
-
return [...
|
|
1847
|
+
return [...a, ...u];
|
|
1848
1848
|
}), h = S(() => {
|
|
1849
|
-
const
|
|
1850
|
-
if (u === !1 || u === void 0) return
|
|
1849
|
+
const a = [...n.schema.columns || []], u = p.value;
|
|
1850
|
+
if (u === !1 || u === void 0) return a;
|
|
1851
1851
|
const y = u.btns.map((w) => ({
|
|
1852
1852
|
name: w.name,
|
|
1853
1853
|
type: w.type,
|
|
1854
1854
|
permissionValue: w.permissionValue,
|
|
1855
|
-
clickEvent: (
|
|
1855
|
+
clickEvent: (A) => T(w, A)
|
|
1856
1856
|
}));
|
|
1857
|
-
return
|
|
1857
|
+
return a.push({
|
|
1858
1858
|
prop: "operate",
|
|
1859
1859
|
label: u.label || "操作",
|
|
1860
1860
|
width: u.width || y.length * 80 + 20,
|
|
1861
1861
|
fixed: u.fixed || "right",
|
|
1862
1862
|
btns: y
|
|
1863
|
-
}),
|
|
1863
|
+
}), a;
|
|
1864
1864
|
}), d = S(() => {
|
|
1865
|
-
var
|
|
1866
|
-
return (
|
|
1865
|
+
var a;
|
|
1866
|
+
return (a = n.schema.tableBtns) != null && a.length ? n.schema.tableBtns.map((u) => ({
|
|
1867
1867
|
name: u.name,
|
|
1868
1868
|
type: u.type,
|
|
1869
1869
|
size: u.size || "small",
|
|
@@ -1875,81 +1875,81 @@ const wn = ie({
|
|
|
1875
1875
|
click: () => _(u)
|
|
1876
1876
|
})) : [];
|
|
1877
1877
|
}), v = S(() => {
|
|
1878
|
-
const
|
|
1878
|
+
const a = {
|
|
1879
1879
|
border: !0,
|
|
1880
1880
|
isInitRun: n.autoLoad,
|
|
1881
1881
|
...n.schema.tableOptions || {}
|
|
1882
1882
|
};
|
|
1883
|
-
n.httpRequest && (
|
|
1883
|
+
n.httpRequest && (a.httpRequest = n.httpRequest);
|
|
1884
1884
|
const u = d.value;
|
|
1885
1885
|
if (u.length > 0) {
|
|
1886
|
-
const y =
|
|
1887
|
-
|
|
1886
|
+
const y = a.configBtn || [];
|
|
1887
|
+
a.configBtn = [...y, ...u];
|
|
1888
1888
|
}
|
|
1889
|
-
return
|
|
1889
|
+
return a;
|
|
1890
1890
|
}), m = S(() => {
|
|
1891
|
-
const
|
|
1892
|
-
if (
|
|
1891
|
+
const a = n.schema.formLayout;
|
|
1892
|
+
if (a)
|
|
1893
1893
|
return {
|
|
1894
1894
|
rowLayProps: { gutter: 16 },
|
|
1895
1895
|
formLayProps: {
|
|
1896
|
-
labelBtnWidth:
|
|
1897
|
-
...
|
|
1896
|
+
labelBtnWidth: a.labelWidth,
|
|
1897
|
+
...a.minFoldRows ? { minFoldRows: a.minFoldRows } : {}
|
|
1898
1898
|
}
|
|
1899
1899
|
};
|
|
1900
1900
|
});
|
|
1901
|
-
async function _(
|
|
1902
|
-
const u =
|
|
1903
|
-
if (
|
|
1904
|
-
const y = typeof
|
|
1901
|
+
async function _(a) {
|
|
1902
|
+
const u = a.key || a.actionType || "";
|
|
1903
|
+
if (a.confirm) {
|
|
1904
|
+
const y = typeof a.confirm == "string" ? a.confirm : "确定执行此操作吗?";
|
|
1905
1905
|
try {
|
|
1906
1906
|
await ot.confirm(y, "提示", { type: "warning" });
|
|
1907
1907
|
} catch (w) {
|
|
1908
1908
|
return;
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
if (
|
|
1912
|
-
u === "add" && e("add"), N(
|
|
1911
|
+
if (a.dialogKey) {
|
|
1912
|
+
u === "add" && e("add"), N(a.dialogKey);
|
|
1913
1913
|
return;
|
|
1914
1914
|
}
|
|
1915
|
-
u === "export" ||
|
|
1915
|
+
u === "export" || a.actionType === "export" ? e("export", { ...c }) : u === "add" && e("add"), e("btn-click", u, { ...c });
|
|
1916
1916
|
}
|
|
1917
|
-
async function T(
|
|
1918
|
-
const y =
|
|
1919
|
-
if (
|
|
1920
|
-
const w = typeof
|
|
1917
|
+
async function T(a, u) {
|
|
1918
|
+
const y = a.key || "";
|
|
1919
|
+
if (a.confirm) {
|
|
1920
|
+
const w = typeof a.confirm == "string" ? a.confirm : "确定执行此操作吗?";
|
|
1921
1921
|
try {
|
|
1922
1922
|
await ot.confirm(w, "提示", { type: "warning" });
|
|
1923
|
-
} catch (
|
|
1923
|
+
} catch (A) {
|
|
1924
1924
|
return;
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
|
-
if (
|
|
1928
|
-
|
|
1927
|
+
if (a.click) {
|
|
1928
|
+
a.click(u, { refresh: V, getSelectedRows: J, openDialog: N });
|
|
1929
1929
|
return;
|
|
1930
1930
|
}
|
|
1931
|
-
if (
|
|
1932
|
-
N(
|
|
1931
|
+
if (a.dialogKey) {
|
|
1932
|
+
N(a.dialogKey, u);
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
1935
1935
|
y === "edit" ? e("edit", u) : y === "delete" ? e("delete", u) : y === "view" && e("view", u), e("btn-click", y, u);
|
|
1936
1936
|
}
|
|
1937
1937
|
const j = /* @__PURE__ */ new Map();
|
|
1938
|
-
function N(
|
|
1938
|
+
function N(a, u) {
|
|
1939
1939
|
var Q;
|
|
1940
|
-
const y = F.value[
|
|
1940
|
+
const y = F.value[a];
|
|
1941
1941
|
if (!y) return;
|
|
1942
|
-
e("dialog-open",
|
|
1942
|
+
e("dialog-open", a, u);
|
|
1943
1943
|
const w = Ee();
|
|
1944
|
-
j.set(
|
|
1945
|
-
const
|
|
1944
|
+
j.set(a, w);
|
|
1945
|
+
const A = ze({});
|
|
1946
1946
|
y.formItems && y.formItems.forEach((q) => {
|
|
1947
1947
|
var se;
|
|
1948
|
-
q.prop && (
|
|
1948
|
+
q.prop && (A[q.prop] = (se = u == null ? void 0 : u[q.prop]) != null ? se : "");
|
|
1949
1949
|
});
|
|
1950
1950
|
const k = typeof y.title == "function" ? y.title(u) : y.title || "";
|
|
1951
1951
|
(Q = y.onOpen) == null || Q.call(y, u);
|
|
1952
|
-
const E = M(
|
|
1952
|
+
const E = M(a, y, A, u || {});
|
|
1953
1953
|
w({
|
|
1954
1954
|
title: k,
|
|
1955
1955
|
width: y.width || "600px",
|
|
@@ -1960,14 +1960,14 @@ const wn = ie({
|
|
|
1960
1960
|
// 用户自定义 render
|
|
1961
1961
|
render: y.render ? (q, se) => y.render(q, {
|
|
1962
1962
|
row: u || {},
|
|
1963
|
-
model:
|
|
1963
|
+
model: A,
|
|
1964
1964
|
registerRef: se.registerRef,
|
|
1965
|
-
close: () => U(
|
|
1965
|
+
close: () => U(a),
|
|
1966
1966
|
refresh: V
|
|
1967
1967
|
}) : y.formItems ? (q, { registerRef: se }) => {
|
|
1968
|
-
const
|
|
1968
|
+
const ae = q(be, {
|
|
1969
1969
|
props: {
|
|
1970
|
-
model:
|
|
1970
|
+
model: A,
|
|
1971
1971
|
formItemList: y.formItems,
|
|
1972
1972
|
layoutFormProps: {
|
|
1973
1973
|
rowLayProps: { gutter: 16 },
|
|
@@ -1980,72 +1980,72 @@ const wn = ie({
|
|
|
1980
1980
|
// Vue 2 函数式 ref:通过 RenderJsx 暴露的 registerRef 注册
|
|
1981
1981
|
ref: "dialogForm"
|
|
1982
1982
|
});
|
|
1983
|
-
return
|
|
1983
|
+
return ae && ae.data && (ae.data.hook = ae.data.hook || {}, ae.data.hook.insert = (ne) => {
|
|
1984
1984
|
ne.componentInstance && se("dialogForm", ne.componentInstance);
|
|
1985
|
-
}),
|
|
1985
|
+
}), ae;
|
|
1986
1986
|
} : void 0,
|
|
1987
1987
|
configBtn: E,
|
|
1988
1988
|
// useDialog 的 onClosed 通过 extractEventHandlers 转为 'closed' 事件
|
|
1989
1989
|
onClosed: () => {
|
|
1990
1990
|
var q;
|
|
1991
|
-
j.delete(
|
|
1991
|
+
j.delete(a), (q = y.onClose) == null || q.call(y);
|
|
1992
1992
|
}
|
|
1993
1993
|
});
|
|
1994
1994
|
}
|
|
1995
|
-
function U(
|
|
1996
|
-
const u = j.get(
|
|
1997
|
-
u && (u.close(), j.delete(
|
|
1995
|
+
function U(a) {
|
|
1996
|
+
const u = j.get(a);
|
|
1997
|
+
u && (u.close(), j.delete(a));
|
|
1998
1998
|
}
|
|
1999
|
-
function M(
|
|
1999
|
+
function M(a, u, y, w) {
|
|
2000
2000
|
if (!u.isHiddenFooter)
|
|
2001
|
-
return u.configBtn ? u.configBtn.map((
|
|
2002
|
-
...
|
|
2001
|
+
return u.configBtn ? u.configBtn.map((A) => A.action === "cancel" ? {
|
|
2002
|
+
...A,
|
|
2003
2003
|
click: (k, { close: E }) => {
|
|
2004
|
-
e("dialog-cancel",
|
|
2004
|
+
e("dialog-cancel", a), E();
|
|
2005
2005
|
}
|
|
2006
|
-
} :
|
|
2007
|
-
...
|
|
2006
|
+
} : A.action === "confirm" ? {
|
|
2007
|
+
...A,
|
|
2008
2008
|
click: async (k, { close: E, getRefs: Q }) => {
|
|
2009
|
-
await W(
|
|
2009
|
+
await W(a, u, y, w, E, Q);
|
|
2010
2010
|
}
|
|
2011
|
-
} :
|
|
2011
|
+
} : A) : [
|
|
2012
2012
|
{
|
|
2013
2013
|
name: "取消",
|
|
2014
|
-
click: (
|
|
2015
|
-
e("dialog-cancel",
|
|
2014
|
+
click: (A, { close: k }) => {
|
|
2015
|
+
e("dialog-cancel", a), k();
|
|
2016
2016
|
}
|
|
2017
2017
|
},
|
|
2018
2018
|
{
|
|
2019
2019
|
name: "确定",
|
|
2020
2020
|
type: "primary",
|
|
2021
|
-
click: async (
|
|
2022
|
-
await W(
|
|
2021
|
+
click: async (A, { close: k, getRefs: E }) => {
|
|
2022
|
+
await W(a, u, y, w, k, E);
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
2025
|
];
|
|
2026
2026
|
}
|
|
2027
|
-
async function W(
|
|
2027
|
+
async function W(a, u, y, w, A, k) {
|
|
2028
2028
|
var Q;
|
|
2029
2029
|
if ((Q = u.formItems) != null && Q.length) {
|
|
2030
2030
|
const q = k("dialogForm");
|
|
2031
2031
|
q != null && q.validate && await q.validate();
|
|
2032
2032
|
}
|
|
2033
|
-
const E = { close:
|
|
2033
|
+
const E = { close: A, refresh: V, getRefs: k, row: w };
|
|
2034
2034
|
if (u.onConfirm)
|
|
2035
2035
|
await u.onConfirm(y, E);
|
|
2036
2036
|
else {
|
|
2037
|
-
const q =
|
|
2038
|
-
e("btn-click", q, y),
|
|
2037
|
+
const q = a === "add" ? "add-confirm" : a === "edit" ? "edit-confirm" : `${a}-confirm`;
|
|
2038
|
+
e("btn-click", q, y), A(), V();
|
|
2039
2039
|
}
|
|
2040
|
-
e("dialog-confirm",
|
|
2040
|
+
e("dialog-confirm", a, y);
|
|
2041
2041
|
}
|
|
2042
2042
|
function V() {
|
|
2043
|
-
var
|
|
2044
|
-
(u = (
|
|
2043
|
+
var a, u;
|
|
2044
|
+
(u = (a = t.value) == null ? void 0 : a.httpRequestInstance) == null || u.call(a);
|
|
2045
2045
|
}
|
|
2046
2046
|
function J() {
|
|
2047
|
-
var
|
|
2048
|
-
return ((u = (
|
|
2047
|
+
var a, u;
|
|
2048
|
+
return ((u = (a = t.value) == null ? void 0 : a.getSelectionRows) == null ? void 0 : u.call(a)) || [];
|
|
2049
2049
|
}
|
|
2050
2050
|
const R = {
|
|
2051
2051
|
refresh: V,
|
|
@@ -2066,7 +2066,7 @@ const wn = ie({
|
|
|
2066
2066
|
// computeds
|
|
2067
2067
|
mergedColumns: h,
|
|
2068
2068
|
mergedOptions: v,
|
|
2069
|
-
mergedFormBtns:
|
|
2069
|
+
mergedFormBtns: r,
|
|
2070
2070
|
formLayoutProps: m,
|
|
2071
2071
|
// exposed
|
|
2072
2072
|
...R
|
|
@@ -2094,14 +2094,14 @@ var Pn = function() {
|
|
|
2094
2094
|
null,
|
|
2095
2095
|
"ad1d1cb8"
|
|
2096
2096
|
);
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2097
|
+
const Ae = Hn.exports;
|
|
2098
|
+
Ae.install = function(n) {
|
|
2099
2099
|
n.component(
|
|
2100
|
-
|
|
2101
|
-
|
|
2100
|
+
Ae.name || "EsCrudPage",
|
|
2101
|
+
Ae
|
|
2102
2102
|
);
|
|
2103
2103
|
};
|
|
2104
|
-
const Tn = [be, Fe, ke,
|
|
2104
|
+
const Tn = [be, Fe, ke, Ae], Ln = (n) => {
|
|
2105
2105
|
const e = { ...n };
|
|
2106
2106
|
for (const o of ["EsTable", "EsForm", "EsDialog"]) {
|
|
2107
2107
|
const t = e[o];
|
|
@@ -2115,12 +2115,12 @@ const Tn = [be, Fe, ke, Le], An = (n) => {
|
|
|
2115
2115
|
typeof l.configQueryfieldOutput == "function" && typeof l.configQueryFieldOutput != "function" && (l.configQueryFieldOutput = l.configQueryfieldOutput);
|
|
2116
2116
|
}
|
|
2117
2117
|
return e;
|
|
2118
|
-
},
|
|
2118
|
+
}, An = (n, e = {}) => {
|
|
2119
2119
|
const o = n.__composition_api_installed__ === !0;
|
|
2120
2120
|
ut ? o && console.warn(
|
|
2121
2121
|
'[@es-plus/vue2] Vue 2.7+ detected together with @vue/composition-api plugin already installed. This causes setup() to run twice (once natively, once via the polyfill\'s data() wrapper) and will produce "setup binding ... already declared" warnings. Remove `Vue.use(VueCompositionAPI)` from your main.js — Vue 2.7 has Composition API natively.'
|
|
2122
2122
|
) : !o && st && n.use(st);
|
|
2123
|
-
const t =
|
|
2123
|
+
const t = Ln(e);
|
|
2124
2124
|
Pt(t), t.skipComponentRegistration || Tn.forEach((i) => {
|
|
2125
2125
|
const l = i.name;
|
|
2126
2126
|
l && n.component(l, i);
|
|
@@ -2133,17 +2133,17 @@ const Tn = [be, Fe, ke, Le], An = (n) => {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
2135
|
}, Dn = {
|
|
2136
|
-
version: "1.1.
|
|
2137
|
-
install:
|
|
2136
|
+
version: "1.1.4",
|
|
2137
|
+
install: An
|
|
2138
2138
|
};
|
|
2139
2139
|
export {
|
|
2140
|
-
|
|
2140
|
+
Ae as EsCrudPage,
|
|
2141
2141
|
ke as EsDialog,
|
|
2142
2142
|
be as EsForm,
|
|
2143
2143
|
Fe as EsTable,
|
|
2144
2144
|
Mn as configureEsPlus,
|
|
2145
2145
|
Dn as default,
|
|
2146
|
-
|
|
2146
|
+
An as install,
|
|
2147
2147
|
Ee as useDialog
|
|
2148
2148
|
};
|
|
2149
2149
|
//# sourceMappingURL=es-plus-vue2.js.map
|