asiaint-lowcode 3.1.64 → 3.1.66

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 +168 -168
  4. package/dist/index.d.ts +5 -4
  5. package/dist/lazy/{Card-CS1onGuT.js → Card-DIqiWLav.js} +2 -2
  6. package/dist/lazy/{Cascader-BSkodoVr.js → Cascader-Djt4qKa-.js} +1 -1
  7. package/dist/lazy/{Checkbox-Bg3TiZeG.js → Checkbox-CgyrYL0o.js} +2 -2
  8. package/dist/lazy/{Collapse-C99u1fSo.js → Collapse-BodMMbdX.js} +1 -1
  9. package/dist/lazy/{Component-Dn2QadUS.js → Component-B-vgwLrf.js} +19 -19
  10. package/dist/lazy/{Component-BjdoZXWY.js → Component-CXf3Zsaj.js} +2 -2
  11. package/dist/lazy/{Component-CUvFVpdn.js → Component-CmLcfPxj.js} +2 -2
  12. package/dist/lazy/{Component-hspIDRKI.js → Component-Dx8J9S6O.js} +1 -1
  13. package/dist/lazy/{Component-Dj3OKr8m.js → Component-F_Rqy26D.js} +2 -2
  14. package/dist/lazy/{Component-B5S_n6Bo.js → Component-Tn-QCgTA.js} +1 -1
  15. package/dist/lazy/{CurdCard-BSnjGl__.js → CurdCard-Bwebjf-L.js} +9 -9
  16. package/dist/lazy/Custom-Cg7AQT80.js +26 -0
  17. package/dist/lazy/{DatePicker-DG5JvITR.js → DatePicker-DNyq1I8L.js} +1 -1
  18. package/dist/lazy/{DragList-34a398Od.js → DragList-Cr8aKyLj.js} +13 -13
  19. package/dist/lazy/{FilterSearch-Cu8r0LbI.js → FilterSearch-CzlYRqFn.js} +8 -8
  20. package/dist/lazy/{FloatCurd-xaAckazT.js → FloatCurd-CDuKtXDs.js} +9 -9
  21. package/dist/lazy/{FormList-oEFjzQVe.js → FormList-SXmMTMHy.js} +1 -1
  22. package/dist/lazy/{Grid-BMgpiQGO.js → Grid-BmWTvO9w.js} +1 -1
  23. package/dist/lazy/{InfiniteScroll-CPsy3Cby.js → InfiniteScroll-B4WLYcvu.js} +4 -4
  24. package/dist/lazy/{Inline-DZXUd0JM.js → Inline-DCAf7P_Z.js} +3 -3
  25. package/dist/lazy/{JsonEdit-BvMy1CQ8.js → JsonEdit-sL8Fcnnu.js} +3 -3
  26. package/dist/lazy/{LogList-0RAaBw_r.js → LogList-BMNPG5uS.js} +7 -7
  27. package/dist/lazy/{ObjGroup-DDC_HLTa.js → ObjGroup-DhNuL3CJ.js} +1 -1
  28. package/dist/lazy/{OfferDetails-CUdlypry.js → OfferDetails-DKOKo4ra.js} +2 -2
  29. package/dist/lazy/{Pagination-1sdzE7Il.js → Pagination-D-HVKOv0.js} +4 -4
  30. package/dist/lazy/{Progress-8i0i8Bvz.js → Progress-CKbPmhjm.js} +15 -15
  31. package/dist/lazy/{Radio-uq--MTf1.js → Radio-CGqaYj4m.js} +3 -3
  32. package/dist/lazy/{SearchSelect-bQxNNDjK.js → SearchSelect-pvL6L8gR.js} +6 -6
  33. package/dist/lazy/{Select-DmvWx1J2.js → Select-xExV0wPP.js} +2 -2
  34. package/dist/lazy/Table-53tr_vIc.js +619 -0
  35. package/dist/lazy/Tabs-DVQZiNCL.js +138 -0
  36. package/dist/lazy/{TextArea-DscU5eQI.js → TextArea-tvurhtMs.js} +2 -2
  37. package/dist/lazy/{Wrapper-BdkV8TcM.js → Wrapper-jsXJEh2B.js} +2 -2
  38. package/dist/lazy/{index-Dw4HmLSV.js → index-BUDQb8BO.js} +2820 -2809
  39. package/dist/lazy/{useSelect-BMsr6iEB.js → useSelect-CPWFl9Un.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/Custom-C66m-v_0.js +0 -26
  44. package/dist/lazy/Table-BaT9L19U.js +0 -609
  45. package/dist/lazy/Tabs-BySiy9Kh.js +0 -127
@@ -0,0 +1,138 @@
1
+ import { defineComponent as w, ref as V, computed as I, watch as p, onMounted as L, resolveComponent as g, openBlock as t, createBlock as m, mergeProps as C, withCtx as c, createElementVNode as s, createElementBlock as o, Fragment as d, renderList as f, createVNode as y, createCommentVNode as i, toDisplayString as M, normalizeClass as E, unref as F } from "vue";
2
+ import { c as $, I as h, b as z, _ as A } from "./index-BUDQb8BO.js";
3
+ import "element-plus";
4
+ const D = { class: "right-icon-wrapper" }, P = { class: "dynamic-icon-wrapper" }, R = {
5
+ key: 0,
6
+ class: "dynamic-icon-item"
7
+ }, S = { class: "static-icon-wrapper" }, U = {
8
+ key: 0,
9
+ class: "static-icon-item"
10
+ }, j = { class: "tab-label" }, q = { class: "tab-label-text" }, G = /* @__PURE__ */ w({
11
+ __name: "Tabs",
12
+ props: {
13
+ id: {},
14
+ children: {},
15
+ defaultKey: {},
16
+ tabChange: {},
17
+ onBeforeLeave: {},
18
+ styleType: { default: "normal" },
19
+ staticBtns: {},
20
+ dynamicBtns: {}
21
+ },
22
+ setup(k) {
23
+ const a = k, r = V(""), T = I(() => {
24
+ const e = a.children.findIndex((l) => l.name === r.value);
25
+ return e - 1 >= 0 ? e - 1 : null;
26
+ }), { ruleModule: b, pageMethodMap: v } = $();
27
+ function B(e) {
28
+ if (a.tabChange)
29
+ try {
30
+ b[a.tabChange](v, e);
31
+ } catch (l) {
32
+ console.error(l);
33
+ }
34
+ }
35
+ async function K(e, l) {
36
+ if (a.onBeforeLeave)
37
+ try {
38
+ return await b[a.onBeforeLeave](v, e, l);
39
+ } catch (u) {
40
+ console.error(u);
41
+ }
42
+ return !0;
43
+ }
44
+ return p(
45
+ () => a.children,
46
+ () => {
47
+ a.children.forEach((e) => {
48
+ e.children || (e.children = []);
49
+ });
50
+ }
51
+ ), p(
52
+ () => a.defaultKey,
53
+ () => {
54
+ r.value = a.defaultKey;
55
+ }
56
+ ), p(
57
+ () => a.defaultKey,
58
+ () => {
59
+ r.value = a.defaultKey;
60
+ }
61
+ ), L(() => {
62
+ a.defaultKey && (r.value = a.defaultKey);
63
+ }), (e, l) => {
64
+ const u = g("el-tab-pane"), N = g("el-tabs");
65
+ return t(), m(N, C({ id: e.id }, e.$attrs, {
66
+ modelValue: r.value,
67
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => r.value = n),
68
+ onTabChange: B,
69
+ "before-leave": K,
70
+ addable: e.styleType === "btn",
71
+ class: {
72
+ "modal-type": e.styleType === "modal",
73
+ "btn-type": e.styleType === "btn",
74
+ "form-item-tabs": e.styleType === "normal"
75
+ }
76
+ }), {
77
+ "add-icon": c(() => [
78
+ s("div", D, [
79
+ s("div", P, [
80
+ (t(!0), o(d, null, f(e.dynamicBtns, (n) => (t(), o(d, {
81
+ key: n.iconName
82
+ }, [
83
+ n.hidden ? i("", !0) : (t(), o("div", R, [
84
+ y(h, {
85
+ name: n.iconName
86
+ }, null, 8, ["name"])
87
+ ]))
88
+ ], 64))), 128))
89
+ ]),
90
+ s("div", S, [
91
+ (t(!0), o(d, null, f(e.staticBtns, (n) => (t(), o(d, {
92
+ key: n.iconName
93
+ }, [
94
+ n.hidden ? i("", !0) : (t(), o("div", U, [
95
+ y(h, {
96
+ name: n.iconName
97
+ }, null, 8, ["name"])
98
+ ]))
99
+ ], 64))), 128))
100
+ ])
101
+ ])
102
+ ]),
103
+ default: c(() => [
104
+ (t(!0), o(d, null, f(e.children, (n, _) => (t(), m(u, C({
105
+ key: n.name,
106
+ ref_for: !0
107
+ }, n), {
108
+ label: c(() => [
109
+ s("div", j, [
110
+ e.styleType === "btn" && n.icon ? (t(), m(h, {
111
+ key: 0,
112
+ name: n.icon
113
+ }, null, 8, ["name"])) : i("", !0),
114
+ s("span", q, M(n.label), 1),
115
+ _ !== e.children.length - 1 ? (t(), o("span", {
116
+ key: 1,
117
+ class: E(["divider", {
118
+ "divider-hidden": r.value === n.name || T.value === _
119
+ }])
120
+ }, null, 2)) : i("", !0)
121
+ ])
122
+ ]),
123
+ default: c(() => [
124
+ y(F(z), {
125
+ list: n.children
126
+ }, null, 8, ["list"])
127
+ ]),
128
+ _: 2
129
+ }, 1040))), 128))
130
+ ]),
131
+ _: 1
132
+ }, 16, ["id", "modelValue", "addable", "class"]);
133
+ };
134
+ }
135
+ }), Q = /* @__PURE__ */ A(G, [["__scopeId", "data-v-6ca27c09"]]);
136
+ export {
137
+ Q as default
138
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, mergeModels as i, useModel as _, computed as v, resolveComponent as f, openBlock as a, createElementBlock as m, createElementVNode as y, toDisplayString as r, createBlock as V, mergeProps as k } from "vue";
2
- import { u as B, _ as h } from "./index-Dw4HmLSV.js";
2
+ import { u as B, _ as h } from "./index-BUDQb8BO.js";
3
3
  import "element-plus";
4
4
  const x = {
5
5
  key: 0,
@@ -28,7 +28,7 @@ const x = {
28
28
  }), null, 16, ["modelValue"]));
29
29
  };
30
30
  }
31
- }), E = /* @__PURE__ */ h(g, [["__scopeId", "data-v-362f3918"]]);
31
+ }), E = /* @__PURE__ */ h(g, [["__scopeId", "data-v-f631f329"]]);
32
32
  export {
33
33
  E as default
34
34
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, ref as f, resolveComponent as v, openBlock as a, createElementBlock as l, normalizeStyle as s, createVNode as r, withCtx as C, withDirectives as _, createElementVNode as g, normalizeClass as i, unref as x, createCommentVNode as c, vShow as B } from "vue";
2
- import { c as S, b, I as d, _ as k } from "./index-Dw4HmLSV.js";
2
+ import { c as S, b, I as d, _ as k } from "./index-BUDQb8BO.js";
3
3
  import "element-plus";
4
4
  const E = {
5
5
  key: 0,
@@ -80,7 +80,7 @@ const E = {
80
80
  ], 4);
81
81
  };
82
82
  }
83
- }), V = /* @__PURE__ */ k(D, [["__scopeId", "data-v-e9e23e58"]]);
83
+ }), V = /* @__PURE__ */ k(D, [["__scopeId", "data-v-4e826675"]]);
84
84
  export {
85
85
  V as default
86
86
  };