asiaint-lowcode 3.1.80 → 3.1.84

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 (45) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +125 -125
  4. package/dist/index.d.ts +1 -1
  5. package/dist/lazy/{Card-DvNcOnva.js → Card-BFUokup_.js} +2 -2
  6. package/dist/lazy/{Cascader-Bjlpixno.js → Cascader-CZzFVn2b.js} +1 -1
  7. package/dist/lazy/{Checkbox-DmdFXms9.js → Checkbox-DTRlFiX7.js} +2 -2
  8. package/dist/lazy/{Collapse-CKn_TSCm.js → Collapse-B4eV4bPX.js} +1 -1
  9. package/dist/lazy/Component-BwgjFzRw.js +190 -0
  10. package/dist/lazy/{Component-Df5UhbXK.js → Component-DBDxC3bJ.js} +28 -29
  11. package/dist/lazy/{Component-CPr0AdO_.js → Component-DU2p72lO.js} +1 -1
  12. package/dist/lazy/{Component-CBmOD4ec.js → Component-DdDAnfCO.js} +2 -2
  13. package/dist/lazy/{Component-Fi_73_-E.js → Component-DiNukMBD.js} +1 -1
  14. package/dist/lazy/{Component-oAfe3o5H.js → Component-IdWNXrrg.js} +2 -2
  15. package/dist/lazy/{CurdCard-DUjCziiN.js → CurdCard-DGWEGh09.js} +2 -2
  16. package/dist/lazy/Custom-4W1qiWut.js +26 -0
  17. package/dist/lazy/{DatePicker-ZaxxwMFv.js → DatePicker-CsbYtE8n.js} +1 -1
  18. package/dist/lazy/{DragList-Cqsjxhhv.js → DragList-ByZA1yh_.js} +13 -13
  19. package/dist/lazy/FilterSearch-BBlCrsIv.js +149 -0
  20. package/dist/lazy/{FloatCurd-BIXVPS7j.js → FloatCurd-DotoAxI4.js} +9 -9
  21. package/dist/lazy/{FormList-JQWq4sse.js → FormList-CHt7ydWx.js} +1 -1
  22. package/dist/lazy/{Grid-Llh8kPEp.js → Grid-FhXcS4qm.js} +1 -1
  23. package/dist/lazy/{InfiniteScroll-DojLJYzr.js → InfiniteScroll-C5eT3gAh.js} +4 -4
  24. package/dist/lazy/{Inline-DAI3cqXX.js → Inline-B2OcerX4.js} +3 -3
  25. package/dist/lazy/{JsonEdit-SRlm3aHt.js → JsonEdit-CX9YW345.js} +3 -3
  26. package/dist/lazy/{LogList-CwBDKU7Q.js → LogList-GPYWUphW.js} +7 -7
  27. package/dist/lazy/{ObjGroup-Duu9T85w.js → ObjGroup-CClw5oHe.js} +1 -1
  28. package/dist/lazy/{OfferDetails-CYoXlNAr.js → OfferDetails-Biq2BM1w.js} +2 -2
  29. package/dist/lazy/{Pagination-B4g7jndy.js → Pagination-DYqz_Avf.js} +4 -4
  30. package/dist/lazy/{Progress-DqKxwb6x.js → Progress-DLOBlgWL.js} +15 -15
  31. package/dist/lazy/{Radio-BvIYa6PJ.js → Radio-CjJOFY1b.js} +3 -3
  32. package/dist/lazy/{SearchSelect-Cwtb2cHo.js → SearchSelect-DiqCeF7s.js} +6 -6
  33. package/dist/lazy/{Select-BJ7EBQUB.js → Select-bD3Qs-DX.js} +2 -2
  34. package/dist/lazy/{Table-VAh_fX9B.js → Table-DMilpo0t.js} +2 -2
  35. package/dist/lazy/{Tabs-A7MXXGsY.js → Tabs-Cva4fuaz.js} +11 -11
  36. package/dist/lazy/{TextArea-QqypbQfK.js → TextArea-B15bhbqV.js} +2 -2
  37. package/dist/lazy/{Wrapper-DJyo8r91.js → Wrapper-XYuj-tFV.js} +2 -2
  38. package/dist/lazy/{index-BT8ieeBh.js → index-B8_pseN5.js} +1250 -1251
  39. package/dist/lazy/{useSelect-rPigIPV0.js → useSelect-BNm4EV-Y.js} +1 -1
  40. package/dist/style.css +2 -2
  41. package/global.d.ts +10 -10
  42. package/package.json +36 -36
  43. package/dist/lazy/Component-R7RtZJSh.js +0 -164
  44. package/dist/lazy/Custom-BAFCr78G.js +0 -26
  45. package/dist/lazy/FilterSearch-BPxPu2FL.js +0 -128
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.80",
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.84",
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,164 +0,0 @@
1
- import { defineComponent as V, mergeModels as _, useModel as $, ref as E, resolveComponent as C, openBlock as o, createElementBlock as n, Fragment as d, createVNode as c, normalizeClass as I, createSlots as L, withCtx as f, createTextVNode as y, createElementVNode as i, createBlock as g, toDisplayString as u, createCommentVNode as p, unref as N, renderList as O } from "vue";
2
- import { genFileId as R, ElMessage as z, ElMessageBox as j } from "element-plus";
3
- import { c as P, I as h, a as q, _ as A } from "./index-BT8ieeBh.js";
4
- const G = {
5
- key: 0,
6
- class: "smallDragStyle-text"
7
- }, H = { class: "el-upload__tip" }, J = {
8
- key: 0,
9
- class: "upload-bottom-part"
10
- }, K = { class: "file-list-wrapper" }, Q = { class: "file-item-name" }, W = /* @__PURE__ */ V({
11
- __name: "Component",
12
- props: /* @__PURE__ */ _({
13
- action: {},
14
- multiple: { type: Boolean },
15
- btnText: { default: "点击上传" },
16
- tip: {},
17
- limit: {},
18
- drag: { type: Boolean },
19
- name: { default: "file" },
20
- listType: { default: "text" },
21
- attachmentTitle: {},
22
- showFileList: { type: Boolean, default: !0 },
23
- autoUpload: { type: Boolean },
24
- beforeUpload: {},
25
- isOnlyOne: { type: Boolean, default: !1 },
26
- onChange: {},
27
- smallDragStyle: { type: Boolean },
28
- clearable: { type: Boolean, default: !0 }
29
- }, {
30
- modelValue: {
31
- default: () => []
32
- },
33
- modelModifiers: {}
34
- }),
35
- emits: ["update:modelValue"],
36
- setup(v) {
37
- const t = v, r = $(v, "modelValue"), { ruleModule: k, pageMethodMap: b } = P(), B = (e) => {
38
- if (t.beforeUpload)
39
- try {
40
- return k[t.beforeUpload](b, e);
41
- } catch (l) {
42
- console.error(l);
43
- }
44
- return !0;
45
- }, T = (e, l) => {
46
- if (t.onChange)
47
- try {
48
- k[t.onChange](b, e, l);
49
- } catch (a) {
50
- console.error(a);
51
- }
52
- }, w = (e) => {
53
- const l = r.value.findIndex((a) => a.uid === e.uid);
54
- l !== -1 && r.value.splice(l, 1);
55
- }, D = (e, l) => {
56
- console.log(e, l);
57
- }, M = (e) => {
58
- console.log(e);
59
- }, m = E(), S = (e, l) => {
60
- if (t.isOnlyOne && t.limit === 1) {
61
- m.value.clearFiles();
62
- const a = e[0];
63
- a.uid = R(), m.value.handleStart(a);
64
- } else
65
- z.warning(
66
- `The limit is ${t.limit}, you selected ${e.length} files this time, add up to ${e.length + l.length} totally`
67
- );
68
- }, U = (e, l) => t.beforeUpload ? !1 : j.confirm(`Cancel the transfer of ${e.name} ?`).then(
69
- () => !0,
70
- () => !1
71
- );
72
- return (e, l) => {
73
- const a = C("el-button"), F = C("el-upload");
74
- return o(), n(d, null, [
75
- c(F, {
76
- "file-list": r.value,
77
- "onUpdate:fileList": l[0] || (l[0] = (s) => r.value = s),
78
- action: e.action,
79
- multiple: e.multiple,
80
- limit: e.limit,
81
- drag: e.drag,
82
- name: e.name,
83
- listType: e.listType,
84
- "show-file-list": e.showFileList,
85
- "on-preview": M,
86
- "on-remove": D,
87
- "before-remove": U,
88
- "before-upload": B,
89
- "on-change": T,
90
- "on-exceed": S,
91
- class: I({ dragUpload: e.drag, smallDragStyle: e.smallDragStyle }),
92
- ref_key: "upload",
93
- ref: m
94
- }, L({
95
- default: f(() => [
96
- e.listType === "text" ? (o(), n(d, { key: 0 }, [
97
- e.drag ? (o(), n(d, { key: 0 }, [
98
- e.smallDragStyle ? (o(), n("div", G, l[1] || (l[1] = [
99
- y("Drop file here or "),
100
- i("span", null, "click to upload", -1)
101
- ]))) : (o(), n(d, { key: 1 }, [
102
- c(h, {
103
- name: "icon-shangchuan",
104
- color: "var(--el-color-primary)"
105
- }),
106
- l[2] || (l[2] = i("div", null, [
107
- y("Drop file here or "),
108
- i("em", null, "click to upload")
109
- ], -1))
110
- ], 64))
111
- ], 64)) : (o(), g(a, {
112
- key: 1,
113
- type: "primary"
114
- }, {
115
- default: f(() => [
116
- y(u(e.btnText), 1)
117
- ]),
118
- _: 1
119
- }))
120
- ], 64)) : p("", !0),
121
- e.listType === "picture-card" ? (o(), g(N(q), {
122
- key: 1,
123
- name: "add"
124
- })) : p("", !0)
125
- ]),
126
- _: 2
127
- }, [
128
- e.tip ? {
129
- name: "tip",
130
- fn: f(() => [
131
- i("div", H, u(e.tip), 1)
132
- ]),
133
- key: "0"
134
- } : void 0
135
- ]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "show-file-list", "class"]),
136
- e.drag && r.value.length > 0 ? (o(), n("div", J, [
137
- i("div", null, u(e.attachmentTitle), 1),
138
- i("div", K, [
139
- (o(!0), n(d, null, O(r.value, (s) => (o(), n("div", {
140
- class: "file-item",
141
- key: s.uid
142
- }, [
143
- c(h, {
144
- name: "icon-fujiantubiao1",
145
- size: "ultra-large"
146
- }),
147
- i("div", Q, u(s.name), 1),
148
- e.clearable ? (o(), g(h, {
149
- key: 0,
150
- name: "icon-guanbi",
151
- class: "file-item-close",
152
- size: "x-small",
153
- onClick: (X) => w(s)
154
- }, null, 8, ["onClick"])) : p("", !0)
155
- ]))), 128))
156
- ])
157
- ])) : p("", !0)
158
- ], 64);
159
- };
160
- }
161
- }), ee = /* @__PURE__ */ A(W, [["__scopeId", "data-v-0576569b"]]);
162
- export {
163
- ee as default
164
- };
@@ -1,26 +0,0 @@
1
- import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as d, resolveDynamicComponent as u, mergeProps as c } from "vue";
2
- import { _ as i } from "./index-BT8ieeBh.js";
3
- const _ = {
4
- key: 0,
5
- class: "empty"
6
- }, f = /* @__PURE__ */ n({
7
- __name: "Custom",
8
- props: /* @__PURE__ */ s({
9
- componentName: {}
10
- }, {
11
- modelValue: {},
12
- modelModifiers: {}
13
- }),
14
- emits: ["update:modelValue"],
15
- setup(l) {
16
- const o = p(l, "modelValue");
17
- return (e, m) => e.componentName ? (t(), d(u(e.componentName), c({
18
- key: 1,
19
- modelValue: o.value,
20
- "onUpdate:modelValue": m[0] || (m[0] = (a) => o.value = a)
21
- }, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", _, "请输入全局注册得组件名"));
22
- }
23
- }), v = /* @__PURE__ */ i(f, [["__scopeId", "data-v-2250b7d1"]]);
24
- export {
25
- v as default
26
- };
@@ -1,128 +0,0 @@
1
- import { defineComponent as M, ref as m, readonly as K, onUnmounted as U, resolveComponent as c, openBlock as f, createElementBlock as _, createElementVNode as u, createVNode as o, withKeys as j, withModifiers as E, withCtx as i, Fragment as N, renderList as R, createBlock as D, normalizeClass as L, withDirectives as $, unref as q, vShow as A } from "vue";
2
- import { c as G, j as H, I as C, b as J, _ as O } from "./index-BT8ieeBh.js";
3
- import "element-plus";
4
- const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
5
- __name: "FilterSearch",
6
- props: {
7
- name: {},
8
- children: {},
9
- placeholder: {},
10
- defaultCollapse: { type: Boolean },
11
- searchTypes: {},
12
- onSearch: {},
13
- onChange: {},
14
- onSearchTypeChange: {}
15
- },
16
- setup(g, { expose: S }) {
17
- const a = g, r = m(a.defaultCollapse), s = m(a.searchTypes ? a.searchTypes[0].value : null), T = () => s.value, V = (e) => {
18
- if (a.searchTypes) {
19
- const l = a.searchTypes.find((d) => d.value === e);
20
- l && (s.value = l.value);
21
- }
22
- }, t = m(""), w = (e) => {
23
- t.value = e;
24
- }, x = () => t.value, b = (e) => {
25
- try {
26
- p[a.onSearchTypeChange](h, e);
27
- } catch (l) {
28
- console.error(l);
29
- }
30
- }, k = (e) => {
31
- if (a.onChange)
32
- try {
33
- p[a.onChange](h, e);
34
- } catch (l) {
35
- console.error(l);
36
- }
37
- }, v = async () => {
38
- try {
39
- await p[a.onSearch](h, t.value);
40
- } catch (e) {
41
- console.error(e);
42
- }
43
- }, I = () => {
44
- r.value = !r.value;
45
- }, { ruleModule: p, pageMethodMap: h } = G(), y = K({
46
- setSearchValue: w,
47
- getSearchValue: x,
48
- getSearchType: T,
49
- setSearchType: V,
50
- type: "filterSearch"
51
- });
52
- if (a.name) {
53
- const e = H(a.name, y);
54
- U(() => {
55
- e();
56
- });
57
- }
58
- return S(y), (e, l) => {
59
- const d = c("el-option"), z = c("el-select"), F = c("el-input"), B = c("el-collapse-transition");
60
- return f(), _("div", null, [
61
- u("div", P, [
62
- o(F, {
63
- modelValue: t.value,
64
- "onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n),
65
- placeholder: e.placeholder,
66
- size: "large",
67
- onKeyup: j(E(v, ["stop"]), ["enter"]),
68
- class: "filter-search-input",
69
- clearable: !0,
70
- onInput: k
71
- }, {
72
- prefix: i(() => [
73
- o(z, {
74
- modelValue: s.value,
75
- "onUpdate:modelValue": l[0] || (l[0] = (n) => s.value = n),
76
- size: "small",
77
- class: "filter-search-select",
78
- onChange: b
79
- }, {
80
- default: i(() => [
81
- (f(!0), _(N, null, R(e.searchTypes, (n) => (f(), D(d, {
82
- key: n.value,
83
- label: n.label,
84
- value: n.value
85
- }, null, 8, ["label", "value"]))), 128))
86
- ]),
87
- _: 1
88
- }, 8, ["modelValue"])
89
- ]),
90
- suffix: i(() => [
91
- o(C, {
92
- name: "icon-lujing2",
93
- size: "small",
94
- color: "#666666",
95
- onClick: v,
96
- class: "search-icon"
97
- })
98
- ]),
99
- _: 1
100
- }, 8, ["modelValue", "placeholder", "onKeyup"]),
101
- u("div", {
102
- class: L(["filter-wrapper", { active: !r.value }]),
103
- onClick: I
104
- }, [
105
- o(C, {
106
- name: "icon-shaixuan",
107
- size: "small"
108
- }),
109
- l[2] || (l[2] = u("span", { class: "filter-text" }, "Filter", -1))
110
- ], 2)
111
- ]),
112
- o(B, null, {
113
- default: i(() => [
114
- $(u("div", null, [
115
- o(q(J), { list: e.children }, null, 8, ["list"])
116
- ], 512), [
117
- [A, !r.value]
118
- ])
119
- ]),
120
- _: 1
121
- })
122
- ]);
123
- };
124
- }
125
- }), Z = /* @__PURE__ */ O(Q, [["__scopeId", "data-v-28f25b88"]]);
126
- export {
127
- Z as default
128
- };