act-plus 1.1.32 → 1.1.34
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/act-plus.js +1 -1
- package/act-plus.umd.cjs +61 -61
- package/lib/{configBtns-002aa16e.js → configBtns-5904b50e.js} +2 -2
- package/lib/{configFileds-2f69d302.js → configFileds-e6a87785.js} +3 -3
- package/lib/{configForm-2212ebfa.js → configForm-e3af844f.js} +1 -1
- package/lib/{configTable-1d5552a5.js → configTable-2d2e447b.js} +2 -2
- package/lib/{dialogAddField-8008630e.js → dialogAddField-956517f7.js} +181 -147
- package/lib/{dialogConfigBtn-53934481.js → dialogConfigBtn-a674c036.js} +50 -49
- package/lib/{dialogSiteComponentsParams-ac4d5d57.js → dialogSiteComponentsParams-5b882068.js} +1 -1
- package/lib/{enum-ab7125f9.js → enum-95788c42.js} +14 -13
- package/lib/{index-75b0d7b3.js → index-4567bcd5.js} +24 -20
- package/lib/index-7abb8f31.js +105 -0
- package/lib/{index-2937c2b5.js → index-85d03e1a.js} +2 -2
- package/lib/{index-73081ec8.js → index-b9e046e9.js} +10 -8
- package/lib/{index-0098f472.js → index-cb3083b6.js} +1590 -1587
- package/lib/index-daace5c5.js +326 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-4b8e69bd.js +0 -92
- package/lib/index-eecc7d6f.js +0 -305
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { defineAsyncComponent as K, inject as C, reactive as ye, ref as R, watch as be, resolveComponent as m, resolveDirective as _e, openBlock as d, createBlock as i, withCtx as h, createElementVNode as W, createVNode as x, unref as l, createTextVNode as A, toDisplayString as w, withDirectives as he, createElementBlock as D, Fragment as N, renderList as M, mergeProps as b, createCommentVNode as G, resolveDynamicComponent as Ve, isRef as ge, toRaw as Fe } from "vue";
|
|
2
|
+
import { _ as Ce, u as De, P as Te, a as Ke } from "./index-cb3083b6.js";
|
|
3
|
+
import { ElNotification as we } from "element-plus";
|
|
4
|
+
import "vue-router";
|
|
5
|
+
import "js-base64";
|
|
6
|
+
import "monaco-editor";
|
|
7
|
+
const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
visible: { type: Boolean, default: !1 },
|
|
11
|
+
title: { type: String, default: "" },
|
|
12
|
+
data: { type: Object, default: () => ({}) }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:visible", "refresh"],
|
|
15
|
+
setup(T, { emit: J }) {
|
|
16
|
+
const Q = K(() => import("./index-cb3083b6.js").then((o) => o.f)), X = K(() => import("./index-7abb8f31.js")), Z = K(() => import("./index-cb3083b6.js").then((o) => o.e)), I = K(() => import("./index-cb3083b6.js").then((o) => o.d)), { t: c } = De(), E = C("request"), ee = C("loadComponents"), O = C("formatDataType"), q = C("globalProps"), le = C("stringToBoolean"), Y = J, f = T;
|
|
17
|
+
let g = ye((() => ({
|
|
18
|
+
btnLoading: !1
|
|
19
|
+
}))()), U = R([]), t = R({}), k = R(null), oe = {};
|
|
20
|
+
const y = (o) => new Function("", o.fieldUiProps)() || {}, ae = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, te = (o) => {
|
|
21
|
+
if (["input", "textarea"].includes(o.fieldType))
|
|
22
|
+
return "blur";
|
|
23
|
+
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
|
|
24
|
+
return "change";
|
|
25
|
+
}, de = (o) => {
|
|
26
|
+
if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
|
|
27
|
+
return [];
|
|
28
|
+
}, re = (o, u) => {
|
|
29
|
+
if (["string"].includes(u))
|
|
30
|
+
return o.join(";");
|
|
31
|
+
if (["number"].includes(u))
|
|
32
|
+
return Number(o);
|
|
33
|
+
if (["array"].includes(u))
|
|
34
|
+
return o;
|
|
35
|
+
}, ne = (o) => {
|
|
36
|
+
if (["multipleSelect"].includes(o.fieldType))
|
|
37
|
+
return f.data.rowData[o.fieldKey] ? f.data.rowData[o.fieldKey].split(";") : [];
|
|
38
|
+
if (["dateRange"].includes(o.fieldType)) {
|
|
39
|
+
const n = o.fieldKey.split("&");
|
|
40
|
+
return f.data.rowData[o.fieldKey] = n.map((_) => f.data.rowData[_]), f.data.rowData[o.fieldKey];
|
|
41
|
+
}
|
|
42
|
+
const u = f.data.rowData[o.fieldKey];
|
|
43
|
+
return u === "true" || u === "false" ? le(u) : u;
|
|
44
|
+
}, se = (o) => E({ url: f.data.dataItem.requestUrl, method: "post", data: o });
|
|
45
|
+
be(
|
|
46
|
+
() => f.visible,
|
|
47
|
+
async (o, u) => {
|
|
48
|
+
o && (f.data.formList.sort((n, _) => n.sort - _.sort).forEach(async (n) => {
|
|
49
|
+
oe[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, t.value[n.fieldKey] = Object.keys(f.data.rowData).length && n.isFormSetValue ? ne(n) : de(n.fieldType);
|
|
50
|
+
const { isFiledCustom: _, customComponentName: p, customComponentUrl: F } = n.customFiledsComponentes;
|
|
51
|
+
if (_ && !n.customFiledsComponentes[p]) {
|
|
52
|
+
const V = await ee(F, p);
|
|
53
|
+
n.customFiledsComponentes[p] = V;
|
|
54
|
+
}
|
|
55
|
+
}), U.value = f.data.formList || []);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
const ie = (o) => {
|
|
59
|
+
v(), o();
|
|
60
|
+
}, v = () => {
|
|
61
|
+
U.value = [], k.value.resetFields(), Y("update:visible", !1);
|
|
62
|
+
}, ce = (o) => {
|
|
63
|
+
o && o.validate((u) => {
|
|
64
|
+
if (u) {
|
|
65
|
+
g.btnLoading = !0;
|
|
66
|
+
const { dataItem: n, rowData: _ } = f.data;
|
|
67
|
+
let p = { ...Fe(t.value) };
|
|
68
|
+
Object.keys(p).forEach((r) => {
|
|
69
|
+
r.includes("&") ? p[r].split("&").forEach((P, S) => {
|
|
70
|
+
p[P] = p[r][S];
|
|
71
|
+
}) : Array.isArray(p[r]) && (p[r] = re(p[r], "string"));
|
|
72
|
+
});
|
|
73
|
+
const F = n.submitFields.filter((r) => r.matchType == "default").reduce((r, s) => (s.submitFieldType === "string" && (r[s.submitFieldName] = s.matchFieldName.toString()), r), {}), V = n.submitFields.filter((r) => r.matchType == "match").reduce((r, s) => (Reflect.has(s, "submitFieldMatchOrigin") && s.submitFieldMatchOrigin != "rowData" ? Reflect.has(q.matchData, s.submitFieldMatchOrigin) && (r[s.submitFieldName] = O(s.submitFieldType, q.matchData[s.submitFieldMatchOrigin][s.matchFieldName])) : r[s.submitFieldName] = O(s.submitFieldType, _[s.matchFieldName]), r), {});
|
|
74
|
+
se({
|
|
75
|
+
...p,
|
|
76
|
+
...F,
|
|
77
|
+
...V
|
|
78
|
+
}).then((r) => {
|
|
79
|
+
try {
|
|
80
|
+
we({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), v(), Y("refresh");
|
|
81
|
+
} catch (s) {
|
|
82
|
+
console.error(s);
|
|
83
|
+
}
|
|
84
|
+
g.btnLoading = !1;
|
|
85
|
+
}).catch((r) => {
|
|
86
|
+
console.error(r), g.btnLoading = !1;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
return (o, u) => {
|
|
92
|
+
var j;
|
|
93
|
+
const n = m("el-input"), _ = m("el-option"), p = m("el-select"), F = m("el-select-v2"), V = m("el-date-picker"), r = m("el-cascader"), s = m("el-switch"), P = m("el-form-item"), S = m("el-col"), ue = m("el-row"), fe = m("el-form"), B = m("el-button"), pe = m("el-dialog"), me = _e("debounce");
|
|
94
|
+
return d(), i(pe, {
|
|
95
|
+
"model-value": f.visible,
|
|
96
|
+
title: f.title,
|
|
97
|
+
top: "5vh",
|
|
98
|
+
width: (j = T.data.formConfig) == null ? void 0 : j.dialogWidth,
|
|
99
|
+
draggable: "",
|
|
100
|
+
overflow: "",
|
|
101
|
+
"append-to-body": "",
|
|
102
|
+
"destroy-on-close": "",
|
|
103
|
+
"close-on-click-modal": !1,
|
|
104
|
+
"before-close": ie
|
|
105
|
+
}, {
|
|
106
|
+
footer: h(() => [
|
|
107
|
+
W("span", Ue, [
|
|
108
|
+
x(B, {
|
|
109
|
+
loading: l(g).btnLoading,
|
|
110
|
+
onClick: v
|
|
111
|
+
}, {
|
|
112
|
+
default: h(() => [
|
|
113
|
+
A(w(l(c)("act.cancel")), 1)
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["loading"]),
|
|
117
|
+
he((d(), i(B, {
|
|
118
|
+
type: "primary",
|
|
119
|
+
loading: l(g).btnLoading,
|
|
120
|
+
onClick: u[1] || (u[1] = (L) => ce(l(k)))
|
|
121
|
+
}, {
|
|
122
|
+
default: h(() => [
|
|
123
|
+
A(w(l(c)("act.save")), 1)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["loading"])), [
|
|
127
|
+
[me]
|
|
128
|
+
])
|
|
129
|
+
])
|
|
130
|
+
]),
|
|
131
|
+
default: h(() => {
|
|
132
|
+
var L, H;
|
|
133
|
+
return [
|
|
134
|
+
x(fe, {
|
|
135
|
+
ref_key: "formRef",
|
|
136
|
+
ref: k,
|
|
137
|
+
model: l(t),
|
|
138
|
+
"label-suffix": ":",
|
|
139
|
+
"label-width": (L = T.data.formConfig) == null ? void 0 : L.formLabelWidth,
|
|
140
|
+
"label-position": (H = T.data.formConfig) == null ? void 0 : H.formLabelPosition
|
|
141
|
+
}, {
|
|
142
|
+
default: h(() => [
|
|
143
|
+
x(ue, { gutter: 40 }, {
|
|
144
|
+
default: h(() => [
|
|
145
|
+
(d(!0), D(N, null, M(l(U), (e, z) => (d(), i(S, {
|
|
146
|
+
span: ae(e),
|
|
147
|
+
key: z
|
|
148
|
+
}, {
|
|
149
|
+
default: h(() => [
|
|
150
|
+
e.customFiledsComponentes.isFiledCustom ? (d(), D(N, { key: 1 }, [
|
|
151
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), i(Ve(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
152
|
+
key: 0,
|
|
153
|
+
fieldCofnigItem: e,
|
|
154
|
+
rowData: f.data.rowData,
|
|
155
|
+
form: l(t),
|
|
156
|
+
"onUpdate:form": u[0] || (u[0] = (a) => ge(t) ? t.value = a : t = a)
|
|
157
|
+
}, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (d(), D("div", {
|
|
158
|
+
class: "no-config",
|
|
159
|
+
key: z
|
|
160
|
+
}, [
|
|
161
|
+
W("span", Ne, "【" + w(e.fieldName) + "】", 1),
|
|
162
|
+
A(w(l(c)("act.fieldCustom")), 1)
|
|
163
|
+
]))
|
|
164
|
+
], 64)) : (d(), i(P, {
|
|
165
|
+
key: 0,
|
|
166
|
+
label: e.fieldName,
|
|
167
|
+
prop: e.fieldKey,
|
|
168
|
+
rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: te(e) }]
|
|
169
|
+
}, {
|
|
170
|
+
default: h(() => [
|
|
171
|
+
e.fieldType === "input" ? (d(), i(n, b({
|
|
172
|
+
key: 0,
|
|
173
|
+
modelValue: l(t)[e.fieldKey],
|
|
174
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
175
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
176
|
+
clearable: "",
|
|
177
|
+
ref_for: !0
|
|
178
|
+
}, y(e), {
|
|
179
|
+
disabled: e.isFormDisabled
|
|
180
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : G("", !0),
|
|
181
|
+
e.fieldType === "inputNumber" ? (d(), i(l(Q), b({
|
|
182
|
+
key: 1,
|
|
183
|
+
modelValue: l(t)[e.fieldKey],
|
|
184
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
185
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
186
|
+
clearable: "",
|
|
187
|
+
ref_for: !0
|
|
188
|
+
}, y(e), {
|
|
189
|
+
disabled: e.isFormDisabled
|
|
190
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(n, b({
|
|
191
|
+
key: 2,
|
|
192
|
+
modelValue: l(t)[e.fieldKey],
|
|
193
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
194
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
195
|
+
rows: 4,
|
|
196
|
+
ref_for: !0
|
|
197
|
+
}, y(e), {
|
|
198
|
+
type: "textarea",
|
|
199
|
+
disabled: e.isFormDisabled
|
|
200
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), i(l(X), b({
|
|
201
|
+
key: 3,
|
|
202
|
+
modelValue: l(t)[e.fieldKey],
|
|
203
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
204
|
+
icons: e.dataList,
|
|
205
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
206
|
+
ref_for: !0
|
|
207
|
+
}, y(e), {
|
|
208
|
+
disabled: e.isFormDisabled
|
|
209
|
+
}), {
|
|
210
|
+
default: h(() => [
|
|
211
|
+
(d(!0), D(N, null, M(e.dataList, (a, $) => (d(), i(_, {
|
|
212
|
+
key: $,
|
|
213
|
+
label: a.key,
|
|
214
|
+
value: a.value
|
|
215
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), i(p, b({
|
|
219
|
+
key: 4,
|
|
220
|
+
modelValue: l(t)[e.fieldKey],
|
|
221
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
222
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
223
|
+
clearable: "",
|
|
224
|
+
filterable: "",
|
|
225
|
+
ref_for: !0
|
|
226
|
+
}, y(e), {
|
|
227
|
+
multiple: e.fieldType === "multipleSelect",
|
|
228
|
+
disabled: e.isFormDisabled
|
|
229
|
+
}), {
|
|
230
|
+
default: h(() => [
|
|
231
|
+
(d(!0), D(N, null, M(e.dataList, (a, $) => (d(), i(_, {
|
|
232
|
+
key: $,
|
|
233
|
+
label: a.key,
|
|
234
|
+
value: a.value
|
|
235
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
236
|
+
]),
|
|
237
|
+
_: 2
|
|
238
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), i(F, b({
|
|
239
|
+
key: 5,
|
|
240
|
+
modelValue: l(t)[e.fieldKey],
|
|
241
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
242
|
+
options: e.dataList,
|
|
243
|
+
props: { ...l(Te) },
|
|
244
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
245
|
+
clearable: "",
|
|
246
|
+
filterable: "",
|
|
247
|
+
ref_for: !0
|
|
248
|
+
}, y(e), {
|
|
249
|
+
disabled: e.isFormDisabled,
|
|
250
|
+
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
251
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), i(V, b({
|
|
252
|
+
key: 6,
|
|
253
|
+
modelValue: l(t)[e.fieldKey],
|
|
254
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
255
|
+
type: "date",
|
|
256
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
|
|
257
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
258
|
+
ref_for: !0
|
|
259
|
+
}, y(e), {
|
|
260
|
+
disabled: e.isFormDisabled
|
|
261
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), i(V, b({
|
|
262
|
+
key: 7,
|
|
263
|
+
modelValue: l(t)[e.fieldKey],
|
|
264
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
265
|
+
type: "daterange",
|
|
266
|
+
"start-placeholder": l(c)("act.startTime"),
|
|
267
|
+
"end-placeholder": l(c)("act.endTime"),
|
|
268
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
269
|
+
ref_for: !0
|
|
270
|
+
}, y(e), {
|
|
271
|
+
disabled: e.isFormDisabled
|
|
272
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), i(r, b({
|
|
273
|
+
key: 8,
|
|
274
|
+
modelValue: l(t)[e.fieldKey],
|
|
275
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
276
|
+
options: e.dataList,
|
|
277
|
+
props: l(Ke),
|
|
278
|
+
clearable: "",
|
|
279
|
+
filterable: "",
|
|
280
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
281
|
+
ref_for: !0
|
|
282
|
+
}, y(e), {
|
|
283
|
+
disabled: e.isFormDisabled
|
|
284
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(s, {
|
|
285
|
+
key: 9,
|
|
286
|
+
modelValue: l(t)[e.fieldKey],
|
|
287
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
288
|
+
"active-value": !0,
|
|
289
|
+
"inactive-value": !1
|
|
290
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), i(l(Z), b({
|
|
291
|
+
key: 10,
|
|
292
|
+
class: "form-upload",
|
|
293
|
+
modelValue: l(t)[e.fieldKey],
|
|
294
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
295
|
+
request: l(E),
|
|
296
|
+
ref_for: !0
|
|
297
|
+
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(I), b({
|
|
298
|
+
key: 11,
|
|
299
|
+
modelValue: l(t)[e.fieldKey],
|
|
300
|
+
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
301
|
+
disabled: e.isFormDisabled,
|
|
302
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
303
|
+
ref_for: !0
|
|
304
|
+
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : G("", !0)
|
|
305
|
+
]),
|
|
306
|
+
_: 2
|
|
307
|
+
}, 1032, ["label", "prop", "rules"]))
|
|
308
|
+
]),
|
|
309
|
+
_: 2
|
|
310
|
+
}, 1032, ["span"]))), 128))
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
})
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
}, 8, ["model", "label-width", "label-position"])
|
|
317
|
+
];
|
|
318
|
+
}),
|
|
319
|
+
_: 1
|
|
320
|
+
}, 8, ["model-value", "title", "width"]);
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
}, Ae = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-98f68941"]]);
|
|
324
|
+
export {
|
|
325
|
+
Ae as default
|
|
326
|
+
};
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-
|
|
1
|
+
@charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-d63f61ef] .el-empty__image{width:100%}.file-image[data-v-d63f61ef]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-d63f61ef]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-b703a6a6]{position:relative}.page-container .header-operate[data-v-b703a6a6]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-b703a6a6]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-b703a6a6]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-3ccfdf86]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-be2a8549] .el-form-item{margin-bottom:8px}.search-module-container[data-v-be2a8549] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-be2a8549]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-be2a8549]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-be2a8549]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-98f68941]{display:flex;align-items:center}.card-header-operate[data-v-98f68941]{margin-left:auto}.no-config[data-v-98f68941]{line-height:32px;font-weight:700}.no-config-field[data-v-98f68941]{margin-left:60px;color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-c348bee1]{display:flex;align-items:center}.card-header-operate[data-v-c348bee1]{margin-left:auto}.form-list[data-v-c348bee1]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-c348bee1]:last-child{border:none}.config-list-operate[data-v-c348bee1]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.add-icon-btn[data-v-cab12df2]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-cab12df2]{display:flex;justify-content:center}.condition-box[data-v-cab12df2] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-cab12df2]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-cab12df2]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-502f493e]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-502f493e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-502f493e]{cursor:pointer;width:20px;height:20px}
|
package/lib/index-4b8e69bd.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { ref as h, watch as I, resolveComponent as _, openBlock as i, createElementBlock as d, createVNode as u, unref as p, isRef as b, withCtx as m, createElementVNode as g, createBlock as w, createCommentVNode as C, createTextVNode as N, Fragment as B, renderList as E, normalizeClass as S } from "vue";
|
|
2
|
-
import { _ as z } from "./index-0098f472.js";
|
|
3
|
-
import "vue-router";
|
|
4
|
-
import "js-base64";
|
|
5
|
-
import "element-plus";
|
|
6
|
-
import "monaco-editor";
|
|
7
|
-
const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["onClick"], P = {
|
|
8
|
-
class: "icon-value",
|
|
9
|
-
slot: "reference"
|
|
10
|
-
}, R = {
|
|
11
|
-
__name: "index",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: { type: String, default: "" },
|
|
14
|
-
icons: { type: Array, default: () => [] }
|
|
15
|
-
},
|
|
16
|
-
emits: ["update:modelValue"],
|
|
17
|
-
setup(x, { emit: y }) {
|
|
18
|
-
const v = y, c = x;
|
|
19
|
-
let t = h(!1), e = h(-1);
|
|
20
|
-
const f = () => e.value == -1 ? "" : c.icons[e.value];
|
|
21
|
-
I(
|
|
22
|
-
() => c.modelValue,
|
|
23
|
-
(l, o) => {
|
|
24
|
-
if (!l) {
|
|
25
|
-
e.value = -1, v("update:modelValue", "");
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const s = c.icons.findIndex((a) => a === l);
|
|
29
|
-
e.value = s;
|
|
30
|
-
},
|
|
31
|
-
{ deep: !0, immediate: !0 }
|
|
32
|
-
);
|
|
33
|
-
const k = (l, o) => {
|
|
34
|
-
e.value = o, v("update:modelValue", f()), t.value = !1;
|
|
35
|
-
};
|
|
36
|
-
return (l, o) => {
|
|
37
|
-
const s = _("a-svg-icon"), a = _("el-button"), V = _("el-popover");
|
|
38
|
-
return i(), d("div", A, [
|
|
39
|
-
u(V, {
|
|
40
|
-
"popper-class": "select-icon-popover",
|
|
41
|
-
placement: "bottom-start",
|
|
42
|
-
visible: p(t),
|
|
43
|
-
"onUpdate:visible": o[0] || (o[0] = (n) => b(t) ? t.value = n : t = n),
|
|
44
|
-
width: 400,
|
|
45
|
-
trigger: "click"
|
|
46
|
-
}, {
|
|
47
|
-
reference: m(() => [
|
|
48
|
-
g("div", P, [
|
|
49
|
-
p(e) >= 0 ? (i(), w(s, {
|
|
50
|
-
key: 0,
|
|
51
|
-
name: f(),
|
|
52
|
-
width: "24",
|
|
53
|
-
height: "24",
|
|
54
|
-
color: "#000"
|
|
55
|
-
}, null, 8, ["name"])) : C("", !0),
|
|
56
|
-
u(a, {
|
|
57
|
-
class: "icon-btn",
|
|
58
|
-
type: "primary"
|
|
59
|
-
}, {
|
|
60
|
-
default: m(() => [
|
|
61
|
-
N("选择图标")
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
})
|
|
65
|
-
])
|
|
66
|
-
]),
|
|
67
|
-
default: m(() => [
|
|
68
|
-
g("ul", F, [
|
|
69
|
-
(i(!0), d(B, null, E(c.icons, (n, r) => (i(), d("li", {
|
|
70
|
-
class: S(["icon-item", { "icon-item-checked": p(e) == r }]),
|
|
71
|
-
key: r,
|
|
72
|
-
onClick: (T) => k(n, r)
|
|
73
|
-
}, [
|
|
74
|
-
u(s, {
|
|
75
|
-
class: "icon-svg",
|
|
76
|
-
name: n,
|
|
77
|
-
width: "24",
|
|
78
|
-
height: "24",
|
|
79
|
-
color: "#999"
|
|
80
|
-
}, null, 8, ["name"])
|
|
81
|
-
], 10, L))), 128))
|
|
82
|
-
])
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}, 8, ["visible"])
|
|
86
|
-
]);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
}, J = /* @__PURE__ */ z(R, [["__scopeId", "data-v-3437a309"]]);
|
|
90
|
-
export {
|
|
91
|
-
J as default
|
|
92
|
-
};
|