asiaint-lowcode 3.1.89 → 3.1.91
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/dist/asiaint-lowcode.js +7 -6
- package/dist/asiaint-lowcode.umd.cjs +136 -136
- package/dist/index.d.ts +33 -30
- package/dist/lazy/{Card-CwWQS71c.js → Card-D3d-6_Lk.js} +48 -47
- package/dist/lazy/{Cascader-D4GFKg1c.js → Cascader-D27hRRXq.js} +1 -1
- package/dist/lazy/{Checkbox-BpZeA0Qu.js → Checkbox-B433nauk.js} +2 -2
- package/dist/lazy/{Collapse-D8E1pN0d.js → Collapse-NjDkO3QR.js} +1 -1
- package/dist/lazy/{Component-B9TS96cw.js → Component-3Wd3wPt4.js} +11 -10
- package/dist/lazy/{Component-BtHsUPVb.js → Component-CQyD7Bq6.js} +1 -1
- package/dist/lazy/{Component-BhsOJEj5.js → Component-DahvN408.js} +1 -1
- package/dist/lazy/{Component-OJ3zIbOb.js → Component-DcOgUCHH.js} +1 -1
- package/dist/lazy/{Component-DTxU0Y1L.js → Component-glR8Mi9-.js} +1 -1
- package/dist/lazy/{CurdCard-B1X72wR8.js → CurdCard-B8Ul41J2.js} +1 -1
- package/dist/lazy/{Custom-D8dtTjQd.js → Custom-CMQimedW.js} +1 -1
- package/dist/lazy/{DatePicker-BexoDPL8.js → DatePicker-D4LxATzO.js} +1 -1
- package/dist/lazy/{DragList-CY0K8r8S.js → DragList-Cg8NILg7.js} +13 -13
- package/dist/lazy/{FilterSearch-Crf1Kib-.js → FilterSearch-DEd_BUXy.js} +16 -16
- package/dist/lazy/FloatCurd-_cylHxFy.js +182 -0
- package/dist/lazy/{FormList-DvcxSqoA.js → FormList-BfUM5ibp.js} +38 -38
- package/dist/lazy/{Grid-Bnv4gTUf.js → Grid-DZgRY-bZ.js} +1 -1
- package/dist/lazy/{InfiniteScroll-BMRsw9k9.js → InfiniteScroll-BfCIQ0Yx.js} +1 -1
- package/dist/lazy/{Inline--_SvU5c1.js → Inline-Cqx72Jf7.js} +1 -1
- package/dist/lazy/{JsonEdit-ivS6nHEq.js → JsonEdit-Bd5tXFMb.js} +1 -1
- package/dist/lazy/{LogList-B-2fTZdQ.js → LogList-D9hCMmAp.js} +1 -1
- package/dist/lazy/ObjGroup-X6yQLbdr.js +32 -0
- package/dist/lazy/{OfferDetails-Butt8aFh.js → OfferDetails-ESyxBvAT.js} +60 -48
- package/dist/lazy/{Pagination-BIRnMYmE.js → Pagination-TPTDn6O8.js} +4 -4
- package/dist/lazy/{Progress-DZm-xeO5.js → Progress-Dcu0zV0n.js} +1 -1
- package/dist/lazy/{Radio-i_Ru5ao8.js → Radio-lWBhar1D.js} +2 -2
- package/dist/lazy/{SearchSelect-CHTbceLY.js → SearchSelect-DfZsiErV.js} +2 -2
- package/dist/lazy/{Select-DGWeMv9K.js → Select-jxoc3Go0.js} +2 -2
- package/dist/lazy/{Table-D-QsIp_Q.js → Table-QjWTre1h.js} +3 -3
- package/dist/lazy/{Tabs-CsiBv6K6.js → Tabs-Cj3VWcJ8.js} +35 -40
- package/dist/lazy/{TextArea-BrZkXojB.js → TextArea-C7hTF1hs.js} +1 -1
- package/dist/lazy/{Wrapper-CwF7dV0F.js → Wrapper-nmp2n41L.js} +1 -1
- package/dist/lazy/{index-VBiXND-K.js → index-88JF9OWh.js} +5476 -5308
- package/dist/lazy/{useSelect-4TkEWg19.js → useSelect-C7HI6k_F.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Component-BR-cyhqo.js +0 -162
- package/dist/lazy/FloatCurd-mr3HjgYk.js +0 -176
- package/dist/lazy/ObjGroup-BKtbvPti.js +0 -32
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { defineComponent as K, ref as g, computed as R, onUnmounted as U, resolveComponent as B, withDirectives as D, openBlock as c, createElementBlock as v, createElementVNode as a, createVNode as t, withKeys as J, withCtx as d, createTextVNode as L, toDisplayString as Y, unref as O, vShow as $, Fragment as Q, renderList as W, createBlock as j, createCommentVNode as I } from "vue";
|
|
2
|
+
import { c as X, u as Z, f as q, j as ee, I as m, b as oe, _ as ne } from "./index-88JF9OWh.js";
|
|
3
|
+
import { dayjs as le } from "element-plus";
|
|
4
|
+
const ae = { class: "float-curd" }, te = { class: "curd-body" }, se = { class: "gradient-input-wrapper" }, re = { class: "float-form" }, ie = { class: "float-form-header" }, ce = { class: "float-form-header-title" }, ue = { class: "float-form-header-btns" }, de = { class: "float-form-body" }, me = { class: "curd-footer" }, fe = ["innerHTML"], pe = /* @__PURE__ */ K({
|
|
5
|
+
__name: "FloatCurd",
|
|
6
|
+
props: {
|
|
7
|
+
name: {},
|
|
8
|
+
children: {},
|
|
9
|
+
formTitle: {},
|
|
10
|
+
onSearch: {},
|
|
11
|
+
onAiSearch: {},
|
|
12
|
+
onClear: {},
|
|
13
|
+
inputPlaceholder: {},
|
|
14
|
+
hidden: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup(P, { expose: z }) {
|
|
17
|
+
const r = P, u = g(!1), { ruleModule: h, pageMethodMap: _ } = X(), y = Z(), S = R(() => {
|
|
18
|
+
var n, V, M, N, w, T;
|
|
19
|
+
const o = y.schema.items, e = y.formValues, s = q(o, r.name);
|
|
20
|
+
if (!s || !s.children)
|
|
21
|
+
return [];
|
|
22
|
+
const f = [];
|
|
23
|
+
for (const A in e) {
|
|
24
|
+
const l = q(s.children, A);
|
|
25
|
+
if (l && l.label && !l.hidden) {
|
|
26
|
+
const i = e[A];
|
|
27
|
+
if (i != null && i !== "") {
|
|
28
|
+
const p = {
|
|
29
|
+
name: l.name,
|
|
30
|
+
label: l.label,
|
|
31
|
+
value: i,
|
|
32
|
+
closeable: !l.required && !((n = l.props) != null && n.disabled) && ((V = l.props) == null ? void 0 : V.clearable) !== !1
|
|
33
|
+
};
|
|
34
|
+
l.component === "DatePicker" && (p.iconName = "icon-rili", p.value = le(i).format(((M = l.props) == null ? void 0 : M.valueFormat) || "YYYY-MM-DD")), l.component === "Select" && (p.value = (T = (w = (N = l.props) == null ? void 0 : N.options) == null ? void 0 : w.find((H) => H.value === i)) == null ? void 0 : T.label), f.push(p);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return f;
|
|
39
|
+
}), C = g("");
|
|
40
|
+
function x() {
|
|
41
|
+
try {
|
|
42
|
+
h[r.onSearch](_), u.value = !1;
|
|
43
|
+
} catch (o) {
|
|
44
|
+
console.error(o);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const b = g(!1);
|
|
48
|
+
async function k() {
|
|
49
|
+
try {
|
|
50
|
+
b.value = !0, await h[r.onAiSearch](_, C.value);
|
|
51
|
+
} catch (o) {
|
|
52
|
+
console.error(o);
|
|
53
|
+
} finally {
|
|
54
|
+
b.value = !1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function E(o) {
|
|
58
|
+
y.setFieldValue(o.name, "", ""), x();
|
|
59
|
+
}
|
|
60
|
+
function G() {
|
|
61
|
+
try {
|
|
62
|
+
h[r.onClear](_);
|
|
63
|
+
} catch (o) {
|
|
64
|
+
console.error(o);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const F = {
|
|
68
|
+
type: "floatcurd"
|
|
69
|
+
};
|
|
70
|
+
if (z(F), r.name) {
|
|
71
|
+
const o = ee(r.name, F);
|
|
72
|
+
U(() => {
|
|
73
|
+
o();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return (o, e) => {
|
|
77
|
+
const s = B("el-button"), f = B("el-input");
|
|
78
|
+
return D((c(), v("div", ae, [
|
|
79
|
+
a("div", te, [
|
|
80
|
+
a("div", se, [
|
|
81
|
+
t(f, {
|
|
82
|
+
class: "float-curd-ai-input",
|
|
83
|
+
placeholder: o.inputPlaceholder,
|
|
84
|
+
modelValue: C.value,
|
|
85
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => C.value = n),
|
|
86
|
+
clearable: "",
|
|
87
|
+
onClear: k,
|
|
88
|
+
onKeyup: J(k, ["enter"])
|
|
89
|
+
}, {
|
|
90
|
+
prefix: d(() => [
|
|
91
|
+
t(m, { name: "icon-a-mobang1" }),
|
|
92
|
+
e[3] || (e[3] = a("span", { class: "prefix-text" }, "Ask AI", -1))
|
|
93
|
+
]),
|
|
94
|
+
suffix: d(() => [
|
|
95
|
+
t(s, {
|
|
96
|
+
type: "primary",
|
|
97
|
+
size: "small",
|
|
98
|
+
onClick: k,
|
|
99
|
+
loading: b.value
|
|
100
|
+
}, {
|
|
101
|
+
default: d(() => e[4] || (e[4] = [
|
|
102
|
+
L("Go")
|
|
103
|
+
])),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 8, ["loading"])
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["placeholder", "modelValue"])
|
|
109
|
+
]),
|
|
110
|
+
t(s, {
|
|
111
|
+
plain: !0,
|
|
112
|
+
onClick: e[1] || (e[1] = (n) => u.value = !u.value),
|
|
113
|
+
class: "more-btn"
|
|
114
|
+
}, {
|
|
115
|
+
default: d(() => [
|
|
116
|
+
t(m, { name: "icon-tiaojianshaixuan" }),
|
|
117
|
+
e[5] || (e[5] = a("span", null, "More", -1))
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}),
|
|
121
|
+
D(a("div", re, [
|
|
122
|
+
a("div", ie, [
|
|
123
|
+
a("div", ce, Y(o.formTitle), 1),
|
|
124
|
+
a("div", ue, [
|
|
125
|
+
t(s, {
|
|
126
|
+
type: "primary",
|
|
127
|
+
size: "small",
|
|
128
|
+
onClick: x
|
|
129
|
+
}, {
|
|
130
|
+
default: d(() => e[6] || (e[6] = [
|
|
131
|
+
L("Go")
|
|
132
|
+
])),
|
|
133
|
+
_: 1
|
|
134
|
+
}),
|
|
135
|
+
t(m, {
|
|
136
|
+
name: "icon-a-rongqi1",
|
|
137
|
+
onClick: e[2] || (e[2] = (n) => u.value = !1)
|
|
138
|
+
})
|
|
139
|
+
])
|
|
140
|
+
]),
|
|
141
|
+
a("div", de, [
|
|
142
|
+
t(O(oe), { list: o.children }, null, 8, ["list"])
|
|
143
|
+
])
|
|
144
|
+
], 512), [
|
|
145
|
+
[$, u.value]
|
|
146
|
+
])
|
|
147
|
+
]),
|
|
148
|
+
a("div", me, [
|
|
149
|
+
(c(!0), v(Q, null, W(S.value, (n) => (c(), v("div", {
|
|
150
|
+
class: "tag",
|
|
151
|
+
key: n.name
|
|
152
|
+
}, [
|
|
153
|
+
n.iconName ? (c(), j(m, {
|
|
154
|
+
key: 0,
|
|
155
|
+
name: n.iconName
|
|
156
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
157
|
+
a("span", {
|
|
158
|
+
innerHTML: n.label + ":"
|
|
159
|
+
}, null, 8, fe),
|
|
160
|
+
a("span", null, Y(n.value), 1),
|
|
161
|
+
n.closeable ? (c(), j(m, {
|
|
162
|
+
key: 1,
|
|
163
|
+
name: "icon-a-rongqi1",
|
|
164
|
+
onClick: (V) => E(n),
|
|
165
|
+
class: "close-icon"
|
|
166
|
+
}, null, 8, ["onClick"])) : I("", !0)
|
|
167
|
+
]))), 128)),
|
|
168
|
+
S.value.length > 0 ? (c(), v("div", {
|
|
169
|
+
key: 0,
|
|
170
|
+
class: "clear-btn",
|
|
171
|
+
onClick: G
|
|
172
|
+
}, "Clear filters")) : I("", !0)
|
|
173
|
+
])
|
|
174
|
+
], 512)), [
|
|
175
|
+
[$, !o.hidden]
|
|
176
|
+
]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}), ye = /* @__PURE__ */ ne(pe, [["__scopeId", "data-v-39f9cfac"]]);
|
|
180
|
+
export {
|
|
181
|
+
ye as default
|
|
182
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
2
|
-
import { u as U, l as w, e as W, F as R, a as L, h as X } from "./index-
|
|
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-88JF9OWh.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",
|
|
@@ -19,26 +19,26 @@ const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-con
|
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(V) {
|
|
22
|
-
const
|
|
22
|
+
const m = V, a = G(V, "modelValue"), z = T(0), N = U(), B = (e) => X(m.children, { $item: a.value[e], $index: e }), A = F(() => a.value.length >= m.maxLines), I = F(() => a.value.length <= m.minLines), q = () => {
|
|
23
23
|
A.value || (a.value = [...a.value, {}]);
|
|
24
24
|
}, E = (e) => {
|
|
25
|
-
const
|
|
26
|
-
a.value =
|
|
27
|
-
}, P = (e,
|
|
28
|
-
const k =
|
|
25
|
+
const f = a.value.filter((i, o) => o !== e);
|
|
26
|
+
a.value = f;
|
|
27
|
+
}, P = (e, f, i, o) => {
|
|
28
|
+
const k = f.no, p = B(o)[k];
|
|
29
29
|
return Q(R, {
|
|
30
|
-
...
|
|
30
|
+
...p,
|
|
31
31
|
hideLabel: !0,
|
|
32
32
|
style: { marginBottom: 0 },
|
|
33
|
-
name: `${
|
|
33
|
+
name: `${m.name}.${o}.${p.name}`
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
return H(a, (e,
|
|
37
|
-
const i = e.reduce((n, d, t) => (w.isEqual(d,
|
|
38
|
-
if (z.value = i, !
|
|
39
|
-
const o = B(i), k = e[i] || {},
|
|
36
|
+
return H(a, (e, f) => {
|
|
37
|
+
const i = e.reduce((n, d, t) => (w.isEqual(d, f[t]) || (n = t), n), 0);
|
|
38
|
+
if (z.value = i, !m.children.some((n) => n.change)) return;
|
|
39
|
+
const o = B(i), k = e[i] || {}, p = f[i] || {};
|
|
40
40
|
o.forEach((n) => {
|
|
41
|
-
n.change &&
|
|
41
|
+
n.change && p && !w.isEqual(k[n.name], p[n.name]) && n.change.forEach((d) => {
|
|
42
42
|
if (d.condition !== !1) {
|
|
43
43
|
if (w.isString(d.condition) && /^{{\s*(.*?)\s*}}$/.test(d.condition)) return;
|
|
44
44
|
const t = d.target.split(".").pop();
|
|
@@ -48,19 +48,19 @@ const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-con
|
|
|
48
48
|
});
|
|
49
49
|
}), J(() => {
|
|
50
50
|
var e;
|
|
51
|
-
|
|
51
|
+
m.minLines && !((e = a.value) != null && e.length) && (a.value = Array.from({ length: m.minLines }, () => ({})));
|
|
52
52
|
}), K(
|
|
53
53
|
"$objGroupBase",
|
|
54
|
-
F(() => `${
|
|
55
|
-
), (e,
|
|
56
|
-
const i =
|
|
57
|
-
return l(),
|
|
58
|
-
|
|
54
|
+
F(() => `${m.name}.${z.value}`)
|
|
55
|
+
), (e, f) => {
|
|
56
|
+
const i = b("el-space"), o = b("el-button"), k = b("el-form-item"), p = b("el-card"), n = b("el-table-column"), d = b("el-table");
|
|
57
|
+
return l(), h("div", Y, [
|
|
58
|
+
_(N).design ? (l(), s(W, {
|
|
59
59
|
key: 0,
|
|
60
60
|
list: e.children,
|
|
61
61
|
class: "layoutRender"
|
|
62
|
-
}, null, 8, ["list"])) : (l(),
|
|
63
|
-
e.mode === "inline" ? (l(!0),
|
|
62
|
+
}, null, 8, ["list"])) : (l(), h("div", Z, [
|
|
63
|
+
e.mode === "inline" ? (l(!0), h(g, { key: 0 }, $(a.value, (t, u) => (l(), s(k, {
|
|
64
64
|
key: t.key,
|
|
65
65
|
class: "list-item"
|
|
66
66
|
}, {
|
|
@@ -68,7 +68,7 @@ const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-con
|
|
|
68
68
|
C("div", x, [
|
|
69
69
|
v(i, null, {
|
|
70
70
|
default: r(() => [
|
|
71
|
-
(l(!0),
|
|
71
|
+
(l(!0), h(g, null, $(B(u), (c) => (l(), s(R, M({ ref_for: !0 }, c, {
|
|
72
72
|
key: c.label,
|
|
73
73
|
name: `${e.name}.${u}.${c.name}`,
|
|
74
74
|
hideLabel: ""
|
|
@@ -86,18 +86,18 @@ const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-con
|
|
|
86
86
|
size: "small"
|
|
87
87
|
}, {
|
|
88
88
|
icon: r(() => [
|
|
89
|
-
v(
|
|
89
|
+
v(_(L), {
|
|
90
90
|
name: "reduce",
|
|
91
91
|
color: "#fff"
|
|
92
92
|
})
|
|
93
93
|
]),
|
|
94
94
|
_: 2
|
|
95
|
-
}, 1032, ["onClick", "disabled"])) :
|
|
95
|
+
}, 1032, ["onClick", "disabled"])) : y("", !0)
|
|
96
96
|
])
|
|
97
97
|
]),
|
|
98
98
|
_: 2
|
|
99
|
-
}, 1024))), 128)) :
|
|
100
|
-
e.mode === "card" ? (l(!0),
|
|
99
|
+
}, 1024))), 128)) : y("", !0),
|
|
100
|
+
e.mode === "card" ? (l(!0), h(g, { key: 1 }, $(a.value, (t, u) => (l(), s(p, {
|
|
101
101
|
key: t.key,
|
|
102
102
|
class: "list-card"
|
|
103
103
|
}, {
|
|
@@ -114,36 +114,36 @@ const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-con
|
|
|
114
114
|
size: "small"
|
|
115
115
|
}, {
|
|
116
116
|
icon: r(() => [
|
|
117
|
-
v(
|
|
117
|
+
v(_(L), {
|
|
118
118
|
name: "reduce",
|
|
119
119
|
color: "#fff"
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
122
|
_: 2
|
|
123
|
-
}, 1032, ["onClick", "disabled"])) :
|
|
123
|
+
}, 1032, ["onClick", "disabled"])) : y("", !0)
|
|
124
124
|
])
|
|
125
125
|
]),
|
|
126
126
|
default: r(() => [
|
|
127
|
-
(l(!0),
|
|
127
|
+
(l(!0), h(g, null, $(B(u), (c) => (l(), s(R, M({ ref_for: !0 }, c, {
|
|
128
128
|
key: c.label,
|
|
129
129
|
class: "list-card-item",
|
|
130
130
|
name: `${e.name}.${u}.${c.name}`
|
|
131
131
|
}), null, 16, ["name"]))), 128))
|
|
132
132
|
]),
|
|
133
133
|
_: 2
|
|
134
|
-
}, 1024))), 128)) :
|
|
134
|
+
}, 1024))), 128)) : y("", !0),
|
|
135
135
|
e.mode === "table" && a.value.length ? (l(), s(d, {
|
|
136
136
|
key: 2,
|
|
137
137
|
data: a.value,
|
|
138
138
|
style: { width: "100%" }
|
|
139
139
|
}, {
|
|
140
140
|
default: r(() => [
|
|
141
|
-
(l(!0),
|
|
141
|
+
(l(!0), h(g, null, $(e.children, (t) => (l(), s(n, M({
|
|
142
142
|
prop: t.name,
|
|
143
143
|
label: t.label,
|
|
144
144
|
key: t.name,
|
|
145
145
|
ref_for: !0
|
|
146
|
-
},
|
|
146
|
+
}, _(w.pickBy)(t, Boolean), { formatter: P }), null, 16, ["prop", "label"]))), 128)),
|
|
147
147
|
v(n, {
|
|
148
148
|
fixed: "right",
|
|
149
149
|
"min-width": "60"
|
|
@@ -160,16 +160,16 @@ const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-con
|
|
|
160
160
|
plain: ""
|
|
161
161
|
}, {
|
|
162
162
|
icon: r(() => [
|
|
163
|
-
v(
|
|
163
|
+
v(_(L), { name: "reduce" })
|
|
164
164
|
]),
|
|
165
165
|
_: 2
|
|
166
|
-
}, 1032, ["onClick", "disabled"])) :
|
|
166
|
+
}, 1032, ["onClick", "disabled"])) : y("", !0)
|
|
167
167
|
]),
|
|
168
168
|
_: 1
|
|
169
169
|
})
|
|
170
170
|
]),
|
|
171
171
|
_: 1
|
|
172
|
-
}, 8, ["data"])) :
|
|
172
|
+
}, 8, ["data"])) : y("", !0),
|
|
173
173
|
C("div", le, [
|
|
174
174
|
e.allowAdd && !A.value ? (l(), s(o, {
|
|
175
175
|
key: 0,
|
|
@@ -181,13 +181,13 @@ const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-con
|
|
|
181
181
|
plain: ""
|
|
182
182
|
}, {
|
|
183
183
|
icon: r(() => [
|
|
184
|
-
v(
|
|
184
|
+
v(_(L), { name: "add" })
|
|
185
185
|
]),
|
|
186
186
|
default: r(() => [
|
|
187
187
|
O(" " + D(e.title), 1)
|
|
188
188
|
]),
|
|
189
189
|
_: 1
|
|
190
|
-
}, 8, ["disabled"])) :
|
|
190
|
+
}, 8, ["disabled"])) : y("", !0)
|
|
191
191
|
])
|
|
192
192
|
]))
|
|
193
193
|
]);
|
|
@@ -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-88JF9OWh.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const x = /* @__PURE__ */ e({
|
|
5
5
|
__name: "Grid",
|
|
@@ -1,5 +1,5 @@
|
|
|
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 h } from "./index-
|
|
2
|
+
import { c as u, b as y, _ as h } from "./index-88JF9OWh.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const b = ["infinite-scroll-disabled"], v = /* @__PURE__ */ s({
|
|
5
5
|
__name: "InfiniteScroll",
|
|
@@ -1,5 +1,5 @@
|
|
|
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 u } from "./index-
|
|
2
|
+
import { b as m, _ as u } from "./index-88JF9OWh.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const f = /* @__PURE__ */ l({
|
|
5
5
|
__name: "Inline",
|
|
@@ -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-88JF9OWh.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Mt = /* @__PURE__ */ At({
|
|
5
5
|
__name: "Disabled",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as d, createElementVNode as s, normalizeStyle as i, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
|
|
2
|
-
import { _ as y } from "./index-
|
|
2
|
+
import { _ as y } from "./index-88JF9OWh.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: {
|
|
@@ -0,0 +1,32 @@
|
|
|
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-88JF9OWh.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "vfc-ObjGroup-render"
|
|
7
|
+
}, I = /* @__PURE__ */ p({
|
|
8
|
+
__name: "ObjGroup",
|
|
9
|
+
props: {
|
|
10
|
+
children: {},
|
|
11
|
+
name: {}
|
|
12
|
+
},
|
|
13
|
+
setup(u) {
|
|
14
|
+
const o = u, l = $(), s = i("$objGroupBase"), t = s ? `${s.value}.${o.name}` : o.name;
|
|
15
|
+
return d("$objGroupBase", f(t)), (a, G) => (e(), n("div", v, [
|
|
16
|
+
c(l).design ? (e(), m(h, {
|
|
17
|
+
key: 0,
|
|
18
|
+
list: a.children
|
|
19
|
+
}, null, 8, ["list"])) : (e(), n("div", B, [
|
|
20
|
+
(e(!0), n(_, null, b(a.children, (r) => (e(), m(k, j({
|
|
21
|
+
key: r.name,
|
|
22
|
+
ref_for: !0
|
|
23
|
+
}, r, {
|
|
24
|
+
name: `${c(t)}.${r.name}`
|
|
25
|
+
}), null, 16, ["name"]))), 128))
|
|
26
|
+
]))
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
I as default
|
|
32
|
+
};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { k as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as P, resolveComponent as N, openBlock as l, createBlock as L, 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 S, watchEffect as $, onMounted as x, onUnmounted as z, normalizeStyle as U, unref as A } from "vue";
|
|
2
|
+
import { k as F, $ as K, a as V, _ as j } from "./index-88JF9OWh.js";
|
|
3
|
+
const W = { class: "content" }, q = { class: "product-list" }, G = { class: "attribute-list" }, H = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "attribute-list-item"
|
|
6
|
-
},
|
|
6
|
+
}, J = { class: "product-title attribute-title" }, Q = { class: "attribute-item-list" }, X = { class: "attribute-label" }, Y = { class: "attribute-value" }, Z = /* @__PURE__ */ P({
|
|
7
7
|
__name: "OfferDetailItem",
|
|
8
8
|
props: {
|
|
9
9
|
data: {},
|
|
10
10
|
btns: {},
|
|
11
11
|
index: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
13
|
+
setup(B) {
|
|
14
14
|
return (a, p) => {
|
|
15
|
-
const
|
|
16
|
-
return l(),
|
|
15
|
+
const b = N("el-popover");
|
|
16
|
+
return l(), L(b, {
|
|
17
17
|
"popper-class": "offer-detail",
|
|
18
18
|
placement: "right"
|
|
19
19
|
}, {
|
|
20
|
-
reference:
|
|
21
|
-
|
|
20
|
+
reference: I(() => [
|
|
21
|
+
k(F, {
|
|
22
22
|
data: a.data,
|
|
23
23
|
btns: a.btns,
|
|
24
24
|
index: a.index
|
|
25
25
|
}, null, 8, ["data", "btns", "index"])
|
|
26
26
|
]),
|
|
27
|
-
default:
|
|
28
|
-
i("div",
|
|
27
|
+
default: I(() => [
|
|
28
|
+
i("div", W, [
|
|
29
29
|
p[0] || (p[0] = i("div", { class: "product-title" }, "Product", -1)),
|
|
30
|
-
i("div",
|
|
31
|
-
(l(!0), r(u, null,
|
|
30
|
+
i("div", q, [
|
|
31
|
+
(l(!0), r(u, null, m(a.data.product, (s) => (l(), r("div", {
|
|
32
32
|
class: "product-item",
|
|
33
33
|
key: s.label
|
|
34
|
-
},
|
|
34
|
+
}, v(s.label), 1))), 128))
|
|
35
35
|
]),
|
|
36
|
-
i("div",
|
|
37
|
-
(l(!0), r(u, null,
|
|
36
|
+
i("div", G, [
|
|
37
|
+
(l(!0), r(u, null, m(a.data.product, (s) => (l(), r(u, {
|
|
38
38
|
key: s.label
|
|
39
39
|
}, [
|
|
40
|
-
s.children.length > 0 ? (l(), r("div",
|
|
41
|
-
i("div",
|
|
42
|
-
i("div",
|
|
43
|
-
(l(!0), r(u, null,
|
|
40
|
+
s.children.length > 0 ? (l(), r("div", H, [
|
|
41
|
+
i("div", J, v(s.label), 1),
|
|
42
|
+
i("div", Q, [
|
|
43
|
+
(l(!0), r(u, null, m(s.children, (d) => (l(), r("div", {
|
|
44
44
|
class: "attribute-item",
|
|
45
45
|
key: d.label
|
|
46
46
|
}, [
|
|
47
|
-
i("div",
|
|
48
|
-
i("div",
|
|
47
|
+
i("div", X, v(d.label), 1),
|
|
48
|
+
i("div", Y, v(d.value || "--"), 1)
|
|
49
49
|
]))), 128))
|
|
50
50
|
])
|
|
51
|
-
])) :
|
|
51
|
+
])) : O("", !0)
|
|
52
52
|
], 64))), 128))
|
|
53
53
|
])
|
|
54
54
|
])
|
|
@@ -57,10 +57,10 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
}),
|
|
60
|
+
}), ee = {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "empty-content"
|
|
63
|
-
},
|
|
63
|
+
}, te = /* @__PURE__ */ P({
|
|
64
64
|
__name: "OfferDetails",
|
|
65
65
|
props: {
|
|
66
66
|
title: {},
|
|
@@ -104,9 +104,9 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
|
|
|
104
104
|
columns: {},
|
|
105
105
|
getColText: {}
|
|
106
106
|
},
|
|
107
|
-
setup(
|
|
108
|
-
var
|
|
109
|
-
const a =
|
|
107
|
+
setup(B) {
|
|
108
|
+
var E, D;
|
|
109
|
+
const a = B, p = g(), b = g([]), s = (E = a.columns.find((t) => t.position === "title")) == null ? void 0 : E.key, d = (D = a.columns.find((t) => t.position === "subTitle")) == null ? void 0 : D.key, h = a.columns.find((t) => t.position === "footer"), R = (t) => {
|
|
110
110
|
const e = [];
|
|
111
111
|
return t.children && t.children.length > 0 && t.children.forEach((o) => {
|
|
112
112
|
const n = {
|
|
@@ -121,19 +121,19 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
|
|
|
121
121
|
}), e.push(n);
|
|
122
122
|
}), e;
|
|
123
123
|
};
|
|
124
|
-
function
|
|
124
|
+
function M(t) {
|
|
125
125
|
const e = {}, o = [];
|
|
126
126
|
return t.forEach((n) => {
|
|
127
127
|
e[n.PRODUCT_ITEM_ID] = { ...n, children: [] };
|
|
128
128
|
}), t.forEach((n) => {
|
|
129
|
-
const f = e[n.PRODUCT_ITEM_ID],
|
|
130
|
-
|
|
129
|
+
const f = e[n.PRODUCT_ITEM_ID], C = n.PARENT_PRODUCT_ITEM_ID;
|
|
130
|
+
C === 0 || !e[C] ? o.push(f) : e[C].children.push(f);
|
|
131
131
|
}), o;
|
|
132
132
|
}
|
|
133
|
-
const
|
|
134
|
-
|
|
133
|
+
const T = S(K), c = T ? T.translateFn : null;
|
|
134
|
+
$(() => {
|
|
135
135
|
if (a.data) {
|
|
136
|
-
const t =
|
|
136
|
+
const t = M(a.data);
|
|
137
137
|
p.value = t.map((e) => {
|
|
138
138
|
const o = {
|
|
139
139
|
content: []
|
|
@@ -141,7 +141,7 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
|
|
|
141
141
|
return s && (o.title = c ? c(s, e) : e[s], o.titleColor = "var(--el-color-primary)"), d && (o.subTitle = c ? c(d, e) : e[d]), h && (o.footer = {
|
|
142
142
|
icon: h.footerIcon || "icon-tishi",
|
|
143
143
|
text: `${h.label}: ${c ? c(h.key, e) : e[h.key]}`
|
|
144
|
-
}), e.children && (o.product =
|
|
144
|
+
}), e.children && (o.product = R(e)), a.columns.forEach((n) => {
|
|
145
145
|
n.position === "content" && o.content.push({
|
|
146
146
|
label: n.label,
|
|
147
147
|
value: c ? c(n.key, e) : e[n.key]
|
|
@@ -149,42 +149,54 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
|
|
|
149
149
|
}), o;
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
})
|
|
152
|
+
});
|
|
153
|
+
let _ = null;
|
|
154
|
+
const y = g(), w = g(3);
|
|
155
|
+
return x(() => {
|
|
153
156
|
var t;
|
|
154
|
-
|
|
157
|
+
b.value = (t = a.rowBtns) == null ? void 0 : t.map((e) => ({
|
|
155
158
|
icon: e.icon && e.icon.name ? e.icon.name : "icon-tishi",
|
|
156
159
|
label: e.label,
|
|
157
160
|
onClick: e.onClick
|
|
158
|
-
}))
|
|
161
|
+
})), _ = new ResizeObserver((e) => {
|
|
162
|
+
for (const o of e) {
|
|
163
|
+
const n = o.contentRect.width;
|
|
164
|
+
w.value = Math.floor(n / 330) || 1;
|
|
165
|
+
}
|
|
166
|
+
}), _.observe(y.value);
|
|
167
|
+
}), z(() => {
|
|
168
|
+
_ && y.value && _.unobserve(y.value);
|
|
159
169
|
}), (t, e) => (l(), r(u, null, [
|
|
160
170
|
i("div", {
|
|
171
|
+
ref_key: "cardListRef",
|
|
172
|
+
ref: y,
|
|
161
173
|
class: "card-list",
|
|
162
|
-
style:
|
|
163
|
-
"--columns":
|
|
174
|
+
style: U({
|
|
175
|
+
"--columns": w.value,
|
|
164
176
|
"--gap": t.gap + "px"
|
|
165
177
|
})
|
|
166
178
|
}, [
|
|
167
|
-
(l(!0), r(u, null,
|
|
179
|
+
(l(!0), r(u, null, m(p.value, (o, n) => (l(), r("div", {
|
|
168
180
|
class: "card-list-item",
|
|
169
181
|
key: n
|
|
170
182
|
}, [
|
|
171
|
-
|
|
183
|
+
k(Z, {
|
|
172
184
|
data: o,
|
|
173
|
-
btns:
|
|
185
|
+
btns: b.value,
|
|
174
186
|
index: n
|
|
175
187
|
}, null, 8, ["data", "btns", "index"])
|
|
176
188
|
]))), 128))
|
|
177
189
|
], 4),
|
|
178
|
-
!t.data || t.data.length === 0 ? (l(), r("div",
|
|
179
|
-
|
|
190
|
+
!t.data || t.data.length === 0 ? (l(), r("div", ee, [
|
|
191
|
+
k(A(V), {
|
|
180
192
|
name: "tableEmpty",
|
|
181
193
|
style: { width: 56, height: 56 }
|
|
182
194
|
}),
|
|
183
195
|
e[0] || (e[0] = i("div", null, "No data available,please check", -1))
|
|
184
|
-
])) :
|
|
196
|
+
])) : O("", !0)
|
|
185
197
|
], 64));
|
|
186
198
|
}
|
|
187
|
-
}),
|
|
199
|
+
}), ae = /* @__PURE__ */ j(te, [["__scopeId", "data-v-44b2ab76"]]);
|
|
188
200
|
export {
|
|
189
|
-
|
|
201
|
+
ae as default
|
|
190
202
|
};
|