act-plus 1.1.7 → 1.1.9

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.
@@ -1,8 +1,8 @@
1
1
  import { inject as E, reactive as ne, ref as D, watch as re, resolveComponent as V, openBlock as n, createBlock as i, withCtx as a, createElementVNode as H, createVNode as l, unref as o, createTextVNode as U, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as se } from "vue";
2
2
  import { a as ie, j as me, P as pe, k as A, T as fe, A as be, C as ce, U as _e } from "./enum-99519ce0.js";
3
- import { _ as Ve } from "./index-89b17cda.js";
3
+ import { _ as Ve } from "./index-7ef6e17e.js";
4
4
  import "vue-router";
5
- const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
5
+ const ge = { slot: "prepend" }, Ce = { class: "dialog-footer" }, ye = {
6
6
  __name: "dialogAddField",
7
7
  props: {
8
8
  visible: { type: Boolean, default: !1 },
@@ -35,7 +35,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
35
35
  isFormMultipleUpload: !0,
36
36
  isFormDisabled: !1,
37
37
  tableQueryCondition: void 0,
38
- tableCellWidthType: "dynamic",
38
+ tableCellWidthType: "min",
39
39
  tableCellWidth: "120",
40
40
  tableCellAlignType: "left",
41
41
  tableCellContentType: "default",
@@ -58,7 +58,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
58
58
  return;
59
59
  Object.keys(t.value).forEach((d) => {
60
60
  d == "permissionCode" ? t.value[d] = r.unique : d == "formCustomComponentes" ? t.value[d] = p.filter((f) => r.useScenes.includes(f.value)).map((f) => {
61
- const y = r[d].find((C) => C.permissionCode == f.value) || {};
61
+ const C = r[d].find((y) => y.permissionCode == f.value) || {};
62
62
  return {
63
63
  btnName: f.key,
64
64
  permissionCode: f.value,
@@ -66,7 +66,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
66
66
  customComponentName: void 0,
67
67
  customComponentUrl: void 0,
68
68
  isFiledCustom: !1,
69
- ...y
69
+ ...C
70
70
  };
71
71
  }) : ["postRequestParams", "useScenes"].includes(d) ? t.value[d] = [...r[d] || []] : t.value[d] = r[d];
72
72
  }), console.log(t.value);
@@ -103,7 +103,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
103
103
  });
104
104
  };
105
105
  return (b, u) => {
106
- const p = V("el-input"), r = V("el-form-item"), d = V("el-col"), f = V("el-option"), y = V("el-select"), C = V("el-row"), q = V("el-button"), v = V("el-divider"), ae = V("el-option-group"), S = V("el-switch"), te = V("el-input-number"), oe = V("el-form"), ue = V("el-scrollbar"), de = V("el-dialog");
106
+ const p = V("el-input"), r = V("el-form-item"), d = V("el-col"), f = V("el-option"), C = V("el-select"), y = V("el-row"), q = V("el-button"), v = V("el-divider"), ae = V("el-option-group"), S = V("el-switch"), te = V("el-input-number"), oe = V("el-form"), ue = V("el-scrollbar"), de = V("el-dialog");
107
107
  return n(), i(de, {
108
108
  "model-value": k.visible,
109
109
  title: k.title,
@@ -115,7 +115,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
115
115
  "before-close": ee
116
116
  }, {
117
117
  footer: a(() => [
118
- H("span", ye, [
118
+ H("span", Ce, [
119
119
  l(q, {
120
120
  onClick: w,
121
121
  loading: o(F).btnLoading
@@ -151,7 +151,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
151
151
  "label-width": "120px"
152
152
  }, {
153
153
  default: a(() => [
154
- l(C, null, {
154
+ l(y, null, {
155
155
  default: a(() => [
156
156
  l(d, { span: 6 }, {
157
157
  default: a(() => [
@@ -208,7 +208,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
208
208
  clearable: ""
209
209
  }, {
210
210
  prepend: a(() => [
211
- l(y, {
211
+ l(C, {
212
212
  modelValue: o(t).fieldType,
213
213
  "onUpdate:modelValue": u[2] || (u[2] = (e) => o(t).fieldType = e),
214
214
  placeholder: "请选择",
@@ -237,7 +237,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
237
237
  ]),
238
238
  _: 1
239
239
  }),
240
- I() ? (n(), i(C, { key: 0 }, {
240
+ I() ? (n(), i(y, { key: 0 }, {
241
241
  default: a(() => [
242
242
  l(d, { span: 24 }, {
243
243
  default: a(() => [
@@ -253,7 +253,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
253
253
  clearable: ""
254
254
  }, {
255
255
  prepend: a(() => [
256
- l(y, {
256
+ l(C, {
257
257
  modelValue: o(t).fieldRequestType,
258
258
  "onUpdate:modelValue": u[4] || (u[4] = (e) => o(t).fieldRequestType = e),
259
259
  placeholder: "请选择",
@@ -295,7 +295,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
295
295
  ]),
296
296
  _: 1
297
297
  }),
298
- (n(!0), c(_, null, g(o(t).postRequestParams, (e, s) => (n(), i(C, { key: s }, {
298
+ (n(!0), c(_, null, g(o(t).postRequestParams, (e, s) => (n(), i(y, { key: s }, {
299
299
  default: a(() => [
300
300
  l(d, { span: 6 }, {
301
301
  default: a(() => [
@@ -332,7 +332,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
332
332
  clearable: ""
333
333
  }, {
334
334
  prepend: a(() => [
335
- l(y, {
335
+ l(C, {
336
336
  modelValue: e.submitType,
337
337
  "onUpdate:modelValue": (m) => e.submitType = m,
338
338
  placeholder: "请选择方式",
@@ -364,7 +364,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
364
364
  prop: "postRequestParams." + s + ".paramsType"
365
365
  }, {
366
366
  default: a(() => [
367
- l(y, {
367
+ l(C, {
368
368
  modelValue: e.paramsType,
369
369
  "onUpdate:modelValue": (m) => e.paramsType = m,
370
370
  placeholder: "请选择",
@@ -405,7 +405,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
405
405
  _: 2
406
406
  }, 1024))), 128))
407
407
  ], 64)) : T("", !0),
408
- l(C, null, {
408
+ l(y, null, {
409
409
  default: a(() => [
410
410
  l(d, { span: 24 }, {
411
411
  default: a(() => [
@@ -415,7 +415,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
415
415
  prop: "useScenes"
416
416
  }, {
417
417
  default: a(() => [
418
- l(y, {
418
+ l(C, {
419
419
  modelValue: o(t).useScenes,
420
420
  "onUpdate:modelValue": u[6] || (u[6] = (e) => o(t).useScenes = e),
421
421
  placeholder: "请选择",
@@ -450,7 +450,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
450
450
  ]),
451
451
  _: 1
452
452
  }),
453
- Q() ? (n(), i(C, { key: 2 }, {
453
+ Q() ? (n(), i(y, { key: 2 }, {
454
454
  default: a(() => [
455
455
  l(v, { "content-position": "left" }, {
456
456
  default: a(() => [
@@ -466,7 +466,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
466
466
  prop: "tableQueryCondition"
467
467
  }, {
468
468
  default: a(() => [
469
- l(y, {
469
+ l(C, {
470
470
  modelValue: o(t).tableQueryCondition,
471
471
  "onUpdate:modelValue": u[7] || (u[7] = (e) => o(t).tableQueryCondition = e),
472
472
  placeholder: "请选择查询条件",
@@ -491,7 +491,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
491
491
  ]),
492
492
  _: 1
493
493
  })) : T("", !0),
494
- Y() ? (n(), i(C, { key: 3 }, {
494
+ Y() ? (n(), i(y, { key: 3 }, {
495
495
  default: a(() => [
496
496
  l(v, { "content-position": "left" }, {
497
497
  default: a(() => [
@@ -513,7 +513,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
513
513
  "onUpdate:modelValue": u[9] || (u[9] = (e) => o(t).tableCellWidth = e)
514
514
  }, {
515
515
  prepend: a(() => [
516
- l(y, {
516
+ l(C, {
517
517
  modelValue: o(t).tableCellWidthType,
518
518
  "onUpdate:modelValue": u[8] || (u[8] = (e) => o(t).tableCellWidthType = e),
519
519
  placeholder: "请选择",
@@ -545,7 +545,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
545
545
  prop: "tableCellAlignType"
546
546
  }, {
547
547
  default: a(() => [
548
- l(y, {
548
+ l(C, {
549
549
  modelValue: o(t).tableCellAlignType,
550
550
  "onUpdate:modelValue": u[10] || (u[10] = (e) => o(t).tableCellAlignType = e),
551
551
  placeholder: "请选择对齐方式",
@@ -575,7 +575,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
575
575
  prop: "tableCellContentType"
576
576
  }, {
577
577
  default: a(() => [
578
- l(y, {
578
+ l(C, {
579
579
  modelValue: o(t).tableCellContentType,
580
580
  "onUpdate:modelValue": u[11] || (u[11] = (e) => o(t).tableCellContentType = e),
581
581
  placeholder: "请选择内容类型",
@@ -634,7 +634,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
634
634
  ]),
635
635
  _: 1
636
636
  })) : T("", !0),
637
- B() ? (n(), i(C, { key: 4 }, {
637
+ B() ? (n(), i(y, { key: 4 }, {
638
638
  default: a(() => [
639
639
  l(d, { span: 12 }, {
640
640
  default: a(() => [
@@ -679,7 +679,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
679
679
  ]),
680
680
  _: 1
681
681
  })) : T("", !0),
682
- o(t).formCustomComponentes.length ? (n(), i(C, { key: 5 }, {
682
+ o(t).formCustomComponentes.length ? (n(), i(y, { key: 5 }, {
683
683
  default: a(() => [
684
684
  l(v, { "content-position": "left" }, {
685
685
  default: a(() => [
@@ -749,7 +749,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
749
749
  prop: "fieldSubmitType"
750
750
  }, {
751
751
  default: a(() => [
752
- l(y, {
752
+ l(C, {
753
753
  modelValue: o(t).fieldSubmitType,
754
754
  "onUpdate:modelValue": u[19] || (u[19] = (e) => o(t).fieldSubmitType = e),
755
755
  placeholder: "请选择提交类型",
@@ -819,7 +819,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
819
819
  ]),
820
820
  _: 1
821
821
  }),
822
- (n(!0), c(_, null, g(o(t).formCustomComponentes, (e, s) => (n(), i(C, { key: s }, {
822
+ (n(!0), c(_, null, g(o(t).formCustomComponentes, (e, s) => (n(), i(y, { key: s }, {
823
823
  default: a(() => [
824
824
  l(d, { span: 4 }, {
825
825
  default: a(() => [
@@ -908,7 +908,7 @@ const ge = { slot: "prepend" }, ye = { class: "dialog-footer" }, Ce = {
908
908
  }, 8, ["model-value", "title"]);
909
909
  };
910
910
  }
911
- }, Fe = /* @__PURE__ */ Ve(Ce, [["__scopeId", "data-v-9cd100d3"]]);
911
+ }, Fe = /* @__PURE__ */ Ve(ye, [["__scopeId", "data-v-4134748b"]]);
912
912
  export {
913
913
  Fe as default
914
914
  };
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as ee, computed as le, reactive as ae, inject as S, ref as q, watch as te, resolveComponent as y, openBlock as d, createBlock as m, withCtx as l, createElementVNode as oe, createVNode as e, unref as o, createTextVNode as U, toDisplayString as x, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
2
  import { B as ue, b as ne, c as de, d as re, e as se, f as ie, g as me, h as pe, i as ce } from "./enum-99519ce0.js";
3
- import { _ as be, f as fe } from "./index-89b17cda.js";
3
+ import { _ as be, d as fe } from "./index-7ef6e17e.js";
4
4
  import { useRoute as _e } from "vue-router";
5
5
  const Ve = { class: "dialog-footer" }, ge = {
6
6
  __name: "dialogConfigBtn",
@@ -11,7 +11,7 @@ const Ve = { class: "dialog-footer" }, ge = {
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
13
  setup(P, { emit: A }) {
14
- const O = ee(() => import("./index-efdc0568.js")), E = _e(), I = A, T = P, D = le(() => E.params.key);
14
+ const O = ee(() => import("./index-9e5c202e.js")), E = _e(), I = A, T = P, D = le(() => E.params.key);
15
15
  let k = ae((() => ({
16
16
  btnLoading: !1
17
17
  }))());
@@ -0,0 +1,285 @@
1
+ import { inject as M, reactive as de, ref as x, watch as se, resolveComponent as m, openBlock as r, createBlock as u, withCtx as _, createElementVNode as B, createVNode as T, unref as l, createTextVNode as P, toDisplayString as w, createElementBlock as V, Fragment as D, renderList as R, createCommentVNode as re, resolveDynamicComponent as ne, isRef as ie } from "vue";
2
+ import { a as ce, e as ue, r as fe, b as pe, E as W, _ as me, u as ye, T as z, P as be } from "./index-7ef6e17e.js";
3
+ import "vue-router";
4
+ const $ = ce.create({
5
+ baseURL: "",
6
+ // ""
7
+ timeout: 15e3
8
+ });
9
+ $.interceptors.request.use(
10
+ (d) => {
11
+ let y = sessionStorage.getItem("accessToken");
12
+ return y && (d.headers.Authorization = "Bearer " + y), d.headers["Content-Type"] != "application/x-www-form-urlencoded" && (d.data = { ...d.data }, Reflect.has(d.data, "dynamicFilters") && (d.data.dynamicFilters = ue(JSON.stringify(d.data.dynamicFilters)))), d;
13
+ },
14
+ (d) => Promise.reject(d)
15
+ );
16
+ $.interceptors.response.use(
17
+ (d) => {
18
+ const y = d.data;
19
+ if (y.code == 200)
20
+ return y;
21
+ if (y.code == 401)
22
+ sessionStorage.clear(), fe.replace("/"), pe(), W.error({ title: "错误", message: "登陆超时,请重新登录" });
23
+ else
24
+ return W.error({ title: "错误", message: y.msg }), Promise.reject(y.msg);
25
+ },
26
+ (d) => {
27
+ if (d.response.status != -1)
28
+ return Promise.reject(d);
29
+ }
30
+ );
31
+ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
32
+ __name: "index",
33
+ props: {
34
+ visible: { type: Boolean, default: !1 },
35
+ title: { type: String, default: "" },
36
+ data: { type: Object, default: () => ({}) }
37
+ },
38
+ emits: ["update:visible", "refresh"],
39
+ setup(d, { emit: y }) {
40
+ const { t: i } = ye(), J = M("loadComponents"), G = M("formatDataType"), A = y, c = d;
41
+ let g = de((() => ({
42
+ btnLoading: !1
43
+ }))()), K = x([]), o = x({}), k = x(null), H = {};
44
+ const Q = (a) => a.formColumnCol == null || a.customFiledsComponentes[a.customFiledsComponentes.customComponentName] ? 24 : a.formColumnCol ? a.formColumnCol : 24 / a.formRow, X = (a) => {
45
+ if (["input", "textarea"].includes(a.fieldType))
46
+ return "blur";
47
+ if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(a.fieldType))
48
+ return "change";
49
+ }, Y = (a) => {
50
+ if (!["input", "textarea"].includes(a) && ["multipleSelect", "dateRange"].includes(a))
51
+ return [];
52
+ }, Z = (a, f) => {
53
+ if (["string"].includes(f))
54
+ return a.join(";");
55
+ if (["number"].includes(f))
56
+ return Number(a);
57
+ if (["array"].includes(f))
58
+ return a;
59
+ }, I = (a) => {
60
+ if (["multipleSelect"].includes(a.fieldType))
61
+ return c.data.rowData[a.fieldKey] ? c.data.rowData[a.fieldKey].split(";") : [];
62
+ if (["dateRange"].includes(a.fieldType)) {
63
+ const f = a.fieldKey.split("&");
64
+ return c.data.rowData[a.fieldKey] = f.map((n) => c.data.rowData[n]), c.data.rowData[a.fieldKey];
65
+ }
66
+ return c.data.rowData[a.fieldKey];
67
+ }, ee = (a) => $({ url: c.data.dataItem.requestUrl, method: "post", data: a });
68
+ se(
69
+ () => c.visible,
70
+ async (a, f) => {
71
+ a && (c.data.formList.forEach(async (n) => {
72
+ H[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, o.value[n.fieldKey] = Object.keys(c.data.rowData).length && n.isFormSetValue ? I(n) : Y(n.fieldType);
73
+ const { isFiledCustom: C, customComponentName: h, customComponentUrl: F } = n.customFiledsComponentes;
74
+ if (C && !n.customFiledsComponentes[h]) {
75
+ const p = await J(F, h);
76
+ n.customFiledsComponentes[h] = p;
77
+ }
78
+ }), K.value = c.data.formList || []);
79
+ }
80
+ );
81
+ const le = (a) => {
82
+ v(), a();
83
+ }, v = () => {
84
+ K.value = [], k.value.resetFields(), A("update:visible", !1);
85
+ }, ae = (a) => {
86
+ a && a.validate((f) => {
87
+ if (f) {
88
+ g.btnLoading = !0;
89
+ const { dataItem: n, rowData: C } = c.data, h = n.submitFields.filter((s) => s.matchType == "default").reduce((s, b) => (b.submitFieldType === "string" && (s[b.submitFieldName] = b.matchFieldName.toString()), s), {}), F = n.submitFields.filter((s) => s.matchType == "match").reduce((s, b) => (s[b.submitFieldName] = G(b.submitFieldType, C[b.matchFieldName]), s), {});
90
+ let p = { ...h, ...F, ...o.value };
91
+ Object.keys(p).forEach((s) => {
92
+ s.includes("&") ? p[s].split("&").forEach((U, N) => {
93
+ p[U] = p[s][N];
94
+ }) : Array.isArray(p[s]) && (p[s] = Z(p[s].submitFieldType));
95
+ }), ee(p).then((s) => {
96
+ ElNotification({ title: i("act.tip"), message: i("act.createdSuccessfully"), type: "success", duration: 2500 }), v(), A("refresh"), g.btnLoading = !1;
97
+ }).catch((s) => {
98
+ g.btnLoading = !1;
99
+ }), g.btnLoading = !1;
100
+ }
101
+ });
102
+ };
103
+ return (a, f) => {
104
+ var j;
105
+ const n = m("el-input"), C = m("el-option"), h = m("el-select"), F = m("el-date-picker"), p = m("el-cascader"), s = m("el-switch"), b = m("el-form-item"), U = m("el-col"), N = m("el-row"), te = m("el-form"), E = m("el-button"), oe = m("el-dialog");
106
+ return r(), u(oe, {
107
+ "model-value": c.visible,
108
+ title: c.title,
109
+ top: "5vh",
110
+ width: (j = d.data.formConfig) == null ? void 0 : j.dialogWidth,
111
+ "append-to-body": "",
112
+ "destroy-on-close": "",
113
+ "close-on-click-modal": !1,
114
+ "before-close": le
115
+ }, {
116
+ footer: _(() => [
117
+ B("span", he, [
118
+ T(E, {
119
+ loading: l(g).btnLoading,
120
+ onClick: v
121
+ }, {
122
+ default: _(() => [
123
+ P(w(l(i)("act.cancel")), 1)
124
+ ]),
125
+ _: 1
126
+ }, 8, ["loading"]),
127
+ T(E, {
128
+ type: "primary",
129
+ loading: l(g).btnLoading,
130
+ onClick: f[1] || (f[1] = (S) => ae(l(k)))
131
+ }, {
132
+ default: _(() => [
133
+ P(w(l(i)("act.save")), 1)
134
+ ]),
135
+ _: 1
136
+ }, 8, ["loading"])
137
+ ])
138
+ ]),
139
+ default: _(() => {
140
+ var S, O;
141
+ return [
142
+ T(te, {
143
+ ref_key: "formRef",
144
+ ref: k,
145
+ model: l(o),
146
+ "label-suffix": ":",
147
+ "label-width": (S = d.data.formConfig) == null ? void 0 : S.formLabelWidth,
148
+ "label-position": (O = d.data.formConfig) == null ? void 0 : O.formLabelPosition
149
+ }, {
150
+ default: _(() => [
151
+ T(N, { gutter: 40 }, {
152
+ default: _(() => [
153
+ (r(!0), V(D, null, R(l(K), (e, q) => (r(), u(U, {
154
+ span: Q(e),
155
+ key: q
156
+ }, {
157
+ default: _(() => [
158
+ e.customFiledsComponentes.isFiledCustom ? (r(), V(D, { key: 1 }, [
159
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (r(), u(ne(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
160
+ key: 0,
161
+ fieldCofnigItem: e,
162
+ rowData: c.data.rowData,
163
+ form: l(o),
164
+ "onUpdate:form": f[0] || (f[0] = (t) => ie(o) ? o.value = t : o = t)
165
+ }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (r(), V("div", {
166
+ class: "no-config",
167
+ key: q
168
+ }, [
169
+ B("span", _e, "【" + w(e.fieldName) + "】", 1),
170
+ P(w(l(i)("act.fieldCustom")), 1)
171
+ ]))
172
+ ], 64)) : (r(), u(b, {
173
+ key: 0,
174
+ label: e.fieldName,
175
+ prop: e.fieldKey,
176
+ rules: [{ required: e.isFormFieldRequired, message: l(i)("act.requiredMessage"), trigger: X(e) }]
177
+ }, {
178
+ default: _(() => [
179
+ e.fieldType === "input" ? (r(), u(n, {
180
+ key: 0,
181
+ modelValue: l(o)[e.fieldKey],
182
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
183
+ type: "text",
184
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
185
+ disabled: e.isFormDisabled,
186
+ clearable: ""
187
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (r(), u(n, {
188
+ key: 1,
189
+ modelValue: l(o)[e.fieldKey],
190
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
191
+ type: "textarea",
192
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
193
+ disabled: e.isFormDisabled,
194
+ rows: 4
195
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "multipleSelect" ? (r(), u(h, {
196
+ key: 2,
197
+ modelValue: l(o)[e.fieldKey],
198
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
199
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
200
+ disabled: e.isFormDisabled,
201
+ multiple: "",
202
+ clearable: "",
203
+ filterable: ""
204
+ }, {
205
+ default: _(() => [
206
+ (r(!0), V(D, null, R(e.dataList, (t, L) => (r(), u(C, {
207
+ key: L,
208
+ label: t.key,
209
+ value: t.value
210
+ }, null, 8, ["label", "value"]))), 128))
211
+ ]),
212
+ _: 2
213
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "select" ? (r(), u(h, {
214
+ key: 3,
215
+ modelValue: l(o)[e.fieldKey],
216
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
217
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
218
+ disabled: e.isFormDisabled,
219
+ clearable: "",
220
+ filterable: ""
221
+ }, {
222
+ default: _(() => [
223
+ (r(!0), V(D, null, R(e.dataList, (t, L) => (r(), u(C, {
224
+ key: L,
225
+ label: t.key,
226
+ value: t.value
227
+ }, null, 8, ["label", "value"]))), 128))
228
+ ]),
229
+ _: 2
230
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "date" ? (r(), u(F, {
231
+ key: 4,
232
+ modelValue: l(o)[e.fieldKey],
233
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
234
+ type: e.fieldUiType,
235
+ placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
236
+ "value-format": l(z)[e.fieldUiType],
237
+ disabled: e.isFormDisabled
238
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "value-format", "disabled"])) : e.fieldType === "dateRange" ? (r(), u(F, {
239
+ key: 5,
240
+ modelValue: l(o)[e.fieldKey],
241
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
242
+ type: e.fieldUiType,
243
+ "start-placeholder": l(i)("act.startTime"),
244
+ "end-placeholder": l(i)("act.endTime"),
245
+ "value-format": l(z)[e.fieldUiType],
246
+ disabled: e.isFormDisabled
247
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "value-format", "disabled"])) : e.fieldType === "provinceCascade" ? (r(), u(p, {
248
+ key: 6,
249
+ modelValue: l(o)[e.fieldKey],
250
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
251
+ options: e.dataList,
252
+ props: l(be),
253
+ clearable: "",
254
+ filterable: "",
255
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
256
+ disabled: e.isFormDisabled
257
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (r(), u(s, {
258
+ key: 7,
259
+ modelValue: l(o)[e.fieldKey],
260
+ "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
261
+ "active-value": !0,
262
+ "inactive-value": !1
263
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : re("", !0)
264
+ ]),
265
+ _: 2
266
+ }, 1032, ["label", "prop", "rules"]))
267
+ ]),
268
+ _: 2
269
+ }, 1032, ["span"]))), 128))
270
+ ]),
271
+ _: 1
272
+ })
273
+ ]),
274
+ _: 1
275
+ }, 8, ["model", "label-width", "label-position"])
276
+ ];
277
+ }),
278
+ _: 1
279
+ }, 8, ["model-value", "title", "width"]);
280
+ };
281
+ }
282
+ }, we = /* @__PURE__ */ me(ge, [["__scopeId", "data-v-d2f6f691"]]);
283
+ export {
284
+ we as default
285
+ };