asiaint-lowcode 3.1.57 → 3.1.59

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/dist/asiaint-lowcode.js +6 -5
  2. package/dist/asiaint-lowcode.umd.cjs +169 -168
  3. package/dist/index.d.ts +20 -0
  4. package/dist/lazy/{Card-DdWp3Dz9.js → Card-BYPwo3XZ.js} +1 -1
  5. package/dist/lazy/{Cascader-BxsxfWZi.js → Cascader-DY-d82qj.js} +1 -1
  6. package/dist/lazy/{Checkbox-BPJjRDut.js → Checkbox-Dg9u4FhF.js} +2 -2
  7. package/dist/lazy/{Collapse-DMpWXH2D.js → Collapse-DQhgWu9x.js} +1 -1
  8. package/dist/lazy/{Component-haJrwEDP.js → Component-3XwczOUC.js} +1 -1
  9. package/dist/lazy/{Component-DhRio0qv.js → Component-CWHZOyo1.js} +1 -1
  10. package/dist/lazy/{Component-BAb8Glyu.js → Component-CsEqb0-g.js} +1 -1
  11. package/dist/lazy/Component-D3ko2zV_.js +30 -0
  12. package/dist/lazy/Component-DwNhUm0N.js +162 -0
  13. package/dist/lazy/{Component-Cq9v0YT0.js → Component-DwPxwrgB.js} +1 -1
  14. package/dist/lazy/{Component-xrpa5QWJ.js → Component-vZaE4woZ.js} +1 -1
  15. package/dist/lazy/{CurdCard-BqzAFbA5.js → CurdCard-CmbvWUBO.js} +1 -1
  16. package/dist/lazy/{Custom-EmbK57YY.js → Custom-DuRh9Urx.js} +1 -1
  17. package/dist/lazy/{DatePicker-BXnfk1Zr.js → DatePicker-D0zv1F-a.js} +1 -1
  18. package/dist/lazy/{DragList-DG75zaHa.js → DragList-CLa7vKkO.js} +29 -29
  19. package/dist/lazy/{FilterSearch-BMF9jCxH.js → FilterSearch-Bewbldd3.js} +1 -1
  20. package/dist/lazy/FloatCurd-CNzJGvx1.js +162 -0
  21. package/dist/lazy/{FormList-_S8br6_H.js → FormList-BnI9JAfR.js} +1 -1
  22. package/dist/lazy/{Grid-kruDCFf5.js → Grid-D8ec9zdI.js} +1 -1
  23. package/dist/lazy/{InfiniteScroll-CtsW_oYO.js → InfiniteScroll-D9MhLp9X.js} +1 -1
  24. package/dist/lazy/{Inline-5o19mIFm.js → Inline-DkL-t8zb.js} +1 -1
  25. package/dist/lazy/{JsonEdit-DzAF4EKV.js → JsonEdit-CUvvalJ4.js} +1 -1
  26. package/dist/lazy/{LogList-DA4nYLDd.js → LogList-CqDAhB_X.js} +1 -1
  27. package/dist/lazy/{ObjGroup-6YLhqnv5.js → ObjGroup-CJlXftCX.js} +1 -1
  28. package/dist/lazy/{OfferDetails-BjMnexIs.js → OfferDetails-fVTdiL9p.js} +37 -35
  29. package/dist/lazy/{Pagination-DiXJ2GWc.js → Pagination-D7L3eLJL.js} +1 -1
  30. package/dist/lazy/{Progress-DPzECwdm.js → Progress-Db-ugoji.js} +1 -1
  31. package/dist/lazy/{Radio-D3XvuscY.js → Radio-mim6bW2l.js} +2 -2
  32. package/dist/lazy/{SearchSelect-D0-zUts-.js → SearchSelect-DpOrVhBh.js} +2 -2
  33. package/dist/lazy/{Select-B1XcN6fN.js → Select-DiiBkEkn.js} +2 -2
  34. package/dist/lazy/Table-BGoj-xjM.js +609 -0
  35. package/dist/lazy/{Tabs-Bdc3ze7v.js → Tabs-SWPEmMDx.js} +1 -1
  36. package/dist/lazy/{TextArea-Crwzr10r.js → TextArea-CdS1_bex.js} +1 -1
  37. package/dist/lazy/{Wrapper-DH0CbkLZ.js → Wrapper-zQ3ywa4V.js} +1 -1
  38. package/dist/lazy/{index-DY31m1LD.js → index-DdEBDsO2.js} +1612 -1557
  39. package/dist/lazy/{useSelect-Mr_5r7kL.js → useSelect-DDkQ_PJg.js} +1 -1
  40. package/dist/style.css +2 -2
  41. package/package.json +1 -1
  42. package/dist/lazy/Component-Bvb11i1A.js +0 -153
  43. package/dist/lazy/Component-T0MaVDE3.js +0 -13
  44. package/dist/lazy/FloatCurd-D_OPcxR6.js +0 -148
  45. package/dist/lazy/Table-x-_aoAyQ.js +0 -566
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.57",
3
+ "version": "3.1.59",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,153 +0,0 @@
1
- import { defineComponent as $, mergeModels as E, useModel as I, ref as L, resolveComponent as C, openBlock as a, createElementBlock as i, Fragment as d, createVNode as u, normalizeClass as N, createSlots as O, withCtx as c, createElementVNode as s, createTextVNode as b, createBlock as k, toDisplayString as p, createCommentVNode as f, unref as R, renderList as z } from "vue";
2
- import { genFileId as S, ElMessage as D, ElMessageBox as j } from "element-plus";
3
- import { c as P, I as h, a as q, _ as x } from "./index-DY31m1LD.js";
4
- const A = { class: "el-upload__tip" }, G = {
5
- key: 0,
6
- class: "upload-bottom-part"
7
- }, H = { class: "file-list-wrapper" }, J = { class: "file-item-name" }, K = /* @__PURE__ */ $({
8
- __name: "Component",
9
- props: /* @__PURE__ */ E({
10
- action: {},
11
- multiple: { type: Boolean },
12
- btnText: { default: "点击上传" },
13
- tip: {},
14
- limit: {},
15
- drag: { type: Boolean },
16
- name: { default: "file" },
17
- listType: { default: "text" },
18
- attachmentTitle: {},
19
- showFileList: { type: Boolean, default: !0 },
20
- autoUpload: { type: Boolean },
21
- beforeUpload: {},
22
- isOnlyOne: { type: Boolean, default: !1 },
23
- onChange: {}
24
- }, {
25
- modelValue: {
26
- default: () => []
27
- },
28
- modelModifiers: {}
29
- }),
30
- emits: ["update:modelValue"],
31
- setup(g) {
32
- const o = g, n = I(g, "modelValue"), { ruleModule: y, pageMethodMap: v } = P(), T = (e) => {
33
- if (o.beforeUpload)
34
- try {
35
- return y[o.beforeUpload](v, e);
36
- } catch (l) {
37
- console.error(l);
38
- }
39
- return !0;
40
- }, B = (e, l) => {
41
- if (o.onChange)
42
- try {
43
- y[o.onChange](v, e, l);
44
- } catch (t) {
45
- console.error(t);
46
- }
47
- }, _ = (e) => {
48
- const l = n.value.findIndex((t) => t.uid === e.uid);
49
- l !== -1 && n.value.splice(l, 1);
50
- }, w = (e, l) => {
51
- console.log(e, l);
52
- }, M = (e) => {
53
- console.log(e);
54
- }, m = L(), U = (e, l) => {
55
- if (o.isOnlyOne && o.limit === 1) {
56
- m.value.clearFiles();
57
- const t = e[0];
58
- t.uid = S(), m.value.handleStart(t);
59
- } else
60
- D.warning(
61
- `The limit is ${o.limit}, you selected ${e.length} files this time, add up to ${e.length + l.length} totally`
62
- );
63
- }, F = (e, l) => o.beforeUpload ? !1 : j.confirm(`Cancel the transfer of ${e.name} ?`).then(
64
- () => !0,
65
- () => !1
66
- );
67
- return (e, l) => {
68
- const t = C("el-button"), V = C("el-upload");
69
- return a(), i(d, null, [
70
- u(V, {
71
- "file-list": n.value,
72
- "onUpdate:fileList": l[0] || (l[0] = (r) => n.value = r),
73
- action: e.action,
74
- multiple: e.multiple,
75
- limit: e.limit,
76
- drag: e.drag,
77
- name: e.name,
78
- listType: e.listType,
79
- "show-file-list": e.showFileList,
80
- "on-preview": M,
81
- "on-remove": w,
82
- "before-remove": F,
83
- "before-upload": T,
84
- "on-change": B,
85
- "on-exceed": U,
86
- class: N({ dragUpload: e.drag }),
87
- ref_key: "upload",
88
- ref: m
89
- }, O({
90
- default: c(() => [
91
- e.listType === "text" ? (a(), i(d, { key: 0 }, [
92
- e.drag ? (a(), i(d, { key: 0 }, [
93
- u(h, {
94
- name: "icon-shangchuan",
95
- color: "var(--el-color-primary)"
96
- }),
97
- l[1] || (l[1] = s("div", null, [
98
- b("Drop file here or "),
99
- s("em", null, "click to upload")
100
- ], -1))
101
- ], 64)) : (a(), k(t, {
102
- key: 1,
103
- type: "primary"
104
- }, {
105
- default: c(() => [
106
- b(p(e.btnText), 1)
107
- ]),
108
- _: 1
109
- }))
110
- ], 64)) : f("", !0),
111
- e.listType === "picture-card" ? (a(), k(R(q), {
112
- key: 1,
113
- name: "add"
114
- })) : f("", !0)
115
- ]),
116
- _: 2
117
- }, [
118
- e.tip ? {
119
- name: "tip",
120
- fn: c(() => [
121
- s("div", A, p(e.tip), 1)
122
- ]),
123
- key: "0"
124
- } : void 0
125
- ]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "show-file-list", "class"]),
126
- e.drag && n.value.length > 0 ? (a(), i("div", G, [
127
- s("div", null, p(e.attachmentTitle), 1),
128
- s("div", H, [
129
- (a(!0), i(d, null, z(n.value, (r) => (a(), i("div", {
130
- class: "file-item",
131
- key: r.uid
132
- }, [
133
- u(h, {
134
- name: "icon-fujiantubiao1",
135
- size: "ultra-large"
136
- }),
137
- s("div", J, p(r.name), 1),
138
- u(h, {
139
- name: "icon-guanbi",
140
- class: "file-item-close",
141
- size: "x-small",
142
- onClick: (Q) => _(r)
143
- }, null, 8, ["onClick"])
144
- ]))), 128))
145
- ])
146
- ])) : f("", !0)
147
- ], 64);
148
- };
149
- }
150
- }), Z = /* @__PURE__ */ x(K, [["__scopeId", "data-v-faced280"]]);
151
- export {
152
- Z as default
153
- };
@@ -1,13 +0,0 @@
1
- import { defineComponent as n, openBlock as t, createElementBlock as o, mergeProps as r } from "vue";
2
- const p = ["innerHTML"], a = /* @__PURE__ */ n({
3
- __name: "Component",
4
- props: {
5
- text: {}
6
- },
7
- setup(s) {
8
- return (e, m) => (t(), o("div", r(e.$attrs, { innerHTML: e.text }), null, 16, p));
9
- }
10
- });
11
- export {
12
- a as default
13
- };
@@ -1,148 +0,0 @@
1
- import { defineComponent as P, ref as F, computed as z, onUnmounted as A, resolveComponent as N, openBlock as i, createElementBlock as b, createElementVNode as n, createVNode as a, withCtx as c, createTextVNode as g, withDirectives as E, toDisplayString as k, unref as G, vShow as R, Fragment as U, renderList as L, createBlock as M, createCommentVNode as S } from "vue";
2
- import { c as H, u as J, i as D, j as K, I as u, b as O, _ as Q } from "./index-DY31m1LD.js";
3
- import { dayjs as W } from "element-plus";
4
- const X = { class: "float-curd" }, Z = { class: "curd-body" }, ee = { class: "gradient-input-wrapper" }, oe = { class: "float-form" }, ne = { class: "float-form-header" }, te = { class: "float-form-header-title" }, le = { class: "float-form-header-btns" }, ae = { class: "float-form-body" }, se = { class: "curd-footer" }, re = /* @__PURE__ */ P({
5
- __name: "FloatCurd",
6
- props: {
7
- name: {},
8
- children: {},
9
- formTitle: {},
10
- onSearch: {},
11
- inputPlaceholder: {}
12
- },
13
- setup(w, { expose: B }) {
14
- const m = w, d = F(!1), { ruleModule: T, pageMethodMap: Y } = H(), v = J(), $ = z(() => {
15
- var o, h, V, I;
16
- const t = v.schema.items, e = v.formValues, s = D(t, m.name);
17
- if (!s || !s.children)
18
- return [];
19
- const f = [];
20
- for (const x in e) {
21
- const l = D(s.children, x);
22
- if (l && l.label) {
23
- const r = e[x];
24
- if (r != null && r !== "") {
25
- const p = {
26
- name: l.name,
27
- label: l.label,
28
- value: r,
29
- closeable: !l.required
30
- };
31
- l.component === "DatePicker" && (p.iconName = "icon-rili", p.value = W(r).format(((o = l.props) == null ? void 0 : o.valueFormat) || "YYYY-MM-DD")), l.component === "Select" && (p.value = (I = (V = (h = l.props) == null ? void 0 : h.options) == null ? void 0 : V.find((q) => q.value === r)) == null ? void 0 : I.label), f.push(p);
32
- }
33
- }
34
- }
35
- return f;
36
- }), _ = F("");
37
- function y() {
38
- try {
39
- T[m.onSearch](Y, _.value);
40
- } catch (t) {
41
- console.error(t);
42
- }
43
- }
44
- function j(t) {
45
- v.setFieldValue(t.name, "", "");
46
- }
47
- const C = {
48
- type: "floatcurd"
49
- };
50
- if (B(C), m.name) {
51
- const t = K(m.name, C);
52
- A(() => {
53
- t();
54
- });
55
- }
56
- return (t, e) => {
57
- const s = N("el-button"), f = N("el-input");
58
- return i(), b("div", X, [
59
- n("div", Z, [
60
- n("div", ee, [
61
- a(f, {
62
- placeholder: t.inputPlaceholder,
63
- modelValue: _.value,
64
- "onUpdate:modelValue": e[0] || (e[0] = (o) => _.value = o)
65
- }, {
66
- prefix: c(() => [
67
- a(u, { name: "icon-a-mobang1" }),
68
- e[3] || (e[3] = n("span", { class: "prefix-text" }, "Ask AI", -1))
69
- ]),
70
- suffix: c(() => [
71
- a(s, {
72
- type: "primary",
73
- size: "small",
74
- onClick: y
75
- }, {
76
- default: c(() => e[4] || (e[4] = [
77
- g("Go")
78
- ])),
79
- _: 1
80
- })
81
- ]),
82
- _: 1
83
- }, 8, ["placeholder", "modelValue"])
84
- ]),
85
- a(s, {
86
- plain: !0,
87
- onClick: e[1] || (e[1] = (o) => d.value = !d.value),
88
- class: "more-btn"
89
- }, {
90
- default: c(() => [
91
- a(u, { name: "icon-tiaojianshaixuan" }),
92
- e[5] || (e[5] = n("span", null, "More", -1))
93
- ]),
94
- _: 1
95
- }),
96
- E(n("div", oe, [
97
- n("div", ne, [
98
- n("div", te, k(t.formTitle), 1),
99
- n("div", le, [
100
- a(s, {
101
- type: "primary",
102
- size: "small",
103
- onClick: y
104
- }, {
105
- default: c(() => e[6] || (e[6] = [
106
- g("Go")
107
- ])),
108
- _: 1
109
- }),
110
- a(u, {
111
- name: "icon-a-rongqi1",
112
- onClick: e[2] || (e[2] = (o) => d.value = !1)
113
- })
114
- ])
115
- ]),
116
- n("div", ae, [
117
- a(G(O), { list: t.children }, null, 8, ["list"])
118
- ])
119
- ], 512), [
120
- [R, d.value]
121
- ])
122
- ]),
123
- n("div", se, [
124
- (i(!0), b(U, null, L($.value, (o) => (i(), b("div", {
125
- class: "tag",
126
- key: o.name
127
- }, [
128
- o.iconName ? (i(), M(u, {
129
- key: 0,
130
- name: o.iconName
131
- }, null, 8, ["name"])) : S("", !0),
132
- n("span", null, k(o.label) + ":", 1),
133
- n("span", null, k(o.value), 1),
134
- o.closeable ? (i(), M(u, {
135
- key: 1,
136
- name: "icon-a-rongqi1",
137
- onClick: (h) => j(o),
138
- class: "close-icon"
139
- }, null, 8, ["onClick"])) : S("", !0)
140
- ]))), 128))
141
- ])
142
- ]);
143
- };
144
- }
145
- }), me = /* @__PURE__ */ Q(re, [["__scopeId", "data-v-3850d35a"]]);
146
- export {
147
- me as default
148
- };