asiaint-lowcode 3.1.13 → 3.1.15
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-vmD3I9-j.js +114 -0
- package/dist/lazy/{Cascader-DqjS19FS.js → Cascader-hFRL1FW3.js} +1 -1
- package/dist/lazy/{Checkbox-Bjwn_9Sk.js → Checkbox-D2TDj_TR.js} +2 -2
- package/dist/lazy/{Collapse-CggqtpyZ.js → Collapse-DG7__RLN.js} +1 -1
- package/dist/lazy/{Component-DRo28JGo.js → Component-B1h0Pd2f.js} +1 -1
- package/dist/lazy/{Component-gjivf6-3.js → Component-Bd4HTi5E.js} +1 -1
- package/dist/lazy/{Component-DRCOaqRw.js → Component-BhShPxLr.js} +1 -1
- package/dist/lazy/{Component-DhckZre2.js → Component-C9vgVXl1.js} +1 -1
- package/dist/lazy/{Component-sJXzY0GZ.js → Component-s1QCgYVc.js} +1 -1
- package/dist/lazy/{Component-D04uUKKP.js → Component-uGBpf8xa.js} +1 -1
- package/dist/lazy/{CurdCard-OauJU94C.js → CurdCard-DOvIo76P.js} +1 -1
- package/dist/lazy/{Custom-Ckhj-l7m.js → Custom-Cnt4jYHK.js} +1 -1
- package/dist/lazy/{DatePicker-Bb8L5SLT.js → DatePicker-ZjBTIbyE.js} +1 -1
- package/dist/lazy/{DragList-bGBTK4P8.js → DragList-D2uAhL8y.js} +1 -1
- package/dist/lazy/FilterSearch-fZMKLSaX.js +108 -0
- package/dist/lazy/{FormList-Cyl7VsIi.js → FormList-DWjzeNJW.js} +1 -1
- package/dist/lazy/{Grid-BwS6pSTs.js → Grid-BS-XRljD.js} +1 -1
- package/dist/lazy/{Inline-DXGzDS4z.js → Inline-CW0KfFbM.js} +1 -1
- package/dist/lazy/{JsonEdit-Dp2tnIQo.js → JsonEdit-BDef953Z.js} +1 -1
- package/dist/lazy/{LogList-DxsTUwbL.js → LogList-COTdAxNy.js} +1 -1
- package/dist/lazy/{ObjGroup-B-9pX1xQ.js → ObjGroup-B6LsHiHA.js} +1 -1
- package/dist/lazy/{OfferDetails-IUMRtdhg.js → OfferDetails-NaIOuP9k.js} +1 -1
- package/dist/lazy/{Pagination-BiZil-5r.js → Pagination-BW9vH1f3.js} +1 -1
- package/dist/lazy/{Progress-50n0oo7L.js → Progress-KE-DI0NW.js} +1 -1
- package/dist/lazy/{Radio-S-MFhpUk.js → Radio-BgCNDKRx.js} +2 -2
- package/dist/lazy/{SearchSelect-0WK-bM_-.js → SearchSelect-CWbTKAII.js} +2 -2
- package/dist/lazy/{Select-CZLGF2j5.js → Select-Dt4VSGIj.js} +2 -2
- package/dist/lazy/Table-3Au067wZ.js +514 -0
- package/dist/lazy/{Tabs-CakSe4ME.js → Tabs-CsB78dFG.js} +1 -1
- package/dist/lazy/{Wrapper-BuGoV8OT.js → Wrapper-pbe-a8HN.js} +1 -1
- package/dist/lazy/{index-PbMyf01b.js → index-DVCkxMS8.js} +5713 -5690
- package/dist/lazy/useSelect-7MjBwpDB.js +78 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-PgW4DysW.js +0 -104
- package/dist/lazy/Table-CIAv5GJ3.js +0 -514
- package/dist/lazy/useSelect-Ev8bzJPh.js +0 -77
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { inject as I, ref as h, toRaw as y, onMounted as O, watch as r } from "vue";
|
|
2
|
-
import { $ as S, u as D, l as F, i as g } from "./index-PbMyf01b.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const P = () => {
|
|
5
|
-
const { fetchOptionsFn: e } = I(S);
|
|
6
|
-
return e;
|
|
7
|
-
}, $ = (e) => {
|
|
8
|
-
const s = D(), m = P(), a = h([]), f = h(!1);
|
|
9
|
-
let d = 0;
|
|
10
|
-
const l = F.debounce(async () => {
|
|
11
|
-
if (!m || !e.apiParams || Object.values(e.apiParams).some((n) => n === void 0))
|
|
12
|
-
return;
|
|
13
|
-
f.value = !0;
|
|
14
|
-
const t = ++d;
|
|
15
|
-
try {
|
|
16
|
-
const n = await m({
|
|
17
|
-
formItemProps: y(e),
|
|
18
|
-
formSchema: y(s.schema)
|
|
19
|
-
});
|
|
20
|
-
if (t !== d)
|
|
21
|
-
return;
|
|
22
|
-
const u = e.defaultOptions || [];
|
|
23
|
-
if (a.value = [...u, ...n], e.filters && (a.value = a.value.filter((i) => Array.isArray(e.filters) ? !e.filters.includes(i[e.valueKey || "value"]) : !0)), e.name) {
|
|
24
|
-
const i = g(s.schema.items, e.name);
|
|
25
|
-
i && i.props && (i.props.options = a.value);
|
|
26
|
-
}
|
|
27
|
-
if (e.refreshFlag && a.value.length >= 1) {
|
|
28
|
-
s.updateFormValues(
|
|
29
|
-
{
|
|
30
|
-
[`${e.name}`]: a.value[0][e.valueKey || "value"]
|
|
31
|
-
},
|
|
32
|
-
!0
|
|
33
|
-
);
|
|
34
|
-
const i = g(s.schema.items, e.name);
|
|
35
|
-
i && i.props && (i.props.refreshFlag = !1);
|
|
36
|
-
}
|
|
37
|
-
} finally {
|
|
38
|
-
f.value = !1;
|
|
39
|
-
}
|
|
40
|
-
}, 300);
|
|
41
|
-
O(() => {
|
|
42
|
-
const { mode: t, options: n = [] } = e;
|
|
43
|
-
t === "static" && (a.value = n), t === "remote" && l();
|
|
44
|
-
}), r(
|
|
45
|
-
() => e.apiParams,
|
|
46
|
-
(t, n) => {
|
|
47
|
-
F.isEqual(t, n) || (a.value = [], l());
|
|
48
|
-
}
|
|
49
|
-
), r(
|
|
50
|
-
() => e.options,
|
|
51
|
-
(t = []) => {
|
|
52
|
-
e.mode === "static" && (a.value = t);
|
|
53
|
-
}
|
|
54
|
-
), r(
|
|
55
|
-
() => e.mode,
|
|
56
|
-
(t) => {
|
|
57
|
-
t === "static" && (a.value = e.options || []), t === "remote" && (a.value = [], l());
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const { mode: A, dependentFields: v } = e;
|
|
61
|
-
if (A === "remote" && Array.isArray(v))
|
|
62
|
-
for (const t of v)
|
|
63
|
-
r(
|
|
64
|
-
() => s.formValues[t],
|
|
65
|
-
(n, u) => {
|
|
66
|
-
l();
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
return { selectChange: (t) => {
|
|
70
|
-
const { valueKey: n = "value", multiple: u, name: i } = e;
|
|
71
|
-
let o = {};
|
|
72
|
-
u && Array.isArray(t) ? o = a.value.filter((c) => t.includes(c[n])) : o = a.value.find((c) => c[n] === t) || {}, s.selectData && i && s.updateSelectData(i, o);
|
|
73
|
-
}, currentOptions: a, loading: f, fetchData: l };
|
|
74
|
-
};
|
|
75
|
-
export {
|
|
76
|
-
$ as u
|
|
77
|
-
};
|