asiaint-lowcode 3.1.158 → 3.1.160
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 +1 -1
- package/dist/asiaint-lowcode.umd.cjs +7 -7
- package/dist/lazy/{Card-t1mDtSuz.js → Card-C1aBn5XS.js} +1 -1
- package/dist/lazy/{Cascader-Oust5l0x.js → Cascader-uPAtPCdl.js} +1 -1
- package/dist/lazy/{Checkbox-BZP7lXM3.js → Checkbox-DJIZUO9s.js} +2 -2
- package/dist/lazy/{Collapse-CvGb3zx6.js → Collapse-D-X_SVKU.js} +1 -1
- package/dist/lazy/{Component-BwaRY5e7.js → Component-BUlVdqKM.js} +1 -1
- package/dist/lazy/{Component-oWA4pSqL.js → Component-CF9yUvgy.js} +1 -1
- package/dist/lazy/{Component-C_7w1J6b.js → Component-cinWnAm2.js} +1 -1
- package/dist/lazy/{Component-DpR49mMn.js → Component-eetssdT5.js} +1 -1
- package/dist/lazy/{Component-BzNEDTnq.js → Component-lOL2Txzv.js} +1 -1
- package/dist/lazy/{CurdCard-rFcool9B.js → CurdCard-BRvUm3Dz.js} +1 -1
- package/dist/lazy/{Custom-DIoXxGkP.js → Custom-Bb8YXgHJ.js} +1 -1
- package/dist/lazy/{DatePicker-CHrIeUBZ.js → DatePicker-D4r1CGml.js} +1 -1
- package/dist/lazy/{DragList-CLkMkiWc.js → DragList-BFe9xhqX.js} +1 -1
- package/dist/lazy/{FilterSearch-CJA8Uzkt.js → FilterSearch-C07_ieFT.js} +1 -1
- package/dist/lazy/FloatCurd-CJ8JRdp_.js +268 -0
- package/dist/lazy/{FloatSearchCurd-BgIStWFV.js → FloatSearchCurd-lGfU_WW0.js} +114 -113
- package/dist/lazy/{FormList-DoJa2pqm.js → FormList-CYNHXOd3.js} +1 -1
- package/dist/lazy/{Grid-BMRETF7k.js → Grid-8wbBGSKF.js} +1 -1
- package/dist/lazy/{InfiniteScroll-C3CFbOdH.js → InfiniteScroll-DlYYq9Tb.js} +1 -1
- package/dist/lazy/{Inline-fhIbkKfi.js → Inline-BOoxayGt.js} +1 -1
- package/dist/lazy/{JsonEdit-C62be96x.js → JsonEdit-DjL9PjXa.js} +1 -1
- package/dist/lazy/{LogList-BdG9L5Hd.js → LogList-DbnRMZEP.js} +1 -1
- package/dist/lazy/{ObjGroup-0R_eM8Zb.js → ObjGroup-9m5btZ2M.js} +1 -1
- package/dist/lazy/{OfferDetails-aU8IOZ5y.js → OfferDetails-zqt1g4Su.js} +1 -1
- package/dist/lazy/{Pagination-D13SbO8F.js → Pagination-ZVvMcYms.js} +1 -1
- package/dist/lazy/{Progress-8oq3iY-3.js → Progress-CYJEXWui.js} +1 -1
- package/dist/lazy/{Radio-DdF30zOM.js → Radio-UN_zi_SV.js} +2 -2
- package/dist/lazy/{SearchSelect-CPnkpIyJ.js → SearchSelect-DC58LDBm.js} +2 -2
- package/dist/lazy/{Select-CE6tGRdw.js → Select-CSgfCd27.js} +2 -2
- package/dist/lazy/{Table-Db0UoLjG.js → Table-Q2p1Reeq.js} +1 -1
- package/dist/lazy/{Tabs-Cbq3feWg.js → Tabs-DAyJWf4b.js} +1 -1
- package/dist/lazy/{TextArea-DSsRvDhv.js → TextArea-GTaCIFjZ.js} +1 -1
- package/dist/lazy/{Wrapper-BCpBxBME.js → Wrapper-DjVrOZRv.js} +1 -1
- package/dist/lazy/{index-C_zeIIm3.js → index-BzGt-d-r.js} +33 -33
- package/dist/lazy/{useSelect-CtSUK6oX.js → useSelect-sdtU51d4.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/lazy/FloatCurd-YaboEKaH.js +0 -265
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import { defineComponent as me, ref as Y, computed as oe, onUnmounted as ve, watch as he, onMounted as _e, resolveComponent as C, withDirectives as ne, openBlock as r, createElementBlock as f, createElementVNode as a, createVNode as c, withKeys as ye, withCtx as d, createBlock as I, Fragment as F, renderList as le, createTextVNode as T, toDisplayString as O, unref as xe, vShow as te, createCommentVNode as P } from "vue";
|
|
2
|
-
import { c as be, u as Ce, f as ae, i as ke, I as y, b as ge, _ as Ve } from "./index-C_zeIIm3.js";
|
|
3
|
-
import { dayjs as B } from "element-plus";
|
|
4
|
-
const we = { class: "float-curd" }, Me = { class: "curd-body" }, Ye = { class: "gradient-input-wrapper" }, Ie = { class: "custom-prefix-text" }, Fe = { style: { "padding-right": "8px" } }, Oe = { class: "float-form" }, Pe = { class: "float-form-header" }, Se = { class: "float-form-header-title" }, Ae = { class: "float-form-header-btns" }, De = { class: "float-form-body" }, Ne = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "curd-footer"
|
|
7
|
-
}, Te = ["innerHTML"], Be = ["title"], Le = /* @__PURE__ */ me({
|
|
8
|
-
__name: "FloatCurd",
|
|
9
|
-
props: {
|
|
10
|
-
name: {},
|
|
11
|
-
children: {},
|
|
12
|
-
formTitle: {},
|
|
13
|
-
onSearch: {},
|
|
14
|
-
onAiSearch: {},
|
|
15
|
-
onClear: {},
|
|
16
|
-
inputPlaceholder: {},
|
|
17
|
-
hidden: { type: Boolean },
|
|
18
|
-
prefixOptions: {},
|
|
19
|
-
prefixChange: {},
|
|
20
|
-
defaultPrefixValue: {},
|
|
21
|
-
hiddenPrefix: { type: Boolean }
|
|
22
|
-
},
|
|
23
|
-
setup(re, { expose: ie }) {
|
|
24
|
-
const t = re, x = Y(!1), { ruleModule: k, pageMethodMap: g } = be(), S = Ce();
|
|
25
|
-
function A(e, o, s, v, h) {
|
|
26
|
-
if (e != null && e.length)
|
|
27
|
-
for (const u of e) {
|
|
28
|
-
if (u[s] === o)
|
|
29
|
-
return u[v];
|
|
30
|
-
const p = u[h];
|
|
31
|
-
if (Array.isArray(p) && p.length > 0) {
|
|
32
|
-
const n = A(p, o, s, v, h);
|
|
33
|
-
if (n !== void 0)
|
|
34
|
-
return n;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const V = oe(() => {
|
|
39
|
-
var h, u, p, n, w, j, q, z, K, E, G, H, R, U, J, Q;
|
|
40
|
-
const e = S.schema.items, o = S.formValues, s = ae(e, t.name);
|
|
41
|
-
if (!s || !s.children)
|
|
42
|
-
return [];
|
|
43
|
-
const v = [];
|
|
44
|
-
for (const W in o) {
|
|
45
|
-
const l = ae(s.children, W);
|
|
46
|
-
if (l && l.label && !l.hidden) {
|
|
47
|
-
const i = o[W];
|
|
48
|
-
if (i != null && i !== "") {
|
|
49
|
-
const _ = {
|
|
50
|
-
name: l.name,
|
|
51
|
-
label: l.label,
|
|
52
|
-
value: i,
|
|
53
|
-
closeable: !l.required && !((h = l.props) != null && h.disabled) && ((u = l.props) == null ? void 0 : u.clearable) !== !1
|
|
54
|
-
};
|
|
55
|
-
if (l.component === "DatePicker" && (((p = l.props) == null ? void 0 : p.type) === "daterange" ? _.value = B(i[0]).format(((n = l.props) == null ? void 0 : n.valueFormat) || "YYYY-MM-DD") + " - " + B(i[1]).format(((w = l.props) == null ? void 0 : w.valueFormat) || "YYYY-MM-DD") : (_.iconName = "icon-rili", _.value = B(i).format(((j = l.props) == null ? void 0 : j.valueFormat) || "YYYY-MM-DD"))), l.component === "Select" && (_.value = (K = (z = (q = l.props) == null ? void 0 : q.options) == null ? void 0 : z.find((M) => M.value === i)) == null ? void 0 : K.label), l.component === "TreeSelect") {
|
|
56
|
-
const M = ((E = l.props) == null ? void 0 : E.nodeKey) || "id", X = ((H = (G = l.props) == null ? void 0 : G.props) == null ? void 0 : H.label) || "label", Z = ((U = (R = l.props) == null ? void 0 : R.props) == null ? void 0 : U.children) || "children", ee = (J = l.props) == null ? void 0 : J.options;
|
|
57
|
-
(Q = l.props) != null && Q.multiple && Array.isArray(i) ? _.value = i.map((fe) => A(ee, fe, M, X, Z)).filter(Boolean).join(", ") : _.value = A(ee, i, M, X, Z);
|
|
58
|
-
}
|
|
59
|
-
v.push(_);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return v;
|
|
64
|
-
}), m = Y(""), se = oe(() => {
|
|
65
|
-
var e, o;
|
|
66
|
-
return !t.prefixOptions || t.prefixOptions.length === 0 || !m.value ? "" : (o = (e = t.prefixOptions) == null ? void 0 : e.find((s) => s.value === m.value)) == null ? void 0 : o.label;
|
|
67
|
-
});
|
|
68
|
-
function ue(e) {
|
|
69
|
-
m.value = e, b.value = "";
|
|
70
|
-
try {
|
|
71
|
-
k[t.prefixChange](g, e);
|
|
72
|
-
} catch (o) {
|
|
73
|
-
console.error(o);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const b = Y("");
|
|
77
|
-
function L() {
|
|
78
|
-
try {
|
|
79
|
-
k[t.onSearch](g), x.value = !1;
|
|
80
|
-
} catch (e) {
|
|
81
|
-
console.error(e);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const D = Y(!1);
|
|
85
|
-
async function N() {
|
|
86
|
-
try {
|
|
87
|
-
D.value = !0, await k[t.onAiSearch](g, b.value, m.value || "");
|
|
88
|
-
} catch (e) {
|
|
89
|
-
console.error(e);
|
|
90
|
-
} finally {
|
|
91
|
-
D.value = !1;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
function ce(e) {
|
|
95
|
-
S.setFieldValue(e.name, "", ""), L();
|
|
96
|
-
}
|
|
97
|
-
function de() {
|
|
98
|
-
try {
|
|
99
|
-
k[t.onClear](g);
|
|
100
|
-
} catch (e) {
|
|
101
|
-
console.error(e);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function pe() {
|
|
105
|
-
b.value = "";
|
|
106
|
-
}
|
|
107
|
-
const $ = {
|
|
108
|
-
clearInputValue: pe,
|
|
109
|
-
type: "floatcurd"
|
|
110
|
-
};
|
|
111
|
-
if (ie($), t.name) {
|
|
112
|
-
const e = ke(t.name, $);
|
|
113
|
-
ve(() => {
|
|
114
|
-
e();
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return he(
|
|
118
|
-
() => t.defaultPrefixValue,
|
|
119
|
-
(e) => {
|
|
120
|
-
e && (m.value = e);
|
|
121
|
-
}
|
|
122
|
-
), _e(() => {
|
|
123
|
-
t.defaultPrefixValue ? m.value = t.defaultPrefixValue : t.prefixOptions && t.prefixOptions.length > 0 && (m.value = t.prefixOptions[0].value);
|
|
124
|
-
}), (e, o) => {
|
|
125
|
-
const s = C("el-dropdown-item"), v = C("el-dropdown-menu"), h = C("el-dropdown"), u = C("el-button"), p = C("el-input");
|
|
126
|
-
return ne((r(), f("div", we, [
|
|
127
|
-
a("div", Me, [
|
|
128
|
-
a("div", Ye, [
|
|
129
|
-
c(p, {
|
|
130
|
-
class: "float-curd-ai-input",
|
|
131
|
-
placeholder: e.inputPlaceholder,
|
|
132
|
-
modelValue: b.value,
|
|
133
|
-
"onUpdate:modelValue": o[0] || (o[0] = (n) => b.value = n),
|
|
134
|
-
clearable: "",
|
|
135
|
-
onClear: N,
|
|
136
|
-
onKeyup: ye(N, ["enter"])
|
|
137
|
-
}, {
|
|
138
|
-
prefix: d(() => [
|
|
139
|
-
e.prefixOptions && e.prefixOptions.length > 0 ? (r(), I(h, { key: 0 }, {
|
|
140
|
-
dropdown: d(() => [
|
|
141
|
-
c(v, null, {
|
|
142
|
-
default: d(() => [
|
|
143
|
-
(r(!0), f(F, null, le(e.prefixOptions, (n) => (r(), I(s, {
|
|
144
|
-
key: n.value,
|
|
145
|
-
command: n.value,
|
|
146
|
-
onClick: (w) => ue(n.value)
|
|
147
|
-
}, {
|
|
148
|
-
default: d(() => [
|
|
149
|
-
T(O(n.label), 1)
|
|
150
|
-
]),
|
|
151
|
-
_: 2
|
|
152
|
-
}, 1032, ["command", "onClick"]))), 128))
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
})
|
|
156
|
-
]),
|
|
157
|
-
default: d(() => [
|
|
158
|
-
a("span", Ie, [
|
|
159
|
-
a("span", Fe, O(se.value), 1),
|
|
160
|
-
c(y, {
|
|
161
|
-
name: "icon-dropdown",
|
|
162
|
-
size: 12,
|
|
163
|
-
color: "#999"
|
|
164
|
-
})
|
|
165
|
-
])
|
|
166
|
-
]),
|
|
167
|
-
_: 1
|
|
168
|
-
})) : e.hiddenPrefix ? (r(), f(F, { key: 1 }, [], 64)) : (r(), f(F, { key: 2 }, [
|
|
169
|
-
c(y, { name: "icon-a-mobang1" }),
|
|
170
|
-
o[3] || (o[3] = a("span", { class: "prefix-text" }, "Ask AI", -1))
|
|
171
|
-
], 64))
|
|
172
|
-
]),
|
|
173
|
-
suffix: d(() => [
|
|
174
|
-
c(u, {
|
|
175
|
-
type: "primary",
|
|
176
|
-
size: "small",
|
|
177
|
-
onClick: N,
|
|
178
|
-
loading: D.value
|
|
179
|
-
}, {
|
|
180
|
-
default: d(() => o[4] || (o[4] = [
|
|
181
|
-
T("Go")
|
|
182
|
-
])),
|
|
183
|
-
_: 1
|
|
184
|
-
}, 8, ["loading"])
|
|
185
|
-
]),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 8, ["placeholder", "modelValue"])
|
|
188
|
-
]),
|
|
189
|
-
c(u, {
|
|
190
|
-
plain: !0,
|
|
191
|
-
onClick: o[1] || (o[1] = (n) => x.value = !x.value),
|
|
192
|
-
class: "more-btn",
|
|
193
|
-
type: "primary"
|
|
194
|
-
}, {
|
|
195
|
-
default: d(() => [
|
|
196
|
-
c(y, { name: "icon-tiaojianshaixuan" }),
|
|
197
|
-
o[5] || (o[5] = a("span", null, "More", -1))
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
}),
|
|
201
|
-
ne(a("div", Oe, [
|
|
202
|
-
a("div", Pe, [
|
|
203
|
-
a("div", Se, O(e.formTitle), 1),
|
|
204
|
-
a("div", Ae, [
|
|
205
|
-
c(u, {
|
|
206
|
-
type: "primary",
|
|
207
|
-
size: "small",
|
|
208
|
-
onClick: L
|
|
209
|
-
}, {
|
|
210
|
-
default: d(() => o[6] || (o[6] = [
|
|
211
|
-
T("Go")
|
|
212
|
-
])),
|
|
213
|
-
_: 1
|
|
214
|
-
}),
|
|
215
|
-
c(y, {
|
|
216
|
-
name: "icon-a-rongqi1",
|
|
217
|
-
onClick: o[2] || (o[2] = (n) => x.value = !1)
|
|
218
|
-
})
|
|
219
|
-
])
|
|
220
|
-
]),
|
|
221
|
-
a("div", De, [
|
|
222
|
-
c(xe(ge), { list: e.children }, null, 8, ["list"])
|
|
223
|
-
])
|
|
224
|
-
], 512), [
|
|
225
|
-
[te, x.value]
|
|
226
|
-
])
|
|
227
|
-
]),
|
|
228
|
-
V.value && V.value.length > 0 ? (r(), f("div", Ne, [
|
|
229
|
-
(r(!0), f(F, null, le(V.value, (n) => (r(), f("div", {
|
|
230
|
-
class: "tag",
|
|
231
|
-
key: n.name
|
|
232
|
-
}, [
|
|
233
|
-
n.iconName ? (r(), I(y, {
|
|
234
|
-
key: 0,
|
|
235
|
-
name: n.iconName
|
|
236
|
-
}, null, 8, ["name"])) : P("", !0),
|
|
237
|
-
a("span", {
|
|
238
|
-
innerHTML: n.label + ":"
|
|
239
|
-
}, null, 8, Te),
|
|
240
|
-
a("span", {
|
|
241
|
-
class: "tag-value",
|
|
242
|
-
title: n.value
|
|
243
|
-
}, O(n.value), 9, Be),
|
|
244
|
-
n.closeable ? (r(), I(y, {
|
|
245
|
-
key: 1,
|
|
246
|
-
name: "icon-a-rongqi1",
|
|
247
|
-
onClick: (w) => ce(n),
|
|
248
|
-
class: "close-icon"
|
|
249
|
-
}, null, 8, ["onClick"])) : P("", !0)
|
|
250
|
-
]))), 128)),
|
|
251
|
-
V.value.length > 0 ? (r(), f("div", {
|
|
252
|
-
key: 0,
|
|
253
|
-
class: "clear-btn",
|
|
254
|
-
onClick: de
|
|
255
|
-
}, "Clear filters")) : P("", !0)
|
|
256
|
-
])) : P("", !0)
|
|
257
|
-
], 512)), [
|
|
258
|
-
[te, !e.hidden]
|
|
259
|
-
]);
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
}), ze = /* @__PURE__ */ Ve(Le, [["__scopeId", "data-v-801dcf08"]]);
|
|
263
|
-
export {
|
|
264
|
-
ze as default
|
|
265
|
-
};
|