asiaint-lowcode 3.0.74 → 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 (41) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +3 -3
  3. package/dist/asiaint-lowcode.umd.cjs +142 -142
  4. package/dist/index.d.ts +168 -28
  5. package/dist/lazy/{Card-BLkyronF.js → Card-6y3b8xK9.js} +2 -2
  6. package/dist/lazy/{Cascader-BWayPZsj.js → Cascader-1XEBAirk.js} +2 -1
  7. package/dist/lazy/{Checkbox-B0f2osCE.js → Checkbox-DY7Ufmrz.js} +8 -7
  8. package/dist/lazy/{Collapse-CwiKPgVS.js → Collapse-BT7RNNg6.js} +1 -1
  9. package/dist/lazy/{Component-BgbXAvZP.js → Component-AYxGCLAH.js} +20 -20
  10. package/dist/lazy/{Component-CxjtIKb4.js → Component-BYlYtzWb.js} +2 -2
  11. package/dist/lazy/{Component-DtKK0pz0.js → Component-CF4m_685.js} +1 -1
  12. package/dist/lazy/{Component-B0YN5w1O.js → Component-CkSnYtMh.js} +1 -1
  13. package/dist/lazy/{Component-BTW9MMvF.js → Component-DITfSg2v.js} +1 -1
  14. package/dist/lazy/{Component-DN6wPVjw.js → Component-DZMCcrpa.js} +2 -2
  15. package/dist/lazy/CurdCard-BXOxRtCA.js +167 -0
  16. package/dist/lazy/{Custom-BHrk3rwy.js → Custom-Df5H1QJV.js} +7 -7
  17. package/dist/lazy/{DragList-BfxZ0XM8.js → DragList-BH1VY62B.js} +59 -57
  18. package/dist/lazy/{FormList-Bve4HUdY.js → FormList-BMk_lCx8.js} +1 -1
  19. package/dist/lazy/{Grid-gYua8Lbh.js → Grid-SVpxXRzO.js} +1 -1
  20. package/dist/lazy/Inline-CE2A9Of4.js +35 -0
  21. package/dist/lazy/{JsonEdit-DspEkIiw.js → JsonEdit-C_CUvw5t.js} +3 -3
  22. package/dist/lazy/{LogList-BJ0N-SZh.js → LogList-COeBYixP.js} +7 -7
  23. package/dist/lazy/{ObjGroup-DwogU-tX.js → ObjGroup-BB2eQigf.js} +1 -1
  24. package/dist/lazy/{OfferDetails-BRQXALnl.js → OfferDetails-BEyNKQsf.js} +8 -7
  25. package/dist/lazy/{Progress-CZiRwjox.js → Progress-CYBbCXFh.js} +5 -5
  26. package/dist/lazy/{Radio-DAQ63lEp.js → Radio-qI1r_rWj.js} +24 -22
  27. package/dist/lazy/{SearchSelect-B4rd3IEr.js → SearchSelect-ZmOPM_QH.js} +18 -17
  28. package/dist/lazy/{Select-B9ka9Z-o.js → Select-CxtVmfLu.js} +10 -9
  29. package/dist/lazy/Table-YeT82lnr.js +438 -0
  30. package/dist/lazy/{Tabs-D_jMk0g4.js → Tabs-DFvfP_nb.js} +1 -1
  31. package/dist/lazy/Wrapper-DAFSrkAr.js +87 -0
  32. package/dist/lazy/{index-CPs7U1jG.js → index-DQ889qV3.js} +10461 -9979
  33. package/dist/lazy/useSelect-EfaZqc6a.js +77 -0
  34. package/dist/style.css +2 -2
  35. package/global.d.ts +10 -10
  36. package/package.json +36 -36
  37. package/dist/lazy/CurdCard-YilgvVgg.js +0 -160
  38. package/dist/lazy/Inline-DP_W3TA1.js +0 -33
  39. package/dist/lazy/Table-BT_PlC1e.js +0 -351
  40. package/dist/lazy/Wrapper-Db2njs9z.js +0 -36
  41. package/dist/lazy/useSelect-DBsTZmYm.js +0 -76
@@ -1,76 +0,0 @@
1
- import { inject as I, ref as h, toRaw as y, onMounted as S, watch as r } from "vue";
2
- import { $ as D, u as P, l as F, h as g } from "./index-CPs7U1jG.js";
3
- import "element-plus";
4
- const q = () => {
5
- const { fetchOptionsFn: e } = I(D);
6
- return e;
7
- }, $ = (e) => {
8
- const s = P(), c = q(), a = h([]), u = h(!1);
9
- let m = 0;
10
- const l = F.debounce(async () => {
11
- if (!c || !e.apiParams || Object.values(e.apiParams).some((n) => n === void 0))
12
- return;
13
- u.value = !0;
14
- const t = ++m;
15
- try {
16
- const n = await c({
17
- formItemProps: y(e),
18
- formSchema: y(s.schema)
19
- });
20
- if (t !== m)
21
- return;
22
- if (a.value = [...n], e.filters && (a.value = a.value.filter((i) => Array.isArray(e.filters) ? !e.filters.includes(i[e.valueKey || "value"]) : !0)), e.name) {
23
- const i = g(s.schema.items, e.name);
24
- i && i.props && (i.props.options = a.value);
25
- }
26
- if (e.refreshFlag && a.value.length >= 1) {
27
- s.updateFormValues(
28
- {
29
- [`${e.name}`]: a.value[0][e.valueKey || "value"]
30
- },
31
- !0
32
- );
33
- const i = g(s.schema.items, e.name);
34
- i && i.props && (i.props.refreshFlag = !1);
35
- }
36
- } finally {
37
- u.value = !1;
38
- }
39
- }, 300);
40
- S(() => {
41
- const { mode: t, options: n = [] } = e;
42
- t === "static" && (a.value = n), t === "remote" && l();
43
- }), r(
44
- () => e.apiParams,
45
- (t, n) => {
46
- F.isEqual(t, n) || (a.value = [], l());
47
- }
48
- ), r(
49
- () => e.options,
50
- (t = []) => {
51
- e.mode === "static" && (a.value = t);
52
- }
53
- ), r(
54
- () => e.mode,
55
- (t) => {
56
- t === "static" && (a.value = e.options || []), t === "remote" && (a.value = [], l());
57
- }
58
- );
59
- const { mode: A, dependentFields: d } = e;
60
- if (A === "remote" && Array.isArray(d))
61
- for (const t of d)
62
- r(
63
- () => s.formValues[t],
64
- (n, i) => {
65
- l();
66
- }
67
- );
68
- return { selectChange: (t) => {
69
- const { valueKey: n = "value", multiple: i, name: v } = e;
70
- let f = {};
71
- i && Array.isArray(t) ? f = a.value.filter((o) => t.includes(o[n])) : f = a.value.find((o) => o[n] === t) || {}, s.selectData && v && s.updateSelectData(v, f);
72
- }, currentOptions: a, loading: u, fetchData: l };
73
- };
74
- export {
75
- $ as u
76
- };