asiaint-lowcode 3.1.178 → 3.1.180
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 +146 -146
- package/dist/lazy/{Card-mSVf_E9R.js → Card-D0qqb0o4.js} +1 -1
- package/dist/lazy/{Cascader-CY9x6fGc.js → Cascader-CS28WT_W.js} +1 -1
- package/dist/lazy/{Checkbox-qMDw70fo.js → Checkbox-CtGMetzO.js} +2 -2
- package/dist/lazy/{Collapse-D0t14_Zc.js → Collapse-zz_eJBFO.js} +2 -2
- package/dist/lazy/{Component-iGfx-klZ.js → Component-B2AZ5-Jz.js} +1 -1
- package/dist/lazy/{Component-7jRtW3tJ.js → Component-CBFFgFXm.js} +1 -1
- package/dist/lazy/{Component-CCZ6Kokl.js → Component-DQRgavGC.js} +1 -1
- package/dist/lazy/{Component-5y7bQ6zM.js → Component-_QgR-kn-.js} +1 -1
- package/dist/lazy/{CurdCard-BiLLgAc4.js → CurdCard-AhyJrle5.js} +1 -1
- package/dist/lazy/{Custom-yb-MSD1a.js → Custom-aGjBnbi6.js} +1 -1
- package/dist/lazy/{DatePicker-BllDmbVB.js → DatePicker-orTu683T.js} +1 -1
- package/dist/lazy/{DragList-DoaBE8f8.js → DragList-CcXCkZvp.js} +1 -1
- package/dist/lazy/{FilterSearch-BfJQBqKq.js → FilterSearch-DTKy-1vt.js} +1 -1
- package/dist/lazy/FloatCurd-4dNUF6wz.js +276 -0
- package/dist/lazy/{FloatSearchCurd-DO_P81HS.js → FloatSearchCurd-BwFV_Nbh.js} +1 -1
- package/dist/lazy/{FormList-CzSrO7Eo.js → FormList-CzU7EmXT.js} +1 -1
- package/dist/lazy/{Grid-CBiK4ReY.js → Grid-F750XcZ-.js} +1 -1
- package/dist/lazy/{InfiniteScroll-DdpOduGR.js → InfiniteScroll-DVW7dKv6.js} +1 -1
- package/dist/lazy/{Inline-Dex7n82N.js → Inline-BhtTo2ul.js} +1 -1
- package/dist/lazy/{JsonEdit-SV6q_7e8.js → JsonEdit-3WxtVOAw.js} +1 -1
- package/dist/lazy/{LogList-DrfewhkC.js → LogList-BseUOOv9.js} +1 -1
- package/dist/lazy/{ObjGroup-DtrDje4D.js → ObjGroup-BTtcp2jS.js} +1 -1
- package/dist/lazy/{OfferDetails-CxjdYnv1.js → OfferDetails-B8_rxQgO.js} +1 -1
- package/dist/lazy/{Pagination-DcbnKq4_.js → Pagination-j0s9TohI.js} +1 -1
- package/dist/lazy/{Progress-Dsb9_hI4.js → Progress-D-MvCD4S.js} +1 -1
- package/dist/lazy/{Radio-cZJl2odS.js → Radio-BONiUr17.js} +2 -2
- package/dist/lazy/{SearchSelect-CWKnm8SP.js → SearchSelect-Cg0_9TuX.js} +2 -2
- package/dist/lazy/{Select-DRnz4XOX.js → Select-C1SUZumL.js} +2 -2
- package/dist/lazy/{Table-TzSrhpft.js → Table-QLaZ7N4Q.js} +148 -147
- package/dist/lazy/{Tabs-DZ9eSx0Q.js → Tabs-C4-hn137.js} +1 -1
- package/dist/lazy/{Tag-zQipyu9O.js → Tag-D9eX-mDI.js} +1 -1
- package/dist/lazy/{TextArea-BtLZEW7u.js → TextArea-CSC-sOVa.js} +1 -1
- package/dist/lazy/{Title-B5ofWtKe.js → Title-BKFvDLiU.js} +1 -1
- package/dist/lazy/{Title.vue_vue_type_script_setup_true_lang-Mo4gzyJw.js → Title.vue_vue_type_script_setup_true_lang-DT4Pq-JC.js} +1 -1
- package/dist/lazy/{Wrapper-DTZMBHQu.js → Wrapper-3iGi4ndG.js} +1 -1
- package/dist/lazy/{index-Br-728gx.js → index-KjUPfqkL.js} +3371 -3368
- package/dist/lazy/{useSelect-CPyy0kAH.js → useSelect-DkxaT79Q.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/FloatCurd-Cp-eVidI.js +0 -268
package/package.json
CHANGED
|
@@ -1,268 +0,0 @@
|
|
|
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-Br-728gx.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
|
-
};
|