asiaint-lowcode 2.0.6 → 3.0.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.
- package/README.md +31 -31
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +131 -131
- package/dist/index.d.ts +59 -35
- package/dist/lazy/{Card-Br9_6h4Z.js → Card-BDPgDrI2.js} +6 -6
- package/dist/lazy/Cascader-C4-YmIaK.js +44 -0
- package/dist/lazy/{Checkbox-CqO1-QlM.js → Checkbox-DNSS1Txw.js} +12 -11
- package/dist/lazy/{Collapse-C8nFsrOL.js → Collapse-C80q6smT.js} +1 -1
- package/dist/lazy/{Component-CV0LZLKE.js → Component-B79gmO6K.js} +1 -1
- package/dist/lazy/Component-BU6S4ypQ.js +28 -0
- package/dist/lazy/Component-BftgSxpa.js +13 -0
- package/dist/lazy/{Component-DP7iB6BT.js → Component-CeDDbFlt.js} +2 -2
- package/dist/lazy/{Component-af_9m360.js → Component-Ghcasgly.js} +1 -1
- package/dist/lazy/{Component-DG-QKg64.js → Component-xoY7y60W.js} +2 -2
- package/dist/lazy/{Custom-Dk1Nr81h.js → Custom-BG94rQkt.js} +7 -7
- package/dist/lazy/{DatePicker-C_h8PGuz.js → DatePicker-6vsAU5ji.js} +1 -1
- package/dist/lazy/{FormList-ciHaSsZN.js → FormList-BfBo9OwL.js} +1 -1
- package/dist/lazy/{Grid-CZxpbowk.js → Grid-DmDygTZN.js} +1 -1
- package/dist/lazy/{Inline-Bnp-p-3I.js → Inline-BaF4S3jV.js} +2 -2
- package/dist/lazy/{JsonEdit-B4yGMT6R.js → JsonEdit-BPGmEF5d.js} +3 -3
- package/dist/lazy/{ObjGroup-CipzGSLC.js → ObjGroup-CsBAxkRV.js} +1 -1
- package/dist/lazy/{Radio-C6gBFA3u.js → Radio-C8HHJrdk.js} +15 -14
- package/dist/lazy/{SearchSelect-CbeuYE7W.js → SearchSelect-Xt5FhvIb.js} +12 -11
- package/dist/lazy/{Select-LDWGwp2E.js → Select-CuE6Swfa.js} +15 -14
- package/dist/lazy/{Tabs-BOvsls22.js → Tabs-C945YGKQ.js} +1 -1
- package/dist/lazy/{TextArea-D2Jmk5Mf.js → TextArea-CwQ9cOJB.js} +1 -1
- package/dist/lazy/{index-CqzCIPnG.js → index-09dr6bnU.js} +6072 -5880
- package/dist/lazy/useSelect-CbmMfUqn.js +55 -0
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Cascader-QU2iguK3.js +0 -41
- package/dist/lazy/Component-DwEwJ8x3.js +0 -24
- package/dist/lazy/useSelect-Czrzaha_.js +0 -50
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": "
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "vite build",
|
|
8
|
-
"v": "npm version patch",
|
|
9
|
-
"release": "vite build && nrm use npm && 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.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"v": "npm version patch",
|
|
9
|
+
"release": "vite build && nrm use npm && 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,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, mergeModels as i, useModel as c, resolveComponent as f, openBlock as g, createBlock as v, mergeProps as C, unref as l } from "vue";
|
|
2
|
-
import "element-plus";
|
|
3
|
-
import { u as y } from "./useSelect-Czrzaha_.js";
|
|
4
|
-
const h = /* @__PURE__ */ m({
|
|
5
|
-
__name: "Cascader",
|
|
6
|
-
props: /* @__PURE__ */ i({
|
|
7
|
-
options: { default: () => [] },
|
|
8
|
-
multiple: { type: Boolean, default: !1 },
|
|
9
|
-
mode: { default: "static" },
|
|
10
|
-
labelKey: { default: "label" },
|
|
11
|
-
valueKey: { default: "value" },
|
|
12
|
-
disabledKey: {},
|
|
13
|
-
api: {},
|
|
14
|
-
name: { default: "" },
|
|
15
|
-
onChange: {}
|
|
16
|
-
}, {
|
|
17
|
-
modelValue: {},
|
|
18
|
-
modelModifiers: {}
|
|
19
|
-
}),
|
|
20
|
-
emits: ["update:modelValue"],
|
|
21
|
-
setup(o) {
|
|
22
|
-
const n = o, a = c(o, "modelValue"), { currentOptions: u, selectChange: s, loading: d } = y(n);
|
|
23
|
-
return (e, t) => {
|
|
24
|
-
const p = f("el-cascader");
|
|
25
|
-
return g(), v(p, C({
|
|
26
|
-
modelValue: a.value,
|
|
27
|
-
"onUpdate:modelValue": t[0] || (t[0] = (r) => a.value = r),
|
|
28
|
-
options: l(u),
|
|
29
|
-
loading: l(d),
|
|
30
|
-
props: {
|
|
31
|
-
multiple: e.multiple,
|
|
32
|
-
label: e.labelKey,
|
|
33
|
-
value: e.valueKey
|
|
34
|
-
}
|
|
35
|
-
}, e.$attrs, { onChange: l(s) }), null, 16, ["modelValue", "options", "loading", "props", "onChange"]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
h as default
|
|
41
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, useModel as s, resolveComponent as p, unref as d, openBlock as n, createElementBlock as i, toDisplayString as c, createBlock as _, mergeProps as f } from "vue";
|
|
2
|
-
import { u as v } from "./index-CqzCIPnG.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const V = { key: 0 }, C = /* @__PURE__ */ a({
|
|
5
|
-
__name: "Component",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: {},
|
|
8
|
-
modelModifiers: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["update:modelValue"],
|
|
11
|
-
setup(t) {
|
|
12
|
-
const e = s(t, "modelValue"), l = v();
|
|
13
|
-
return (m, o) => {
|
|
14
|
-
const r = p("el-input-number");
|
|
15
|
-
return d(l).read ? (n(), i("div", V, c(e.value), 1)) : (n(), _(r, f({ key: 1 }, m.$attrs, {
|
|
16
|
-
modelValue: e.value,
|
|
17
|
-
"onUpdate:modelValue": o[0] || (o[0] = (u) => e.value = u)
|
|
18
|
-
}), null, 16, ["modelValue"]));
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
C as default
|
|
24
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { inject as y, ref as h, onMounted as P, watch as f } from "vue";
|
|
2
|
-
import { $ as g, u as q, l as m, h as b } from "./index-CqzCIPnG.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const E = () => {
|
|
5
|
-
const { request: t } = y(g);
|
|
6
|
-
return t;
|
|
7
|
-
}, x = (t) => {
|
|
8
|
-
const d = q(), v = E(), a = h([]), c = h(!1), u = m.debounce(async () => {
|
|
9
|
-
if (!v || !t.api) return;
|
|
10
|
-
const { url: e, method: s, params: r, dataPath: o } = t.api;
|
|
11
|
-
c.value = !0;
|
|
12
|
-
try {
|
|
13
|
-
const n = await v({
|
|
14
|
-
url: e,
|
|
15
|
-
method: s,
|
|
16
|
-
params: s === "GET" ? r : {},
|
|
17
|
-
data: s === "POST" ? r : {}
|
|
18
|
-
}), D = (b(n, o) || []).map((i) => m.isPlainObject(i) ? i : { label: i, value: i });
|
|
19
|
-
a.value = [...a.value, ...D];
|
|
20
|
-
} finally {
|
|
21
|
-
c.value = !1;
|
|
22
|
-
}
|
|
23
|
-
}, 300);
|
|
24
|
-
return P(() => {
|
|
25
|
-
const { mode: e, options: s = [] } = t;
|
|
26
|
-
e === "static" && (a.value = s), e === "remote" && u();
|
|
27
|
-
}), f(
|
|
28
|
-
() => t.api,
|
|
29
|
-
(e, s) => {
|
|
30
|
-
m.isEqual(e, s) || (a.value = [], u());
|
|
31
|
-
}
|
|
32
|
-
), f(
|
|
33
|
-
() => t.options,
|
|
34
|
-
(e = []) => {
|
|
35
|
-
t.mode === "static" && (a.value = e);
|
|
36
|
-
}
|
|
37
|
-
), f(
|
|
38
|
-
() => t.mode,
|
|
39
|
-
(e) => {
|
|
40
|
-
e === "static" && (a.value = t.options || []), e === "remote" && (a.value = [], u());
|
|
41
|
-
}
|
|
42
|
-
), { selectChange: (e) => {
|
|
43
|
-
const { valueKey: s = "value", multiple: r, name: o } = t;
|
|
44
|
-
let n = {};
|
|
45
|
-
r && Array.isArray(e) ? n = a.value.filter((l) => e.includes(l[s])) : n = a.value.find((l) => l[s] === e) || {}, d.selectData && o && d.updateSelectData(o, n);
|
|
46
|
-
}, currentOptions: a, loading: c, fetchData: u };
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
x as u
|
|
50
|
-
};
|