asiaint-lowcode 3.1.14 → 3.1.16
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/README.md +31 -31
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +40 -40
- package/dist/index.d.ts +6 -4
- package/dist/lazy/{Card-C3tLOVjH.js → Card-Cow_zpSf.js} +2 -2
- package/dist/lazy/{Cascader-C3CX1x9i.js → Cascader-CSkCF9DP.js} +1 -1
- package/dist/lazy/{Checkbox-BpBiXuBR.js → Checkbox-DR1XRXSJ.js} +2 -2
- package/dist/lazy/{Collapse-DxGtf-Rb.js → Collapse-CmfaSD2X.js} +1 -1
- package/dist/lazy/{Component-DB3T2Up4.js → Component-BPhkDIEo.js} +2 -2
- package/dist/lazy/{Component-DFOa2uIv.js → Component-CUpFYJ_b.js} +2 -2
- package/dist/lazy/{Component-CcNDQBof.js → Component-D3TFYEJM.js} +1 -1
- package/dist/lazy/{Component-hTCUS_wi.js → Component-DW8HGDiM.js} +1 -1
- package/dist/lazy/{Component-cOOPuJ9a.js → Component-DeIsCrm1.js} +1 -1
- package/dist/lazy/{Component-B_d6xnsS.js → Component-Dfa5LE-C.js} +2 -2
- package/dist/lazy/{CurdCard-VJm521ed.js → CurdCard-DhWtGzk5.js} +2 -2
- package/dist/lazy/{Custom-zeUDBX2P.js → Custom-Dy7scYxi.js} +7 -7
- package/dist/lazy/{DatePicker-B_jXdn9f.js → DatePicker-BPLq5XnB.js} +1 -1
- package/dist/lazy/{DragList-BqW7rAvT.js → DragList-BjQnVy7r.js} +2 -2
- package/dist/lazy/{FilterSearch-C8jsRRi9.js → FilterSearch-DIzEPTWm.js} +2 -2
- package/dist/lazy/{FormList-BC9wJOak.js → FormList-CumjG4m2.js} +1 -1
- package/dist/lazy/{Grid-TTxnHt2i.js → Grid-BP1q5Cyw.js} +1 -1
- package/dist/lazy/{Inline-Dc21MdcR.js → Inline-IaNWNLSe.js} +3 -3
- package/dist/lazy/{JsonEdit-DL09Qz4t.js → JsonEdit-BFHcb1Fu.js} +3 -3
- package/dist/lazy/{LogList-KyzWTXTG.js → LogList-D4bqjc6E.js} +7 -7
- package/dist/lazy/{ObjGroup-B4XtMzOy.js → ObjGroup-DX1X9rBM.js} +1 -1
- package/dist/lazy/{OfferDetails-Cxd87l5s.js → OfferDetails-Cp1nSNWI.js} +11 -11
- package/dist/lazy/{Pagination-C5QGCJcd.js → Pagination-D-eCDOe9.js} +7 -7
- package/dist/lazy/{Progress-DA-Dd5UL.js → Progress-BdCV77ll.js} +5 -5
- package/dist/lazy/{Radio-TiUteW46.js → Radio-BK5qu9LR.js} +3 -3
- package/dist/lazy/{SearchSelect-Dhu6paSW.js → SearchSelect-DpvLp1oC.js} +11 -11
- package/dist/lazy/{Select-CSRhfIrD.js → Select-BHZuWU-Q.js} +2 -2
- package/dist/lazy/{Table-DlcwlWIw.js → Table-DX3g374y.js} +2 -2
- package/dist/lazy/{Tabs-7Dhrr4Kd.js → Tabs-D-eD11Du.js} +1 -1
- package/dist/lazy/{Wrapper-BiT3q9Nd.js → Wrapper-BQMU2bE_.js} +6 -6
- package/dist/lazy/{index-0WXv5Q1Q.js → index-CSwaWW-4.js} +2501 -2482
- package/dist/lazy/useSelect-Bxv91nYW.js +78 -0
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/useSelect-As_zhxlt.js +0 -77
package/global.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare module 'vue' {
|
|
2
|
-
export interface GlobalComponents {
|
|
3
|
-
FormRender: (typeof import('asiaint-lowcode'))['FormRender']
|
|
4
|
-
FormDesign: (typeof import('asiaint-lowcode'))['FormDesign']
|
|
5
|
-
TableRender: (typeof import('asiaint-lowcode'))['TableRender']
|
|
6
|
-
PageRender: (typeof import('asiaint-lowcode'))['PageRender']
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export {}
|
|
1
|
+
declare module 'vue' {
|
|
2
|
+
export interface GlobalComponents {
|
|
3
|
+
FormRender: (typeof import('asiaint-lowcode'))['FormRender']
|
|
4
|
+
FormDesign: (typeof import('asiaint-lowcode'))['FormDesign']
|
|
5
|
+
TableRender: (typeof import('asiaint-lowcode'))['TableRender']
|
|
6
|
+
PageRender: (typeof import('asiaint-lowcode'))['PageRender']
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "asiaint-lowcode",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "vite build",
|
|
8
|
-
"v": "npm version patch",
|
|
9
|
-
"release": "vite build && npm publish"
|
|
10
|
-
},
|
|
11
|
-
"peerDependencies": {
|
|
12
|
-
"vue": "^3.2.0",
|
|
13
|
-
"element-plus": "^2.6.0"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"element-plus": "^2.8.3",
|
|
17
|
-
"vue": "^3.5.8"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"vite-plugin-dts": "^3.7.3",
|
|
21
|
-
"vite-plugin-libcss": "^1.1.1"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"global.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"main": "./dist/asiaint-lowcode.js",
|
|
28
|
-
"module": "./dist/asiaint-lowcode.js",
|
|
29
|
-
"types": "dist/index.d.ts",
|
|
30
|
-
"keywords": [
|
|
31
|
-
"component",
|
|
32
|
-
"vue",
|
|
33
|
-
"form",
|
|
34
|
-
"element-ui"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "asiaint-lowcode",
|
|
3
|
+
"version": "3.1.16",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"v": "npm version patch",
|
|
9
|
+
"release": "vite build && npm publish"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"vue": "^3.2.0",
|
|
13
|
+
"element-plus": "^2.6.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"element-plus": "^2.8.3",
|
|
17
|
+
"vue": "^3.5.8"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"vite-plugin-dts": "^3.7.3",
|
|
21
|
+
"vite-plugin-libcss": "^1.1.1"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"global.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"main": "./dist/asiaint-lowcode.js",
|
|
28
|
+
"module": "./dist/asiaint-lowcode.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"component",
|
|
32
|
+
"vue",
|
|
33
|
+
"form",
|
|
34
|
+
"element-ui"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -1,77 +0,0 @@
|
|
|
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, i as g } from "./index-0WXv5Q1Q.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((n) => n === void 0))
|
|
12
|
-
return;
|
|
13
|
-
f.value = !0;
|
|
14
|
-
const t = ++d;
|
|
15
|
-
try {
|
|
16
|
-
const n = 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, ...n], e.filters && (a.value = a.value.filter((i) => Array.isArray(e.filters) ? !e.filters.includes(i[e.valueKey || "value"]) : !0)), e.name) {
|
|
24
|
-
const i = g(s.schema.items, e.name);
|
|
25
|
-
i && i.props && (i.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 i = g(s.schema.items, e.name);
|
|
35
|
-
i && i.props && (i.props.refreshFlag = !1);
|
|
36
|
-
}
|
|
37
|
-
} finally {
|
|
38
|
-
f.value = !1;
|
|
39
|
-
}
|
|
40
|
-
}, 300);
|
|
41
|
-
O(() => {
|
|
42
|
-
const { mode: t, options: n = [] } = e;
|
|
43
|
-
t === "static" && (a.value = n), t === "remote" && l();
|
|
44
|
-
}), r(
|
|
45
|
-
() => e.apiParams,
|
|
46
|
-
(t, n) => {
|
|
47
|
-
F.isEqual(t, n) || (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
|
-
(n, u) => {
|
|
66
|
-
l();
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
return { selectChange: (t) => {
|
|
70
|
-
const { valueKey: n = "value", multiple: u, name: i } = e;
|
|
71
|
-
let o = {};
|
|
72
|
-
u && Array.isArray(t) ? o = a.value.filter((c) => t.includes(c[n])) : o = a.value.find((c) => c[n] === t) || {}, s.selectData && i && s.updateSelectData(i, o);
|
|
73
|
-
}, currentOptions: a, loading: f, fetchData: l };
|
|
74
|
-
};
|
|
75
|
-
export {
|
|
76
|
-
$ as u
|
|
77
|
-
};
|