asiaint-lowcode 3.0.75 → 3.1.0

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.
Files changed (37) hide show
  1. package/dist/asiaint-lowcode.js +3 -3
  2. package/dist/asiaint-lowcode.umd.cjs +141 -141
  3. package/dist/index.d.ts +139 -22
  4. package/dist/lazy/{Card-BL132uF0.js → Card-6y3b8xK9.js} +1 -1
  5. package/dist/lazy/{Cascader-BNajnGXt.js → Cascader-1XEBAirk.js} +2 -1
  6. package/dist/lazy/{Checkbox-CB78q85K.js → Checkbox-DY7Ufmrz.js} +8 -7
  7. package/dist/lazy/{Collapse-BT3Z_TeL.js → Collapse-BT7RNNg6.js} +1 -1
  8. package/dist/lazy/{Component-CVbGsSj6.js → Component-AYxGCLAH.js} +10 -10
  9. package/dist/lazy/{Component-OAYlB5bp.js → Component-BYlYtzWb.js} +1 -1
  10. package/dist/lazy/{Component-Cwe8AZcy.js → Component-CF4m_685.js} +1 -1
  11. package/dist/lazy/{Component-Dl3PXGm5.js → Component-CkSnYtMh.js} +1 -1
  12. package/dist/lazy/{Component-DdZRdqp7.js → Component-DITfSg2v.js} +1 -1
  13. package/dist/lazy/{Component-BNOSHXwG.js → Component-DZMCcrpa.js} +1 -1
  14. package/dist/lazy/{CurdCard-BrBulKvO.js → CurdCard-BXOxRtCA.js} +50 -44
  15. package/dist/lazy/{Custom-BliwSKbp.js → Custom-Df5H1QJV.js} +1 -1
  16. package/dist/lazy/{DragList-Buw-1bQc.js → DragList-BH1VY62B.js} +35 -34
  17. package/dist/lazy/{FormList-DTdAAtrD.js → FormList-BMk_lCx8.js} +1 -1
  18. package/dist/lazy/{Grid-DUAIHsOo.js → Grid-SVpxXRzO.js} +1 -1
  19. package/dist/lazy/{Inline-BkAIXUU0.js → Inline-CE2A9Of4.js} +1 -1
  20. package/dist/lazy/{JsonEdit-Bx4jK-K8.js → JsonEdit-C_CUvw5t.js} +1 -1
  21. package/dist/lazy/{LogList-DHk7eKeC.js → LogList-COeBYixP.js} +1 -1
  22. package/dist/lazy/{ObjGroup-DXJerzS2.js → ObjGroup-BB2eQigf.js} +1 -1
  23. package/dist/lazy/{OfferDetails-Fs5y40J0.js → OfferDetails-BEyNKQsf.js} +29 -28
  24. package/dist/lazy/{Progress-pRaKkFkw.js → Progress-CYBbCXFh.js} +1 -1
  25. package/dist/lazy/{Radio-C9Z-5npS.js → Radio-qI1r_rWj.js} +8 -7
  26. package/dist/lazy/{SearchSelect-BU-_DOLr.js → SearchSelect-ZmOPM_QH.js} +15 -14
  27. package/dist/lazy/{Select-DJ6Ky5mO.js → Select-CxtVmfLu.js} +10 -9
  28. package/dist/lazy/Table-YeT82lnr.js +438 -0
  29. package/dist/lazy/{Tabs-meM_0XCE.js → Tabs-DFvfP_nb.js} +1 -1
  30. package/dist/lazy/Wrapper-DAFSrkAr.js +87 -0
  31. package/dist/lazy/{index-2Lph8ou3.js → index-DQ889qV3.js} +9667 -9397
  32. package/dist/lazy/useSelect-EfaZqc6a.js +77 -0
  33. package/dist/style.css +2 -2
  34. package/package.json +1 -1
  35. package/dist/lazy/Table-BlBWSnrv.js +0 -351
  36. package/dist/lazy/Wrapper-DlG2aZRe.js +0 -36
  37. package/dist/lazy/useSelect-CmUZu1rN.js +0 -76
@@ -0,0 +1,77 @@
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, h as g } from "./index-DQ889qV3.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((i) => i === void 0))
12
+ return;
13
+ f.value = !0;
14
+ const t = ++d;
15
+ try {
16
+ const i = 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, ...i], 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 = g(s.schema.items, e.name);
25
+ n && n.props && (n.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 n = g(s.schema.items, e.name);
35
+ n && n.props && (n.props.refreshFlag = !1);
36
+ }
37
+ } finally {
38
+ f.value = !1;
39
+ }
40
+ }, 300);
41
+ O(() => {
42
+ const { mode: t, options: i = [] } = e;
43
+ t === "static" && (a.value = i), t === "remote" && l();
44
+ }), r(
45
+ () => e.apiParams,
46
+ (t, i) => {
47
+ F.isEqual(t, i) || (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
+ (i, u) => {
66
+ l();
67
+ }
68
+ );
69
+ return { selectChange: (t) => {
70
+ const { valueKey: i = "value", multiple: u, name: n } = e;
71
+ let o = {};
72
+ u && Array.isArray(t) ? o = a.value.filter((c) => t.includes(c[i])) : o = a.value.find((c) => c[i] === t) || {}, s.selectData && n && s.updateSelectData(n, o);
73
+ }, currentOptions: a, loading: f, fetchData: l };
74
+ };
75
+ export {
76
+ $ as u
77
+ };