asiaint-lowcode 3.1.141 → 3.1.143
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 +14 -0
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +192 -192
- package/dist/lazy/{Card-K1YxTgLf.js → Card-OlSIhgD4.js} +1 -1
- package/dist/lazy/{Cascader-DPY8u2wG.js → Cascader-BDb0Ki34.js} +10 -9
- package/dist/lazy/{Checkbox-BbcIlYAy.js → Checkbox-uIBlnbes.js} +14 -13
- package/dist/lazy/{Collapse-EH-3B9MI.js → Collapse-D_HTmlEI.js} +1 -1
- package/dist/lazy/{Component-QeIY77-X.js → Component-Boe66Tbv.js} +1 -1
- package/dist/lazy/{Component-BFqbKA73.js → Component-By5dLg8S.js} +1 -1
- package/dist/lazy/{Component-CfqfhO6D.js → Component-C67IzUwB.js} +1 -1
- package/dist/lazy/{Component-DQWsTZlR.js → Component-DbSA8jNq.js} +1 -1
- package/dist/lazy/{Component-CuKvGbHO.js → Component-beJZ5t-J.js} +1 -1
- package/dist/lazy/{CurdCard-CLeGSe16.js → CurdCard-DLjH6HCg.js} +1 -1
- package/dist/lazy/{Custom-KsGcSE3n.js → Custom-C3q3Y9IC.js} +1 -1
- package/dist/lazy/{DatePicker-DnJoejs7.js → DatePicker-BVECag0i.js} +1 -1
- package/dist/lazy/{DragList-kfFmefDm.js → DragList-C0o9A4fS.js} +1 -1
- package/dist/lazy/{FilterSearch-BJRGT7EU.js → FilterSearch-COmoVTv7.js} +1 -1
- package/dist/lazy/FloatCurd-9_aqbXIy.js +239 -0
- package/dist/lazy/FloatSearchCurd-CoHu0Fwr.js +424 -0
- package/dist/lazy/{FormList-DZLkcaaR.js → FormList-CA6C736S.js} +1 -1
- package/dist/lazy/{Grid-BeDd-5rN.js → Grid-DqS1Rdls.js} +1 -1
- package/dist/lazy/{InfiniteScroll-BGLYrEzG.js → InfiniteScroll-C-dycP5T.js} +1 -1
- package/dist/lazy/{Inline-BFpm-WEw.js → Inline-CikJsuAu.js} +1 -1
- package/dist/lazy/{JsonEdit-Bwt0sGSA.js → JsonEdit-D9dEoFm8.js} +1 -1
- package/dist/lazy/{LogList-Buy56C4d.js → LogList-D_T6C5Xq.js} +1 -1
- package/dist/lazy/{ObjGroup-CQHCl_rF.js → ObjGroup-CT6sKwFw.js} +1 -1
- package/dist/lazy/{OfferDetails-SmLOEj0t.js → OfferDetails-lBlIQEgo.js} +1 -1
- package/dist/lazy/{Pagination-XUjYooVn.js → Pagination-BQZTZXl9.js} +1 -1
- package/dist/lazy/{Progress-B5UcQwlM.js → Progress-BBbfSGJD.js} +1 -1
- package/dist/lazy/{Radio-C6NQ_z94.js → Radio-uth_Ca5-.js} +15 -14
- package/dist/lazy/{SearchSelect-xuhhiyQD.js → SearchSelect-CN1-usiy.js} +30 -29
- package/dist/lazy/{Select-AsTEyYN4.js → Select-BxQPR_e7.js} +17 -16
- package/dist/lazy/{Table-DtZulREh.js → Table-BWgEr9DV.js} +1 -1
- package/dist/lazy/{Tabs-osw1slyG.js → Tabs-D3PMjDBa.js} +1 -1
- package/dist/lazy/{TextArea-DcS6oNRx.js → TextArea-DJnR-YcV.js} +1 -1
- package/dist/lazy/{Wrapper-ZYiv5gHW.js → Wrapper-rdvc505t.js} +1 -1
- package/dist/lazy/{index-7y_S8s1Z.js → index-yO01RrJx.js} +704 -686
- package/dist/lazy/useSelect-DNbkEyNF.js +78 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/FloatCurd-ZF6cKDD1.js +0 -185
- package/dist/lazy/useSelect-DaTCTaz-.js +0 -78
package/package.json
CHANGED
|
@@ -1,185 +0,0 @@
|
|
|
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 t, createVNode as a, 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 q, createCommentVNode as I } from "vue";
|
|
2
|
-
import { c as X, u as Z, f as P, i as ee, I as m, b as oe, _ as ne } from "./index-7y_S8s1Z.js";
|
|
3
|
-
import { dayjs as le } from "element-plus";
|
|
4
|
-
const te = { class: "float-curd" }, ae = { 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 = ["title"], ve = /* @__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(j, { expose: z }) {
|
|
17
|
-
const r = j, 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 = P(o, r.name);
|
|
20
|
-
if (!s || !s.children)
|
|
21
|
-
return [];
|
|
22
|
-
const f = [];
|
|
23
|
-
for (const A in e) {
|
|
24
|
-
const l = P(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", te, [
|
|
79
|
-
t("div", ae, [
|
|
80
|
-
t("div", se, [
|
|
81
|
-
a(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
|
-
a(m, { name: "icon-a-mobang1" }),
|
|
92
|
-
e[3] || (e[3] = t("span", { class: "prefix-text" }, "Ask AI", -1))
|
|
93
|
-
]),
|
|
94
|
-
suffix: d(() => [
|
|
95
|
-
a(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
|
-
a(s, {
|
|
111
|
-
plain: !0,
|
|
112
|
-
onClick: e[1] || (e[1] = (n) => u.value = !u.value),
|
|
113
|
-
class: "more-btn"
|
|
114
|
-
}, {
|
|
115
|
-
default: d(() => [
|
|
116
|
-
a(m, { name: "icon-tiaojianshaixuan" }),
|
|
117
|
-
e[5] || (e[5] = t("span", null, "More", -1))
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}),
|
|
121
|
-
D(t("div", re, [
|
|
122
|
-
t("div", ie, [
|
|
123
|
-
t("div", ce, Y(o.formTitle), 1),
|
|
124
|
-
t("div", ue, [
|
|
125
|
-
a(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
|
-
a(m, {
|
|
136
|
-
name: "icon-a-rongqi1",
|
|
137
|
-
onClick: e[2] || (e[2] = (n) => u.value = !1)
|
|
138
|
-
})
|
|
139
|
-
])
|
|
140
|
-
]),
|
|
141
|
-
t("div", de, [
|
|
142
|
-
a(O(oe), { list: o.children }, null, 8, ["list"])
|
|
143
|
-
])
|
|
144
|
-
], 512), [
|
|
145
|
-
[$, u.value]
|
|
146
|
-
])
|
|
147
|
-
]),
|
|
148
|
-
t("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(), q(m, {
|
|
154
|
-
key: 0,
|
|
155
|
-
name: n.iconName
|
|
156
|
-
}, null, 8, ["name"])) : I("", !0),
|
|
157
|
-
t("span", {
|
|
158
|
-
innerHTML: n.label + ":"
|
|
159
|
-
}, null, 8, fe),
|
|
160
|
-
t("span", {
|
|
161
|
-
class: "tag-value",
|
|
162
|
-
title: n.value
|
|
163
|
-
}, Y(n.value), 9, pe),
|
|
164
|
-
n.closeable ? (c(), q(m, {
|
|
165
|
-
key: 1,
|
|
166
|
-
name: "icon-a-rongqi1",
|
|
167
|
-
onClick: (V) => E(n),
|
|
168
|
-
class: "close-icon"
|
|
169
|
-
}, null, 8, ["onClick"])) : I("", !0)
|
|
170
|
-
]))), 128)),
|
|
171
|
-
S.value.length > 0 ? (c(), v("div", {
|
|
172
|
-
key: 0,
|
|
173
|
-
class: "clear-btn",
|
|
174
|
-
onClick: G
|
|
175
|
-
}, "Clear filters")) : I("", !0)
|
|
176
|
-
])
|
|
177
|
-
], 512)), [
|
|
178
|
-
[$, !o.hidden]
|
|
179
|
-
]);
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
}), Ce = /* @__PURE__ */ ne(ve, [["__scopeId", "data-v-436e0489"]]);
|
|
183
|
-
export {
|
|
184
|
-
Ce as default
|
|
185
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { inject as A, ref as h, toRaw as y, onMounted as O, watch as o } from "vue";
|
|
2
|
-
import { $ as S, u as V, l as F, f as I } from "./index-7y_S8s1Z.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const D = () => {
|
|
5
|
-
const { fetchOptionsFn: e } = A(S);
|
|
6
|
-
return e;
|
|
7
|
-
}, x = (e) => {
|
|
8
|
-
const s = V(), m = D(), a = h([]), c = h(!1);
|
|
9
|
-
let d = 0;
|
|
10
|
-
const i = F.debounce(async () => {
|
|
11
|
-
if (!m || !e.apiParams || Object.values(e.apiParams).some((l) => l === void 0))
|
|
12
|
-
return;
|
|
13
|
-
c.value = !0;
|
|
14
|
-
const t = ++d;
|
|
15
|
-
try {
|
|
16
|
-
const l = await m({
|
|
17
|
-
formItemProps: y(e),
|
|
18
|
-
formSchema: y(s.schema)
|
|
19
|
-
});
|
|
20
|
-
if (t !== d)
|
|
21
|
-
return;
|
|
22
|
-
const r = e.defaultOptions || [];
|
|
23
|
-
if (a.value = [...r, ...l], e.filters && (a.value = a.value.filter((n) => Array.isArray(e.filters) ? !e.filters.includes(n[e.valueKey || "value"]) : !0)), e.name) {
|
|
24
|
-
const n = I(s.schema.items, e.name);
|
|
25
|
-
n && n.props && (n.props.options = a.value);
|
|
26
|
-
}
|
|
27
|
-
const f = s.formValues[e.name], u = a.value.findIndex((n) => n[e.valueKey || "value"] === f) !== -1;
|
|
28
|
-
if (e.refreshFlag && a.value.length > 0 && !u) {
|
|
29
|
-
s.updateFormValues(
|
|
30
|
-
{
|
|
31
|
-
[`${e.name}`]: a.value[0][e.valueKey || "value"]
|
|
32
|
-
},
|
|
33
|
-
!0
|
|
34
|
-
);
|
|
35
|
-
const n = I(s.schema.items, e.name);
|
|
36
|
-
n && n.props && (n.props.refreshFlag = !1);
|
|
37
|
-
}
|
|
38
|
-
} finally {
|
|
39
|
-
c.value = !1;
|
|
40
|
-
}
|
|
41
|
-
}, 300);
|
|
42
|
-
O(() => {
|
|
43
|
-
const { mode: t, options: l = [] } = e;
|
|
44
|
-
t === "static" && (a.value = l), t === "remote" && i();
|
|
45
|
-
}), o(
|
|
46
|
-
() => e.apiParams,
|
|
47
|
-
(t, l) => {
|
|
48
|
-
F.isEqual(t, l) || (a.value = [], i());
|
|
49
|
-
}
|
|
50
|
-
), o(
|
|
51
|
-
() => e.options,
|
|
52
|
-
(t = []) => {
|
|
53
|
-
e.mode === "static" && (a.value = t);
|
|
54
|
-
}
|
|
55
|
-
), o(
|
|
56
|
-
() => e.mode,
|
|
57
|
-
(t) => {
|
|
58
|
-
t === "static" && (a.value = e.options || []), t === "remote" && (a.value = [], i());
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
const { mode: g, dependentFields: v } = e;
|
|
62
|
-
if (g === "remote" && Array.isArray(v))
|
|
63
|
-
for (const t of v)
|
|
64
|
-
o(
|
|
65
|
-
() => s.formValues[t],
|
|
66
|
-
(l, r) => {
|
|
67
|
-
i();
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
return { selectChange: (t) => {
|
|
71
|
-
const { valueKey: l = "value", multiple: r, name: f } = e;
|
|
72
|
-
let u = {};
|
|
73
|
-
r && Array.isArray(t) ? u = a.value.filter((n) => t.includes(n[l])) : u = a.value.find((n) => n[l] === t) || {}, s.selectData && f && s.updateSelectData(f, u);
|
|
74
|
-
}, currentOptions: a, loading: c, fetchData: i };
|
|
75
|
-
};
|
|
76
|
-
export {
|
|
77
|
-
x as u
|
|
78
|
-
};
|