asiaint-lowcode 3.1.8 → 3.1.10
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/README.md +31 -31
- package/dist/asiaint-lowcode.js +3 -3
- package/dist/asiaint-lowcode.umd.cjs +112 -112
- package/dist/index.d.ts +9 -4
- package/dist/lazy/{Card-6PZmYtNq.js → Card-Ddz6YQpV.js} +2 -2
- package/dist/lazy/{Cascader-N-sfkAb7.js → Cascader-BVV-Ki-j.js} +1 -1
- package/dist/lazy/Checkbox-DCgSzwZg.js +84 -0
- package/dist/lazy/{Collapse-BwDUA9I8.js → Collapse-DcpPd4tx.js} +1 -1
- package/dist/lazy/{Component-CQFTAcKS.js → Component-Bk5rQPzQ.js} +1 -1
- package/dist/lazy/{Component-C6kjM2Nq.js → Component-BoKUgADh.js} +16 -16
- package/dist/lazy/{Component-TW6VSMXG.js → Component-CeDrKrk2.js} +2 -2
- package/dist/lazy/{Component-DQcxhU9o.js → Component-D3MsGYjM.js} +1 -1
- package/dist/lazy/{Component-rx0uCN0v.js → Component-Ly_yC1NL.js} +1 -1
- package/dist/lazy/{Component-BZYH1Qg5.js → Component-ucGzFjPR.js} +2 -2
- package/dist/lazy/{CurdCard-pUfsfVL3.js → CurdCard-Il1fjGlu.js} +2 -2
- package/dist/lazy/{Custom-BvLfuMzj.js → Custom-BgEkqcbp.js} +7 -7
- package/dist/lazy/{DatePicker-Dbp6CJ8Z.js → DatePicker-BF56wejJ.js} +1 -1
- package/dist/lazy/{DragList-BJZtHPww.js → DragList-Bn3L94zk.js} +2 -2
- package/dist/lazy/{FormList-Dwvhoedo.js → FormList-BVMuuLuW.js} +1 -1
- package/dist/lazy/{Grid-BFSvkMBW.js → Grid-DYtMCmN9.js} +1 -1
- package/dist/lazy/{Inline-EBtbFYWn.js → Inline-CKEEiFBv.js} +3 -3
- package/dist/lazy/{JsonEdit-4SgUwVju.js → JsonEdit-DolVbi2b.js} +3 -3
- package/dist/lazy/{LogList-4H55fiHU.js → LogList-BOjs6me1.js} +7 -7
- package/dist/lazy/{ObjGroup-DWtjlZTi.js → ObjGroup-5eYnkH48.js} +3 -3
- package/dist/lazy/{OfferDetails-B0qSqVXF.js → OfferDetails-DXEcHunx.js} +2 -2
- package/dist/lazy/{Pagination-CdH4EStJ.js → Pagination-BE4iI0x3.js} +7 -7
- package/dist/lazy/{Progress-C-Gxh682.js → Progress-CklsbZkm.js} +5 -5
- package/dist/lazy/{Radio-OlWL4SQk.js → Radio-Bcqo0swh.js} +3 -3
- package/dist/lazy/{SearchSelect-C9rumlyn.js → SearchSelect-Dzzrodrk.js} +11 -11
- package/dist/lazy/{Select-CwU7uxeN.js → Select-DEpA7m0g.js} +2 -2
- package/dist/lazy/Table-DbCIbaI-.js +514 -0
- package/dist/lazy/{Tabs-Dfqvt1sF.js → Tabs-CFb5c1El.js} +1 -1
- package/dist/lazy/{Wrapper-B0vhgFVI.js → Wrapper-BxcMDeXI.js} +8 -8
- package/dist/lazy/{index-i51Ps93p.js → index-B18Z3bjt.js} +3651 -3638
- package/dist/lazy/{useSelect-BNh54VEo.js → useSelect-Jpa7ap-I.js} +15 -15
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Checkbox-CcKRx3xE.js +0 -77
- package/dist/lazy/Table-DV138e4a.js +0 -471
|
@@ -1,5 +1,5 @@
|
|
|
1
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,
|
|
2
|
+
import { $ as S, u as D, l as F, i as g } from "./index-B18Z3bjt.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const P = () => {
|
|
5
5
|
const { fetchOptionsFn: e } = I(S);
|
|
@@ -8,21 +8,21 @@ const P = () => {
|
|
|
8
8
|
const s = D(), m = P(), a = h([]), f = h(!1);
|
|
9
9
|
let d = 0;
|
|
10
10
|
const l = F.debounce(async () => {
|
|
11
|
-
if (!m || !e.apiParams || Object.values(e.apiParams).some((
|
|
11
|
+
if (!m || !e.apiParams || Object.values(e.apiParams).some((n) => n === void 0))
|
|
12
12
|
return;
|
|
13
13
|
f.value = !0;
|
|
14
14
|
const t = ++d;
|
|
15
15
|
try {
|
|
16
|
-
const
|
|
16
|
+
const n = await m({
|
|
17
17
|
formItemProps: y(e),
|
|
18
18
|
formSchema: y(s.schema)
|
|
19
19
|
});
|
|
20
20
|
if (t !== d)
|
|
21
21
|
return;
|
|
22
22
|
const u = e.defaultOptions || [];
|
|
23
|
-
if (a.value = [...u, ...
|
|
24
|
-
const
|
|
25
|
-
|
|
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
26
|
}
|
|
27
27
|
if (e.refreshFlag && a.value.length >= 1) {
|
|
28
28
|
s.updateFormValues(
|
|
@@ -31,20 +31,20 @@ const P = () => {
|
|
|
31
31
|
},
|
|
32
32
|
!0
|
|
33
33
|
);
|
|
34
|
-
const
|
|
35
|
-
|
|
34
|
+
const i = g(s.schema.items, e.name);
|
|
35
|
+
i && i.props && (i.props.refreshFlag = !1);
|
|
36
36
|
}
|
|
37
37
|
} finally {
|
|
38
38
|
f.value = !1;
|
|
39
39
|
}
|
|
40
40
|
}, 300);
|
|
41
41
|
O(() => {
|
|
42
|
-
const { mode: t, options:
|
|
43
|
-
t === "static" && (a.value =
|
|
42
|
+
const { mode: t, options: n = [] } = e;
|
|
43
|
+
t === "static" && (a.value = n), t === "remote" && l();
|
|
44
44
|
}), r(
|
|
45
45
|
() => e.apiParams,
|
|
46
|
-
(t,
|
|
47
|
-
F.isEqual(t,
|
|
46
|
+
(t, n) => {
|
|
47
|
+
F.isEqual(t, n) || (a.value = [], l());
|
|
48
48
|
}
|
|
49
49
|
), r(
|
|
50
50
|
() => e.options,
|
|
@@ -62,14 +62,14 @@ const P = () => {
|
|
|
62
62
|
for (const t of v)
|
|
63
63
|
r(
|
|
64
64
|
() => s.formValues[t],
|
|
65
|
-
(
|
|
65
|
+
(n, u) => {
|
|
66
66
|
l();
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
return { selectChange: (t) => {
|
|
70
|
-
const { valueKey:
|
|
70
|
+
const { valueKey: n = "value", multiple: u, name: i } = e;
|
|
71
71
|
let o = {};
|
|
72
|
-
u && Array.isArray(t) ? o = a.value.filter((c) => t.includes(c[
|
|
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
73
|
}, currentOptions: a, loading: f, fetchData: l };
|
|
74
74
|
};
|
|
75
75
|
export {
|