asiaint-lowcode 3.1.136 → 3.1.139
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.d.ts +28 -13
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +172 -171
- package/dist/lazy/{Card-_QHrWfh1.js → Card-BTOGiiFk.js} +8 -8
- package/dist/lazy/{Cascader-CSS81vHb.js → Cascader-D5Npj_J3.js} +5 -4
- package/dist/lazy/{Checkbox-DAApla45.js → Checkbox-Cr7IUX2L.js} +3 -2
- package/dist/lazy/{Collapse-_FkmzGfa.js → Collapse-Dx5MZzYK.js} +1 -1
- package/dist/lazy/{Component-CjoqXHaM.js → Component-BIkyG3qG.js} +2 -2
- package/dist/lazy/{Component-DA4fNiKb.js → Component-BmUWJTHt.js} +1 -1
- package/dist/lazy/{Component-D3p0iztO.js → Component-CDclw9Z9.js} +2 -2
- package/dist/lazy/{Component-CopvG4ii.js → Component-Ckpht8pc.js} +1 -1
- package/dist/lazy/{Component-BoTXYxC9.js → Component-D3HVwOpC.js} +2 -2
- package/dist/lazy/{CurdCard-CwkoYUjU.js → CurdCard-DTR0sIBq.js} +2 -2
- package/dist/lazy/Custom-T6BRc5hT.js +26 -0
- package/dist/lazy/{DatePicker-CTscM3QD.js → DatePicker-BdlkQqRE.js} +1 -1
- package/dist/lazy/{DragList-Dnqi6G3I.js → DragList-E_EZeOyA.js} +13 -13
- package/dist/lazy/{FilterSearch-BSpH-2Lv.js → FilterSearch-bdyx2RJS.js} +2 -2
- package/dist/lazy/{FloatCurd-ljGcmC6W.js → FloatCurd-CP_tH8tY.js} +2 -2
- package/dist/lazy/{FormList-D7puBzTU.js → FormList-Dyg_JXxQ.js} +1 -1
- package/dist/lazy/{Grid-Pn2z-cPo.js → Grid-CIzv77uP.js} +1 -1
- package/dist/lazy/{InfiniteScroll-eztx5ree.js → InfiniteScroll-BlT1x8Z-.js} +4 -4
- package/dist/lazy/{Inline-CegvT-Fd.js → Inline-D5dPf9ZU.js} +3 -3
- package/dist/lazy/{JsonEdit-BDY-kDjg.js → JsonEdit-CHi0JSJt.js} +3 -3
- package/dist/lazy/{LogList-CBkzwln7.js → LogList-DjGC7Wwz.js} +7 -7
- package/dist/lazy/{ObjGroup-UBhz9TtW.js → ObjGroup-JDm0lS70.js} +1 -1
- package/dist/lazy/{OfferDetails-D4REtztW.js → OfferDetails-LQRW8PQO.js} +9 -8
- package/dist/lazy/{Pagination-D0VE2g-_.js → Pagination-DsXpzy8L.js} +2 -2
- package/dist/lazy/{Progress-YomjNyOG.js → Progress-VvRhpxOo.js} +15 -15
- package/dist/lazy/{Radio-OBwJIsHr.js → Radio-HS5f2CyF.js} +4 -3
- package/dist/lazy/{SearchSelect-D0WS8DvA.js → SearchSelect-f8uSdUbq.js} +10 -9
- package/dist/lazy/{Select-DdU6S88e.js → Select-BgVSf4DU.js} +33 -23
- package/dist/lazy/{Table-CkRwW1pF.js → Table-DdtPKKwg.js} +26 -25
- package/dist/lazy/Tabs-exO8g-T4.js +150 -0
- package/dist/lazy/{TextArea-Gyze6BKD.js → TextArea-BaPPb6ip.js} +3 -3
- package/dist/lazy/{Wrapper-DebHZiUt.js → Wrapper-CCNJ2-wm.js} +4 -4
- package/dist/lazy/{index-Cg69BrL8.js → index-ql-DE2T2.js} +1408 -1393
- package/dist/lazy/{useSelect--vt9GSVO.js → useSelect-DmoGseuL.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +1 -1
- package/dist/lazy/Custom-CkS4wS5a.js +0 -26
- package/dist/lazy/Tabs-YodEJRwl.js +0 -144
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,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-Cg69BrL8.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,144 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as z, computed as M, watch as _, onMounted as R, onUnmounted as W, resolveComponent as g, openBlock as c, createBlock as u, mergeProps as B, withCtx as f, createElementVNode as i, createVNode as m, createElementBlock as C, Fragment as A, renderList as S, createCommentVNode as T, toDisplayString as $, normalizeClass as x, unref as D } from "vue";
|
|
2
|
-
import { c as F, i as U, B as K, I as P, b as X, _ as Y } from "./index-Cg69BrL8.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const j = { class: "right-icon-wrapper" }, q = { class: "dynamic-icon-wrapper" }, G = { class: "static-icon-wrapper" }, H = { class: "tab-label-text" }, J = /* @__PURE__ */ N({
|
|
5
|
-
__name: "Tabs",
|
|
6
|
-
props: {
|
|
7
|
-
id: {},
|
|
8
|
-
children: {},
|
|
9
|
-
defaultKey: {},
|
|
10
|
-
tabChange: {},
|
|
11
|
-
onBeforeLeave: {},
|
|
12
|
-
styleType: { default: "normal" },
|
|
13
|
-
staticBtns: {},
|
|
14
|
-
dynamicBtns: {},
|
|
15
|
-
name: {}
|
|
16
|
-
},
|
|
17
|
-
setup(V, { expose: w }) {
|
|
18
|
-
const n = V, s = z(""), I = M(() => {
|
|
19
|
-
const e = n.children.findIndex((t) => t.name === s.value);
|
|
20
|
-
return e - 1 >= 0 ? e - 1 : null;
|
|
21
|
-
}), { ruleModule: p, pageMethodMap: y } = F();
|
|
22
|
-
function k(e) {
|
|
23
|
-
if (n.tabChange)
|
|
24
|
-
try {
|
|
25
|
-
p[n.tabChange](y, e);
|
|
26
|
-
} catch (t) {
|
|
27
|
-
console.error(t);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
async function E(e, t) {
|
|
31
|
-
if (n.onBeforeLeave)
|
|
32
|
-
try {
|
|
33
|
-
return await p[n.onBeforeLeave](y, e, t);
|
|
34
|
-
} catch (o) {
|
|
35
|
-
console.error(o);
|
|
36
|
-
}
|
|
37
|
-
return !0;
|
|
38
|
-
}
|
|
39
|
-
const L = (e) => {
|
|
40
|
-
if (n.id) {
|
|
41
|
-
const t = document.getElementById(n.id);
|
|
42
|
-
if (t) {
|
|
43
|
-
const o = t.getElementsByClassName("el-tabs__nav-scroll")[0], r = t.getElementsByClassName("el-tabs__nav")[0], d = r.style.transform.split("(")[1].split(")")[0].split("px")[0], h = o.offsetWidth - r.offsetWidth, v = 0;
|
|
44
|
-
let l = parseInt(d);
|
|
45
|
-
l = l - e.deltaY, l < h && (l = h), l > v && (l = v), r.style.transform = `translateX(${l}px)`;
|
|
46
|
-
}
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
_(
|
|
51
|
-
() => n.children,
|
|
52
|
-
() => {
|
|
53
|
-
n.children.forEach((e) => {
|
|
54
|
-
e.children || (e.children = []);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
), _(
|
|
58
|
-
() => n.defaultKey,
|
|
59
|
-
() => {
|
|
60
|
-
s.value = n.defaultKey;
|
|
61
|
-
}
|
|
62
|
-
), R(() => {
|
|
63
|
-
n.defaultKey && (s.value = n.defaultKey);
|
|
64
|
-
});
|
|
65
|
-
const b = {
|
|
66
|
-
changeActiveKey: (e) => {
|
|
67
|
-
s.value = e;
|
|
68
|
-
},
|
|
69
|
-
type: "formTabs"
|
|
70
|
-
};
|
|
71
|
-
if (n.name) {
|
|
72
|
-
const e = U(n.name, b);
|
|
73
|
-
W(() => {
|
|
74
|
-
e();
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return w(b), (e, t) => {
|
|
78
|
-
const o = g("el-tab-pane"), r = g("el-tabs");
|
|
79
|
-
return c(), u(r, B({
|
|
80
|
-
ref: "tabsRef",
|
|
81
|
-
id: e.id
|
|
82
|
-
}, e.$attrs, {
|
|
83
|
-
modelValue: s.value,
|
|
84
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
|
85
|
-
onTabChange: k,
|
|
86
|
-
"before-leave": E,
|
|
87
|
-
addable: e.styleType === "btn",
|
|
88
|
-
class: {
|
|
89
|
-
"modal-type": e.styleType === "modal",
|
|
90
|
-
"btn-type": e.styleType === "btn",
|
|
91
|
-
"form-item-tabs": e.styleType === "normal"
|
|
92
|
-
}
|
|
93
|
-
}), {
|
|
94
|
-
"add-icon": f(() => [
|
|
95
|
-
i("div", j, [
|
|
96
|
-
i("div", q, [
|
|
97
|
-
m(K, { btns: e.dynamicBtns }, null, 8, ["btns"])
|
|
98
|
-
]),
|
|
99
|
-
i("div", G, [
|
|
100
|
-
m(K, { btns: e.staticBtns }, null, 8, ["btns"])
|
|
101
|
-
])
|
|
102
|
-
])
|
|
103
|
-
]),
|
|
104
|
-
default: f(() => [
|
|
105
|
-
(c(!0), C(A, null, S(e.children, (a, d) => (c(), u(o, B({
|
|
106
|
-
key: a.name,
|
|
107
|
-
ref_for: !0
|
|
108
|
-
}, a), {
|
|
109
|
-
label: f(() => [
|
|
110
|
-
i("div", {
|
|
111
|
-
class: "tab-label",
|
|
112
|
-
style: { height: "100%" },
|
|
113
|
-
onWheel: L
|
|
114
|
-
}, [
|
|
115
|
-
e.styleType === "btn" && a.icon ? (c(), u(P, {
|
|
116
|
-
key: 0,
|
|
117
|
-
name: a.icon,
|
|
118
|
-
size: a.iconSize || "x-small"
|
|
119
|
-
}, null, 8, ["name", "size"])) : T("", !0),
|
|
120
|
-
i("span", H, $(a.label), 1),
|
|
121
|
-
d !== e.children.length - 1 ? (c(), C("span", {
|
|
122
|
-
key: 1,
|
|
123
|
-
class: x(["divider", {
|
|
124
|
-
"divider-hidden": s.value === a.name || I.value === d
|
|
125
|
-
}])
|
|
126
|
-
}, null, 2)) : T("", !0)
|
|
127
|
-
], 32)
|
|
128
|
-
]),
|
|
129
|
-
default: f(() => [
|
|
130
|
-
m(D(X), {
|
|
131
|
-
list: a.children
|
|
132
|
-
}, null, 8, ["list"])
|
|
133
|
-
]),
|
|
134
|
-
_: 2
|
|
135
|
-
}, 1040))), 128))
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 16, ["id", "modelValue", "addable", "class"]);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
}), ne = /* @__PURE__ */ Y(J, [["__scopeId", "data-v-18bebfff"]]);
|
|
142
|
-
export {
|
|
143
|
-
ne as default
|
|
144
|
-
};
|