act-plus 1.1.19 → 1.1.21

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.
Files changed (34) hide show
  1. package/act-plus.js +1 -1
  2. package/act-plus.umd.cjs +440 -440
  3. package/lib/{configBtns-3772e689.js → configBtns-9d56fe1b.js} +2 -2
  4. package/lib/{configFileds-d0911c87.js → configFileds-df2b6e7d.js} +3 -3
  5. package/lib/{configForm-ae4b725e.js → configForm-2212ebfa.js} +1 -1
  6. package/lib/{configTable-879063d4.js → configTable-8b2a4509.js} +92 -61
  7. package/lib/{cssMode-6d02ab39.js → cssMode-60916414.js} +1 -1
  8. package/lib/{dialogAddField-d6b18048.js → dialogAddField-9157d3b5.js} +246 -245
  9. package/lib/{dialogConfigBtn-75e37dc9.js → dialogConfigBtn-72c02278.js} +3 -3
  10. package/lib/dialogSiteComponentsParams-63d9dc34.js +71 -0
  11. package/lib/{enum-cc58b8fe.js → enum-ab7125f9.js} +2 -2
  12. package/lib/{freemarker2-205877bf.js → freemarker2-7d1ec253.js} +1 -1
  13. package/lib/{handlebars-2d920faa.js → handlebars-adf29031.js} +1 -1
  14. package/lib/{html-6b99359b.js → html-58c53b1f.js} +1 -1
  15. package/lib/{htmlMode-498c17d9.js → htmlMode-9eeb9724.js} +1 -1
  16. package/lib/{index-aff95ab9.js → index-06fc5662.js} +1 -1
  17. package/lib/{index-fb2754ee.js → index-0a69613f.js} +1 -1
  18. package/lib/{index-68063c4c.js → index-3777f35c.js} +1 -1
  19. package/lib/{index-da0a0bfe.js → index-4ad7a283.js} +40523 -40179
  20. package/lib/index-58369e5d.js +205 -0
  21. package/lib/index-d459ee4c.js +327 -0
  22. package/lib/{javascript-5e40fe11.js → javascript-0b7b04d0.js} +2 -2
  23. package/lib/{jsonMode-2a821e9e.js → jsonMode-9f14ee23.js} +1 -1
  24. package/lib/{liquid-dc78aaf7.js → liquid-4f7d6527.js} +1 -1
  25. package/lib/{python-e55144b2.js → python-009ef2aa.js} +1 -1
  26. package/lib/{razor-1fb88f53.js → razor-3094e84e.js} +1 -1
  27. package/lib/{tsMode-8d12d976.js → tsMode-90da8eb5.js} +1 -1
  28. package/lib/{typescript-97ed77ae.js → typescript-bb20f7ba.js} +1 -1
  29. package/lib/{xml-e843c667.js → xml-9f4bbbf1.js} +1 -1
  30. package/lib/{yaml-62bcf3fa.js → yaml-df4caa74.js} +1 -1
  31. package/package.json +1 -1
  32. package/style.css +1 -1
  33. package/lib/index-7c264775.js +0 -192
  34. package/lib/index-a36b2284.js +0 -304
@@ -0,0 +1,205 @@
1
+ import { defineAsyncComponent as W, ref as v, watch as K, resolveComponent as d, unref as o, openBlock as a, createElementBlock as h, createVNode as j, normalizeStyle as G, withCtx as m, Fragment as C, renderList as g, withDirectives as J, createBlock as n, mergeProps as y, withKeys as U, withModifiers as x, createCommentVNode as _, vShow as X, createTextVNode as N, toDisplayString as P } from "vue";
2
+ import { _ as Z, u as ee, P as le, a as te } from "./index-4ad7a283.js";
3
+ import "vue-router";
4
+ import "element-plus";
5
+ const oe = {
6
+ key: 0,
7
+ class: "search-module-container"
8
+ }, ae = {
9
+ __name: "index",
10
+ props: {
11
+ data: { type: Object, default: () => ({}) }
12
+ },
13
+ emits: ["reset", "search"],
14
+ setup(E, { emit: I }) {
15
+ const M = W(() => import("./index-e2f2023d.js")), { t: u } = ee(), k = I, c = E;
16
+ let p = v([]), q = v([]), V = v(!0);
17
+ const Q = (r) => c.data.tableConfig.isExpandQuery && V.value ? c.data.tableConfig.tableQueryRowWidth > r + 1 : !0, i = (r) => new Function("", r.fieldUiProps)() || {}, D = (r) => {
18
+ p.value = (r || []).filter((t) => t.useScenes.includes("tableSearch"));
19
+ }, R = (r) => {
20
+ const t = (r || []).filter((s) => s.permissionCode === 1001);
21
+ q.value = [...t, { btnName: u("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset" }];
22
+ };
23
+ K(
24
+ () => c.data,
25
+ (r, t) => {
26
+ D(r.fields), R(r.buttons);
27
+ },
28
+ { immediate: !0 }
29
+ );
30
+ const f = (r) => {
31
+ switch (r.permissionCode) {
32
+ case "9999":
33
+ p.value.forEach((s) => {
34
+ s.fieldType.includes("&") ? s.queryValue = [] : s.queryValue = void 0;
35
+ }), k("reset", []);
36
+ break;
37
+ default:
38
+ const t = p.value.filter((s) => !!s.queryValue);
39
+ k("search", t);
40
+ break;
41
+ }
42
+ }, Y = () => {
43
+ V.value = !V.value;
44
+ };
45
+ return (r, t) => {
46
+ var S;
47
+ const s = d("el-input"), z = d("el-option"), A = d("el-select"), F = d("el-select-v2"), L = d("el-cascader"), w = d("el-date-picker"), T = d("el-form-item"), O = d("a-svg-icon"), $ = d("el-button"), B = d("el-form");
48
+ return o(p) && o(p).length ? (a(), h("div", oe, [
49
+ j(B, {
50
+ style: G({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
51
+ class: "form-content",
52
+ ref: "elForm",
53
+ "label-suffix": ":",
54
+ "label-position": "right"
55
+ }, {
56
+ default: m(() => [
57
+ (a(!0), h(C, null, g(o(p), (e, b) => J((a(), n(T, {
58
+ key: b,
59
+ class: "search-form-item",
60
+ "label-width": c.data.tableConfig.tableQueryLabelWidth,
61
+ label: e.fieldName
62
+ }, {
63
+ default: m(() => [
64
+ e.fieldType === "input" || e.fieldType === "editor" ? (a(), n(s, y({
65
+ key: 0,
66
+ modelValue: e.queryValue,
67
+ "onUpdate:modelValue": (l) => e.queryValue = l,
68
+ placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
69
+ clearable: "",
70
+ ref_for: !0
71
+ }, i(e), {
72
+ onKeyup: t[0] || (t[0] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
73
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
74
+ e.fieldType === "inputNumber" ? (a(), n(o(M), y({
75
+ key: 1,
76
+ modelValue: e.queryValue,
77
+ "onUpdate:modelValue": (l) => e.queryValue = l,
78
+ placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
79
+ clearable: "",
80
+ onKeyup: t[1] || (t[1] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
81
+ ref_for: !0
82
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (a(), n(A, y({
83
+ key: 2,
84
+ modelValue: e.queryValue,
85
+ "onUpdate:modelValue": (l) => e.queryValue = l,
86
+ placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
87
+ clearable: "",
88
+ filterable: "",
89
+ ref_for: !0
90
+ }, i(e), {
91
+ multiple: e.fieldType === "multipleSelect",
92
+ "collapse-tags": e.fieldType === "multipleSelect",
93
+ "collapse-tags-tooltip": e.fieldType === "multipleSelect",
94
+ onChange: t[2] || (t[2] = (l) => f({ permissionCode: 1001 }))
95
+ }), {
96
+ default: m(() => [
97
+ (a(!0), h(C, null, g(e.dataList, (l, H) => (a(), n(z, {
98
+ key: H,
99
+ label: l.key,
100
+ value: l.value
101
+ }, null, 8, ["label", "value"]))), 128))
102
+ ]),
103
+ _: 2
104
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (a(), n(F, y({
105
+ key: 3,
106
+ modelValue: e.queryValue,
107
+ "onUpdate:modelValue": (l) => e.queryValue = l,
108
+ options: e.dataList,
109
+ props: { ...o(le) },
110
+ placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
111
+ clearable: "",
112
+ filterable: "",
113
+ ref_for: !0
114
+ }, i(e), {
115
+ "collapse-tags": e.fieldType === "virtualizedMultipleSelect",
116
+ "collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
117
+ multiple: e.fieldType === "virtualizedMultipleSelect",
118
+ onChange: t[3] || (t[3] = (l) => f({ permissionCode: 1001 }))
119
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (a(), n(L, y({
120
+ key: 4,
121
+ modelValue: e.queryValue,
122
+ "onUpdate:modelValue": (l) => e.queryValue = l,
123
+ options: e.dataList,
124
+ props: { ...o(te), [e.fieldUiType]: !0 },
125
+ clearable: "",
126
+ filterable: "",
127
+ placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
128
+ ref_for: !0
129
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (a(), n(w, y({
130
+ key: 5,
131
+ modelValue: e.queryValue,
132
+ "onUpdate:modelValue": (l) => e.queryValue = l,
133
+ type: "date",
134
+ placeholder: `${o(u)("act.selectPlaceholder")}${o(u)("act.time")}`,
135
+ "value-format": "YYYY-MM-DD HH:mm:ss",
136
+ ref_for: !0
137
+ }, i(e), {
138
+ onChange: t[4] || (t[4] = (l) => f({ permissionCode: 1001 }))
139
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (a(), n(w, y({
140
+ key: 6,
141
+ modelValue: e.queryValue,
142
+ "onUpdate:modelValue": (l) => e.queryValue = l,
143
+ type: "daterange",
144
+ "start-placeholder": o(u)("act.startTime"),
145
+ "end-placeholder": o(u)("act.endTime"),
146
+ "value-format": "YYYY-MM-DD HH:mm:ss",
147
+ ref_for: !0
148
+ }, i(e), {
149
+ onChange: t[5] || (t[5] = (l) => f({ permissionCode: 1001 }))
150
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : _("", !0)
151
+ ]),
152
+ _: 2
153
+ }, 1032, ["label-width", "label"])), [
154
+ [X, Q(b)]
155
+ ])), 128)),
156
+ o(p).length ? (a(), n(T, {
157
+ key: 0,
158
+ class: "search-form-btn",
159
+ "label-width": "0"
160
+ }, {
161
+ default: m(() => [
162
+ (a(!0), h(C, null, g(o(q), (e, b) => (a(), n($, {
163
+ key: b,
164
+ type: e.btnColor,
165
+ onClick: (l) => f(e)
166
+ }, {
167
+ default: m(() => [
168
+ e.btnIcon ? (a(), n(O, {
169
+ key: 0,
170
+ class: "mr6",
171
+ name: e.btnIcon,
172
+ width: "12",
173
+ height: "12",
174
+ color: "#fff"
175
+ }, null, 8, ["name"])) : _("", !0),
176
+ N(" " + P(e.btnName), 1)
177
+ ]),
178
+ _: 2
179
+ }, 1032, ["type", "onClick"]))), 128))
180
+ ]),
181
+ _: 1
182
+ })) : _("", !0)
183
+ ]),
184
+ _: 1
185
+ }, 8, ["style"]),
186
+ c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (a(), n($, {
187
+ key: 0,
188
+ class: "expand",
189
+ text: "",
190
+ size: "small",
191
+ icon: o(V) ? "ArrowDown" : "ArrowUp",
192
+ onClick: Y
193
+ }, {
194
+ default: m(() => [
195
+ N(P(o(V) ? "展开" : "收起"), 1)
196
+ ]),
197
+ _: 1
198
+ }, 8, ["icon"])) : _("", !0)
199
+ ])) : _("", !0);
200
+ };
201
+ }
202
+ }, se = /* @__PURE__ */ Z(ae, [["__scopeId", "data-v-851e4602"]]);
203
+ export {
204
+ se as default
205
+ };
@@ -0,0 +1,327 @@
1
+ import { defineAsyncComponent as L, inject as R, reactive as fe, ref as $, watch as me, resolveComponent as y, openBlock as n, createBlock as p, withCtx as g, createElementVNode as H, createVNode as T, unref as l, createTextVNode as x, toDisplayString as K, createElementBlock as w, Fragment as A, renderList as W, mergeProps as h, createCommentVNode as J, resolveDynamicComponent as ye, isRef as be, toRaw as _e } from "vue";
2
+ import { b as he, e as ge, r as Ve, c as Fe, _ as Ce, u as De, P as Te, a as Ke } from "./index-4ad7a283.js";
3
+ import { ElMessage as G, ElNotification as we } from "element-plus";
4
+ import "vue-router";
5
+ const M = he.create({
6
+ baseURL: "",
7
+ // ""
8
+ timeout: 15e3
9
+ });
10
+ M.interceptors.request.use(
11
+ (r) => {
12
+ let b = sessionStorage.getItem("accessToken");
13
+ return b && (r.headers.Authorization = "Bearer " + b), r.headers["Content-Type"] != "application/x-www-form-urlencoded" && (r.data = { ...r.data }, Reflect.has(r.data, "dynamicFilters") && (r.data.dynamicFilters = ge(JSON.stringify(r.data.dynamicFilters)))), r;
14
+ },
15
+ (r) => Promise.reject(r)
16
+ );
17
+ M.interceptors.response.use(
18
+ (r) => {
19
+ const b = r.data;
20
+ if (b.code == 200)
21
+ return b;
22
+ if (b.code == 401)
23
+ sessionStorage.clear(), Ve.replace("/"), Fe(), G.error({ title: "错误", message: "登陆超时,请重新登录" });
24
+ else
25
+ return G.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
26
+ },
27
+ (r) => {
28
+ if (r.response.status != -1)
29
+ return Promise.reject(r);
30
+ }
31
+ );
32
+ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
33
+ __name: "index",
34
+ props: {
35
+ visible: { type: Boolean, default: !1 },
36
+ title: { type: String, default: "" },
37
+ data: { type: Object, default: () => ({}) }
38
+ },
39
+ emits: ["update:visible", "refresh"],
40
+ setup(r, { emit: b }) {
41
+ const Q = L(() => import("./index-e2f2023d.js")), X = L(() => import("./index-4ad7a283.js").then((o) => o.n)), Z = L(() => import("./index-4ad7a283.js").then((o) => o.l)), { t: c } = De(), I = R("loadComponents"), E = R("formatDataType"), O = R("globalProps"), j = b, u = r;
42
+ let C = fe((() => ({
43
+ btnLoading: !1
44
+ }))()), N = $([]), a = $({}), U = $(null), ee = {};
45
+ const _ = (o) => new Function("", o.fieldUiProps)() || {}, le = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, oe = (o) => {
46
+ if (["input", "textarea"].includes(o.fieldType))
47
+ return "blur";
48
+ if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
49
+ return "change";
50
+ }, ae = (o) => {
51
+ if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
52
+ return [];
53
+ }, te = (o, f) => {
54
+ if (["string"].includes(f))
55
+ return o.join(";");
56
+ if (["number"].includes(f))
57
+ return Number(o);
58
+ if (["array"].includes(f))
59
+ return o;
60
+ }, de = (o) => {
61
+ if (["multipleSelect"].includes(o.fieldType))
62
+ return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
63
+ if (["dateRange"].includes(o.fieldType)) {
64
+ const f = o.fieldKey.split("&");
65
+ return u.data.rowData[o.fieldKey] = f.map((s) => u.data.rowData[s]), u.data.rowData[o.fieldKey];
66
+ }
67
+ return u.data.rowData[o.fieldKey];
68
+ }, re = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
69
+ me(
70
+ () => u.visible,
71
+ async (o, f) => {
72
+ o && (u.data.formList.sort((s, V) => s.sort - V.sort).forEach(async (s) => {
73
+ ee[s.fieldKey] = { submitFieldType: s.fieldSubmitType, isFormSetValue: s.isFormSetValue }, a.value[s.fieldKey] = Object.keys(u.data.rowData).length && s.isFormSetValue ? de(s) : ae(s.fieldType);
74
+ const { isFiledCustom: V, customComponentName: m, customComponentUrl: D } = s.customFiledsComponentes;
75
+ if (V && !s.customFiledsComponentes[m]) {
76
+ const F = await I(D, m);
77
+ s.customFiledsComponentes[m] = F;
78
+ }
79
+ }), console.log(u.data.formList), N.value = u.data.formList || []);
80
+ }
81
+ );
82
+ const se = (o) => {
83
+ k(), o();
84
+ }, k = () => {
85
+ N.value = [], U.value.resetFields(), j("update:visible", !1);
86
+ }, ne = (o) => {
87
+ o && o.validate((f) => {
88
+ if (f) {
89
+ C.btnLoading = !0;
90
+ const { dataItem: s, rowData: V } = u.data;
91
+ let m = { ..._e(a.value) };
92
+ Object.keys(m).forEach((d) => {
93
+ d.includes("&") ? m[d].split("&").forEach((P, S) => {
94
+ m[P] = m[d][S];
95
+ }) : Array.isArray(m[d]) && (m[d] = te(m[d], "string"));
96
+ });
97
+ const D = s.submitFields.filter((d) => d.matchType == "default").reduce((d, i) => (i.submitFieldType === "string" && (d[i.submitFieldName] = i.matchFieldName.toString()), d), {}), F = s.submitFields.filter((d) => d.matchType == "match").reduce((d, i) => (Reflect.has(i, "submitFieldMatchOrigin") && i.submitFieldMatchOrigin != "rowData" ? Reflect.has(O.matchData, i.submitFieldMatchOrigin) && (d[i.submitFieldName] = E(i.submitFieldType, O.matchData[i.submitFieldMatchOrigin][i.matchFieldName])) : d[i.submitFieldName] = E(i.submitFieldType, V[i.matchFieldName]), d), {});
98
+ re({
99
+ ...m,
100
+ ...D,
101
+ ...F
102
+ }).then((d) => {
103
+ try {
104
+ we({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), k(), j("refresh");
105
+ } catch (i) {
106
+ console.error(i);
107
+ }
108
+ C.btnLoading = !1;
109
+ }).catch((d) => {
110
+ console.error(d), C.btnLoading = !1;
111
+ });
112
+ }
113
+ });
114
+ };
115
+ return (o, f) => {
116
+ var q;
117
+ const s = y("el-input"), V = y("el-option"), m = y("el-select"), D = y("el-select-v2"), F = y("el-date-picker"), d = y("el-cascader"), i = y("el-switch"), P = y("el-form-item"), S = y("el-col"), ie = y("el-row"), ce = y("el-form"), Y = y("el-button"), ue = y("el-dialog");
118
+ return n(), p(ue, {
119
+ "model-value": u.visible,
120
+ title: u.title,
121
+ top: "5vh",
122
+ width: (q = r.data.formConfig) == null ? void 0 : q.dialogWidth,
123
+ "append-to-body": "",
124
+ "destroy-on-close": "",
125
+ "close-on-click-modal": !1,
126
+ "before-close": se
127
+ }, {
128
+ footer: g(() => [
129
+ H("span", Ue, [
130
+ T(Y, {
131
+ loading: l(C).btnLoading,
132
+ onClick: k
133
+ }, {
134
+ default: g(() => [
135
+ x(K(l(c)("act.cancel")), 1)
136
+ ]),
137
+ _: 1
138
+ }, 8, ["loading"]),
139
+ T(Y, {
140
+ type: "primary",
141
+ loading: l(C).btnLoading,
142
+ onClick: f[1] || (f[1] = (v) => ne(l(U)))
143
+ }, {
144
+ default: g(() => [
145
+ x(K(l(c)("act.save")), 1)
146
+ ]),
147
+ _: 1
148
+ }, 8, ["loading"])
149
+ ])
150
+ ]),
151
+ default: g(() => {
152
+ var v, B;
153
+ return [
154
+ T(ce, {
155
+ ref_key: "formRef",
156
+ ref: U,
157
+ model: l(a),
158
+ "label-suffix": ":",
159
+ "label-width": (v = r.data.formConfig) == null ? void 0 : v.formLabelWidth,
160
+ "label-position": (B = r.data.formConfig) == null ? void 0 : B.formLabelPosition
161
+ }, {
162
+ default: g(() => [
163
+ T(ie, { gutter: 40 }, {
164
+ default: g(() => [
165
+ (n(!0), w(A, null, W(l(N), (e, z) => (n(), p(S, {
166
+ span: le(e),
167
+ key: z
168
+ }, {
169
+ default: g(() => [
170
+ e.customFiledsComponentes.isFiledCustom ? (n(), w(A, { key: 1 }, [
171
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (n(), p(ye(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
172
+ key: 0,
173
+ fieldCofnigItem: e,
174
+ rowData: u.data.rowData,
175
+ form: l(a),
176
+ "onUpdate:form": f[0] || (f[0] = (t) => be(a) ? a.value = t : a = t)
177
+ }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (n(), w("div", {
178
+ class: "no-config",
179
+ key: z
180
+ }, [
181
+ H("span", Ne, "【" + K(e.fieldName) + "】", 1),
182
+ x(K(l(c)("act.fieldCustom")), 1)
183
+ ]))
184
+ ], 64)) : (n(), p(P, {
185
+ key: 0,
186
+ label: e.fieldName,
187
+ prop: e.fieldKey,
188
+ rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: oe(e) }]
189
+ }, {
190
+ default: g(() => [
191
+ e.fieldType === "input" ? (n(), p(s, h({
192
+ key: 0,
193
+ modelValue: l(a)[e.fieldKey],
194
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
195
+ placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
196
+ clearable: "",
197
+ ref_for: !0
198
+ }, _(e), {
199
+ disabled: e.isFormDisabled
200
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
201
+ e.fieldType === "inputNumber" ? (n(), p(l(Q), h({
202
+ key: 1,
203
+ modelValue: l(a)[e.fieldKey],
204
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
205
+ placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
206
+ clearable: "",
207
+ ref_for: !0
208
+ }, _(e), {
209
+ disabled: e.isFormDisabled
210
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (n(), p(s, h({
211
+ key: 2,
212
+ modelValue: l(a)[e.fieldKey],
213
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
214
+ placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
215
+ rows: 4,
216
+ ref_for: !0
217
+ }, _(e), {
218
+ type: "textarea",
219
+ disabled: e.isFormDisabled
220
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (n(), p(m, h({
221
+ key: 3,
222
+ modelValue: l(a)[e.fieldKey],
223
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
224
+ placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
225
+ clearable: "",
226
+ filterable: "",
227
+ ref_for: !0
228
+ }, _(e), {
229
+ multiple: e.fieldType === "multipleSelect",
230
+ disabled: e.isFormDisabled
231
+ }), {
232
+ default: g(() => [
233
+ (n(!0), w(A, null, W(e.dataList, (t, pe) => (n(), p(V, {
234
+ key: pe,
235
+ label: t.key,
236
+ value: t.value
237
+ }, null, 8, ["label", "value"]))), 128))
238
+ ]),
239
+ _: 2
240
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), p(D, h({
241
+ key: 4,
242
+ modelValue: l(a)[e.fieldKey],
243
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
244
+ options: e.dataList,
245
+ props: { ...l(Te) },
246
+ placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
247
+ clearable: "",
248
+ filterable: "",
249
+ ref_for: !0
250
+ }, _(e), {
251
+ disabled: e.isFormDisabled,
252
+ multiple: e.fieldType === "virtualizedMultipleSelect"
253
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (n(), p(F, h({
254
+ key: 5,
255
+ modelValue: l(a)[e.fieldKey],
256
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
257
+ type: "date",
258
+ placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
259
+ "value-format": "YYYY-MM-DD HH:mm:ss",
260
+ ref_for: !0
261
+ }, _(e), {
262
+ disabled: e.isFormDisabled
263
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (n(), p(F, h({
264
+ key: 6,
265
+ modelValue: l(a)[e.fieldKey],
266
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
267
+ type: "daterange",
268
+ "start-placeholder": l(c)("act.startTime"),
269
+ "end-placeholder": l(c)("act.endTime"),
270
+ "value-format": "YYYY-MM-DD HH:mm:ss",
271
+ ref_for: !0
272
+ }, _(e), {
273
+ disabled: e.isFormDisabled
274
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (n(), p(d, h({
275
+ key: 7,
276
+ modelValue: l(a)[e.fieldKey],
277
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
278
+ options: e.dataList,
279
+ props: l(Ke),
280
+ clearable: "",
281
+ filterable: "",
282
+ placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
283
+ ref_for: !0
284
+ }, _(e), {
285
+ disabled: e.isFormDisabled
286
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (n(), p(i, {
287
+ key: 8,
288
+ modelValue: l(a)[e.fieldKey],
289
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
290
+ "active-value": !0,
291
+ "inactive-value": !1
292
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (n(), p(l(X), h({
293
+ key: 9,
294
+ class: "form-upload",
295
+ modelValue: l(a)[e.fieldKey],
296
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
297
+ ref_for: !0
298
+ }, _(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "editor" ? (n(), p(l(Z), h({
299
+ key: 10,
300
+ modelValue: l(a)[e.fieldKey],
301
+ "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
302
+ disabled: e.isFormDisabled,
303
+ placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
304
+ ref_for: !0
305
+ }, _(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : J("", !0)
306
+ ]),
307
+ _: 2
308
+ }, 1032, ["label", "prop", "rules"]))
309
+ ]),
310
+ _: 2
311
+ }, 1032, ["span"]))), 128))
312
+ ]),
313
+ _: 1
314
+ })
315
+ ]),
316
+ _: 1
317
+ }, 8, ["model", "label-width", "label-position"])
318
+ ];
319
+ }),
320
+ _: 1
321
+ }, 8, ["model-value", "title", "width"]);
322
+ };
323
+ }
324
+ }, $e = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-4734dc60"]]);
325
+ export {
326
+ $e as default
327
+ };
@@ -1,5 +1,5 @@
1
- import { conf as t, language as e } from "./typescript-97ed77ae.js";
2
- import "./index-da0a0bfe.js";
1
+ import { conf as t, language as e } from "./typescript-bb20f7ba.js";
2
+ import "./index-4ad7a283.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  import "element-plus";
@@ -1,7 +1,7 @@
1
1
  var Ge = Object.defineProperty;
2
2
  var Qe = (e, n, i) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var A = (e, n, i) => (Qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ze } from "./index-da0a0bfe.js";
4
+ import { m as Ze } from "./index-4ad7a283.js";
5
5
  import "vue";
6
6
  import "vue-router";
7
7
  import "element-plus";
@@ -1,4 +1,4 @@
1
- import { m as d } from "./index-da0a0bfe.js";
1
+ import { m as d } from "./index-4ad7a283.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  import "element-plus";
@@ -1,4 +1,4 @@
1
- import { m as a } from "./index-da0a0bfe.js";
1
+ import { m as a } from "./index-4ad7a283.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  import "element-plus";
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-da0a0bfe.js";
1
+ import { m as s } from "./index-4ad7a283.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  import "element-plus";
@@ -1,7 +1,7 @@
1
1
  var M = Object.defineProperty;
2
2
  var K = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var _ = (e, t, r) => (K(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { t as R, m as E } from "./index-da0a0bfe.js";
4
+ import { t as R, m as E } from "./index-4ad7a283.js";
5
5
  import "vue";
6
6
  import "vue-router";
7
7
  import "element-plus";
@@ -1,4 +1,4 @@
1
- import { m as c } from "./index-da0a0bfe.js";
1
+ import { m as c } from "./index-4ad7a283.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  import "element-plus";
@@ -1,4 +1,4 @@
1
- import { m } from "./index-da0a0bfe.js";
1
+ import { m } from "./index-4ad7a283.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  import "element-plus";
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-da0a0bfe.js";
1
+ import { m as i } from "./index-4ad7a283.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  import "element-plus";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "private": false,
5
5
  "description": "act config",
6
6
  "main": "act-plus.js",