asiaint-lowcode 3.1.156 → 3.1.158
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/README.md +31 -31
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +138 -138
- package/dist/lazy/{Card-C7jMQqGi.js → Card-t1mDtSuz.js} +8 -8
- package/dist/lazy/{Cascader-BF1oWwPc.js → Cascader-Oust5l0x.js} +1 -1
- package/dist/lazy/{Checkbox-ChEjYSuA.js → Checkbox-BZP7lXM3.js} +2 -2
- package/dist/lazy/{Collapse-DBrK81lt.js → Collapse-CvGb3zx6.js} +1 -1
- package/dist/lazy/{Component-Cn08AVVA.js → Component-BwaRY5e7.js} +1 -1
- package/dist/lazy/{Component-r6XWEpRu.js → Component-BzNEDTnq.js} +2 -2
- package/dist/lazy/{Component-CJAyUNFB.js → Component-C_7w1J6b.js} +2 -2
- package/dist/lazy/{Component-0j5e7Vup.js → Component-DpR49mMn.js} +2 -2
- package/dist/lazy/{Component-CAonXYK9.js → Component-oWA4pSqL.js} +1 -1
- package/dist/lazy/{CurdCard-wHWojjDx.js → CurdCard-rFcool9B.js} +2 -2
- package/dist/lazy/Custom-DIoXxGkP.js +26 -0
- package/dist/lazy/{DatePicker-SUZqJweK.js → DatePicker-CHrIeUBZ.js} +1 -1
- package/dist/lazy/{DragList-DoKGB_9l.js → DragList-CLkMkiWc.js} +13 -13
- package/dist/lazy/{FilterSearch-CI-wA_Sp.js → FilterSearch-CJA8Uzkt.js} +2 -2
- package/dist/lazy/{FloatCurd-x09jyXEZ.js → FloatCurd-YaboEKaH.js} +15 -15
- package/dist/lazy/FloatSearchCurd-BgIStWFV.js +446 -0
- package/dist/lazy/{FormList-DKKyNxiy.js → FormList-DoJa2pqm.js} +1 -1
- package/dist/lazy/{Grid-BE3HaetB.js → Grid-BMRETF7k.js} +1 -1
- package/dist/lazy/{InfiniteScroll-jjWMztHg.js → InfiniteScroll-C3CFbOdH.js} +4 -4
- package/dist/lazy/{Inline-JijXWwAv.js → Inline-fhIbkKfi.js} +3 -3
- package/dist/lazy/{JsonEdit-ZsV_3zbI.js → JsonEdit-C62be96x.js} +3 -3
- package/dist/lazy/{LogList-CqgOhizk.js → LogList-BdG9L5Hd.js} +7 -7
- package/dist/lazy/{ObjGroup-B_3w4f8g.js → ObjGroup-0R_eM8Zb.js} +1 -1
- package/dist/lazy/{OfferDetails-BfkQiaTL.js → OfferDetails-aU8IOZ5y.js} +8 -8
- package/dist/lazy/{Pagination-BguJHeMr.js → Pagination-D13SbO8F.js} +6 -6
- package/dist/lazy/{Progress-DVQ75BoF.js → Progress-8oq3iY-3.js} +15 -15
- package/dist/lazy/{Radio-CkD9cEb_.js → Radio-DdF30zOM.js} +9 -9
- package/dist/lazy/{SearchSelect-CKQa1hbX.js → SearchSelect-CPnkpIyJ.js} +6 -6
- package/dist/lazy/{Select-CD1GApkv.js → Select-CE6tGRdw.js} +2 -2
- package/dist/lazy/{Table-BfhUDRHy.js → Table-Db0UoLjG.js} +25 -25
- package/dist/lazy/{Tabs-vYXLFvWE.js → Tabs-Cbq3feWg.js} +2 -2
- package/dist/lazy/{TextArea-BoJrqnbz.js → TextArea-DSsRvDhv.js} +2 -2
- package/dist/lazy/{Wrapper-B5VnaK7J.js → Wrapper-BCpBxBME.js} +4 -4
- package/dist/lazy/{index-arMDpCoU.js → index-C_zeIIm3.js} +59 -59
- package/dist/lazy/{useSelect-CRPF8OhD.js → useSelect-CtSUK6oX.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +1 -1
- package/dist/lazy/Custom-DhLfgbGR.js +0 -26
- package/dist/lazy/FloatSearchCurd-BkmkymIZ.js +0 -423
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import { defineComponent as De, mergeModels as Ve, useModel as oe, ref as c, computed as ae, onUnmounted as re, watch as Te, onMounted as Ee, resolveComponent as k, resolveDirective as Le, withDirectives as q, openBlock as a, createElementBlock as s, createElementVNode as n, createVNode as u, withKeys as Be, withCtx as p, Fragment as C, withModifiers as se, renderList as B, createBlock as A, toDisplayString as x, createTextVNode as ie, createCommentVNode as w, normalizeClass as Pe, normalizeStyle as Ye, unref as Oe, vShow as ue } from "vue";
|
|
2
|
+
import { c as Ne, u as $e, f as ce, i as ze, I as D, a as He, b as Re, _ as qe } from "./index-C_zeIIm3.js";
|
|
3
|
+
import { dayjs as U } from "element-plus";
|
|
4
|
+
const Ae = { class: "float-curd" }, Ue = { class: "curd-body" }, je = { class: "custom-prefix-text" }, Ge = { style: { "padding-right": "8px" } }, Ke = { style: { "font-size": "12px" } }, We = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "empty-content h-[234px]"
|
|
7
|
+
}, Je = {
|
|
8
|
+
key: 2,
|
|
9
|
+
class: "flex"
|
|
10
|
+
}, Qe = ["onMouseenter", "onClick"], Xe = ["innerHTML"], Ze = ["innerHTML"], et = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "flex-[500_1_0] bg-[#ffffff] border-l-solid border-l-[#E5E7EB] border-l-[1px]"
|
|
13
|
+
}, tt = { class: "bg-[#FBFBFB] py-[24px] px-[16px] border-b-solid border-b-[#E5E7EB] border-b-[1px]" }, lt = { class: "flex-y-center gap-[8px]" }, nt = { class: "text-[#333333] text-[18px] leading-[18px] font-bold mb-[4px]" }, ot = { class: "text-[#333333] text-[12px] leading-[12px]" }, at = { class: "px-[16px] pt-[16px] grid grid-cols-2 gap-[16px]" }, rt = { class: "text-[#666666] text-[12px] leading-[12px] mb-[4px]" }, st = ["title"], it = { class: "float-form" }, ut = { class: "float-form-header" }, ct = { class: "float-form-header-title" }, dt = { class: "float-form-header-btns" }, pt = { class: "float-form-body" }, ft = { class: "curd-footer" }, vt = ["innerHTML"], mt = ["title"], ht = /* @__PURE__ */ De({
|
|
14
|
+
__name: "FloatSearchCurd",
|
|
15
|
+
props: /* @__PURE__ */ Ve({
|
|
16
|
+
name: {},
|
|
17
|
+
children: {},
|
|
18
|
+
formTitle: {},
|
|
19
|
+
onSearch: {},
|
|
20
|
+
onAiSearch: {},
|
|
21
|
+
onClear: {},
|
|
22
|
+
inputPlaceholder: {},
|
|
23
|
+
hidden: { type: Boolean },
|
|
24
|
+
prefixOptions: {},
|
|
25
|
+
prefixChange: {},
|
|
26
|
+
defaultPrefixValue: {},
|
|
27
|
+
onDetailInfo: {},
|
|
28
|
+
onFloatSearch: {},
|
|
29
|
+
onSelectItem: {}
|
|
30
|
+
}, {
|
|
31
|
+
searchData: {},
|
|
32
|
+
searchDataModifiers: {},
|
|
33
|
+
detailInfo: {},
|
|
34
|
+
detailInfoModifiers: {}
|
|
35
|
+
}),
|
|
36
|
+
emits: ["update:searchData", "update:detailInfo"],
|
|
37
|
+
setup($, { expose: de }) {
|
|
38
|
+
const o = $, v = oe($, "searchData"), m = oe($, "detailInfo"), V = c(!1), { ruleModule: _, pageMethodMap: y } = Ne(), z = $e(), j = ae(() => {
|
|
39
|
+
var F, M, P, Y, O, N, l, S, le;
|
|
40
|
+
const e = z.schema.items, t = z.formValues, r = ce(e, o.name);
|
|
41
|
+
if (!r || !r.children)
|
|
42
|
+
return [];
|
|
43
|
+
const b = [];
|
|
44
|
+
for (const ne in t) {
|
|
45
|
+
const i = ce(r.children, ne);
|
|
46
|
+
if (i && i.label && !i.hidden) {
|
|
47
|
+
const h = t[ne];
|
|
48
|
+
if (h != null && h !== "") {
|
|
49
|
+
const L = {
|
|
50
|
+
name: i.name,
|
|
51
|
+
label: i.label,
|
|
52
|
+
value: h,
|
|
53
|
+
closeable: !i.required && !((F = i.props) != null && F.disabled) && ((M = i.props) == null ? void 0 : M.clearable) !== !1
|
|
54
|
+
};
|
|
55
|
+
i.component === "DatePicker" && (((P = i.props) == null ? void 0 : P.type) === "daterange" ? L.value = U(h[0]).format(((Y = i.props) == null ? void 0 : Y.valueFormat) || "YYYY-MM-DD") + " - " + U(h[1]).format(((O = i.props) == null ? void 0 : O.valueFormat) || "YYYY-MM-DD") : (L.iconName = "icon-rili", L.value = U(h).format(((N = i.props) == null ? void 0 : N.valueFormat) || "YYYY-MM-DD"))), i.component === "Select" && (L.value = (le = (S = (l = i.props) == null ? void 0 : l.options) == null ? void 0 : S.find((Se) => Se.value === h)) == null ? void 0 : le.label), b.push(L);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return b;
|
|
60
|
+
}), f = c(""), pe = ae(() => {
|
|
61
|
+
var e, t;
|
|
62
|
+
return !o.prefixOptions || o.prefixOptions.length === 0 || !f.value ? "" : (t = (e = o.prefixOptions) == null ? void 0 : e.find((r) => r.value === f.value)) == null ? void 0 : t.label;
|
|
63
|
+
});
|
|
64
|
+
function fe(e) {
|
|
65
|
+
f.value = e, d.value = "";
|
|
66
|
+
try {
|
|
67
|
+
_[o.prefixChange](y, e);
|
|
68
|
+
} catch (t) {
|
|
69
|
+
console.error(t);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const d = c("");
|
|
73
|
+
function G() {
|
|
74
|
+
try {
|
|
75
|
+
_[o.onSearch](y), V.value = !1;
|
|
76
|
+
} catch (e) {
|
|
77
|
+
console.error(e);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const H = c(!1);
|
|
81
|
+
async function R() {
|
|
82
|
+
try {
|
|
83
|
+
H.value = !0, await _[o.onAiSearch](y, d.value, f.value || "");
|
|
84
|
+
} catch (e) {
|
|
85
|
+
console.error(e);
|
|
86
|
+
} finally {
|
|
87
|
+
H.value = !1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function ve(e) {
|
|
91
|
+
z.setFieldValue(e.name, "", ""), G();
|
|
92
|
+
}
|
|
93
|
+
function me() {
|
|
94
|
+
try {
|
|
95
|
+
_[o.onClear](y);
|
|
96
|
+
} catch (e) {
|
|
97
|
+
console.error(e);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const K = {
|
|
101
|
+
type: "floatcurd"
|
|
102
|
+
};
|
|
103
|
+
if (de(K), o.name) {
|
|
104
|
+
const e = ze(o.name, K);
|
|
105
|
+
re(() => {
|
|
106
|
+
e();
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
Te(
|
|
110
|
+
() => o.defaultPrefixValue,
|
|
111
|
+
(e) => {
|
|
112
|
+
e && (f.value = e);
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
const W = c(!1), I = c(!1);
|
|
116
|
+
c([]);
|
|
117
|
+
const he = c(""), T = c(!1), xe = c(!1);
|
|
118
|
+
function J(e) {
|
|
119
|
+
return d.value ? e ? e.replace(
|
|
120
|
+
new RegExp(d.value, "gi"),
|
|
121
|
+
(t) => `<span style="color: var(--el-color-primary)">${t}</span>`
|
|
122
|
+
) : "--" : e;
|
|
123
|
+
}
|
|
124
|
+
async function _e(e) {
|
|
125
|
+
try {
|
|
126
|
+
await _[o.onDetailInfo](y, e);
|
|
127
|
+
} catch (t) {
|
|
128
|
+
console.error(t);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async function ye(e) {
|
|
132
|
+
try {
|
|
133
|
+
await _[o.onSelectItem](y, e), I.value = !1;
|
|
134
|
+
} catch (t) {
|
|
135
|
+
console.error(t);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function ge() {
|
|
139
|
+
d.value && (I.value = !0);
|
|
140
|
+
}
|
|
141
|
+
function be() {
|
|
142
|
+
W.value = !0;
|
|
143
|
+
}
|
|
144
|
+
function ke() {
|
|
145
|
+
W.value = !1;
|
|
146
|
+
}
|
|
147
|
+
function Ce(e) {
|
|
148
|
+
e ? (I.value = !0, Fe()) : (g = !1, v.value = [], m.value = {
|
|
149
|
+
title: "",
|
|
150
|
+
subTitle: "",
|
|
151
|
+
content: []
|
|
152
|
+
}, I.value = !1);
|
|
153
|
+
}
|
|
154
|
+
let E = 0, g = !1;
|
|
155
|
+
function Q() {
|
|
156
|
+
if (!d.value) {
|
|
157
|
+
g = !1, v.value = [], m.value = {
|
|
158
|
+
title: "",
|
|
159
|
+
subTitle: "",
|
|
160
|
+
content: []
|
|
161
|
+
};
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (E > 0) {
|
|
165
|
+
g = !0;
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
g = !1, Ie();
|
|
169
|
+
}
|
|
170
|
+
function we() {
|
|
171
|
+
E > 0 || !g || Q();
|
|
172
|
+
}
|
|
173
|
+
async function Ie() {
|
|
174
|
+
const e = d.value, t = f.value || "";
|
|
175
|
+
E++;
|
|
176
|
+
try {
|
|
177
|
+
T.value = !0, v.value = [], m.value = {
|
|
178
|
+
title: "",
|
|
179
|
+
subTitle: "",
|
|
180
|
+
content: []
|
|
181
|
+
}, await _[o.onFloatSearch](y, e, t);
|
|
182
|
+
} catch (r) {
|
|
183
|
+
console.error(r);
|
|
184
|
+
} finally {
|
|
185
|
+
E--, d.value && (e !== d.value || t !== (f.value || "")) && (g = !0), E === 0 && !g && (T.value = !1), we();
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
let Fe = Me(Q, 600);
|
|
189
|
+
function Me(e, t = 500) {
|
|
190
|
+
let r = null;
|
|
191
|
+
return function(...b) {
|
|
192
|
+
const F = this;
|
|
193
|
+
r && clearTimeout(r), r = setTimeout(() => {
|
|
194
|
+
e.apply(F, b), r = null;
|
|
195
|
+
}, t);
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
const X = c(null), Z = c(null), ee = (e) => {
|
|
199
|
+
var t, r;
|
|
200
|
+
try {
|
|
201
|
+
!((t = X.value) != null && t.contains(e.target)) && !((r = Z.value) != null && r.contains(e.target)) && te();
|
|
202
|
+
} catch {
|
|
203
|
+
te();
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
function te() {
|
|
207
|
+
console.log("hideSearchDialog"), I.value = !1;
|
|
208
|
+
}
|
|
209
|
+
return Ee(() => {
|
|
210
|
+
document.addEventListener("click", ee), o.defaultPrefixValue ? f.value = o.defaultPrefixValue : o.prefixOptions && o.prefixOptions.length > 0 && (f.value = o.prefixOptions[0].value);
|
|
211
|
+
}), re(() => {
|
|
212
|
+
document.removeEventListener("click", ee);
|
|
213
|
+
}), (e, t) => {
|
|
214
|
+
const r = k("el-dropdown-item"), b = k("el-dropdown-menu"), F = k("el-dropdown"), M = k("el-button"), P = k("el-input"), Y = k("el-skeleton"), O = k("el-scrollbar"), N = Le("loading");
|
|
215
|
+
return q((a(), s("div", Ae, [
|
|
216
|
+
n("div", Ue, [
|
|
217
|
+
n("div", {
|
|
218
|
+
class: "gradient-input-wrapper",
|
|
219
|
+
ref_key: "gradientInputWrapperRef",
|
|
220
|
+
ref: Z
|
|
221
|
+
}, [
|
|
222
|
+
u(P, {
|
|
223
|
+
class: "float-curd-ai-input",
|
|
224
|
+
placeholder: e.inputPlaceholder,
|
|
225
|
+
modelValue: d.value,
|
|
226
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => d.value = l),
|
|
227
|
+
clearable: "",
|
|
228
|
+
onClear: R,
|
|
229
|
+
onKeyup: Be(R, ["enter"]),
|
|
230
|
+
onInput: Ce,
|
|
231
|
+
onFocus: be,
|
|
232
|
+
onBlur: ke,
|
|
233
|
+
onClick: ge
|
|
234
|
+
}, {
|
|
235
|
+
prefix: p(() => [
|
|
236
|
+
e.prefixOptions && e.prefixOptions.length > 0 ? (a(), s(C, { key: 0 }, [
|
|
237
|
+
u(F, {
|
|
238
|
+
onClick: t[0] || (t[0] = se(() => {
|
|
239
|
+
}, ["stop"]))
|
|
240
|
+
}, {
|
|
241
|
+
dropdown: p(() => [
|
|
242
|
+
u(b, null, {
|
|
243
|
+
default: p(() => [
|
|
244
|
+
(a(!0), s(C, null, B(e.prefixOptions, (l) => (a(), A(r, {
|
|
245
|
+
key: l.value,
|
|
246
|
+
command: l.value,
|
|
247
|
+
onClick: (S) => fe(l.value),
|
|
248
|
+
style: { padding: "4px 8px" }
|
|
249
|
+
}, {
|
|
250
|
+
default: p(() => [
|
|
251
|
+
n("span", Ke, x(l.label), 1)
|
|
252
|
+
]),
|
|
253
|
+
_: 2
|
|
254
|
+
}, 1032, ["command", "onClick"]))), 128))
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})
|
|
258
|
+
]),
|
|
259
|
+
default: p(() => [
|
|
260
|
+
n("span", je, [
|
|
261
|
+
n("span", Ge, x(pe.value), 1)
|
|
262
|
+
])
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
}),
|
|
266
|
+
u(D, {
|
|
267
|
+
name: "icon-dropdown",
|
|
268
|
+
size: 12,
|
|
269
|
+
color: "#999"
|
|
270
|
+
})
|
|
271
|
+
], 64)) : (a(), s(C, { key: 1 }, [
|
|
272
|
+
u(D, { name: "icon-a-mobang1" }),
|
|
273
|
+
t[4] || (t[4] = n("span", { class: "prefix-text" }, "Ask AI", -1))
|
|
274
|
+
], 64))
|
|
275
|
+
]),
|
|
276
|
+
suffix: p(() => [
|
|
277
|
+
u(M, {
|
|
278
|
+
type: "primary",
|
|
279
|
+
size: "small",
|
|
280
|
+
onClick: se(R, ["stop"]),
|
|
281
|
+
loading: H.value
|
|
282
|
+
}, {
|
|
283
|
+
default: p(() => t[5] || (t[5] = [
|
|
284
|
+
ie("Go")
|
|
285
|
+
])),
|
|
286
|
+
_: 1
|
|
287
|
+
}, 8, ["loading"])
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
}, 8, ["placeholder", "modelValue"]),
|
|
291
|
+
I.value ? (a(), s("div", {
|
|
292
|
+
key: 0,
|
|
293
|
+
ref_key: "resultPanelRef",
|
|
294
|
+
ref: X,
|
|
295
|
+
class: "absolute top-[32px] w-full bg-[#ffffff] shadow-[0_4px_12px_rgba(0,0,0,0.08)] rounded-bl-[8px] rounded-br-[8px] z-2002"
|
|
296
|
+
}, [
|
|
297
|
+
(!v.value || v.value.length === 0) && !T.value ? (a(), s("div", We, [
|
|
298
|
+
u(He, {
|
|
299
|
+
name: "tableEmpty",
|
|
300
|
+
style: { width: 56, height: 56 }
|
|
301
|
+
}),
|
|
302
|
+
t[6] || (t[6] = n("div", { class: "flex items-center" }, [
|
|
303
|
+
n("span", null, "No data")
|
|
304
|
+
], -1))
|
|
305
|
+
])) : w("", !0),
|
|
306
|
+
T.value ? (a(), s(C, { key: 1 }, B(5, (l) => n("div", {
|
|
307
|
+
key: l,
|
|
308
|
+
class: "flex items-center py-[8px] px-[16px]"
|
|
309
|
+
}, [
|
|
310
|
+
u(Y, {
|
|
311
|
+
rows: 1,
|
|
312
|
+
animated: ""
|
|
313
|
+
})
|
|
314
|
+
])), 64)) : v.value && v.value.length > 0 ? (a(), s("div", Je, [
|
|
315
|
+
u(O, {
|
|
316
|
+
class: "pt-[16px] flex-[764_1_0]",
|
|
317
|
+
"max-height": "368px",
|
|
318
|
+
"wrap-style": { minHeight: T.value ? "368px" : "234px" }
|
|
319
|
+
}, {
|
|
320
|
+
default: p(() => [
|
|
321
|
+
n("div", null, [
|
|
322
|
+
(a(!0), s(C, null, B(v.value, (l) => (a(), s("div", {
|
|
323
|
+
key: l.name,
|
|
324
|
+
class: Pe(["flex-y-center h-[52px] px-[16px] hover:bg-[#E6F0F9] gap-[8px]", { "bg-[#E6F0F9]": l.name === he.value }]),
|
|
325
|
+
onMouseenter: (S) => _e(l),
|
|
326
|
+
onClick: (S) => ye(l)
|
|
327
|
+
}, [
|
|
328
|
+
n("div", null, [
|
|
329
|
+
n("div", {
|
|
330
|
+
class: "text-[#333333] text-[14px] leading-[14px] font-bold mb-[4px] whitespace-nowrap",
|
|
331
|
+
innerHTML: J(l.title)
|
|
332
|
+
}, null, 8, Xe),
|
|
333
|
+
n("div", {
|
|
334
|
+
class: "text-[#333333] text-[12px] leading-[14px] whitespace-nowrap",
|
|
335
|
+
innerHTML: J(l.content)
|
|
336
|
+
}, null, 8, Ze)
|
|
337
|
+
])
|
|
338
|
+
], 42, Qe))), 128))
|
|
339
|
+
])
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
}, 8, ["wrap-style"]),
|
|
343
|
+
m.value && m.value.title ? q((a(), s("div", et, [
|
|
344
|
+
n("div", tt, [
|
|
345
|
+
n("div", lt, [
|
|
346
|
+
n("div", null, [
|
|
347
|
+
n("div", nt, x(m.value.title), 1),
|
|
348
|
+
n("div", ot, x(m.value.subTitle), 1)
|
|
349
|
+
])
|
|
350
|
+
])
|
|
351
|
+
]),
|
|
352
|
+
n("div", at, [
|
|
353
|
+
(a(!0), s(C, null, B(m.value.content, (l) => (a(), s("div", {
|
|
354
|
+
key: l.label
|
|
355
|
+
}, [
|
|
356
|
+
n("div", rt, x(l.label), 1),
|
|
357
|
+
n("div", {
|
|
358
|
+
class: "text-[#333333] text-[14px] leading-[14px] overflow-hidden text-ellipsis",
|
|
359
|
+
style: Ye({ color: l.color }),
|
|
360
|
+
title: l.value ?? "--"
|
|
361
|
+
}, x(l.value || "--"), 13, st)
|
|
362
|
+
]))), 128))
|
|
363
|
+
])
|
|
364
|
+
])), [
|
|
365
|
+
[N, xe.value]
|
|
366
|
+
]) : w("", !0)
|
|
367
|
+
])) : w("", !0)
|
|
368
|
+
], 512)) : w("", !0)
|
|
369
|
+
], 512),
|
|
370
|
+
u(M, {
|
|
371
|
+
plain: !0,
|
|
372
|
+
onClick: t[2] || (t[2] = (l) => V.value = !V.value),
|
|
373
|
+
class: "more-btn",
|
|
374
|
+
type: "primary"
|
|
375
|
+
}, {
|
|
376
|
+
default: p(() => [
|
|
377
|
+
u(D, { name: "icon-tiaojianshaixuan" }),
|
|
378
|
+
t[7] || (t[7] = n("span", null, "More", -1))
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}),
|
|
382
|
+
q(n("div", it, [
|
|
383
|
+
n("div", ut, [
|
|
384
|
+
n("div", ct, x(e.formTitle), 1),
|
|
385
|
+
n("div", dt, [
|
|
386
|
+
u(M, {
|
|
387
|
+
type: "primary",
|
|
388
|
+
size: "small",
|
|
389
|
+
onClick: G
|
|
390
|
+
}, {
|
|
391
|
+
default: p(() => t[8] || (t[8] = [
|
|
392
|
+
ie("Go")
|
|
393
|
+
])),
|
|
394
|
+
_: 1
|
|
395
|
+
}),
|
|
396
|
+
u(D, {
|
|
397
|
+
name: "icon-a-rongqi1",
|
|
398
|
+
onClick: t[3] || (t[3] = (l) => V.value = !1)
|
|
399
|
+
})
|
|
400
|
+
])
|
|
401
|
+
]),
|
|
402
|
+
n("div", pt, [
|
|
403
|
+
u(Oe(Re), { list: e.children }, null, 8, ["list"])
|
|
404
|
+
])
|
|
405
|
+
], 512), [
|
|
406
|
+
[ue, V.value]
|
|
407
|
+
])
|
|
408
|
+
]),
|
|
409
|
+
n("div", ft, [
|
|
410
|
+
(a(!0), s(C, null, B(j.value, (l) => (a(), s("div", {
|
|
411
|
+
class: "tag",
|
|
412
|
+
key: l.name
|
|
413
|
+
}, [
|
|
414
|
+
l.iconName ? (a(), A(D, {
|
|
415
|
+
key: 0,
|
|
416
|
+
name: l.iconName
|
|
417
|
+
}, null, 8, ["name"])) : w("", !0),
|
|
418
|
+
n("span", {
|
|
419
|
+
innerHTML: l.label + ":"
|
|
420
|
+
}, null, 8, vt),
|
|
421
|
+
n("span", {
|
|
422
|
+
class: "tag-value",
|
|
423
|
+
title: l.value
|
|
424
|
+
}, x(l.value), 9, mt),
|
|
425
|
+
l.closeable ? (a(), A(D, {
|
|
426
|
+
key: 1,
|
|
427
|
+
name: "icon-a-rongqi1",
|
|
428
|
+
onClick: (S) => ve(l),
|
|
429
|
+
class: "close-icon"
|
|
430
|
+
}, null, 8, ["onClick"])) : w("", !0)
|
|
431
|
+
]))), 128)),
|
|
432
|
+
j.value.length > 0 ? (a(), s("div", {
|
|
433
|
+
key: 0,
|
|
434
|
+
class: "clear-btn",
|
|
435
|
+
onClick: me
|
|
436
|
+
}, "Clear filters")) : w("", !0)
|
|
437
|
+
])
|
|
438
|
+
], 512)), [
|
|
439
|
+
[ue, !e.hidden]
|
|
440
|
+
]);
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
}), gt = /* @__PURE__ */ qe(ht, [["__scopeId", "data-v-26002527"]]);
|
|
444
|
+
export {
|
|
445
|
+
gt as default
|
|
446
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as F, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as h, unref as _, createBlock as s, Fragment as g, renderList as $, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as M, createCommentVNode as y, toDisplayString as D, createTextVNode as O, h as Q } from "vue";
|
|
2
|
-
import { u as U, l as w, e as W, F as R, a as L, h as X } from "./index-
|
|
2
|
+
import { u as U, l as w, e as W, F as R, a as L, h as X } from "./index-C_zeIIm3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
|
|
5
5
|
__name: "FormList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, computed as o, openBlock as a, createElementBlock as d, normalizeStyle as r, createVNode as m, unref as l } from "vue";
|
|
2
|
-
import { b as g } from "./index-
|
|
2
|
+
import { b as g } from "./index-C_zeIIm3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const x = /* @__PURE__ */ e({
|
|
5
5
|
__name: "Grid",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, resolveDirective as c, withDirectives as a, openBlock as d, createElementBlock as f, normalizeStyle as p, createVNode as _, unref as m } from "vue";
|
|
2
|
-
import { c as u, b as y, _ as
|
|
2
|
+
import { c as u, b as y, _ as b } from "./index-C_zeIIm3.js";
|
|
3
3
|
import "element-plus";
|
|
4
|
-
const
|
|
4
|
+
const h = ["infinite-scroll-disabled"], v = /* @__PURE__ */ s({
|
|
5
5
|
__name: "InfiniteScroll",
|
|
6
6
|
props: {
|
|
7
7
|
children: {},
|
|
@@ -27,12 +27,12 @@ const b = ["infinite-scroll-disabled"], v = /* @__PURE__ */ s({
|
|
|
27
27
|
style: p(e.style)
|
|
28
28
|
}, [
|
|
29
29
|
_(m(y), { list: e.children }, null, 8, ["list"])
|
|
30
|
-
], 12,
|
|
30
|
+
], 12, h)), [
|
|
31
31
|
[r, n]
|
|
32
32
|
]);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
}), M = /* @__PURE__ */
|
|
35
|
+
}), M = /* @__PURE__ */ b(v, [["__scopeId", "data-v-65b0b3cf"]]);
|
|
36
36
|
export {
|
|
37
37
|
M as default
|
|
38
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, computed as o, openBlock as r, createElementBlock as i, normalizeStyle as p, createVNode as s, unref as c } from "vue";
|
|
2
|
-
import { b as m, _ as
|
|
2
|
+
import { b as m, _ as f } from "./index-C_zeIIm3.js";
|
|
3
3
|
import "element-plus";
|
|
4
|
-
const
|
|
4
|
+
const u = /* @__PURE__ */ l({
|
|
5
5
|
__name: "Inline",
|
|
6
6
|
props: {
|
|
7
7
|
children: {},
|
|
@@ -29,7 +29,7 @@ const f = /* @__PURE__ */ l({
|
|
|
29
29
|
s(c(m), { list: a.children }, null, 8, ["list"])
|
|
30
30
|
], 4));
|
|
31
31
|
}
|
|
32
|
-
}), x = /* @__PURE__ */ u
|
|
32
|
+
}), x = /* @__PURE__ */ f(u, [["__scopeId", "data-v-50b97afb"]]);
|
|
33
33
|
export {
|
|
34
34
|
x as default
|
|
35
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
|
|
2
|
-
import { _ as xt, g as Nt } from "./index-
|
|
2
|
+
import { _ as xt, g as Nt } from "./index-C_zeIIm3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Mt = /* @__PURE__ */ At({
|
|
5
5
|
__name: "Disabled",
|
|
@@ -12,7 +12,7 @@ const Mt = /* @__PURE__ */ At({
|
|
|
12
12
|
It(Je.$slots, "default", {}, void 0, !0)
|
|
13
13
|
], 16)) : It(Je.$slots, "default", { key: 1 }, void 0, !0);
|
|
14
14
|
}
|
|
15
|
-
}), Bt = /* @__PURE__ */ xt(Mt, [["__scopeId", "data-v-
|
|
15
|
+
}), Bt = /* @__PURE__ */ xt(Mt, [["__scopeId", "data-v-353650ae"]]);
|
|
16
16
|
var kt = { exports: {} };
|
|
17
17
|
/*!
|
|
18
18
|
* jsoneditor.js
|
|
@@ -16350,7 +16350,7 @@ function Ft(je, Je, Xe, et, qe, ae) {
|
|
|
16350
16350
|
}, null, 2)
|
|
16351
16351
|
], 2);
|
|
16352
16352
|
}
|
|
16353
|
-
const Ot = /* @__PURE__ */ xt(Ht, [["render", Ft], ["__scopeId", "data-v-
|
|
16353
|
+
const Ot = /* @__PURE__ */ xt(Ht, [["render", Ft], ["__scopeId", "data-v-c3373674"]]), jt = /* @__PURE__ */ At({
|
|
16354
16354
|
inheritAttrs: !1,
|
|
16355
16355
|
__name: "JsonEdit",
|
|
16356
16356
|
props: /* @__PURE__ */ Tt({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as
|
|
2
|
-
import { _ as y } from "./index-
|
|
1
|
+
import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as i, createElementVNode as s, normalizeStyle as d, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
|
|
2
|
+
import { _ as y } from "./index-C_zeIIm3.js";
|
|
3
3
|
const f = { class: "log-list" }, h = { class: "title-part" }, m = { class: "title" }, b = { class: "sub-title" }, k = { class: "content" }, C = { key: 0 }, L = /* @__PURE__ */ p({
|
|
4
4
|
__name: "LogList",
|
|
5
5
|
props: {
|
|
@@ -7,7 +7,7 @@ const f = { class: "log-list" }, h = { class: "title-part" }, m = { class: "titl
|
|
|
7
7
|
},
|
|
8
8
|
setup(x) {
|
|
9
9
|
return (_, N) => (e(), o("div", f, [
|
|
10
|
-
(e(!0), o(a, null,
|
|
10
|
+
(e(!0), o(a, null, i(_.content, (t) => {
|
|
11
11
|
var r;
|
|
12
12
|
return e(), o("div", {
|
|
13
13
|
class: "log-list-item",
|
|
@@ -15,18 +15,18 @@ const f = { class: "log-list" }, h = { class: "title-part" }, m = { class: "titl
|
|
|
15
15
|
}, [
|
|
16
16
|
s("div", {
|
|
17
17
|
class: "left-bar",
|
|
18
|
-
style:
|
|
18
|
+
style: d({ backgroundColor: t.color })
|
|
19
19
|
}, null, 4),
|
|
20
20
|
s("div", h, [
|
|
21
21
|
s("div", {
|
|
22
22
|
class: "circle",
|
|
23
|
-
style:
|
|
23
|
+
style: d({ backgroundColor: t.color })
|
|
24
24
|
}, l((r = t.title) == null ? void 0 : r[0]), 5),
|
|
25
25
|
s("div", m, l(t.title), 1),
|
|
26
26
|
s("div", b, l(t.subTitle), 1)
|
|
27
27
|
]),
|
|
28
28
|
s("div", k, [
|
|
29
|
-
(e(!0), o(a, null,
|
|
29
|
+
(e(!0), o(a, null, i(t.content, (n, c) => (e(), o("span", {
|
|
30
30
|
key: c,
|
|
31
31
|
class: u({ bold: n.style === "bold", normal: n.style === "normal" })
|
|
32
32
|
}, [
|
|
@@ -38,7 +38,7 @@ const f = { class: "log-list" }, h = { class: "title-part" }, m = { class: "titl
|
|
|
38
38
|
}), 128))
|
|
39
39
|
]));
|
|
40
40
|
}
|
|
41
|
-
}), B = /* @__PURE__ */ y(L, [["__scopeId", "data-v-
|
|
41
|
+
}), B = /* @__PURE__ */ y(L, [["__scopeId", "data-v-fe451915"]]);
|
|
42
42
|
export {
|
|
43
43
|
B as default
|
|
44
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as n, unref as c, createBlock as m, Fragment as _, renderList as b, mergeProps as j } from "vue";
|
|
2
|
-
import { u as $, e as h, F as k } from "./index-
|
|
2
|
+
import { u as $, e as h, F as k } from "./index-C_zeIIm3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
5
|
key: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as P, resolveComponent as S, openBlock as l, createBlock as N, withCtx as I, createVNode as k, createElementVNode as i, createElementBlock as r, Fragment as u, renderList as m, toDisplayString as v, createCommentVNode as O, ref as g, inject as L, watchEffect as $, onMounted as x, onUnmounted as z, normalizeStyle as A, unref as U } from "vue";
|
|
2
|
-
import { k as j, $ as F, a as K, _ as V } from "./index-
|
|
2
|
+
import { k as j, $ as F, a as K, _ as V } from "./index-C_zeIIm3.js";
|
|
3
3
|
const W = { class: "content" }, q = { class: "product-list" }, G = { class: "attribute-list" }, H = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "attribute-list-item"
|
|
@@ -154,26 +154,26 @@ const W = { class: "content" }, q = { class: "product-list" }, G = { class: "att
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
-
let
|
|
158
|
-
const
|
|
157
|
+
let _ = null;
|
|
158
|
+
const b = g(), w = g(3);
|
|
159
159
|
return x(() => {
|
|
160
160
|
var t;
|
|
161
161
|
y.value = (t = a.rowBtns) == null ? void 0 : t.map((e) => ({
|
|
162
162
|
icon: e.icon && e.icon.name ? e.icon.name : "icon-tishi",
|
|
163
163
|
label: e.label,
|
|
164
164
|
onClick: e.onClick
|
|
165
|
-
})),
|
|
165
|
+
})), _ = new ResizeObserver((e) => {
|
|
166
166
|
for (const o of e) {
|
|
167
167
|
const n = o.contentRect.width;
|
|
168
168
|
w.value = Math.floor(n / 330) || 1;
|
|
169
169
|
}
|
|
170
|
-
}),
|
|
170
|
+
}), _.observe(b.value);
|
|
171
171
|
}), z(() => {
|
|
172
|
-
|
|
172
|
+
_ && b.value && _.unobserve(b.value);
|
|
173
173
|
}), (t, e) => (l(), r(u, null, [
|
|
174
174
|
i("div", {
|
|
175
175
|
ref_key: "cardListRef",
|
|
176
|
-
ref:
|
|
176
|
+
ref: b,
|
|
177
177
|
class: "card-list",
|
|
178
178
|
style: A({
|
|
179
179
|
"--columns": w.value,
|
|
@@ -200,7 +200,7 @@ const W = { class: "content" }, q = { class: "product-list" }, G = { class: "att
|
|
|
200
200
|
])) : O("", !0)
|
|
201
201
|
], 64));
|
|
202
202
|
}
|
|
203
|
-
}), ae = /* @__PURE__ */ V(te, [["__scopeId", "data-v-
|
|
203
|
+
}), ae = /* @__PURE__ */ V(te, [["__scopeId", "data-v-708e193d"]]);
|
|
204
204
|
export {
|
|
205
205
|
ae as default
|
|
206
206
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { c as E, i as I, _ as R } from "./index-
|
|
1
|
+
import { defineComponent as b, ref as d, computed as B, onUnmounted as U, resolveComponent as C, openBlock as s, createElementBlock as S, normalizeStyle as M, createBlock as f, withCtx as j, createElementVNode as r, createVNode as L, createCommentVNode as x, createTextVNode as m, toDisplayString as h } from "vue";
|
|
2
|
+
import { c as E, i as I, _ as R } from "./index-C_zeIIm3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const T = { class: "custom-slot" }, D = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "select-all-wrapper"
|
|
7
|
-
}, O = { style: { color: "#666666" } }, q = { style: { color: "var(--el-color-primary)" } }, F = { style: { color: "var(--el-color-primary)" } }, G = /* @__PURE__ */
|
|
7
|
+
}, O = { style: { color: "#666666" } }, q = { style: { color: "var(--el-color-primary)" } }, F = { style: { color: "var(--el-color-primary)" } }, G = /* @__PURE__ */ b({
|
|
8
8
|
__name: "Pagination",
|
|
9
9
|
props: {
|
|
10
10
|
pageSizes: {},
|
|
@@ -21,7 +21,7 @@ const T = { class: "custom-slot" }, D = {
|
|
|
21
21
|
selectAllChange: {}
|
|
22
22
|
},
|
|
23
23
|
setup(N, { expose: P }) {
|
|
24
|
-
const n = N, { ruleModule: p, pageMethodMap: u } = E(), l = d(0), k =
|
|
24
|
+
const n = N, { ruleModule: p, pageMethodMap: u } = E(), l = d(0), k = B(() => {
|
|
25
25
|
const { pageNum: a, pageSize: e } = t.value, g = (a - 1) * e;
|
|
26
26
|
return Math.min(e, Math.max(0, l.value - g));
|
|
27
27
|
}), w = (a) => {
|
|
@@ -54,7 +54,7 @@ const T = { class: "custom-slot" }, D = {
|
|
|
54
54
|
};
|
|
55
55
|
if (n.name) {
|
|
56
56
|
const a = I(n.name, v);
|
|
57
|
-
|
|
57
|
+
U(() => {
|
|
58
58
|
a();
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -115,7 +115,7 @@ const T = { class: "custom-slot" }, D = {
|
|
|
115
115
|
], 4);
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
}), Q = /* @__PURE__ */ R(G, [["__scopeId", "data-v-
|
|
118
|
+
}), Q = /* @__PURE__ */ R(G, [["__scopeId", "data-v-9021b7e0"]]);
|
|
119
119
|
export {
|
|
120
120
|
Q as default
|
|
121
121
|
};
|