asiaint-lowcode 3.1.175 → 3.1.176
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.d.ts +41 -0
- package/dist/asiaint-lowcode.js +8 -8
- package/dist/asiaint-lowcode.umd.cjs +222 -222
- package/dist/lazy/{Card-CuIuPVfa.js → Card-tY03_jsQ.js} +1 -1
- package/dist/lazy/{Cascader-DG9-lQL_.js → Cascader-CoiEWibG.js} +1 -1
- package/dist/lazy/{Checkbox-DkokY_T5.js → Checkbox-DgAWi7xv.js} +2 -2
- package/dist/lazy/{Collapse-CfN04wPP.js → Collapse-DoX4-z6R.js} +2 -2
- package/dist/lazy/Component-B1cRXfb6.js +198 -0
- package/dist/lazy/{Component-bJujdUFt.js → Component-CEPZFfnv.js} +1 -1
- package/dist/lazy/{Component-DDr0mt26.js → Component-CwFNnxot.js} +1 -1
- package/dist/lazy/{Component-BmIr-TEc.js → Component-DYj0-oAE.js} +1 -1
- package/dist/lazy/{CurdCard-fARDual0.js → CurdCard-DfTd52sw.js} +1 -1
- package/dist/lazy/{Custom-DLf2H4j-.js → Custom-Dbj0V-xU.js} +1 -1
- package/dist/lazy/{DatePicker-DwGL3Rfo.js → DatePicker-Bn2V6hsJ.js} +1 -1
- package/dist/lazy/{DragList-CkJN4M1_.js → DragList-DqreIFnM.js} +13 -13
- package/dist/lazy/FilterSearch-DhDZ-EZP.js +149 -0
- package/dist/lazy/FloatCurd-Cfkz6IKM.js +268 -0
- package/dist/lazy/FloatSearchCurd-CuGQMSfs.js +447 -0
- package/dist/lazy/{FormList-BisnYpYy.js → FormList-iRDxU3y1.js} +1 -1
- package/dist/lazy/{Grid-DU0cGkx3.js → Grid-BdWqDQr5.js} +1 -1
- package/dist/lazy/{InfiniteScroll-DIBaRISh.js → InfiniteScroll-DLdq1kWV.js} +1 -1
- package/dist/lazy/{Inline-Dz8K0mcs.js → Inline-BUA_Nnzb.js} +1 -1
- package/dist/lazy/{JsonEdit-CcHoX1MX.js → JsonEdit-Dza78rMu.js} +1 -1
- package/dist/lazy/{LogList-CCqb9sMw.js → LogList-BuZ8Xjtk.js} +1 -1
- package/dist/lazy/{ObjGroup-9CuErhWA.js → ObjGroup-BVYeKRas.js} +5 -5
- package/dist/lazy/{OfferDetails-BizT7B7e.js → OfferDetails-BuFlnyVM.js} +68 -67
- package/dist/lazy/Pagination-DIueKA4T.js +121 -0
- package/dist/lazy/{Progress-BEuL9CsA.js → Progress-MldyKkep.js} +1 -1
- package/dist/lazy/{Radio-CbcqDR_c.js → Radio-Bod52dE2.js} +2 -2
- package/dist/lazy/{SearchSelect-PZJ79a84.js → SearchSelect-CzIo7iiM.js} +2 -2
- package/dist/lazy/{Select-CTGej9Jt.js → Select-Cy9eA5-X.js} +2 -2
- package/dist/lazy/Table-BVg8ydp1.js +598 -0
- package/dist/lazy/{Tabs-Kra7RQza.js → Tabs-CbJpP5yI.js} +5 -5
- package/dist/lazy/Tag-DfelP1C7.js +25 -0
- package/dist/lazy/{TextArea-D-md2_JP.js → TextArea-HCAqMgrp.js} +1 -1
- package/dist/lazy/{Title-32bZDihB.js → Title-7fiPAhd5.js} +1 -1
- package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-LunhnrZy.js +26 -0
- package/dist/lazy/{Wrapper-Djhw4u_A.js → Wrapper-BR-FaBxi.js} +3 -3
- package/dist/lazy/{index-if5yiaE6.js → index-1omyaX4F.js} +6260 -6321
- package/dist/lazy/{useSelect-Cx92c9xA.js → useSelect-U2g9t7In.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Component-DPKOSkbS.js +0 -192
- package/dist/lazy/Component-DVnr7_Wq.js +0 -321
- package/dist/lazy/FilterSearch-DWIoFEYA.js +0 -149
- package/dist/lazy/FloatCurd-BIIOwN6L.js +0 -268
- package/dist/lazy/FloatSearchCurd-B5mTYPo4.js +0 -447
- package/dist/lazy/Pagination-BcwTZvOy.js +0 -121
- package/dist/lazy/Table-CTLmaWUi.js +0 -667
- package/dist/lazy/Tag-IQ_W6v0E.js +0 -22
- package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +0 -23
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { defineComponent as ve, ref as P, computed as ne, onUnmounted as _e, watch as ye, onMounted as xe, resolveComponent as V, withDirectives as le, openBlock as r, createElementBlock as d, createElementVNode as a, createVNode as i, withKeys as Ce, withCtx as p, Fragment as w, renderList as te, createBlock as B, toDisplayString as f, unref as x, createTextVNode as ae, vShow as re, createCommentVNode as S } from "vue";
|
|
2
|
+
import { c as be, u as ge, d as ke, f as se, i as Ve, I as C, b as we, _ as Me } from "./index-1omyaX4F.js";
|
|
3
|
+
import { dayjs as L } from "element-plus";
|
|
4
|
+
const Ye = { class: "float-curd" }, Fe = { class: "curd-body" }, Ie = { class: "gradient-input-wrapper" }, Oe = { class: "custom-prefix-text" }, Pe = { style: { "padding-right": "8px" } }, Se = { style: { "font-size": "12px" } }, De = { class: "prefix-text" }, Ne = { class: "float-form" }, Ae = { class: "float-form-header" }, Te = { class: "float-form-header-title" }, Be = { class: "float-form-header-btns" }, Le = { class: "float-form-body" }, $e = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "curd-footer"
|
|
7
|
+
}, ze = ["innerHTML"], je = ["title"], qe = /* @__PURE__ */ ve({
|
|
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(ie, { expose: ce }) {
|
|
24
|
+
const t = ie, b = P(!1), { ruleModule: M, pageMethodMap: Y } = be(), D = ge(), g = ke();
|
|
25
|
+
function N(e, l, c, v, _) {
|
|
26
|
+
if (e != null && e.length)
|
|
27
|
+
for (const u of e) {
|
|
28
|
+
if (u[c] === l)
|
|
29
|
+
return u[v];
|
|
30
|
+
const m = u[_];
|
|
31
|
+
if (Array.isArray(m) && m.length > 0) {
|
|
32
|
+
const o = N(m, l, c, v, _);
|
|
33
|
+
if (o !== void 0)
|
|
34
|
+
return o;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const F = ne(() => {
|
|
39
|
+
var _, u, m, o, I, j, q, K, E, H, R, U, G, J, Q, W;
|
|
40
|
+
const e = D.schema.items, l = D.formValues, c = se(e, t.name);
|
|
41
|
+
if (!c || !c.children)
|
|
42
|
+
return [];
|
|
43
|
+
const v = [];
|
|
44
|
+
for (const X in l) {
|
|
45
|
+
const n = se(c.children, X);
|
|
46
|
+
if (n && n.label && !n.hidden) {
|
|
47
|
+
const s = l[X];
|
|
48
|
+
if (s != null && s !== "") {
|
|
49
|
+
const y = {
|
|
50
|
+
name: n.name,
|
|
51
|
+
label: n.label,
|
|
52
|
+
value: s,
|
|
53
|
+
closeable: !n.required && !((_ = n.props) != null && _.disabled) && ((u = n.props) == null ? void 0 : u.clearable) !== !1
|
|
54
|
+
};
|
|
55
|
+
if (n.component === "DatePicker" && (((m = n.props) == null ? void 0 : m.type) === "daterange" ? y.value = L(s[0]).format(((o = n.props) == null ? void 0 : o.valueFormat) || "YYYY-MM-DD") + " - " + L(s[1]).format(((I = n.props) == null ? void 0 : I.valueFormat) || "YYYY-MM-DD") : (y.iconName = "icon-rili", y.value = L(s).format(((j = n.props) == null ? void 0 : j.valueFormat) || "YYYY-MM-DD"))), n.component === "Select" && (y.value = (E = (K = (q = n.props) == null ? void 0 : q.options) == null ? void 0 : K.find((O) => O.value === s)) == null ? void 0 : E.label), n.component === "TreeSelect") {
|
|
56
|
+
const O = ((H = n.props) == null ? void 0 : H.nodeKey) || "id", Z = ((U = (R = n.props) == null ? void 0 : R.props) == null ? void 0 : U.label) || "label", ee = ((J = (G = n.props) == null ? void 0 : G.props) == null ? void 0 : J.children) || "children", oe = (Q = n.props) == null ? void 0 : Q.options;
|
|
57
|
+
(W = n.props) != null && W.multiple && Array.isArray(s) ? y.value = s.map((he) => N(oe, he, O, Z, ee)).filter(Boolean).join(", ") : y.value = N(oe, s, O, Z, ee);
|
|
58
|
+
}
|
|
59
|
+
v.push(y);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return v;
|
|
64
|
+
}), h = P(""), ue = ne(() => {
|
|
65
|
+
var e, l;
|
|
66
|
+
return !t.prefixOptions || t.prefixOptions.length === 0 || !h.value ? "" : (l = (e = t.prefixOptions) == null ? void 0 : e.find((c) => c.value === h.value)) == null ? void 0 : l.label;
|
|
67
|
+
});
|
|
68
|
+
function de(e) {
|
|
69
|
+
h.value = e, k.value = "";
|
|
70
|
+
try {
|
|
71
|
+
M[t.prefixChange](Y, e);
|
|
72
|
+
} catch (l) {
|
|
73
|
+
console.error(l);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const k = P("");
|
|
77
|
+
function $() {
|
|
78
|
+
try {
|
|
79
|
+
M[t.onSearch](Y), b.value = !1;
|
|
80
|
+
} catch (e) {
|
|
81
|
+
console.error(e);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const A = P(!1);
|
|
85
|
+
async function T() {
|
|
86
|
+
try {
|
|
87
|
+
A.value = !0, await M[t.onAiSearch](Y, k.value, h.value || "");
|
|
88
|
+
} catch (e) {
|
|
89
|
+
console.error(e);
|
|
90
|
+
} finally {
|
|
91
|
+
A.value = !1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function pe(e) {
|
|
95
|
+
D.setFieldValue(e.name, "", ""), $();
|
|
96
|
+
}
|
|
97
|
+
function fe() {
|
|
98
|
+
try {
|
|
99
|
+
M[t.onClear](Y);
|
|
100
|
+
} catch (e) {
|
|
101
|
+
console.error(e);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function me() {
|
|
105
|
+
k.value = "";
|
|
106
|
+
}
|
|
107
|
+
const z = {
|
|
108
|
+
clearInputValue: me,
|
|
109
|
+
type: "floatcurd"
|
|
110
|
+
};
|
|
111
|
+
if (ce(z), t.name) {
|
|
112
|
+
const e = Ve(t.name, z);
|
|
113
|
+
_e(() => {
|
|
114
|
+
e();
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return ye(
|
|
118
|
+
() => t.defaultPrefixValue,
|
|
119
|
+
(e) => {
|
|
120
|
+
e && (h.value = e);
|
|
121
|
+
}
|
|
122
|
+
), xe(() => {
|
|
123
|
+
t.defaultPrefixValue ? h.value = t.defaultPrefixValue : t.prefixOptions && t.prefixOptions.length > 0 && (h.value = t.prefixOptions[0].value);
|
|
124
|
+
}), (e, l) => {
|
|
125
|
+
const c = V("el-dropdown-item"), v = V("el-dropdown-menu"), _ = V("el-dropdown"), u = V("el-button"), m = V("el-input");
|
|
126
|
+
return le((r(), d("div", Ye, [
|
|
127
|
+
a("div", Fe, [
|
|
128
|
+
a("div", Ie, [
|
|
129
|
+
i(m, {
|
|
130
|
+
class: "float-curd-ai-input",
|
|
131
|
+
placeholder: e.inputPlaceholder,
|
|
132
|
+
modelValue: k.value,
|
|
133
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => k.value = o),
|
|
134
|
+
clearable: "",
|
|
135
|
+
onClear: T,
|
|
136
|
+
onKeyup: Ce(T, ["enter"])
|
|
137
|
+
}, {
|
|
138
|
+
prefix: p(() => [
|
|
139
|
+
e.prefixOptions && e.prefixOptions.length > 0 ? (r(), d(w, { key: 0 }, [
|
|
140
|
+
i(_, null, {
|
|
141
|
+
dropdown: p(() => [
|
|
142
|
+
i(v, null, {
|
|
143
|
+
default: p(() => [
|
|
144
|
+
(r(!0), d(w, null, te(e.prefixOptions, (o) => (r(), B(c, {
|
|
145
|
+
key: o.value,
|
|
146
|
+
command: o.value,
|
|
147
|
+
onClick: (I) => de(o.value),
|
|
148
|
+
style: { padding: "4px 8px" }
|
|
149
|
+
}, {
|
|
150
|
+
default: p(() => [
|
|
151
|
+
a("span", Se, f(o.label), 1)
|
|
152
|
+
]),
|
|
153
|
+
_: 2
|
|
154
|
+
}, 1032, ["command", "onClick"]))), 128))
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
})
|
|
158
|
+
]),
|
|
159
|
+
default: p(() => [
|
|
160
|
+
a("span", Oe, [
|
|
161
|
+
a("span", Pe, f(ue.value), 1)
|
|
162
|
+
])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}),
|
|
166
|
+
i(C, {
|
|
167
|
+
name: "icon-dropdown",
|
|
168
|
+
size: 12,
|
|
169
|
+
color: "#999"
|
|
170
|
+
})
|
|
171
|
+
], 64)) : e.hiddenPrefix ? (r(), d(w, { key: 1 }, [], 64)) : (r(), d(w, { key: 2 }, [
|
|
172
|
+
i(C, { name: "icon-a-mobang1" }),
|
|
173
|
+
a("span", De, f(x(g).floatCurd.askAi), 1)
|
|
174
|
+
], 64))
|
|
175
|
+
]),
|
|
176
|
+
suffix: p(() => [
|
|
177
|
+
i(u, {
|
|
178
|
+
type: "primary",
|
|
179
|
+
size: "small",
|
|
180
|
+
onClick: T,
|
|
181
|
+
loading: A.value
|
|
182
|
+
}, {
|
|
183
|
+
default: p(() => [
|
|
184
|
+
ae(f(x(g).floatCurd.go), 1)
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["loading"])
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["placeholder", "modelValue"])
|
|
191
|
+
]),
|
|
192
|
+
i(u, {
|
|
193
|
+
plain: !0,
|
|
194
|
+
onClick: l[1] || (l[1] = (o) => b.value = !b.value),
|
|
195
|
+
class: "more-btn",
|
|
196
|
+
type: "primary"
|
|
197
|
+
}, {
|
|
198
|
+
default: p(() => [
|
|
199
|
+
i(C, { name: "icon-tiaojianshaixuan" }),
|
|
200
|
+
a("span", null, f(x(g).floatCurd.more), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}),
|
|
204
|
+
le(a("div", Ne, [
|
|
205
|
+
a("div", Ae, [
|
|
206
|
+
a("div", Te, f(e.formTitle), 1),
|
|
207
|
+
a("div", Be, [
|
|
208
|
+
i(u, {
|
|
209
|
+
type: "primary",
|
|
210
|
+
size: "small",
|
|
211
|
+
onClick: $
|
|
212
|
+
}, {
|
|
213
|
+
default: p(() => [
|
|
214
|
+
ae(f(x(g).floatCurd.go), 1)
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}),
|
|
218
|
+
i(C, {
|
|
219
|
+
name: "icon-a-rongqi1",
|
|
220
|
+
onClick: l[2] || (l[2] = (o) => b.value = !1)
|
|
221
|
+
})
|
|
222
|
+
])
|
|
223
|
+
]),
|
|
224
|
+
a("div", Le, [
|
|
225
|
+
i(x(we), { list: e.children }, null, 8, ["list"])
|
|
226
|
+
])
|
|
227
|
+
], 512), [
|
|
228
|
+
[re, b.value]
|
|
229
|
+
])
|
|
230
|
+
]),
|
|
231
|
+
F.value && F.value.length > 0 ? (r(), d("div", $e, [
|
|
232
|
+
(r(!0), d(w, null, te(F.value, (o) => (r(), d("div", {
|
|
233
|
+
class: "tag",
|
|
234
|
+
key: o.name
|
|
235
|
+
}, [
|
|
236
|
+
o.iconName ? (r(), B(C, {
|
|
237
|
+
key: 0,
|
|
238
|
+
name: o.iconName
|
|
239
|
+
}, null, 8, ["name"])) : S("", !0),
|
|
240
|
+
a("span", {
|
|
241
|
+
innerHTML: o.label + ":"
|
|
242
|
+
}, null, 8, ze),
|
|
243
|
+
a("span", {
|
|
244
|
+
class: "tag-value",
|
|
245
|
+
title: o.value
|
|
246
|
+
}, f(o.value), 9, je),
|
|
247
|
+
o.closeable ? (r(), B(C, {
|
|
248
|
+
key: 1,
|
|
249
|
+
name: "icon-a-rongqi1",
|
|
250
|
+
onClick: (I) => pe(o),
|
|
251
|
+
class: "close-icon"
|
|
252
|
+
}, null, 8, ["onClick"])) : S("", !0)
|
|
253
|
+
]))), 128)),
|
|
254
|
+
F.value.length > 0 ? (r(), d("div", {
|
|
255
|
+
key: 0,
|
|
256
|
+
class: "clear-btn",
|
|
257
|
+
onClick: fe
|
|
258
|
+
}, f(x(g).curd.resetFilters), 1)) : S("", !0)
|
|
259
|
+
])) : S("", !0)
|
|
260
|
+
], 512)), [
|
|
261
|
+
[re, !e.hidden]
|
|
262
|
+
]);
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
}), Re = /* @__PURE__ */ Me(qe, [["__scopeId", "data-v-e9046e66"]]);
|
|
266
|
+
export {
|
|
267
|
+
Re as default
|
|
268
|
+
};
|