asiaint-lowcode 3.1.142 → 3.1.144

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/dist/asiaint-lowcode.d.ts +3 -0
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +101 -101
  4. package/dist/lazy/{Card-DS0XD8tu.js → Card-9idEuRMc.js} +1 -1
  5. package/dist/lazy/{Cascader-2xz4WYNR.js → Cascader-DMIb_pfF.js} +10 -9
  6. package/dist/lazy/{Checkbox-CARZTCib.js → Checkbox-PmjIffcK.js} +14 -13
  7. package/dist/lazy/{Collapse-BHYYPY9J.js → Collapse-sXrWsaPp.js} +1 -1
  8. package/dist/lazy/{Component-DmU2P_2K.js → Component-ApENsSPx.js} +1 -1
  9. package/dist/lazy/{Component-B6qOJZMu.js → Component-BFTt-WnQ.js} +1 -1
  10. package/dist/lazy/{Component-BHy-gdds.js → Component-Bco-5vQD.js} +1 -1
  11. package/dist/lazy/{Component-CtDLAFnm.js → Component-Be4aCjmK.js} +1 -1
  12. package/dist/lazy/{Component-DbZK73I2.js → Component-SwQ5J4zd.js} +1 -1
  13. package/dist/lazy/{CurdCard-CZ4VhPL7.js → CurdCard-DrRZm2bh.js} +1 -1
  14. package/dist/lazy/{Custom-BiCuB_-e.js → Custom-a3BxNOVs.js} +1 -1
  15. package/dist/lazy/{DatePicker-D-rFup5V.js → DatePicker-DVxfaFa9.js} +1 -1
  16. package/dist/lazy/{DragList-Ii6kqkg2.js → DragList-DiO61ehi.js} +1 -1
  17. package/dist/lazy/{FilterSearch-DpMIShxs.js → FilterSearch-Tj7LGDDt.js} +1 -1
  18. package/dist/lazy/{FloatCurd-IaQW0CA2.js → FloatCurd-DBT8633J.js} +65 -61
  19. package/dist/lazy/{FloatSearchCurd-CqoJsN7c.js → FloatSearchCurd-DpuSD_bg.js} +52 -53
  20. package/dist/lazy/{FormList-DVAKg3Cx.js → FormList-D8BlPIMK.js} +1 -1
  21. package/dist/lazy/{Grid-Bw9rmwrG.js → Grid-BVFrbtst.js} +1 -1
  22. package/dist/lazy/{InfiniteScroll-Cmj0-z2l.js → InfiniteScroll-LqI793Z6.js} +1 -1
  23. package/dist/lazy/{Inline-B7s-iBhh.js → Inline-B__kXH0n.js} +1 -1
  24. package/dist/lazy/{JsonEdit-DLzOazGA.js → JsonEdit-Cb8QCTi7.js} +1 -1
  25. package/dist/lazy/{LogList-BfSA2YIW.js → LogList-BtUVND3b.js} +1 -1
  26. package/dist/lazy/{ObjGroup-YJho79cG.js → ObjGroup-DagMabOE.js} +1 -1
  27. package/dist/lazy/{OfferDetails-BVaa7boE.js → OfferDetails-CHAv9MzM.js} +1 -1
  28. package/dist/lazy/{Pagination-Bni7hc5i.js → Pagination-yRkhU-IX.js} +1 -1
  29. package/dist/lazy/{Progress-DDOZz027.js → Progress-Dg0GWVEQ.js} +1 -1
  30. package/dist/lazy/{Radio-BkGE2l7X.js → Radio-C2ROyUJd.js} +15 -14
  31. package/dist/lazy/{SearchSelect-BDG-q3rh.js → SearchSelect-cTLvdDjv.js} +30 -29
  32. package/dist/lazy/{Select-DZVHbfet.js → Select-Ducan8yz.js} +17 -16
  33. package/dist/lazy/{Table-BYAny04Y.js → Table-E08PuwOc.js} +2 -2
  34. package/dist/lazy/{Tabs-DK2Z_4Mq.js → Tabs-B7UZrPt8.js} +1 -1
  35. package/dist/lazy/{TextArea-lLxe_7vc.js → TextArea-B4gOJ8lq.js} +1 -1
  36. package/dist/lazy/{Wrapper-ZyyGd7Sw.js → Wrapper-kR1ODPmW.js} +1 -1
  37. package/dist/lazy/{index-DdmJ7fxW.js → index-CyFJw3mx.js} +196 -201
  38. package/dist/lazy/useSelect-CEBKfLka.js +78 -0
  39. package/dist/style.css +2 -2
  40. package/package.json +1 -1
  41. package/dist/lazy/useSelect-CZU2AEMN.js +0 -78
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.142",
3
+ "version": "3.1.144",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -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-DdmJ7fxW.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
- };