asiaint-lowcode 3.1.136 → 3.1.138
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/dist/asiaint-lowcode.d.ts +26 -13
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +158 -157
- package/dist/lazy/{Card-_QHrWfh1.js → Card-CWosU-Z3.js} +1 -1
- package/dist/lazy/{Cascader-CSS81vHb.js → Cascader-3RiO1ZT8.js} +5 -4
- package/dist/lazy/{Checkbox-DAApla45.js → Checkbox-BOLDm0rt.js} +3 -2
- package/dist/lazy/{Collapse-_FkmzGfa.js → Collapse-DYAJYpI0.js} +1 -1
- package/dist/lazy/{Component-DA4fNiKb.js → Component-BFFdXsmS.js} +1 -1
- package/dist/lazy/{Component-CopvG4ii.js → Component-DMLcCPNA.js} +1 -1
- package/dist/lazy/{Component-CjoqXHaM.js → Component-DPqFlzgV.js} +1 -1
- package/dist/lazy/{Component-D3p0iztO.js → Component-DdxtZm90.js} +1 -1
- package/dist/lazy/{Component-BoTXYxC9.js → Component-Den9lHoB.js} +1 -1
- package/dist/lazy/{CurdCard-CwkoYUjU.js → CurdCard-S7-E8b8h.js} +1 -1
- package/dist/lazy/{Custom-CkS4wS5a.js → Custom-DsAzpCGF.js} +1 -1
- package/dist/lazy/{DatePicker-CTscM3QD.js → DatePicker-eM_f4-Az.js} +1 -1
- package/dist/lazy/{DragList-Dnqi6G3I.js → DragList-CPRwmi2l.js} +1 -1
- package/dist/lazy/{FilterSearch-BSpH-2Lv.js → FilterSearch-D0HRJoPi.js} +1 -1
- package/dist/lazy/{FloatCurd-ljGcmC6W.js → FloatCurd-Cv75dqpC.js} +1 -1
- package/dist/lazy/{FormList-D7puBzTU.js → FormList-C4ro7qFu.js} +1 -1
- package/dist/lazy/{Grid-Pn2z-cPo.js → Grid-_drN9YjU.js} +1 -1
- package/dist/lazy/{InfiniteScroll-eztx5ree.js → InfiniteScroll-DxbAPWf0.js} +1 -1
- package/dist/lazy/{Inline-CegvT-Fd.js → Inline-Djl7NxVR.js} +1 -1
- package/dist/lazy/{JsonEdit-BDY-kDjg.js → JsonEdit-BOVzO61P.js} +1 -1
- package/dist/lazy/{LogList-CBkzwln7.js → LogList-CtfYZaek.js} +1 -1
- package/dist/lazy/{ObjGroup-UBhz9TtW.js → ObjGroup-LPgvdJXq.js} +1 -1
- package/dist/lazy/{OfferDetails-D4REtztW.js → OfferDetails-DGClz_eT.js} +2 -1
- package/dist/lazy/{Pagination-D0VE2g-_.js → Pagination-G8Hf9rwP.js} +1 -1
- package/dist/lazy/{Progress-YomjNyOG.js → Progress-B4HIprrl.js} +1 -1
- package/dist/lazy/{Radio-OBwJIsHr.js → Radio-hzjhNYJQ.js} +3 -2
- package/dist/lazy/{SearchSelect-D0WS8DvA.js → SearchSelect-Co4-W0wr.js} +7 -6
- package/dist/lazy/{Select-DdU6S88e.js → Select-DmYRJX_P.js} +33 -23
- package/dist/lazy/{Table-CkRwW1pF.js → Table-B1htBmIb.js} +26 -25
- package/dist/lazy/Tabs-B7gmaw5y.js +150 -0
- package/dist/lazy/{TextArea-Gyze6BKD.js → TextArea-_DQHgiiN.js} +1 -1
- package/dist/lazy/{Wrapper-DebHZiUt.js → Wrapper-gxFTNbyd.js} +1 -1
- package/dist/lazy/{index-Cg69BrL8.js → index-DWGVoK0b.js} +1155 -1146
- package/dist/lazy/{useSelect--vt9GSVO.js → useSelect-C-QCeZTS.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Tabs-YodEJRwl.js +0 -144
package/package.json
CHANGED
|
@@ -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
|
-
};
|