liyu-pc-base 1.0.694 → 1.0.709
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/{FieldRender-BbKYSJCn.js → FieldRender-_Q75X-lX.js} +8 -4
- package/dist/FieldRender-_Q75X-lX.js.map +1 -0
- package/dist/{FieldRender2-zrZDX9_D.js → FieldRender2-D-0-7Z4g.js} +215 -202
- package/dist/FieldRender2-D-0-7Z4g.js.map +1 -0
- package/dist/{FormRender3-BPGoX7BP.js → FormRender3-Ds6-LtUm.js} +1 -1
- package/dist/{FormRender3-BPGoX7BP.js.map → FormRender3-Ds6-LtUm.js.map} +1 -1
- package/dist/RemoteSelectPro-DX8g-uWm.js +775 -0
- package/dist/RemoteSelectPro-DX8g-uWm.js.map +1 -0
- package/dist/{SearchRender-CJAyx6XH.js → SearchRender-SbB-5vAn.js} +1 -1
- package/dist/{SearchRender-CJAyx6XH.js.map → SearchRender-SbB-5vAn.js.map} +1 -1
- package/dist/components/FormRender/utils.js +35 -5
- package/dist/components/FormRender/utils.js.map +1 -1
- package/dist/components/index.js +6 -6
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-CK36tg4I.js → tableModal-BGCM8gSy.js} +1 -1
- package/dist/{tableModal-CK36tg4I.js.map → tableModal-BGCM8gSy.js.map} +1 -1
- package/dist/{tablePro-CxHPwyms.js → tablePro-DKz-cHX3.js} +1 -1
- package/dist/{tablePro-CxHPwyms.js.map → tablePro-DKz-cHX3.js.map} +1 -1
- package/package.json +1 -1
- package/dist/FieldRender-BbKYSJCn.js.map +0 -1
- package/dist/FieldRender2-zrZDX9_D.js.map +0 -1
- package/dist/RemoteSelectPro-CHgvSg4V.js +0 -834
- package/dist/RemoteSelectPro-CHgvSg4V.js.map +0 -1
|
@@ -0,0 +1,775 @@
|
|
|
1
|
+
import { i as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
+
import { N as t, O as n, g as r } from "./init-plugin-CvgtEpwY.js";
|
|
3
|
+
import { r as i } from "./RemoteSelect-C9PN5B3f.js";
|
|
4
|
+
import { t as a } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
|
+
import { getApiData as o } from "./api/api-model.js";
|
|
6
|
+
import { P as s, _ as c, h as l, n as u, p as d, w as f } from "./function-BPdgB84k.js";
|
|
7
|
+
import { useFetchData as p } from "./utils/hooks/useFetchData.js";
|
|
8
|
+
import { i as m, r as h } from "./RemoteModal-LBD1h5AF.js";
|
|
9
|
+
import { useTableDynamicColumns as g } from "./utils/hooks/useTableColumn.js";
|
|
10
|
+
import { t as _ } from "./modal-tools-CrXdI5sg.js";
|
|
11
|
+
import { t as v } from "./md5-DPogoNfX.js";
|
|
12
|
+
import { resolveContextValue as ee } from "./components/FormRender/utils.js";
|
|
13
|
+
import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createSlots as w, createTextVNode as T, createVNode as E, defineAsyncComponent as D, defineComponent as O, onMounted as te, onUnmounted as ne, openBlock as k, reactive as A, ref as j, renderList as M, resolveComponent as N, toDisplayString as P, watch as F, withCtx as I } from "vue";
|
|
14
|
+
import { message as L } from "ant-design-vue";
|
|
15
|
+
import { debounce as re, isEqual as R } from "lodash-es";
|
|
16
|
+
import { useRoute as ie } from "vue-router";
|
|
17
|
+
//#region src/components/FormRender/RemoteTreeSelect/index.ts
|
|
18
|
+
var z = {}, B = () => {
|
|
19
|
+
if (Object.keys(z).length > 0) return;
|
|
20
|
+
let e = /* #__PURE__ */ Object.assign({}), t = n("remoteTreeSelect");
|
|
21
|
+
Object.assign(e, t), Object.keys(e).forEach((t) => {
|
|
22
|
+
let n = t.split("/"), r = n[n.length - 1].replace(".ts", "");
|
|
23
|
+
z[r] = e[t].default;
|
|
24
|
+
});
|
|
25
|
+
}, V = (e) => (B(), z[e] == null ? (console.error("remotetreeselect没有组件:" + e), {
|
|
26
|
+
getData: void 0,
|
|
27
|
+
searchConfig: void 0
|
|
28
|
+
}) : { ...z[e](`remotetreeselect_${e}`) }), H = O({
|
|
29
|
+
name: "RemoteTreeSelect",
|
|
30
|
+
props: {
|
|
31
|
+
field: {
|
|
32
|
+
type: Object,
|
|
33
|
+
required: !0
|
|
34
|
+
},
|
|
35
|
+
value: {
|
|
36
|
+
type: [
|
|
37
|
+
Array,
|
|
38
|
+
Number,
|
|
39
|
+
String
|
|
40
|
+
],
|
|
41
|
+
required: !1,
|
|
42
|
+
default: () => null
|
|
43
|
+
},
|
|
44
|
+
search_config: {
|
|
45
|
+
type: Object,
|
|
46
|
+
required: !1,
|
|
47
|
+
default: () => {}
|
|
48
|
+
},
|
|
49
|
+
label: {
|
|
50
|
+
type: [Array, String],
|
|
51
|
+
required: !1
|
|
52
|
+
},
|
|
53
|
+
formModel: {
|
|
54
|
+
type: Object,
|
|
55
|
+
required: !0
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
emits: ["update:value", "update:label"],
|
|
59
|
+
setup(e, { emit: t }) {
|
|
60
|
+
let n = A({
|
|
61
|
+
selectedRows: [],
|
|
62
|
+
datasource: []
|
|
63
|
+
}), { searchConfig: r, getData: i } = V(e.field.modalType), a = A({ ...r.model });
|
|
64
|
+
e.value && n.selectedRows.push(e.value);
|
|
65
|
+
let o = (t) => {
|
|
66
|
+
let r = [];
|
|
67
|
+
return t.forEach((t) => {
|
|
68
|
+
n.selectedRows instanceof Array && n.selectedRows.includes(t[e.field.valueKey]) && r.push(t[e.field.labelKey]), !(n.selectedRows instanceof Array) && n.selectedRows == t[e.field.valueKey] && r.push(t[e.field.labelKey]), t.children && t.children.length > 0 && o(t.children).forEach((e) => r.push(e));
|
|
69
|
+
}), r;
|
|
70
|
+
}, s = () => {
|
|
71
|
+
t("update:value", n.selectedRows), t("update:label", o(n.datasource));
|
|
72
|
+
};
|
|
73
|
+
F(() => e.formModel[e.field.name], () => {
|
|
74
|
+
e.field.mode === "default" ? e.formModel[e.field.name] ? n.selectedRows = [e.formModel[e.field.name]] : n.selectedRows = [] : e.formModel[e.field.name] && e.formModel[e.field.name].length > 0 && (n.selectedRows = e.formModel[e.field.name].map((e) => e)), t("update:label", o(n.datasource));
|
|
75
|
+
});
|
|
76
|
+
let c = (r) => {
|
|
77
|
+
r && L.loading({
|
|
78
|
+
content: "刷新数据……",
|
|
79
|
+
key: e.field.modalType
|
|
80
|
+
}), i({
|
|
81
|
+
...a,
|
|
82
|
+
...e.search_config
|
|
83
|
+
}, r).then(function(i) {
|
|
84
|
+
if (n.datasource = i.data, n.datasource.length > 0 && n.selectedRows.length > 0 && typeof n.datasource[0][e.field.valueKey] == "number" && typeof n.selectedRows[0] == "string") {
|
|
85
|
+
let t = [];
|
|
86
|
+
n.selectedRows.map((e) => {
|
|
87
|
+
e.split(",").map((e) => {
|
|
88
|
+
t.push(Number(e));
|
|
89
|
+
});
|
|
90
|
+
}), e.field.multiple || t.length > 1 && (t.length = 1), n.selectedRows = t;
|
|
91
|
+
}
|
|
92
|
+
t("update:label", o(n.datasource)), r && L.success({
|
|
93
|
+
content: "刷新数据成功",
|
|
94
|
+
key: e.field.modalType,
|
|
95
|
+
duration: 2
|
|
96
|
+
});
|
|
97
|
+
}).catch(() => {
|
|
98
|
+
L.destroy(), L.error("接口调用失败", 10);
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
return c(), {
|
|
102
|
+
props: e,
|
|
103
|
+
modalRef: n,
|
|
104
|
+
search_modelRef: a,
|
|
105
|
+
handleChange: s,
|
|
106
|
+
btnClick: c
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
data() {
|
|
110
|
+
return { model: this.value };
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/components/FormRender/RemoteTreeSelect/RemoteTreeSelect.vue
|
|
115
|
+
function U(e, t, n, r, i, a) {
|
|
116
|
+
let o = N("a-tree-select"), s = N("a-layout-content"), c = N("reload-outlined"), l = N("a-button"), u = N("a-layout-sider"), d = N("a-layout");
|
|
117
|
+
return k(), x(d, {
|
|
118
|
+
width: "100%",
|
|
119
|
+
style: { "min-width": "190px" }
|
|
120
|
+
}, {
|
|
121
|
+
default: I(() => [E(s, null, {
|
|
122
|
+
default: I(() => [E(o, {
|
|
123
|
+
value: e.modalRef.selectedRows,
|
|
124
|
+
"onUpdate:value": t[0] ||= (t) => e.modalRef.selectedRows = t,
|
|
125
|
+
size: "small",
|
|
126
|
+
style: { "min-width": "150px" },
|
|
127
|
+
placeholder: e.field.placeholder,
|
|
128
|
+
dropdownMatchSelectWidth: !1,
|
|
129
|
+
disabled: e.field.disabled,
|
|
130
|
+
"default-value": e.field.defaultValue,
|
|
131
|
+
"allow-clear": e.field.allowClear,
|
|
132
|
+
"tree-data": e.modalRef.datasource,
|
|
133
|
+
"tree-checkable": e.field.multiple,
|
|
134
|
+
"tree-node-filter-prop": e.field.valueKey,
|
|
135
|
+
"tree-label-prop": e.field.labelKey,
|
|
136
|
+
dropdownStyle: { maxHeight: "400px" },
|
|
137
|
+
onChange: e.handleChange
|
|
138
|
+
}, null, 8, [
|
|
139
|
+
"value",
|
|
140
|
+
"placeholder",
|
|
141
|
+
"disabled",
|
|
142
|
+
"default-value",
|
|
143
|
+
"allow-clear",
|
|
144
|
+
"tree-data",
|
|
145
|
+
"tree-checkable",
|
|
146
|
+
"tree-node-filter-prop",
|
|
147
|
+
"tree-label-prop",
|
|
148
|
+
"onChange"
|
|
149
|
+
])]),
|
|
150
|
+
_: 1
|
|
151
|
+
}), E(u, {
|
|
152
|
+
width: "30px",
|
|
153
|
+
style: { background: "rgba(0, 0, 0, 0)" }
|
|
154
|
+
}, {
|
|
155
|
+
default: I(() => [E(l, {
|
|
156
|
+
size: "small",
|
|
157
|
+
style: { width: "30px" },
|
|
158
|
+
onClick: t[1] ||= (t) => e.btnClick(!0),
|
|
159
|
+
type: "text"
|
|
160
|
+
}, {
|
|
161
|
+
icon: I(() => [E(c)]),
|
|
162
|
+
_: 1
|
|
163
|
+
})]),
|
|
164
|
+
_: 1
|
|
165
|
+
})]),
|
|
166
|
+
_: 1
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
var W = /*#__PURE__*/ a(H, [["render", U]]), G = O({
|
|
170
|
+
name: "RemoteTable",
|
|
171
|
+
props: {
|
|
172
|
+
field: {
|
|
173
|
+
type: Object,
|
|
174
|
+
required: !0
|
|
175
|
+
},
|
|
176
|
+
modalType: {
|
|
177
|
+
type: String,
|
|
178
|
+
required: !0,
|
|
179
|
+
default: () => ""
|
|
180
|
+
},
|
|
181
|
+
value: {
|
|
182
|
+
type: Array,
|
|
183
|
+
required: !0,
|
|
184
|
+
default: () => []
|
|
185
|
+
},
|
|
186
|
+
init_model: {
|
|
187
|
+
type: Object,
|
|
188
|
+
default: () => {}
|
|
189
|
+
},
|
|
190
|
+
field_status: {
|
|
191
|
+
type: Object,
|
|
192
|
+
default: () => {}
|
|
193
|
+
},
|
|
194
|
+
watch: {
|
|
195
|
+
type: Array,
|
|
196
|
+
default: () => []
|
|
197
|
+
},
|
|
198
|
+
formModel: {
|
|
199
|
+
type: Object,
|
|
200
|
+
required: !0
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
emits: ["update:value"],
|
|
204
|
+
setup(e, { emit: t }) {
|
|
205
|
+
let n = j(!1), { searchConfig: r, searchConfigOptions: i, getData: a, columns: o, slotList: s } = h(e.modalType), u = A({
|
|
206
|
+
...r.model,
|
|
207
|
+
is_active: !0,
|
|
208
|
+
...e.init_model
|
|
209
|
+
});
|
|
210
|
+
for (let t of r.fields) e.field_status && e.field_status.hasOwnProperty(t.name) && (e.field_status[t.name] == 0 ? (t.disabled = !0, t.hidden = !1) : e.field_status[t.name] == 1 ? (t.disabled = !1, t.hidden = !0) : (t.disabled = !1, t.hidden = !1));
|
|
211
|
+
let _ = {};
|
|
212
|
+
te(() => {
|
|
213
|
+
if (e.watch) for (let t of e.watch) e.formModel && (_[t] = e.formModel[t]);
|
|
214
|
+
if (e.watch && e.formModel) for (let t of e.watch) u[t] = e.formModel[t], F(() => e.formModel[t], () => {
|
|
215
|
+
if (e.watch && e.formModel) for (let t of e.watch) _[t] != e.formModel[t] && (u[t] = e.formModel[t]);
|
|
216
|
+
}, { immediate: !0 });
|
|
217
|
+
});
|
|
218
|
+
let { state: v, dynamicColumns: ee } = g(o, {
|
|
219
|
+
checkAll: !1,
|
|
220
|
+
needRowIndex: !1
|
|
221
|
+
}), y = b(() => x.datasource.map((t) => ({
|
|
222
|
+
value: t[e.field.valueKey ? e.field.valueKey : "id"],
|
|
223
|
+
label: t[e.field.labelKey ? e.field.labelKey : "name"]
|
|
224
|
+
}))), x = A({
|
|
225
|
+
visible: !1,
|
|
226
|
+
selectedRows: [],
|
|
227
|
+
selectedRowsKey: [],
|
|
228
|
+
selectedRowsTotal: [],
|
|
229
|
+
datasource: []
|
|
230
|
+
}), S = {
|
|
231
|
+
type: e.field.mode == "default" ? "radio" : (e.field.mode, "checkbox"),
|
|
232
|
+
columnWidth: "30px",
|
|
233
|
+
selectedRowKeys: x.selectedRowsKey,
|
|
234
|
+
onChange: (e, t) => {
|
|
235
|
+
let n = x.selectedRowsKey.filter((t) => e.indexOf(Number(t)) == -1);
|
|
236
|
+
x.selectedRowsTotal = x.selectedRowsTotal.filter((e) => n.indexOf(e.id) == -1), t.forEach((e) => {
|
|
237
|
+
x.selectedRowsKey.indexOf(e.id) == -1 && x.selectedRowsTotal.push(e);
|
|
238
|
+
}), x.selectedRowsKey.length = 0, t.forEach((e) => {
|
|
239
|
+
x.selectedRowsKey.push(e.id), x.datasource.push(e);
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}, { reload: C, setPageInfo: w, context: T } = p(a, {
|
|
243
|
+
current: 1,
|
|
244
|
+
pageSize: 20,
|
|
245
|
+
tableSize: "middle",
|
|
246
|
+
stripe: !0,
|
|
247
|
+
requestParams: { ...u }
|
|
248
|
+
});
|
|
249
|
+
F(() => T.dataSource, () => {
|
|
250
|
+
let e = x.selectedRowsTotal.map((e) => e.id);
|
|
251
|
+
T.dataSource.map((t) => {
|
|
252
|
+
e.indexOf(t.id) > -1 && x.selectedRowsKey.push(t.id);
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
let E = () => {
|
|
256
|
+
let t = [];
|
|
257
|
+
if (e.value instanceof Array ? e.value.length > 0 && (t = e.value) : e.value && t.push(e.value), t.length > 0) {
|
|
258
|
+
let e = [], n = [];
|
|
259
|
+
x.datasource.map((e) => n.push(e.id)), t.map((t) => {
|
|
260
|
+
x.selectedRows.indexOf(Number(t)) == -1 && (x.selectedRows.push(Number(t)), x.selectedRowsKey.push(Number(t))), n.indexOf(t) == -1 && e.push(t);
|
|
261
|
+
}), e.length > 0 && a({
|
|
262
|
+
current: 1,
|
|
263
|
+
...u,
|
|
264
|
+
pageSize: 2e3,
|
|
265
|
+
ids: e.join(",")
|
|
266
|
+
}).then(function(e) {
|
|
267
|
+
e.data.forEach((e) => {
|
|
268
|
+
t.indexOf(e.id) >= 0 && (x.datasource.push(e), x.selectedRowsTotal.push(e));
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
} else x.selectedRows.length = 0, x.selectedRowsKey.length = 0, x.selectedRowsTotal.length = 0;
|
|
272
|
+
};
|
|
273
|
+
E(), F(() => e.value, () => {
|
|
274
|
+
E();
|
|
275
|
+
});
|
|
276
|
+
let D = ({ current: e, pageSize: t }, n, r) => {
|
|
277
|
+
console.log(r), w({
|
|
278
|
+
current: e,
|
|
279
|
+
pageSize: t,
|
|
280
|
+
...n,
|
|
281
|
+
...u
|
|
282
|
+
}), C();
|
|
283
|
+
}, { validateInfos: O } = m(u, {});
|
|
284
|
+
return {
|
|
285
|
+
props: e,
|
|
286
|
+
modalRef: x,
|
|
287
|
+
datasource: y,
|
|
288
|
+
state: T,
|
|
289
|
+
loading: n,
|
|
290
|
+
getDateTime: l,
|
|
291
|
+
getDate: d,
|
|
292
|
+
getFullDate: c,
|
|
293
|
+
getTime: f,
|
|
294
|
+
search: () => {
|
|
295
|
+
w({
|
|
296
|
+
current: 1,
|
|
297
|
+
...u
|
|
298
|
+
}), C();
|
|
299
|
+
},
|
|
300
|
+
handleTableChange: D,
|
|
301
|
+
rowSelection: S,
|
|
302
|
+
searchValidateInfos: O,
|
|
303
|
+
search_modelRef: u,
|
|
304
|
+
searchConfig: r,
|
|
305
|
+
searchConfigOptions: i,
|
|
306
|
+
getData: a,
|
|
307
|
+
columnState: v,
|
|
308
|
+
dynamicColumns: ee,
|
|
309
|
+
slotList: s
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
data() {
|
|
313
|
+
return { model: this.value };
|
|
314
|
+
}
|
|
315
|
+
}), K = { key: 0 }, q = { key: 1 }, J = { key: 2 }, Y = { key: 3 }, X = { key: 4 }, Z = { key: 5 };
|
|
316
|
+
function Q(e, t, n, r, i, a) {
|
|
317
|
+
let o = N("a-tag"), s = N("a-table");
|
|
318
|
+
return k(), x(s, {
|
|
319
|
+
bordered: !0,
|
|
320
|
+
size: "small",
|
|
321
|
+
loading: e.state.loading,
|
|
322
|
+
scroll: {
|
|
323
|
+
y: 400,
|
|
324
|
+
x: e.columnState.tableWidth
|
|
325
|
+
},
|
|
326
|
+
"row-selection": e.rowSelection,
|
|
327
|
+
columns: e.dynamicColumns,
|
|
328
|
+
"row-key": "id",
|
|
329
|
+
"data-source": e.state.dataSource,
|
|
330
|
+
pagination: {
|
|
331
|
+
current: e.state.current,
|
|
332
|
+
pageSize: e.state.pageSize,
|
|
333
|
+
total: e.state.total
|
|
334
|
+
},
|
|
335
|
+
onChange: e.handleTableChange
|
|
336
|
+
}, w({ _: 2 }, [M(e.slotList, (t) => ({
|
|
337
|
+
name: t.slotName,
|
|
338
|
+
fn: I(({ index: n, text: r }) => [
|
|
339
|
+
t.slotName === "index" ? (k(), C("span", K, P(n + 1 + e.state.pageSize * (e.state.current - 1)), 1)) : S("", !0),
|
|
340
|
+
t.type === "custom" ? (k(), C("span", q, P(t["field_" + r]), 1)) : S("", !0),
|
|
341
|
+
t.type === "datetime" ? (k(), C("span", J, P(e.getDateTime(r)), 1)) : S("", !0),
|
|
342
|
+
t.type === "date" ? (k(), C("span", Y, P(e.getDate(r)), 1)) : S("", !0),
|
|
343
|
+
t.type === "full_date" ? (k(), C("span", X, P(e.getFullDate(r)), 1)) : S("", !0),
|
|
344
|
+
t.type === "time" ? (k(), C("span", Z, P(e.getTime(r)), 1)) : S("", !0),
|
|
345
|
+
r && t.type === "boolean" ? (k(), x(o, {
|
|
346
|
+
key: 6,
|
|
347
|
+
color: "green"
|
|
348
|
+
}, {
|
|
349
|
+
default: I(() => [T(P(t.name1), 1)]),
|
|
350
|
+
_: 2
|
|
351
|
+
}, 1024)) : S("", !0),
|
|
352
|
+
!r && t.type === "boolean" ? (k(), x(o, {
|
|
353
|
+
key: 7,
|
|
354
|
+
color: "red"
|
|
355
|
+
}, {
|
|
356
|
+
default: I(() => [T(P(t.name2), 1)]),
|
|
357
|
+
_: 2
|
|
358
|
+
}, 1024)) : S("", !0),
|
|
359
|
+
t.type === "list" ? (k(!0), C(y, { key: 8 }, M(r, (e) => (k(), x(o, {
|
|
360
|
+
color: "#87d068",
|
|
361
|
+
key: e.id,
|
|
362
|
+
style: { "margin-bottom": "1px" }
|
|
363
|
+
}, {
|
|
364
|
+
default: I(() => [T(P(e.name), 1)]),
|
|
365
|
+
_: 2
|
|
366
|
+
}, 1024))), 128)) : S("", !0)
|
|
367
|
+
])
|
|
368
|
+
}))]), 1032, [
|
|
369
|
+
"loading",
|
|
370
|
+
"scroll",
|
|
371
|
+
"row-selection",
|
|
372
|
+
"columns",
|
|
373
|
+
"data-source",
|
|
374
|
+
"pagination",
|
|
375
|
+
"onChange"
|
|
376
|
+
]);
|
|
377
|
+
}
|
|
378
|
+
var $ = /*#__PURE__*/ a(G, [["render", Q]]), ae = /* @__PURE__ */ e(v(), 1), oe = { class: "remote-select-pro" }, se = {
|
|
379
|
+
key: 0,
|
|
380
|
+
class: "table-search-icon",
|
|
381
|
+
style: { "margin-right": "5px" }
|
|
382
|
+
}, ce = /*#__PURE__*/ a(/* @__PURE__ */ O({
|
|
383
|
+
name: "RemoteSelectPro",
|
|
384
|
+
__name: "RemoteSelectPro",
|
|
385
|
+
props: {
|
|
386
|
+
field: {},
|
|
387
|
+
valueKey: {},
|
|
388
|
+
labelKeyType: { default: 0 },
|
|
389
|
+
labelKey: {},
|
|
390
|
+
labelSpace: { default: "-" },
|
|
391
|
+
labelKeyList: { default: () => [] },
|
|
392
|
+
value: { default: null },
|
|
393
|
+
label: { default: () => [] },
|
|
394
|
+
formModel: {},
|
|
395
|
+
outModel: { default: () => ({}) },
|
|
396
|
+
placeholder: {},
|
|
397
|
+
init_model: { default: () => ({}) },
|
|
398
|
+
is_input: {
|
|
399
|
+
type: Boolean,
|
|
400
|
+
default: !1
|
|
401
|
+
},
|
|
402
|
+
init_watch: { default: () => ({}) },
|
|
403
|
+
is_form_design: {
|
|
404
|
+
type: Boolean,
|
|
405
|
+
default: !1
|
|
406
|
+
},
|
|
407
|
+
innerModel: { default: null },
|
|
408
|
+
globalInnerModel: { default: null },
|
|
409
|
+
context: { default: null },
|
|
410
|
+
baseKeyPath: { default: () => [] }
|
|
411
|
+
},
|
|
412
|
+
emits: ["update:value", "update:label"],
|
|
413
|
+
setup(e, { emit: n }) {
|
|
414
|
+
let a = e, c = n, l = A({
|
|
415
|
+
selectedRows: [],
|
|
416
|
+
datasource: []
|
|
417
|
+
}), d = ie(), f = j("remoteSelectPro"), p = j(null), m = j(""), h = t(), g = (e, t, n) => {
|
|
418
|
+
if (n.operator === "not_blank_not_null") t.push({
|
|
419
|
+
field_name: n.field_name,
|
|
420
|
+
operator: n.operator,
|
|
421
|
+
value: [],
|
|
422
|
+
format: n.format,
|
|
423
|
+
class_name: n.class_name
|
|
424
|
+
});
|
|
425
|
+
else if (e instanceof Array) {
|
|
426
|
+
let [r] = e;
|
|
427
|
+
s(r) && t.push({
|
|
428
|
+
field_name: n.field_name,
|
|
429
|
+
operator: n.operator,
|
|
430
|
+
value: u(e, n.class_name),
|
|
431
|
+
format: n.format,
|
|
432
|
+
class_name: n.class_name
|
|
433
|
+
});
|
|
434
|
+
} else if (s(e)) {
|
|
435
|
+
let r = e;
|
|
436
|
+
(n.operator === "in" || n.operator === "notin") && (e.includes("[") ? r = JSON.parse(e) : e.includes(",") && (r = e.split(",")), n.class_name === "int" && (r = r.map(Number))), t.push({
|
|
437
|
+
field_name: n.field_name,
|
|
438
|
+
operator: n.operator,
|
|
439
|
+
value: u(r instanceof Array ? r : [r], n.class_name),
|
|
440
|
+
format: n.format,
|
|
441
|
+
class_name: n.class_name
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
}, v = (e) => ee(e, a.context, ["formModel", ...a.baseKeyPath || []]), w = (e = !0) => {
|
|
445
|
+
let t = [], n = [[{
|
|
446
|
+
searchType: 3,
|
|
447
|
+
field_name: "is_active",
|
|
448
|
+
operator: "eq",
|
|
449
|
+
value: [!0],
|
|
450
|
+
format: "choices",
|
|
451
|
+
class_name: "bool"
|
|
452
|
+
}]];
|
|
453
|
+
if (a.field.searchConditions && (n = a.field.searchConditions), n.forEach((e) => {
|
|
454
|
+
let n = [];
|
|
455
|
+
e.forEach((e) => {
|
|
456
|
+
e.searchType === 1 ? Object.keys(a.outModel ? a.outModel : a.formModel).forEach((t) => {
|
|
457
|
+
e.select_name == t && g((a.outModel ? a.outModel : a.formModel)[t], n, e);
|
|
458
|
+
}) : e.searchType === 2 ? Object.keys(a.formModel).forEach((t) => {
|
|
459
|
+
e.select_name == t && g(a.formModel[t], n, e);
|
|
460
|
+
}) : e.searchType === 3 ? g(e.value, n, e) : e.searchType === 4 ? g(v(e.select_name), n, e) : g(e.value, n, e);
|
|
461
|
+
}), t.push(n);
|
|
462
|
+
}), m.value && e) if (O.pageSize = 50, a?.labelKeyList && a?.labelKeyList?.length > 0) a.labelKeyList.forEach((e, n) => {
|
|
463
|
+
let r = t[n];
|
|
464
|
+
r || (r = [], t[n] = r), r.push({
|
|
465
|
+
field_name: e,
|
|
466
|
+
operator: "icontains",
|
|
467
|
+
format: "input",
|
|
468
|
+
value: [m.value],
|
|
469
|
+
class_name: "str"
|
|
470
|
+
});
|
|
471
|
+
});
|
|
472
|
+
else if (t.length === 0) t.push([{
|
|
473
|
+
field_name: L(),
|
|
474
|
+
operator: "icontains",
|
|
475
|
+
format: "input",
|
|
476
|
+
value: [m.value],
|
|
477
|
+
class_name: "str"
|
|
478
|
+
}]);
|
|
479
|
+
else for (let e of t) e.push({
|
|
480
|
+
field_name: L(),
|
|
481
|
+
operator: "icontains",
|
|
482
|
+
format: "input",
|
|
483
|
+
value: [m.value],
|
|
484
|
+
class_name: "str"
|
|
485
|
+
});
|
|
486
|
+
return t;
|
|
487
|
+
}, T = (e = !0) => {
|
|
488
|
+
let t = {};
|
|
489
|
+
return a.field.simpleSearchConditions && a.field.simpleSearchConditions.forEach((e) => {
|
|
490
|
+
e.searchType === 1 ? Object.keys(a.outModel ? a.outModel : a.formModel).forEach((n) => {
|
|
491
|
+
if (e.select_name == n) {
|
|
492
|
+
let r = (a.outModel ? a.outModel : a.formModel)[n];
|
|
493
|
+
t[e.field_name] = r;
|
|
494
|
+
}
|
|
495
|
+
}) : e.searchType === 2 ? Object.keys(a.formModel).forEach((n) => {
|
|
496
|
+
if (e.select_name == n) {
|
|
497
|
+
let r = a.formModel[n];
|
|
498
|
+
t[e.field_name] = r;
|
|
499
|
+
}
|
|
500
|
+
}) : e.searchType === 3 ? t[e.field_name] = e.value : e.searchType === 4 && (t[e.field_name] = v(e.select_name));
|
|
501
|
+
}), m.value && e && (a?.labelKeyList && a?.labelKeyList?.length > 0 ? a.labelKeyList.forEach((e, n) => {
|
|
502
|
+
t[e] = m.value;
|
|
503
|
+
}) : t[L()] = m.value), t;
|
|
504
|
+
}, O = {
|
|
505
|
+
current: 1,
|
|
506
|
+
pageSize: 200,
|
|
507
|
+
is_pagination: !0,
|
|
508
|
+
request_source: "strict",
|
|
509
|
+
is_active: !0,
|
|
510
|
+
...a.init_model,
|
|
511
|
+
column_fields: [],
|
|
512
|
+
sort_fields: [],
|
|
513
|
+
conditions: [],
|
|
514
|
+
simpleSearchParams: {}
|
|
515
|
+
}, P = () => a.valueKey || "id", L = () => a.labelKey || "name", z = () => {
|
|
516
|
+
let e = [];
|
|
517
|
+
return a?.labelKeyList && a?.labelKeyList?.length > 0 && a.labelKeyType !== 1 ? e.push(...a.labelKeyList) : e.push(L()), e;
|
|
518
|
+
}, B = () => {
|
|
519
|
+
let e = [];
|
|
520
|
+
a?.labelKeyList && a?.labelKeyList?.length > 0 && a.labelKeyType !== 1 ? e.push(P(), ...a.labelKeyList) : e.push(P(), L()), a.field?.extendedFields && a.field?.extendedFields.length > 0 && e.push(...a.field.extendedFields);
|
|
521
|
+
let t = [...new Set(e)];
|
|
522
|
+
O.column_fields = [].concat(t);
|
|
523
|
+
};
|
|
524
|
+
B(), O.sort_fields = z(), a.init_model?.sort_fields && (O.sort_fields = a.init_model?.sort_fields);
|
|
525
|
+
let V = (e) => {
|
|
526
|
+
if (Array.isArray(l.selectedRows)) {
|
|
527
|
+
if (l.selectedRows.includes(e)) return !0;
|
|
528
|
+
} else if (l.selectedRows === e) return !0;
|
|
529
|
+
return !1;
|
|
530
|
+
}, H = b(() => l.datasource.map((e) => {
|
|
531
|
+
if (a.labelKeyList && a.labelKeyList.length > 0 && a?.labelKeyType !== 1) {
|
|
532
|
+
let t = [];
|
|
533
|
+
for (let n of a.labelKeyList) t.push(e[n]);
|
|
534
|
+
return {
|
|
535
|
+
value: e[P()],
|
|
536
|
+
label: t.join(a.labelSpace)
|
|
537
|
+
};
|
|
538
|
+
} else return {
|
|
539
|
+
value: e[P()],
|
|
540
|
+
label: e[L()]
|
|
541
|
+
};
|
|
542
|
+
})), U = (e) => {
|
|
543
|
+
if (e && !Array.isArray(e) && (e = [e]), a.field.default && !a.formModel[a.field.name] && a.field.mode == "default" && e.length > 0) {
|
|
544
|
+
a.formModel[a.field.name] = e[0];
|
|
545
|
+
let t = l.datasource.find((t) => {
|
|
546
|
+
if (t[P()] == e[0]) return !0;
|
|
547
|
+
});
|
|
548
|
+
t && c("update:label", t[L()]);
|
|
549
|
+
}
|
|
550
|
+
if (a.field.mode == "default") {
|
|
551
|
+
let e = H.value.filter((e) => V(e.value)).map((e) => e.label);
|
|
552
|
+
c("update:label", e.length > 0 ? e[0] : "");
|
|
553
|
+
} else c("update:label", H.value.filter((e) => V(e.value)).map((e) => e.label));
|
|
554
|
+
}, W = () => {
|
|
555
|
+
if (a.field.mode === "default") {
|
|
556
|
+
let e = l.datasource.filter((e) => V(e[P()]));
|
|
557
|
+
a.innerModel && (a.innerModel[a.field.name] = e[0]);
|
|
558
|
+
} else {
|
|
559
|
+
let e = l.datasource.filter((e) => V(e[P()]));
|
|
560
|
+
a.innerModel && (a.innerModel[a.field.name] = e);
|
|
561
|
+
}
|
|
562
|
+
}, G = {};
|
|
563
|
+
F(() => [a.formModel, a.context], () => {
|
|
564
|
+
let e = Z(!1);
|
|
565
|
+
R(G, e) || (G = e, $(!0));
|
|
566
|
+
}, { deep: !0 }), F(() => a.formModel[a.field.name], () => {
|
|
567
|
+
if (a.field.mode === "default") {
|
|
568
|
+
a.formModel[a.field.name] || a.formModel[a.field.name] === 0 ? l.selectedRows = [a.formModel[a.field.name]] : l.selectedRows = [];
|
|
569
|
+
let e = H.value.filter((e) => V(e.value)).map((e) => e.label);
|
|
570
|
+
c("update:label", e.length > 0 ? e[0] : "");
|
|
571
|
+
} else a.formModel[a.field.name] && a.formModel[a.field.name].length > 0 ? l.selectedRows = a.formModel[a.field.name] : l.selectedRows = [], c("update:label", H.value.filter((e) => V(e.value)).map((e) => e.label));
|
|
572
|
+
}), F(() => a.value, () => {
|
|
573
|
+
W();
|
|
574
|
+
}, { deep: !0 });
|
|
575
|
+
let K = (e) => {
|
|
576
|
+
a.field.required_condition && a.field.required_condition.find((t) => t.key === e) && $(!0);
|
|
577
|
+
};
|
|
578
|
+
te(() => {
|
|
579
|
+
f.value = "remoteselectpro:" + (0, ae.default)(`${d.path}_${a.field.name}_${a.field.postUrl}`), q(), r().on("required_condition_change", K), Q();
|
|
580
|
+
}), ne(() => {
|
|
581
|
+
r().off("required_condition_change", K);
|
|
582
|
+
});
|
|
583
|
+
let q = () => {
|
|
584
|
+
a.field.mode === "default" ? (a.value || a.value === 0) && (P() === "id" ? isNaN(Number(a.value)) ? l.selectedRows.push(a.value) : l.selectedRows.push(Number(a.value)) : l.selectedRows.push(a.value)) : typeof a.value == "string" ? a.value.split(",").map((e) => {
|
|
585
|
+
P() === "id" ? isNaN(Number(e)) ? l.selectedRows.push(e) : l.selectedRows.push(Number(e)) : l.selectedRows.push(e);
|
|
586
|
+
}) : a.value instanceof Array ? a.value.forEach((e) => {
|
|
587
|
+
P() === "id" ? isNaN(Number(e)) ? l.selectedRows.push(e) : l.selectedRows.push(Number(e)) : l.selectedRows.push(e);
|
|
588
|
+
}) : a.value != null && l.selectedRows.push(a.value);
|
|
589
|
+
}, J = () => {
|
|
590
|
+
if (a.field.mode == "default") {
|
|
591
|
+
c("update:value", l.selectedRows);
|
|
592
|
+
let e = H.value.filter((e) => l.selectedRows == e.value).map((e) => e.label);
|
|
593
|
+
c("update:label", e.length > 0 ? e[0] : "");
|
|
594
|
+
} else l.selectedRows.length, c("update:value", l.selectedRows), c("update:label", H.value.filter((e) => V(e.value)).map((e) => e.label));
|
|
595
|
+
}, Y = () => {
|
|
596
|
+
let e = a.field.required_condition, t = {};
|
|
597
|
+
return e && e.forEach((e) => {
|
|
598
|
+
let n = h.value_map[e.key];
|
|
599
|
+
n != null && (t[e.field_name] = n);
|
|
600
|
+
}), t;
|
|
601
|
+
}, X = async (e, t) => {
|
|
602
|
+
if (t && !Array.isArray(t) && (t = [t]), t && t.length > 0) {
|
|
603
|
+
let n = [];
|
|
604
|
+
if (t.forEach((e) => {
|
|
605
|
+
l.datasource.some((t) => t[P()] === e) || n.push(e);
|
|
606
|
+
}), n.length > 0) {
|
|
607
|
+
let t = { ...e };
|
|
608
|
+
if (a.field.queryType === "simple") {
|
|
609
|
+
let e = n;
|
|
610
|
+
e instanceof Array && e.length > 0 && (e = e.join(",")), t[P()] = e;
|
|
611
|
+
} else t.conditions && t.conditions.length > 0 || (t.conditions = [[]]), t.conditions[0].push({
|
|
612
|
+
class_name: "int",
|
|
613
|
+
operator: "in",
|
|
614
|
+
value: n,
|
|
615
|
+
format: "remote",
|
|
616
|
+
field_name: P()
|
|
617
|
+
});
|
|
618
|
+
let r = await o({ ...t }, a.field.postUrl, !1, { skip_error: !0 });
|
|
619
|
+
l.datasource = l.datasource.concat(r?.data || []);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}, Z = (e = !0) => {
|
|
623
|
+
let t = {};
|
|
624
|
+
return a.field.queryType === "simple" ? (O.simpleSearchParams = T(e), t = {
|
|
625
|
+
...O,
|
|
626
|
+
...O.simpleSearchParams,
|
|
627
|
+
required_condition: Y()
|
|
628
|
+
}, delete t.conditions, delete t.simpleSearchParams) : (O.conditions = w(e), t = {
|
|
629
|
+
...O,
|
|
630
|
+
required_condition: Y()
|
|
631
|
+
}, delete t.simpleSearchParams), t;
|
|
632
|
+
}, Q = async (e = !1) => {
|
|
633
|
+
if (a.field.postUrl) {
|
|
634
|
+
e && (l.datasource.length = 0);
|
|
635
|
+
let t = l.datasource.length === 0, n = Z(), r = await o(n, a.field.postUrl, !1, { skip_error: !0 });
|
|
636
|
+
if (r?.data?.length > 0) {
|
|
637
|
+
let e = P(), i = r?.data.filter((t) => !l.datasource.find((n) => t[e] == n[e]));
|
|
638
|
+
l.datasource = l.datasource.concat(i), t && await X(n, l.selectedRows), W();
|
|
639
|
+
}
|
|
640
|
+
if (a.field.defaultValueType === "first" && !a.is_form_design) a.formModel[a.field.name] || (a.field.mode === "default" || !a.field.mode ? (c("update:label", l.datasource[0][L()]), c("update:value", l.datasource[0][P()])) : (c("update:label", [l.datasource[0][L()]]), c("update:value", [l.datasource[0][P()]])));
|
|
641
|
+
else if (a.field.defaultValueType === "global" && !a.is_form_design) {
|
|
642
|
+
if (!a.formModel[a.field.name]) {
|
|
643
|
+
let e = a.field.globalDefaultKey, t = a.field.globalDefaultField, n = h.value_map[e];
|
|
644
|
+
if (n) {
|
|
645
|
+
let e = l.datasource.find((e) => e[t] === n);
|
|
646
|
+
e && (a.field.mode === "default" || !a.field.mode ? (c("update:label", e[L()]), c("update:value", e[P()])) : (c("update:label", [e[L()]]), c("update:value", [e[P()]])));
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
} else U(l.selectedRows);
|
|
650
|
+
}
|
|
651
|
+
}, $ = re((e = !1) => {
|
|
652
|
+
Q(e);
|
|
653
|
+
}, 500);
|
|
654
|
+
F(() => [
|
|
655
|
+
a.labelKeyList,
|
|
656
|
+
a.labelKey,
|
|
657
|
+
a.labelKeyType,
|
|
658
|
+
a.valueKey,
|
|
659
|
+
a.labelSpace,
|
|
660
|
+
a.field.postUrl
|
|
661
|
+
], (e, t) => {
|
|
662
|
+
R(e, t) || (B(), O.sort_fields = z(), $(!0));
|
|
663
|
+
}, { deep: !0 }), F(() => [
|
|
664
|
+
a.field.searchConditions,
|
|
665
|
+
a.field.queryType,
|
|
666
|
+
a.field.simpleSearchConditions
|
|
667
|
+
], (e, t) => {
|
|
668
|
+
R(e, t) || $(!0);
|
|
669
|
+
}, { deep: !0 });
|
|
670
|
+
let ce = (e) => {
|
|
671
|
+
m.value = e, $();
|
|
672
|
+
}, le = D(() => import("./tableModal-BGCM8gSy.js")), ue = () => {
|
|
673
|
+
let e = [];
|
|
674
|
+
m.value = "";
|
|
675
|
+
let t = "checkbox";
|
|
676
|
+
a.field.mode === "default" && (t = "radio"), e = H.value ? H.value.filter((e) => V(e.value)) : [], p.value = {
|
|
677
|
+
key: f.value,
|
|
678
|
+
title: a.field.label || a.field.name,
|
|
679
|
+
rowSelectionType: t,
|
|
680
|
+
columns: a.field.table?.columns || [],
|
|
681
|
+
search_config: a.field.table?.search_config || [],
|
|
682
|
+
list_url: a.field.postUrl,
|
|
683
|
+
is_selection: !0,
|
|
684
|
+
is_pagination: !0,
|
|
685
|
+
hide_header: !0
|
|
686
|
+
};
|
|
687
|
+
let n = a.init_model || {};
|
|
688
|
+
if (a.field.queryType === "simple") p.value.query_params = {
|
|
689
|
+
...n,
|
|
690
|
+
...T()
|
|
691
|
+
};
|
|
692
|
+
else {
|
|
693
|
+
let e = w();
|
|
694
|
+
p.value.query_params = n, e.length > 0 && e[0].length > 0 && (p.value.base_conditions = e[0]);
|
|
695
|
+
}
|
|
696
|
+
let r = Y();
|
|
697
|
+
r && (p.value.query_params = {
|
|
698
|
+
...p.value.query_params,
|
|
699
|
+
required_condition: r
|
|
700
|
+
}), _(A({
|
|
701
|
+
open: !0,
|
|
702
|
+
loading: !1,
|
|
703
|
+
component: le,
|
|
704
|
+
isMultiple: a.field.mode !== "default",
|
|
705
|
+
tableConfig: p.value,
|
|
706
|
+
labelKey: a.labelKey || "name",
|
|
707
|
+
value: e,
|
|
708
|
+
labelKeyList: a.labelKeyList || [],
|
|
709
|
+
labelKeyType: a.labelKeyType || 1,
|
|
710
|
+
labelSpace: a.labelSpace || "-",
|
|
711
|
+
valueKey: a.valueKey || "id",
|
|
712
|
+
ok: async (e) => {
|
|
713
|
+
let t = e.map((e) => e.value) || [], n = e.map((e) => e.label) || [], r = Z();
|
|
714
|
+
a.field.mode == "default" ? t.length == 0 ? (l.selectedRows = void 0, c("update:value", l.selectedRows), c("update:label", void 0)) : (l.selectedRows = t[0], await X(r, t[0]), c("update:value", l.selectedRows), c("update:label", n[0])) : (l.selectedRows = t, await X(r, t), c("update:value", l.selectedRows), c("update:label", n));
|
|
715
|
+
},
|
|
716
|
+
cancel: () => {
|
|
717
|
+
console.log("cancel");
|
|
718
|
+
}
|
|
719
|
+
}));
|
|
720
|
+
}, de = (e, t) => {
|
|
721
|
+
if (H.value instanceof Array) {
|
|
722
|
+
let n = H.value.find((e) => e.value == t.key);
|
|
723
|
+
return n ? String(n.label).toLowerCase().indexOf(e.toLowerCase()) >= 0 : !1;
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
return (e, t) => {
|
|
727
|
+
let n = N("a-select-option"), r = N("a-select"), a = N("FileSearchOutlined");
|
|
728
|
+
return k(), C("div", oe, [E(r, {
|
|
729
|
+
value: l.selectedRows,
|
|
730
|
+
"onUpdate:value": t[0] ||= (e) => l.selectedRows = e,
|
|
731
|
+
"allow-clear": e.field.allowClear !== !1,
|
|
732
|
+
"default-value": e.field.defaultValue,
|
|
733
|
+
disabled: e.field.disabled,
|
|
734
|
+
"filter-option": de,
|
|
735
|
+
maxTagCount: e.field.maxTagCount ? e.field.maxTagCount : "responsive",
|
|
736
|
+
mode: e.field.mode == "default" ? null : e.field.mode,
|
|
737
|
+
placeholder: e.placeholder,
|
|
738
|
+
"show-search": e.field.show_search !== !1,
|
|
739
|
+
size: "small",
|
|
740
|
+
autoClearSearchValue: !1,
|
|
741
|
+
onChange: J,
|
|
742
|
+
onSearch: ce,
|
|
743
|
+
style: { "min-width": "120px" }
|
|
744
|
+
}, {
|
|
745
|
+
default: I(() => [(k(!0), C(y, null, M(H.value, (t) => (k(), x(n, {
|
|
746
|
+
key: t.value,
|
|
747
|
+
value: t.value
|
|
748
|
+
}, {
|
|
749
|
+
default: I(() => [E(i, {
|
|
750
|
+
text: t.label,
|
|
751
|
+
pattern: m.value,
|
|
752
|
+
color: e.field.searchColor
|
|
753
|
+
}, null, 8, [
|
|
754
|
+
"text",
|
|
755
|
+
"pattern",
|
|
756
|
+
"color"
|
|
757
|
+
])]),
|
|
758
|
+
_: 2
|
|
759
|
+
}, 1032, ["value"]))), 128))]),
|
|
760
|
+
_: 1
|
|
761
|
+
}, 8, [
|
|
762
|
+
"value",
|
|
763
|
+
"allow-clear",
|
|
764
|
+
"default-value",
|
|
765
|
+
"disabled",
|
|
766
|
+
"maxTagCount",
|
|
767
|
+
"mode",
|
|
768
|
+
"placeholder",
|
|
769
|
+
"show-search"
|
|
770
|
+
]), e.field.table?.enable ? (k(), C("div", se, [E(a, { onClick: ue })])) : S("", !0)]);
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
}), [["__scopeId", "data-v-1b82cc96"]]);
|
|
774
|
+
//#endregion
|
|
775
|
+
export { $ as n, W as r, ce as t };
|