asiaint-lowcode 3.0.31 → 3.0.34

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 (35) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +137 -137
  3. package/dist/index.d.ts +7 -2
  4. package/dist/lazy/Card-DyDOeYfh.js +102 -0
  5. package/dist/lazy/{Cascader-P7IuNThb.js → Cascader-hwQ0ped8.js} +1 -1
  6. package/dist/lazy/{Checkbox-07QRyXME.js → Checkbox-z4QRPu-x.js} +2 -2
  7. package/dist/lazy/{Collapse-ByfiOimw.js → Collapse-oh9RnpYq.js} +1 -1
  8. package/dist/lazy/Component-56ym46d6.js +36 -0
  9. package/dist/lazy/{Component-6TS6wNl_.js → Component-CXtb3Yi3.js} +1 -1
  10. package/dist/lazy/{Component-D3_BYRj4.js → Component-ClkUsqZ1.js} +1 -1
  11. package/dist/lazy/{Component-B0XVJZnQ.js → Component-DYCbyY8z.js} +1 -1
  12. package/dist/lazy/{Component-DjB_gS1V.js → Component-DadAKRPu.js} +1 -1
  13. package/dist/lazy/{Component-CyKpm5k5.js → Component-mcJAWcjt.js} +1 -1
  14. package/dist/lazy/{CurdCard-BpFxnWRz.js → CurdCard-BTYaL0uB.js} +1 -1
  15. package/dist/lazy/{Custom-CScf47ec.js → Custom-CrZDANN2.js} +1 -1
  16. package/dist/lazy/{FormList-B4ySQVLt.js → FormList-BGuR7mbH.js} +1 -1
  17. package/dist/lazy/{Grid-D8IOvbfU.js → Grid-BRKcU88d.js} +1 -1
  18. package/dist/lazy/{Inline-CCyImOu3.js → Inline-x1p6kwDV.js} +1 -1
  19. package/dist/lazy/{JsonEdit-DDieBuc6.js → JsonEdit-C8acmbOx.js} +1 -1
  20. package/dist/lazy/{ObjGroup-QEyMHJ0O.js → ObjGroup-Bvm_JRv0.js} +1 -1
  21. package/dist/lazy/OfferDetails-IuisIR_V.js +168 -0
  22. package/dist/lazy/{Radio-aDFaQLLq.js → Radio-Swys9rO6.js} +2 -2
  23. package/dist/lazy/{SearchSelect-B96_wH_8.js → SearchSelect-DpWjU1ff.js} +2 -2
  24. package/dist/lazy/{Select-C84zNi2F.js → Select-BG2okaza.js} +2 -2
  25. package/dist/lazy/{Table-C2RB8hlb.js → Table-BOIHWhbh.js} +95 -83
  26. package/dist/lazy/{Tabs-4CRMSCiJ.js → Tabs-ByfQlZ3V.js} +1 -1
  27. package/dist/lazy/{Wrapper-3N8Y7y6e.js → Wrapper-CJINhrFP.js} +1 -1
  28. package/dist/lazy/{index-Be_hWoLI.js → index-CX2louHY.js} +4887 -4718
  29. package/dist/lazy/useSelect-PiddJYFH.js +61 -0
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Card-D4r6xjTv.js +0 -93
  33. package/dist/lazy/Component-DVIJ_1tV.js +0 -34
  34. package/dist/lazy/OfferDetails-Dh_ZZz7F.js +0 -165
  35. package/dist/lazy/useSelect-BLvs_Rd3.js +0 -58
@@ -0,0 +1,61 @@
1
+ import { inject as D, ref as v, toRaw as h, onMounted as I, watch as i } from "vue";
2
+ import { $ as P, u as S, l as y, h as g } from "./index-CX2louHY.js";
3
+ import "element-plus";
4
+ const q = () => {
5
+ const { fetchOptionsFn: t } = D(P);
6
+ return t;
7
+ }, j = (t) => {
8
+ const n = S(), c = q(), a = v([]), l = v(!1), o = y.debounce(async () => {
9
+ if (c && t.apiParams && !Object.values(t.apiParams).some((e) => e === void 0)) {
10
+ l.value = !0;
11
+ try {
12
+ const e = await c({
13
+ formItemProps: h(t),
14
+ formSchema: h(n.schema)
15
+ });
16
+ if (a.value = [...a.value, ...e], t.name) {
17
+ const s = g(n.schema.items, t.name);
18
+ s && s.props && (s.props.options = a.value);
19
+ }
20
+ } finally {
21
+ l.value = !1;
22
+ }
23
+ }
24
+ }, 300);
25
+ I(() => {
26
+ const { mode: e, options: s = [] } = t;
27
+ e === "static" && (a.value = s), e === "remote" && o();
28
+ }), i(
29
+ () => t.apiParams,
30
+ (e, s) => {
31
+ y.isEqual(e, s) || (a.value = [], o());
32
+ }
33
+ ), i(
34
+ () => t.options,
35
+ (e = []) => {
36
+ t.mode === "static" && (a.value = e);
37
+ }
38
+ ), i(
39
+ () => t.mode,
40
+ (e) => {
41
+ e === "static" && (a.value = t.options || []), e === "remote" && (a.value = [], o());
42
+ }
43
+ );
44
+ const { mode: A, dependentFields: m } = t;
45
+ if (A === "remote" && Array.isArray(m))
46
+ for (const e of m)
47
+ i(
48
+ () => n.formValues[e],
49
+ (s, f) => {
50
+ o();
51
+ }
52
+ );
53
+ return { selectChange: (e) => {
54
+ const { valueKey: s = "value", multiple: f, name: d } = t;
55
+ let r = {};
56
+ f && Array.isArray(e) ? r = a.value.filter((u) => e.includes(u[s])) : r = a.value.find((u) => u[s] === e) || {}, n.selectData && d && n.updateSelectData(d, r);
57
+ }, currentOptions: a, loading: l, fetchData: o };
58
+ };
59
+ export {
60
+ j as u
61
+ };