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
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { defineComponent as he, ref as I, computed as ee, onUnmounted as _e, watch as ye, onMounted as xe, resolveComponent as C, withDirectives as oe, openBlock as r, createElementBlock as d, createElementVNode as a, createVNode as i, withKeys as be, withCtx as p, Fragment as k, renderList as ne, createBlock as N, toDisplayString as g, createTextVNode as le, unref as te, vShow as ae, createCommentVNode as O } from "vue";
|
|
2
|
-
import { c as Ce, u as ke, d as ge, f as re, j as Ve, I as y, b as we, _ as Me } from "./index-if5yiaE6.js";
|
|
3
|
-
import { dayjs as T } 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" } }, Ae = { class: "float-form" }, De = { class: "float-form-header" }, Ne = { class: "float-form-header-title" }, Te = { class: "float-form-header-btns" }, Be = { class: "float-form-body" }, Le = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "curd-footer"
|
|
7
|
-
}, $e = ["innerHTML"], je = ["title"], ze = /* @__PURE__ */ he({
|
|
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(se, { expose: ie }) {
|
|
24
|
-
const t = se, x = I(!1), { ruleModule: V, pageMethodMap: w } = Ce(), P = ke(), ue = ge();
|
|
25
|
-
function S(e, o, u, v, h) {
|
|
26
|
-
if (e != null && e.length)
|
|
27
|
-
for (const c of e) {
|
|
28
|
-
if (c[u] === o)
|
|
29
|
-
return c[v];
|
|
30
|
-
const f = c[h];
|
|
31
|
-
if (Array.isArray(f) && f.length > 0) {
|
|
32
|
-
const n = S(f, o, u, v, h);
|
|
33
|
-
if (n !== void 0)
|
|
34
|
-
return n;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const M = ee(() => {
|
|
39
|
-
var h, c, f, n, Y, $, j, z, q, K, E, G, H, R, U, J;
|
|
40
|
-
const e = P.schema.items, o = P.formValues, u = re(e, t.name);
|
|
41
|
-
if (!u || !u.children)
|
|
42
|
-
return [];
|
|
43
|
-
const v = [];
|
|
44
|
-
for (const Q in o) {
|
|
45
|
-
const l = re(u.children, Q);
|
|
46
|
-
if (l && l.label && !l.hidden) {
|
|
47
|
-
const s = o[Q];
|
|
48
|
-
if (s != null && s !== "") {
|
|
49
|
-
const _ = {
|
|
50
|
-
name: l.name,
|
|
51
|
-
label: l.label,
|
|
52
|
-
value: s,
|
|
53
|
-
closeable: !l.required && !((h = l.props) != null && h.disabled) && ((c = l.props) == null ? void 0 : c.clearable) !== !1
|
|
54
|
-
};
|
|
55
|
-
if (l.component === "DatePicker" && (((f = l.props) == null ? void 0 : f.type) === "daterange" ? _.value = T(s[0]).format(((n = l.props) == null ? void 0 : n.valueFormat) || "YYYY-MM-DD") + " - " + T(s[1]).format(((Y = l.props) == null ? void 0 : Y.valueFormat) || "YYYY-MM-DD") : (_.iconName = "icon-rili", _.value = T(s).format((($ = l.props) == null ? void 0 : $.valueFormat) || "YYYY-MM-DD"))), l.component === "Select" && (_.value = (q = (z = (j = l.props) == null ? void 0 : j.options) == null ? void 0 : z.find((F) => F.value === s)) == null ? void 0 : q.label), l.component === "TreeSelect") {
|
|
56
|
-
const F = ((K = l.props) == null ? void 0 : K.nodeKey) || "id", W = ((G = (E = l.props) == null ? void 0 : E.props) == null ? void 0 : G.label) || "label", X = ((R = (H = l.props) == null ? void 0 : H.props) == null ? void 0 : R.children) || "children", Z = (U = l.props) == null ? void 0 : U.options;
|
|
57
|
-
(J = l.props) != null && J.multiple && Array.isArray(s) ? _.value = s.map((ve) => S(Z, ve, F, W, X)).filter(Boolean).join(", ") : _.value = S(Z, s, F, W, X);
|
|
58
|
-
}
|
|
59
|
-
v.push(_);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return v;
|
|
64
|
-
}), m = I(""), ce = ee(() => {
|
|
65
|
-
var e, o;
|
|
66
|
-
return !t.prefixOptions || t.prefixOptions.length === 0 || !m.value ? "" : (o = (e = t.prefixOptions) == null ? void 0 : e.find((u) => u.value === m.value)) == null ? void 0 : o.label;
|
|
67
|
-
});
|
|
68
|
-
function de(e) {
|
|
69
|
-
m.value = e, b.value = "";
|
|
70
|
-
try {
|
|
71
|
-
V[t.prefixChange](w, e);
|
|
72
|
-
} catch (o) {
|
|
73
|
-
console.error(o);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const b = I("");
|
|
77
|
-
function B() {
|
|
78
|
-
try {
|
|
79
|
-
V[t.onSearch](w), x.value = !1;
|
|
80
|
-
} catch (e) {
|
|
81
|
-
console.error(e);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const A = I(!1);
|
|
85
|
-
async function D() {
|
|
86
|
-
try {
|
|
87
|
-
A.value = !0, await V[t.onAiSearch](w, b.value, m.value || "");
|
|
88
|
-
} catch (e) {
|
|
89
|
-
console.error(e);
|
|
90
|
-
} finally {
|
|
91
|
-
A.value = !1;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
function pe(e) {
|
|
95
|
-
P.setFieldValue(e.name, "", ""), B();
|
|
96
|
-
}
|
|
97
|
-
function fe() {
|
|
98
|
-
try {
|
|
99
|
-
V[t.onClear](w);
|
|
100
|
-
} catch (e) {
|
|
101
|
-
console.error(e);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function me() {
|
|
105
|
-
b.value = "";
|
|
106
|
-
}
|
|
107
|
-
const L = {
|
|
108
|
-
clearInputValue: me,
|
|
109
|
-
type: "floatcurd"
|
|
110
|
-
};
|
|
111
|
-
if (ie(L), t.name) {
|
|
112
|
-
const e = Ve(t.name, L);
|
|
113
|
-
_e(() => {
|
|
114
|
-
e();
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return ye(
|
|
118
|
-
() => t.defaultPrefixValue,
|
|
119
|
-
(e) => {
|
|
120
|
-
e && (m.value = e);
|
|
121
|
-
}
|
|
122
|
-
), xe(() => {
|
|
123
|
-
t.defaultPrefixValue ? m.value = t.defaultPrefixValue : t.prefixOptions && t.prefixOptions.length > 0 && (m.value = t.prefixOptions[0].value);
|
|
124
|
-
}), (e, o) => {
|
|
125
|
-
const u = C("el-dropdown-item"), v = C("el-dropdown-menu"), h = C("el-dropdown"), c = C("el-button"), f = C("el-input");
|
|
126
|
-
return oe((r(), d("div", Ye, [
|
|
127
|
-
a("div", Fe, [
|
|
128
|
-
a("div", Ie, [
|
|
129
|
-
i(f, {
|
|
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: D,
|
|
136
|
-
onKeyup: be(D, ["enter"])
|
|
137
|
-
}, {
|
|
138
|
-
prefix: p(() => [
|
|
139
|
-
e.prefixOptions && e.prefixOptions.length > 0 ? (r(), d(k, { key: 0 }, [
|
|
140
|
-
i(h, null, {
|
|
141
|
-
dropdown: p(() => [
|
|
142
|
-
i(v, null, {
|
|
143
|
-
default: p(() => [
|
|
144
|
-
(r(!0), d(k, null, ne(e.prefixOptions, (n) => (r(), N(u, {
|
|
145
|
-
key: n.value,
|
|
146
|
-
command: n.value,
|
|
147
|
-
onClick: (Y) => de(n.value),
|
|
148
|
-
style: { padding: "4px 8px" }
|
|
149
|
-
}, {
|
|
150
|
-
default: p(() => [
|
|
151
|
-
a("span", Se, g(n.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, g(ce.value), 1)
|
|
162
|
-
])
|
|
163
|
-
]),
|
|
164
|
-
_: 1
|
|
165
|
-
}),
|
|
166
|
-
i(y, {
|
|
167
|
-
name: "icon-dropdown",
|
|
168
|
-
size: 12,
|
|
169
|
-
color: "#999"
|
|
170
|
-
})
|
|
171
|
-
], 64)) : e.hiddenPrefix ? (r(), d(k, { key: 1 }, [], 64)) : (r(), d(k, { key: 2 }, [
|
|
172
|
-
i(y, { name: "icon-a-mobang1" }),
|
|
173
|
-
o[3] || (o[3] = a("span", { class: "prefix-text" }, "Ask AI", -1))
|
|
174
|
-
], 64))
|
|
175
|
-
]),
|
|
176
|
-
suffix: p(() => [
|
|
177
|
-
i(c, {
|
|
178
|
-
type: "primary",
|
|
179
|
-
size: "small",
|
|
180
|
-
onClick: D,
|
|
181
|
-
loading: A.value
|
|
182
|
-
}, {
|
|
183
|
-
default: p(() => o[4] || (o[4] = [
|
|
184
|
-
le("Go")
|
|
185
|
-
])),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 8, ["loading"])
|
|
188
|
-
]),
|
|
189
|
-
_: 1
|
|
190
|
-
}, 8, ["placeholder", "modelValue"])
|
|
191
|
-
]),
|
|
192
|
-
i(c, {
|
|
193
|
-
plain: !0,
|
|
194
|
-
onClick: o[1] || (o[1] = (n) => x.value = !x.value),
|
|
195
|
-
class: "more-btn",
|
|
196
|
-
type: "primary"
|
|
197
|
-
}, {
|
|
198
|
-
default: p(() => [
|
|
199
|
-
i(y, { name: "icon-tiaojianshaixuan" }),
|
|
200
|
-
o[5] || (o[5] = a("span", null, "More", -1))
|
|
201
|
-
]),
|
|
202
|
-
_: 1
|
|
203
|
-
}),
|
|
204
|
-
oe(a("div", Ae, [
|
|
205
|
-
a("div", De, [
|
|
206
|
-
a("div", Ne, g(e.formTitle), 1),
|
|
207
|
-
a("div", Te, [
|
|
208
|
-
i(c, {
|
|
209
|
-
type: "primary",
|
|
210
|
-
size: "small",
|
|
211
|
-
onClick: B
|
|
212
|
-
}, {
|
|
213
|
-
default: p(() => o[6] || (o[6] = [
|
|
214
|
-
le("Go")
|
|
215
|
-
])),
|
|
216
|
-
_: 1
|
|
217
|
-
}),
|
|
218
|
-
i(y, {
|
|
219
|
-
name: "icon-a-rongqi1",
|
|
220
|
-
onClick: o[2] || (o[2] = (n) => x.value = !1)
|
|
221
|
-
})
|
|
222
|
-
])
|
|
223
|
-
]),
|
|
224
|
-
a("div", Be, [
|
|
225
|
-
i(te(we), { list: e.children }, null, 8, ["list"])
|
|
226
|
-
])
|
|
227
|
-
], 512), [
|
|
228
|
-
[ae, x.value]
|
|
229
|
-
])
|
|
230
|
-
]),
|
|
231
|
-
M.value && M.value.length > 0 ? (r(), d("div", Le, [
|
|
232
|
-
(r(!0), d(k, null, ne(M.value, (n) => (r(), d("div", {
|
|
233
|
-
class: "tag",
|
|
234
|
-
key: n.name
|
|
235
|
-
}, [
|
|
236
|
-
n.iconName ? (r(), N(y, {
|
|
237
|
-
key: 0,
|
|
238
|
-
name: n.iconName
|
|
239
|
-
}, null, 8, ["name"])) : O("", !0),
|
|
240
|
-
a("span", {
|
|
241
|
-
innerHTML: n.label + ":"
|
|
242
|
-
}, null, 8, $e),
|
|
243
|
-
a("span", {
|
|
244
|
-
class: "tag-value",
|
|
245
|
-
title: n.value
|
|
246
|
-
}, g(n.value), 9, je),
|
|
247
|
-
n.closeable ? (r(), N(y, {
|
|
248
|
-
key: 1,
|
|
249
|
-
name: "icon-a-rongqi1",
|
|
250
|
-
onClick: (Y) => pe(n),
|
|
251
|
-
class: "close-icon"
|
|
252
|
-
}, null, 8, ["onClick"])) : O("", !0)
|
|
253
|
-
]))), 128)),
|
|
254
|
-
M.value.length > 0 ? (r(), d("div", {
|
|
255
|
-
key: 0,
|
|
256
|
-
class: "clear-btn",
|
|
257
|
-
onClick: fe
|
|
258
|
-
}, g(te(ue).curd.resetFilters), 1)) : O("", !0)
|
|
259
|
-
])) : O("", !0)
|
|
260
|
-
], 512)), [
|
|
261
|
-
[ae, !e.hidden]
|
|
262
|
-
]);
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
}), Ge = /* @__PURE__ */ Me(ze, [["__scopeId", "data-v-7de06ccd"]]);
|
|
266
|
-
export {
|
|
267
|
-
Ge as default
|
|
268
|
-
};
|