asiaint-lowcode 3.0.41 → 3.0.43
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/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +28 -28
- package/dist/index.d.ts +1 -0
- package/dist/lazy/{Card-I3_mRl_L.js → Card-Cx1rB0tl.js} +1 -1
- package/dist/lazy/{Cascader-DCu_3dqT.js → Cascader-DdgT8tFF.js} +17 -16
- package/dist/lazy/Checkbox-Dtkkh9Gx.js +74 -0
- package/dist/lazy/{Collapse-7EKAfUdD.js → Collapse-CSJWqhsm.js} +1 -1
- package/dist/lazy/{Component-CiKalEkz.js → Component-AmEqB4EM.js} +1 -1
- package/dist/lazy/Component-Brp-M4tP.js +120 -0
- package/dist/lazy/{Component-CaoXTI0k.js → Component-CiyYoRt-.js} +1 -1
- package/dist/lazy/{Component-DiIc-khQ.js → Component-CloUlJKd.js} +1 -1
- package/dist/lazy/{Component-BZSft2cj.js → Component-DdbQ2F7j.js} +1 -1
- package/dist/lazy/{Component-CFEiUVaM.js → Component-K5RHB18A.js} +1 -1
- package/dist/lazy/{CurdCard-C7isfq-L.js → CurdCard-DXN8f15n.js} +1 -1
- package/dist/lazy/{Custom-D9xBxBgO.js → Custom-BjtQbgLZ.js} +1 -1
- package/dist/lazy/{FormList-Ci5zeLAD.js → FormList-CKu2xEIy.js} +1 -1
- package/dist/lazy/{Grid-vAcjMqc5.js → Grid-Dah341P3.js} +1 -1
- package/dist/lazy/{Inline-VYMkxeIm.js → Inline-BI7-RiWN.js} +1 -1
- package/dist/lazy/{JsonEdit-BdwbkNah.js → JsonEdit-DhZA11Xp.js} +1 -1
- package/dist/lazy/{ObjGroup-DaT1UPTh.js → ObjGroup-Lg3mSE-G.js} +1 -1
- package/dist/lazy/{OfferDetails-DxzCYafn.js → OfferDetails-BN4Z78Jv.js} +1 -1
- package/dist/lazy/Radio-BnQon4Sb.js +82 -0
- package/dist/lazy/{SearchSelect-Y8-MDnN_.js → SearchSelect-Cbr_le01.js} +4 -3
- package/dist/lazy/{Select-BE4w7uTt.js → Select-ckEb1L0e.js} +4 -3
- package/dist/lazy/{Table-rPy4pI2Q.js → Table-cUJN19Rl.js} +1 -1
- package/dist/lazy/{Tabs-DpuGKdq0.js → Tabs-BZnPpFDy.js} +1 -1
- package/dist/lazy/{Wrapper-CKo58SnY.js → Wrapper-BLyu-6_4.js} +1 -1
- package/dist/lazy/{index-B-56lFE2.js → index-BWcLZ1NF.js} +24 -24
- package/dist/lazy/useSelect-3Fv1qsZj.js +61 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/lazy/Checkbox-hTVE-q4U.js +0 -79
- package/dist/lazy/Component-CpgSb8Bl.js +0 -109
- package/dist/lazy/Radio-Cadx0OBC.js +0 -86
- package/dist/lazy/useSelect-DRaqsmNm.js +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
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-B-56lFE2.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
|
-
};
|