act-plus 1.1.80 → 1.1.82
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 +53 -53
- package/lib/{dialogAddField-356c0203.js → dialogAddField-2e9cd8dd.js} +33 -33
- package/lib/{dialogConfigBtn-b826fbbd.js → dialogConfigBtn-f03ef8a6.js} +21 -21
- package/lib/{dialogSiteComponentsParams-2bd207be.js → dialogSiteComponentsParams-86be6478.js} +7 -7
- package/lib/{index-0ca10994.js → index-2e399e7e.js} +1333 -1365
- package/lib/{index-a1576e42.js → index-46cda8de.js} +5 -5
- package/lib/{index-bb510fb9.js → index-49c791d2.js} +1 -1
- package/lib/index-4c83efe5.js +277 -0
- package/lib/{index-a1929e12.js → index-66a60f4b.js} +67 -53
- package/lib/{index-5cf4016d.js → index-753b774f.js} +4535 -4788
- package/lib/{index-35e3b49c.js → index-7a82a0bc.js} +104 -112
- package/lib/{index-b42134dd.js → index-a34395ac.js} +25 -18
- package/lib/{index-083d66b1.js → index-b33bb0e0.js} +4 -4
- package/lib/{index-07af7560.js → index-d69cc7dd.js} +21 -21
- package/package.json +16 -16
- package/style.css +1 -1
- package/lib/index-ddd5b9be.js +0 -249
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { watch as
|
|
2
|
-
import
|
|
1
|
+
import { watch as C, defineComponent as U, toRefs as j, ref as A, nextTick as k, onMounted as B, onBeforeUnmount as z, onActivated as L, onDeactivated as N, h as x, reactive as R, computed as q, openBlock as K, createElementBlock as F, createVNode as T, unref as G } from "vue";
|
|
2
|
+
import _ from "tinymce/tinymce";
|
|
3
3
|
import "tinymce/icons/default/icons";
|
|
4
4
|
import "tinymce/models/dom";
|
|
5
5
|
import "tinymce/themes/silver";
|
|
@@ -28,7 +28,7 @@ import "tinymce/plugins/importcss";
|
|
|
28
28
|
import "tinymce/plugins/accordion";
|
|
29
29
|
import "tinymce/plugins/anchor";
|
|
30
30
|
import "tinymce/plugins/fullscreen";
|
|
31
|
-
var
|
|
31
|
+
var H = [
|
|
32
32
|
"onActivate",
|
|
33
33
|
"onAddUndo",
|
|
34
34
|
"onBeforeAddUndo",
|
|
@@ -96,73 +96,70 @@ var J = [
|
|
|
96
96
|
"onSubmit",
|
|
97
97
|
"onUndo",
|
|
98
98
|
"onVisualAid"
|
|
99
|
-
],
|
|
100
|
-
return
|
|
99
|
+
], W = function(e) {
|
|
100
|
+
return H.map(function(n) {
|
|
101
101
|
return n.toLowerCase();
|
|
102
102
|
}).indexOf(e.toLowerCase()) !== -1;
|
|
103
|
-
},
|
|
104
|
-
Object.keys(n).filter(
|
|
103
|
+
}, Y = function(e, n, t) {
|
|
104
|
+
Object.keys(n).filter(W).forEach(function(i) {
|
|
105
105
|
var o = n[i];
|
|
106
|
-
typeof o == "function" && (i === "onInit" ? o(e, t) : t.on(i.substring(2), function(
|
|
107
|
-
return o(
|
|
106
|
+
typeof o == "function" && (i === "onInit" ? o(e, t) : t.on(i.substring(2), function(r) {
|
|
107
|
+
return o(r, t);
|
|
108
108
|
}));
|
|
109
109
|
});
|
|
110
|
-
},
|
|
111
|
-
var o = e.modelEvents ? e.modelEvents : null,
|
|
112
|
-
|
|
113
|
-
t && typeof
|
|
114
|
-
}), t.on(
|
|
110
|
+
}, J = function(e, n, t, i) {
|
|
111
|
+
var o = e.modelEvents ? e.modelEvents : null, r = Array.isArray(o) ? o.join(" ") : o;
|
|
112
|
+
C(i, function(c, l) {
|
|
113
|
+
t && typeof c == "string" && c !== l && c !== t.getContent({ format: e.outputFormat }) && t.setContent(c);
|
|
114
|
+
}), t.on(r || "change input undo redo", function() {
|
|
115
115
|
n.emit("update:modelValue", t.getContent({ format: e.outputFormat }));
|
|
116
116
|
});
|
|
117
|
-
},
|
|
118
|
-
i.setContent(
|
|
119
|
-
},
|
|
117
|
+
}, Q = function(e, n, t, i, o, r) {
|
|
118
|
+
i.setContent(r()), t.attrs["onUpdate:modelValue"] && J(n, t, i, o), Y(e, t.attrs, i);
|
|
119
|
+
}, E = 0, D = function(e) {
|
|
120
120
|
var n = Date.now(), t = Math.floor(Math.random() * 1e9);
|
|
121
|
-
return
|
|
122
|
-
},
|
|
121
|
+
return E++, e + "_" + t + E + String(n);
|
|
122
|
+
}, X = function(e) {
|
|
123
123
|
return e !== null && e.tagName.toLowerCase() === "textarea";
|
|
124
|
-
},
|
|
124
|
+
}, w = function(e) {
|
|
125
125
|
return typeof e > "u" || e === "" ? [] : Array.isArray(e) ? e : e.split(" ");
|
|
126
|
-
},
|
|
127
|
-
return
|
|
128
|
-
},
|
|
126
|
+
}, Z = function(e, n) {
|
|
127
|
+
return w(e).concat(w(n));
|
|
128
|
+
}, $ = function(e) {
|
|
129
129
|
return e == null;
|
|
130
|
-
},
|
|
131
|
-
var n;
|
|
132
|
-
return typeof ((n = e.options) === null || n === void 0 ? void 0 : n.set) == "function" && e.options.isRegistered("disabled");
|
|
133
|
-
}, D = function() {
|
|
130
|
+
}, V = function() {
|
|
134
131
|
return {
|
|
135
132
|
listeners: [],
|
|
136
|
-
scriptId:
|
|
133
|
+
scriptId: D("tiny-script"),
|
|
137
134
|
scriptLoaded: !1
|
|
138
135
|
};
|
|
139
|
-
},
|
|
140
|
-
var e =
|
|
141
|
-
var
|
|
142
|
-
|
|
143
|
-
var
|
|
144
|
-
|
|
136
|
+
}, ee = function() {
|
|
137
|
+
var e = V(), n = function(o, r, c, l) {
|
|
138
|
+
var a = r.createElement("script");
|
|
139
|
+
a.referrerPolicy = "origin", a.type = "application/javascript", a.id = o, a.src = c;
|
|
140
|
+
var p = function() {
|
|
141
|
+
a.removeEventListener("load", p), l();
|
|
145
142
|
};
|
|
146
|
-
|
|
147
|
-
}, t = function(o,
|
|
148
|
-
e.scriptLoaded ?
|
|
149
|
-
e.listeners.forEach(function(
|
|
150
|
-
return
|
|
143
|
+
a.addEventListener("load", p), r.head && r.head.appendChild(a);
|
|
144
|
+
}, t = function(o, r, c) {
|
|
145
|
+
e.scriptLoaded ? c() : (e.listeners.push(c), o.getElementById(e.scriptId) || n(e.scriptId, o, r, function() {
|
|
146
|
+
e.listeners.forEach(function(l) {
|
|
147
|
+
return l();
|
|
151
148
|
}), e.scriptLoaded = !0;
|
|
152
149
|
}));
|
|
153
150
|
}, i = function() {
|
|
154
|
-
e =
|
|
151
|
+
e = V();
|
|
155
152
|
};
|
|
156
153
|
return {
|
|
157
154
|
load: t,
|
|
158
155
|
reinitialize: i
|
|
159
156
|
};
|
|
160
|
-
},
|
|
157
|
+
}, te = ee(), ne = function() {
|
|
161
158
|
return typeof window < "u" ? window : global;
|
|
162
|
-
},
|
|
163
|
-
var e =
|
|
159
|
+
}, v = function() {
|
|
160
|
+
var e = ne();
|
|
164
161
|
return e && e.tinymce ? e.tinymce : null;
|
|
165
|
-
},
|
|
162
|
+
}, oe = {
|
|
166
163
|
apiKey: String,
|
|
167
164
|
licenseKey: String,
|
|
168
165
|
cloudChannel: String,
|
|
@@ -176,7 +173,6 @@ var J = [
|
|
|
176
173
|
toolbar: [String, Array],
|
|
177
174
|
modelValue: String,
|
|
178
175
|
disabled: Boolean,
|
|
179
|
-
readonly: Boolean,
|
|
180
176
|
tinymceScriptSrc: String,
|
|
181
177
|
outputFormat: {
|
|
182
178
|
type: String,
|
|
@@ -184,87 +180,83 @@ var J = [
|
|
|
184
180
|
return e === "html" || e === "text";
|
|
185
181
|
}
|
|
186
182
|
}
|
|
187
|
-
},
|
|
188
|
-
return
|
|
183
|
+
}, s = globalThis && globalThis.__assign || function() {
|
|
184
|
+
return s = Object.assign || function(e) {
|
|
189
185
|
for (var n, t = 1, i = arguments.length; t < i; t++) {
|
|
190
186
|
n = arguments[t];
|
|
191
187
|
for (var o in n)
|
|
192
188
|
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
193
189
|
}
|
|
194
190
|
return e;
|
|
195
|
-
},
|
|
196
|
-
},
|
|
191
|
+
}, s.apply(this, arguments);
|
|
192
|
+
}, ie = function(e, n, t, i) {
|
|
197
193
|
return e(i || "div", {
|
|
198
194
|
id: n,
|
|
199
195
|
ref: t
|
|
200
196
|
});
|
|
201
|
-
},
|
|
197
|
+
}, ae = function(e, n, t) {
|
|
202
198
|
return e("textarea", {
|
|
203
199
|
id: n,
|
|
204
200
|
visibility: "hidden",
|
|
205
201
|
ref: t
|
|
206
202
|
});
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
typeof ((t = e.mode) === null || t === void 0 ? void 0 : t.set) == "function" ? e.mode.set(n) : e.setMode(n);
|
|
210
|
-
}, de = L({
|
|
211
|
-
props: re,
|
|
203
|
+
}, S = { selector: void 0, target: void 0 }, re = U({
|
|
204
|
+
props: oe,
|
|
212
205
|
setup: function(e, n) {
|
|
213
|
-
var t = e.init ?
|
|
214
|
-
return
|
|
206
|
+
var t = e.init ? s(s({}, e.init), S) : s({}, S), i = j(e), o = i.disabled, r = i.modelValue, c = i.tagName, l = A(null), a = null, p = e.id || D("tiny-vue"), m = e.init && e.init.inline || e.inline, f = !!n.attrs["onUpdate:modelValue"], y = !0, I = e.initialValue ? e.initialValue : "", b = "", M = function(u) {
|
|
207
|
+
return f ? function() {
|
|
215
208
|
return r != null && r.value ? r.value : "";
|
|
216
209
|
} : function() {
|
|
217
|
-
return
|
|
210
|
+
return u ? I : b;
|
|
218
211
|
};
|
|
219
|
-
},
|
|
220
|
-
var
|
|
221
|
-
a = g,
|
|
222
|
-
return
|
|
212
|
+
}, h = function() {
|
|
213
|
+
var u = M(y), d = s(s({}, t), { readonly: e.disabled, target: l.value, plugins: Z(t.plugins, e.plugins), toolbar: e.toolbar || t.toolbar, inline: m, license_key: e.licenseKey, setup: function(g) {
|
|
214
|
+
a = g, g.on("init", function(P) {
|
|
215
|
+
return Q(P, e, n, g, r, u);
|
|
223
216
|
}), typeof t.setup == "function" && t.setup(g);
|
|
224
217
|
} });
|
|
225
|
-
|
|
218
|
+
X(l.value) && (l.value.style.visibility = ""), v().init(d), y = !1;
|
|
226
219
|
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}), h(s, function(d) {
|
|
232
|
-
var c;
|
|
233
|
-
a && (y || (_ = a.getContent()), (c = p()) === null || c === void 0 || c.remove(a), w(function() {
|
|
234
|
-
return b();
|
|
235
|
-
}));
|
|
236
|
-
}), M(function() {
|
|
237
|
-
if (p() !== null)
|
|
238
|
-
b();
|
|
239
|
-
else if (u.value && u.value.ownerDocument) {
|
|
240
|
-
var d = e.cloudChannel ? e.cloudChannel : "8", c = e.apiKey ? e.apiKey : "no-api-key", g = ne(e.tinymceScriptSrc) ? "https://cdn.tiny.cloud/1/".concat(c, "/tinymce/").concat(d, "/tinymce.min.js") : e.tinymceScriptSrc;
|
|
241
|
-
ie.load(u.value.ownerDocument, g, b);
|
|
242
|
-
}
|
|
243
|
-
}), R(function() {
|
|
244
|
-
p() !== null && p().remove(a);
|
|
245
|
-
}), v || (q(function() {
|
|
246
|
-
S || b();
|
|
247
|
-
}), K(function() {
|
|
220
|
+
C(o, function(u) {
|
|
221
|
+
var d;
|
|
222
|
+
a !== null && (typeof ((d = a.mode) === null || d === void 0 ? void 0 : d.set) == "function" ? a.mode.set(u ? "readonly" : "design") : a.setMode(u ? "readonly" : "design"));
|
|
223
|
+
}), C(c, function(u) {
|
|
248
224
|
var d;
|
|
249
|
-
|
|
225
|
+
f || (b = a.getContent()), (d = v()) === null || d === void 0 || d.remove(a), k(function() {
|
|
226
|
+
return h();
|
|
227
|
+
});
|
|
228
|
+
}), B(function() {
|
|
229
|
+
if (v() !== null)
|
|
230
|
+
h();
|
|
231
|
+
else if (l.value && l.value.ownerDocument) {
|
|
232
|
+
var u = e.cloudChannel ? e.cloudChannel : "7", d = e.apiKey ? e.apiKey : "no-api-key", g = $(e.tinymceScriptSrc) ? "https://cdn.tiny.cloud/1/".concat(d, "/tinymce/").concat(u, "/tinymce.min.js") : e.tinymceScriptSrc;
|
|
233
|
+
te.load(l.value.ownerDocument, g, h);
|
|
234
|
+
}
|
|
235
|
+
}), z(function() {
|
|
236
|
+
v() !== null && v().remove(a);
|
|
237
|
+
}), m || (L(function() {
|
|
238
|
+
y || h();
|
|
239
|
+
}), N(function() {
|
|
240
|
+
var u;
|
|
241
|
+
f || (b = a.getContent()), (u = v()) === null || u === void 0 || u.remove(a);
|
|
250
242
|
}));
|
|
251
|
-
var
|
|
252
|
-
var
|
|
253
|
-
|
|
254
|
-
return
|
|
255
|
-
})
|
|
243
|
+
var O = function(u) {
|
|
244
|
+
var d;
|
|
245
|
+
b = a.getContent(), (d = v()) === null || d === void 0 || d.remove(a), t = s(s(s({}, t), u), S), k(function() {
|
|
246
|
+
return h();
|
|
247
|
+
});
|
|
256
248
|
};
|
|
257
249
|
return n.expose({
|
|
258
|
-
rerender:
|
|
250
|
+
rerender: O,
|
|
259
251
|
getEditor: function() {
|
|
260
252
|
return a;
|
|
261
253
|
}
|
|
262
254
|
}), function() {
|
|
263
|
-
return
|
|
255
|
+
return m ? ie(x, p, l, e.tagName) : ae(x, p, l);
|
|
264
256
|
};
|
|
265
257
|
}
|
|
266
258
|
});
|
|
267
|
-
const
|
|
259
|
+
const le = { style: { height: "100%", overflow: "hidden" } }, Le = {
|
|
268
260
|
__name: "index",
|
|
269
261
|
props: {
|
|
270
262
|
modelValue: { type: String, default: "" },
|
|
@@ -286,8 +278,8 @@ const se = { style: { height: "100%", overflow: "hidden" } }, qe = {
|
|
|
286
278
|
},
|
|
287
279
|
emits: ["update:modelValue", "setHtml"],
|
|
288
280
|
setup(e, { expose: n, emit: t }) {
|
|
289
|
-
const i = t, o = e,
|
|
290
|
-
selector: "#" +
|
|
281
|
+
const i = t, o = e, r = A("vue-tinymce-" + +/* @__PURE__ */ new Date() + ((Math.random() * 1e3).toFixed(0) + "")), c = R({
|
|
282
|
+
selector: "#" + r.value,
|
|
291
283
|
//富文本编辑器的id,
|
|
292
284
|
language_url: "/tinymce/langs/zh_CN.js",
|
|
293
285
|
// 语言包的路径,具体路径看自己的项目
|
|
@@ -348,11 +340,11 @@ const se = { style: { height: "100%", overflow: "hidden" } }, qe = {
|
|
|
348
340
|
// autoresize_bottom_margin: 12,
|
|
349
341
|
// autoresize_overflow_padding: 16,
|
|
350
342
|
//图片上传 -实列 具体请根据官网补充-
|
|
351
|
-
images_upload_handler: function(m,
|
|
343
|
+
images_upload_handler: function(m, f) {
|
|
352
344
|
}
|
|
353
345
|
});
|
|
354
|
-
console.log(
|
|
355
|
-
const
|
|
346
|
+
console.log(c);
|
|
347
|
+
const l = q({
|
|
356
348
|
get() {
|
|
357
349
|
return o.modelValue;
|
|
358
350
|
},
|
|
@@ -360,30 +352,30 @@ const se = { style: { height: "100%", overflow: "hidden" } }, qe = {
|
|
|
360
352
|
i("update:modelValue", m);
|
|
361
353
|
}
|
|
362
354
|
});
|
|
363
|
-
return
|
|
364
|
-
() =>
|
|
355
|
+
return C(
|
|
356
|
+
() => l.value,
|
|
365
357
|
() => {
|
|
366
|
-
i("setHtml",
|
|
358
|
+
i("setHtml", _.activeEditor.getContent({ format: "text" }), l.value);
|
|
367
359
|
}
|
|
368
|
-
),
|
|
369
|
-
|
|
360
|
+
), B(() => {
|
|
361
|
+
_.init({});
|
|
370
362
|
}), n({
|
|
371
|
-
onGetContent: () =>
|
|
363
|
+
onGetContent: () => _.activeEditor.getContent(),
|
|
372
364
|
onSetContent: (m) => {
|
|
373
|
-
|
|
365
|
+
_.activeEditor.setContent(m);
|
|
374
366
|
}
|
|
375
|
-
}), (m,
|
|
376
|
-
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue":
|
|
379
|
-
init:
|
|
367
|
+
}), (m, f) => (K(), F("div", le, [
|
|
368
|
+
T(G(re), {
|
|
369
|
+
modelValue: l.value,
|
|
370
|
+
"onUpdate:modelValue": f[0] || (f[0] = (y) => l.value = y),
|
|
371
|
+
init: c,
|
|
380
372
|
disabled: e.disabled,
|
|
381
373
|
placeholder: e.placeholder,
|
|
382
|
-
id:
|
|
374
|
+
id: r.value
|
|
383
375
|
}, null, 8, ["modelValue", "init", "disabled", "placeholder", "id"])
|
|
384
376
|
]));
|
|
385
377
|
}
|
|
386
378
|
};
|
|
387
379
|
export {
|
|
388
|
-
|
|
380
|
+
Le as default
|
|
389
381
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as de, inject as h, ref as q, watch as pe, resolveComponent as y, resolveDirective as ce, unref as t, openBlock as r, createElementBlock as _, createVNode as ie, normalizeStyle as fe, withCtx as T, Fragment as k, renderList as M, createBlock as d, mergeProps as m, withKeys as H, withModifiers as K, createCommentVNode as g, resolveDynamicComponent as ye, createElementVNode as me, toDisplayString as R, createTextVNode as O, withDirectives as Ve } from "vue";
|
|
2
|
-
import { _ as be, u as Ce, P as _e, a as he, b as W } from "./index-
|
|
2
|
+
import { _ as be, u as Ce, P as _e, a as he, b as W } from "./index-2e399e7e.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const ge = {
|
|
@@ -129,8 +129,9 @@ const ge = {
|
|
|
129
129
|
modelValue: e.queryValue,
|
|
130
130
|
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
131
131
|
placeholder: `${t(p)("act.inputPlaceholder")}${e.fieldName}`,
|
|
132
|
-
clearable: ""
|
|
133
|
-
|
|
132
|
+
clearable: "",
|
|
133
|
+
ref_for: !0
|
|
134
|
+
}, t(i)(e), {
|
|
134
135
|
onKeyup: l[0] || (l[0] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
135
136
|
onClear: se
|
|
136
137
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : g("", !0),
|
|
@@ -140,15 +141,17 @@ const ge = {
|
|
|
140
141
|
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
141
142
|
placeholder: `${t(p)("act.inputPlaceholder")}${e.fieldName}`,
|
|
142
143
|
clearable: "",
|
|
143
|
-
onKeyup: l[1] || (l[1] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
|
|
144
|
-
|
|
144
|
+
onKeyup: l[1] || (l[1] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
145
|
+
ref_for: !0
|
|
146
|
+
}, t(i)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), d($, m({
|
|
145
147
|
key: 2,
|
|
146
148
|
modelValue: e.queryValue,
|
|
147
149
|
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
148
150
|
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
149
151
|
clearable: "",
|
|
150
|
-
filterable: ""
|
|
151
|
-
|
|
152
|
+
filterable: "",
|
|
153
|
+
ref_for: !0
|
|
154
|
+
}, t(i)(e), {
|
|
152
155
|
multiple: e.fieldType === "multipleSelect",
|
|
153
156
|
"collapse-tags": e.fieldType === "multipleSelect",
|
|
154
157
|
"collapse-tags-tooltip": e.fieldType === "multipleSelect",
|
|
@@ -170,8 +173,9 @@ const ge = {
|
|
|
170
173
|
props: { ...t(_e) },
|
|
171
174
|
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
172
175
|
clearable: "",
|
|
173
|
-
filterable: ""
|
|
174
|
-
|
|
176
|
+
filterable: "",
|
|
177
|
+
ref_for: !0
|
|
178
|
+
}, t(i)(e), {
|
|
175
179
|
"collapse-tags": e.fieldType === "virtualizedMultipleSelect",
|
|
176
180
|
"collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
|
|
177
181
|
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
@@ -184,8 +188,9 @@ const ge = {
|
|
|
184
188
|
props: { ...t(he) },
|
|
185
189
|
clearable: "",
|
|
186
190
|
filterable: "",
|
|
187
|
-
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}
|
|
188
|
-
|
|
191
|
+
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
192
|
+
ref_for: !0
|
|
193
|
+
}, t(i)(e), {
|
|
189
194
|
onChange: l[4] || (l[4] = (a) => c({ permissionCode: 1001 }))
|
|
190
195
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "fullLoadTreeSelect" ? (r(), d(U, m({
|
|
191
196
|
key: 5,
|
|
@@ -203,7 +208,7 @@ const ge = {
|
|
|
203
208
|
"show-checkbox": "",
|
|
204
209
|
clearable: "",
|
|
205
210
|
filterable: ""
|
|
206
|
-
},
|
|
211
|
+
}, t(i)(e), {
|
|
207
212
|
onChange: l[5] || (l[5] = (a) => c({ permissionCode: 1001 }))
|
|
208
213
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "data", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (r(), d(U, m({
|
|
209
214
|
key: 6,
|
|
@@ -222,7 +227,7 @@ const ge = {
|
|
|
222
227
|
filterable: "",
|
|
223
228
|
lazy: "",
|
|
224
229
|
load: (a, F) => re({ node: a, resolve: F }, e)
|
|
225
|
-
},
|
|
230
|
+
}, t(i)(e), {
|
|
226
231
|
onChange: l[6] || (l[6] = (a) => c({ permissionCode: 1001 }))
|
|
227
232
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (r(), d(D, m({
|
|
228
233
|
key: 7,
|
|
@@ -231,8 +236,9 @@ const ge = {
|
|
|
231
236
|
type: "date",
|
|
232
237
|
placeholder: `${t(p)("act.selectPlaceholder")}${t(p)("act.time")}`,
|
|
233
238
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
234
|
-
clearable: ""
|
|
235
|
-
|
|
239
|
+
clearable: "",
|
|
240
|
+
ref_for: !0
|
|
241
|
+
}, t(i)(e), {
|
|
236
242
|
onChange: l[7] || (l[7] = (a) => c({ permissionCode: 1001 }))
|
|
237
243
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (r(), d(D, m({
|
|
238
244
|
key: 8,
|
|
@@ -242,8 +248,9 @@ const ge = {
|
|
|
242
248
|
"start-placeholder": t(p)("act.startTime"),
|
|
243
249
|
"end-placeholder": t(p)("act.endTime"),
|
|
244
250
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
245
|
-
clearable: ""
|
|
246
|
-
|
|
251
|
+
clearable: "",
|
|
252
|
+
ref_for: !0
|
|
253
|
+
}, t(i)(e), {
|
|
247
254
|
onChange: l[8] || (l[8] = (a) => c({ permissionCode: 1001 }))
|
|
248
255
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : g("", !0)
|
|
249
256
|
]),
|
|
@@ -300,7 +307,7 @@ const ge = {
|
|
|
300
307
|
])) : g("", !0);
|
|
301
308
|
};
|
|
302
309
|
}
|
|
303
|
-
}, Ue = /* @__PURE__ */ be(Te, [["__scopeId", "data-v-
|
|
310
|
+
}, Ue = /* @__PURE__ */ be(Te, [["__scopeId", "data-v-92d7682c"]]);
|
|
304
311
|
export {
|
|
305
312
|
Ue as default
|
|
306
313
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as p, watch as h, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
|
|
2
|
-
import { _ as P } from "./index-
|
|
2
|
+
import { _ as P } from "./index-2e399e7e.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["onClick"], z = {
|
|
@@ -68,9 +68,9 @@ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["
|
|
|
68
68
|
class: "icon-btn",
|
|
69
69
|
type: "primary"
|
|
70
70
|
}, {
|
|
71
|
-
default: f(() =>
|
|
72
|
-
$("选择图标"
|
|
73
|
-
])
|
|
71
|
+
default: f(() => e[1] || (e[1] = [
|
|
72
|
+
$("选择图标")
|
|
73
|
+
])),
|
|
74
74
|
_: 1
|
|
75
75
|
})
|
|
76
76
|
])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as J, inject as _, computed as K, watch as Q, resolveComponent as g, resolveDirective as U, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as s, resolveDynamicComponent as F, unref as
|
|
2
|
-
import { _ as W, u as X, c as Y } from "./index-
|
|
1
|
+
import { ref as J, inject as _, computed as K, watch as Q, resolveComponent as g, resolveDirective as U, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as s, resolveDynamicComponent as F, unref as d, withCtx as r, withDirectives as k, createCommentVNode as p, createTextVNode as h, toDisplayString as B, createVNode as N } from "vue";
|
|
2
|
+
import { _ as W, u as X, c as Y } from "./index-2e399e7e.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const Z = { class: "header-operate-container" }, ee = {
|
|
@@ -30,9 +30,9 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
30
30
|
}, L = (o) => {
|
|
31
31
|
if (!o.matchFields.length)
|
|
32
32
|
return !0;
|
|
33
|
-
const n = o.matchFields.filter((a) => a.matchType != "default"),
|
|
33
|
+
const n = o.matchFields.filter((a) => a.matchType != "default"), c = (a) => A.matchData[a.matchType][a.matchFieldName];
|
|
34
34
|
let $ = n.reduce((a, l, i) => {
|
|
35
|
-
const e =
|
|
35
|
+
const e = c(l);
|
|
36
36
|
return a += q(
|
|
37
37
|
l.matchCondition,
|
|
38
38
|
e,
|
|
@@ -41,7 +41,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
41
41
|
}, "").split("||"), T = $.reduce((a, l, i) => (a += `(${l})`, i < $.length - 1 && (a += "||"), a), "");
|
|
42
42
|
return new Function(`return ${T}`)();
|
|
43
43
|
}, V = (o) => O.value.some((n) => n.unique == o.permissionCode) && L(o), z = (o) => {
|
|
44
|
-
f.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n,
|
|
44
|
+
f.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, c) => n.sort - c.sort).map((n) => (n.btnAlias && (n.btnName = n.btnAlias), Reflect.has(n, "isPromptVerificationSelectTable") || (n.isPromptVerificationSelectTable = "1"), n));
|
|
45
45
|
};
|
|
46
46
|
Q(
|
|
47
47
|
() => y.data,
|
|
@@ -54,7 +54,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
54
54
|
R("onOperate", o, {});
|
|
55
55
|
};
|
|
56
56
|
return (o, n) => {
|
|
57
|
-
const
|
|
57
|
+
const c = g("a-svg-icon"), b = g("el-button"), $ = g("el-icon"), T = g("el-dropdown-item"), a = g("el-dropdown-menu"), l = g("el-dropdown"), i = U("debounce");
|
|
58
58
|
return t(), m("div", Z, [
|
|
59
59
|
(t(!0), m(C, null, I(E(), (e, G) => (t(), m(C, {
|
|
60
60
|
key: e.permissionCode
|
|
@@ -64,9 +64,9 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "custom-btn",
|
|
66
66
|
ref_for: !0,
|
|
67
|
-
ref: (u) =>
|
|
67
|
+
ref: (u) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
|
|
68
68
|
buttonData: e,
|
|
69
|
-
onRefresh: n[0] || (n[0] = (u) =>
|
|
69
|
+
onRefresh: n[0] || (n[0] = (u) => d(x)())
|
|
70
70
|
}, {
|
|
71
71
|
default: r(() => [
|
|
72
72
|
k((t(), s(b, {
|
|
@@ -76,7 +76,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
76
76
|
onClick: (u) => S(e)
|
|
77
77
|
}, {
|
|
78
78
|
default: r(() => [
|
|
79
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(
|
|
79
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "mr4",
|
|
82
82
|
name: e.btnIcon,
|
|
@@ -84,7 +84,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
84
84
|
height: "12",
|
|
85
85
|
color: "#fff"
|
|
86
86
|
}, null, 8, ["name"])) : p("", !0),
|
|
87
|
-
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName +
|
|
87
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
88
88
|
]),
|
|
89
89
|
_: 2
|
|
90
90
|
}, 1032, ["type", "loading", "onClick"])), [
|
|
@@ -100,7 +100,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
100
100
|
onClick: (u) => S(e)
|
|
101
101
|
}, {
|
|
102
102
|
default: r(() => [
|
|
103
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(
|
|
103
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: "mr4",
|
|
106
106
|
name: e.btnIcon,
|
|
@@ -108,7 +108,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
108
108
|
height: "12",
|
|
109
109
|
color: "#fff"
|
|
110
110
|
}, null, 8, ["name"])) : p("", !0),
|
|
111
|
-
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName +
|
|
111
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
112
112
|
]),
|
|
113
113
|
_: 2
|
|
114
114
|
}, 1032, ["type", "loading", "onClick"])), [
|
|
@@ -133,9 +133,9 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
133
133
|
key: 0,
|
|
134
134
|
class: "custom-btn",
|
|
135
135
|
ref_for: !0,
|
|
136
|
-
ref: (u) =>
|
|
136
|
+
ref: (u) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
|
|
137
137
|
buttonData: e,
|
|
138
|
-
onRefresh: n[1] || (n[1] = (u) =>
|
|
138
|
+
onRefresh: n[1] || (n[1] = (u) => d(x)())
|
|
139
139
|
}, {
|
|
140
140
|
default: r(() => [
|
|
141
141
|
k((t(), s(b, {
|
|
@@ -144,7 +144,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
144
144
|
loading: e[`loading${e.permissionCode}`]
|
|
145
145
|
}, {
|
|
146
146
|
default: r(() => [
|
|
147
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(
|
|
147
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "mr4",
|
|
150
150
|
name: e.btnIcon,
|
|
@@ -152,7 +152,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
152
152
|
height: "12",
|
|
153
153
|
color: "#fff"
|
|
154
154
|
}, null, 8, ["name"])) : p("", !0),
|
|
155
|
-
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName +
|
|
155
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
156
156
|
]),
|
|
157
157
|
_: 2
|
|
158
158
|
}, 1032, ["type", "loading"])), [
|
|
@@ -167,7 +167,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
167
167
|
loading: e[`loading${e.permissionCode}`]
|
|
168
168
|
}, {
|
|
169
169
|
default: r(() => [
|
|
170
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(
|
|
170
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: "mr4",
|
|
173
173
|
name: e.btnIcon,
|
|
@@ -175,7 +175,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
175
175
|
height: "12",
|
|
176
176
|
color: "#fff"
|
|
177
177
|
}, null, 8, ["name"])) : p("", !0),
|
|
178
|
-
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName +
|
|
178
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
179
179
|
]),
|
|
180
180
|
_: 2
|
|
181
181
|
}, 1032, ["type", "loading"])), [
|
|
@@ -192,10 +192,10 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
192
192
|
default: r(() => [
|
|
193
193
|
N(b, { type: "primary" }, {
|
|
194
194
|
default: r(() => [
|
|
195
|
-
n[2] || (n[2] = h(" 更多按钮"
|
|
195
|
+
n[2] || (n[2] = h(" 更多按钮")),
|
|
196
196
|
N($, { class: "el-icon--right" }, {
|
|
197
197
|
default: r(() => [
|
|
198
|
-
N(
|
|
198
|
+
N(d(Y))
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
201
201
|
})
|
|
@@ -208,7 +208,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
208
208
|
]);
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
}, le = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-
|
|
211
|
+
}, le = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-f0dda1b5"]]);
|
|
212
212
|
export {
|
|
213
213
|
le as default
|
|
214
214
|
};
|