asiaint-lowcode 3.1.103 → 3.1.105
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.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +30 -30
- package/dist/index.d.ts +2 -2
- package/dist/lazy/{Card-DgzxcSTh.js → Card-hCrEqojS.js} +1 -1
- package/dist/lazy/{Cascader-hy4tMhgf.js → Cascader-BSJ6XLSx.js} +1 -1
- package/dist/lazy/{Checkbox-CEMk4jQf.js → Checkbox-BQRbMPEc.js} +2 -2
- package/dist/lazy/{Collapse-B3j7HKIZ.js → Collapse-BfEHVHG-.js} +1 -1
- package/dist/lazy/{Component-r-PwWvCI.js → Component-Bym2Zh0e.js} +1 -1
- package/dist/lazy/{Component-DU-D_jtW.js → Component-CMhOYnYE.js} +1 -1
- package/dist/lazy/{Component-CYI0yTkN.js → Component-Covo-neG.js} +1 -1
- package/dist/lazy/{Component-BZg64IJL.js → Component-Cvuu7_yU.js} +1 -1
- package/dist/lazy/{Component-chi-vKO_.js → Component-DDA_U5-4.js} +1 -1
- package/dist/lazy/{CurdCard-CujyUz_K.js → CurdCard-DQRWF2Hm.js} +1 -1
- package/dist/lazy/{Custom-K7Nv0mMN.js → Custom-wQtdgabt.js} +1 -1
- package/dist/lazy/{DatePicker-J4FfXpJS.js → DatePicker-CykIEvfO.js} +1 -1
- package/dist/lazy/{DragList-Bnnv0hNa.js → DragList-B8Fr5NYB.js} +1 -1
- package/dist/lazy/{FilterSearch-BQEo2Kga.js → FilterSearch-6TuMZS2A.js} +1 -1
- package/dist/lazy/{FloatCurd-CO-Ge0YK.js → FloatCurd-CVcTrWVi.js} +1 -1
- package/dist/lazy/{FormList-B-uxilyP.js → FormList-AS6edduN.js} +1 -1
- package/dist/lazy/{Grid-RcW_f8Y3.js → Grid-9fUmnF0T.js} +1 -1
- package/dist/lazy/{InfiniteScroll-BHfxrYPb.js → InfiniteScroll-pj-P9xrS.js} +1 -1
- package/dist/lazy/{Inline-DnEivGXj.js → Inline-DHRvy0qZ.js} +1 -1
- package/dist/lazy/{JsonEdit-C9pScW5g.js → JsonEdit-bxDDbC7d.js} +1 -1
- package/dist/lazy/{LogList-BqPEJhVX.js → LogList-Dc-bsruh.js} +1 -1
- package/dist/lazy/{ObjGroup-C918M_6L.js → ObjGroup-eWqWdXBL.js} +1 -1
- package/dist/lazy/{OfferDetails-Do5CZ2Uw.js → OfferDetails-BWJIIEKI.js} +1 -1
- package/dist/lazy/{Pagination-oU6OMO5j.js → Pagination-DOHK_Nna.js} +1 -1
- package/dist/lazy/{Progress-BQx7fTDI.js → Progress-tHmKCsSj.js} +1 -1
- package/dist/lazy/{Radio-BnhHI_2M.js → Radio-BG2XEeWA.js} +2 -2
- package/dist/lazy/{SearchSelect-CWWA7v15.js → SearchSelect-Cg_OIbUm.js} +2 -2
- package/dist/lazy/{Select-DoYeriki.js → Select-Bz75JaZr.js} +2 -2
- package/dist/lazy/{Table-bXICsWRl.js → Table-B_zCXJdl.js} +1 -1
- package/dist/lazy/Tabs-XlvP3qOd.js +130 -0
- package/dist/lazy/{TextArea-BnVgg0Tz.js → TextArea-D9hNO-4s.js} +1 -1
- package/dist/lazy/{Wrapper-DXxbeFz0.js → Wrapper-Dz5sqPmy.js} +1 -1
- package/dist/lazy/{index-CGuF8LK3.js → index-CTlekA8r.js} +576 -573
- package/dist/lazy/{useSelect-MxgUFiHz.js → useSelect-MSYHrDeP.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Tabs-BQzsVcbe.js +0 -147
package/package.json
CHANGED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, ref as M, computed as W, watch as T, onMounted as $, resolveComponent as k, openBlock as l, createBlock as h, mergeProps as N, withCtx as f, createElementVNode as c, createElementBlock as o, Fragment as u, renderList as y, createVNode as b, createCommentVNode as p, toDisplayString as D, normalizeClass as F, unref as S } from "vue";
|
|
2
|
-
import { c as z, I as v, b as A, _ as P } from "./index-CGuF8LK3.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const R = { class: "right-icon-wrapper" }, U = { class: "dynamic-icon-wrapper" }, X = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "dynamic-icon-item"
|
|
7
|
-
}, Y = { class: "static-icon-wrapper" }, j = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "static-icon-item"
|
|
10
|
-
}, q = { class: "tab-label" }, x = { class: "tab-label-text" }, G = /* @__PURE__ */ L({
|
|
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(V) {
|
|
23
|
-
const t = V, r = M(""), w = W(() => {
|
|
24
|
-
const e = t.children.findIndex((a) => a.name === r.value);
|
|
25
|
-
return e - 1 >= 0 ? e - 1 : null;
|
|
26
|
-
}), { ruleModule: _, pageMethodMap: g } = z();
|
|
27
|
-
function I(e) {
|
|
28
|
-
if (t.tabChange)
|
|
29
|
-
try {
|
|
30
|
-
_[t.tabChange](g, e);
|
|
31
|
-
} catch (a) {
|
|
32
|
-
console.error(a);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
async function E(e, a) {
|
|
36
|
-
if (t.onBeforeLeave)
|
|
37
|
-
try {
|
|
38
|
-
return await _[t.onBeforeLeave](g, e, a);
|
|
39
|
-
} catch (d) {
|
|
40
|
-
console.error(d);
|
|
41
|
-
}
|
|
42
|
-
return !0;
|
|
43
|
-
}
|
|
44
|
-
const K = (e) => {
|
|
45
|
-
if (t.id) {
|
|
46
|
-
const a = document.getElementById(t.id);
|
|
47
|
-
if (a) {
|
|
48
|
-
const d = a.getElementsByClassName("el-tabs__nav-scroll")[0], i = a.getElementsByClassName("el-tabs__nav")[0], m = i.style.transform.split("(")[1].split(")")[0].split("px")[0], C = d.offsetWidth - i.offsetWidth, B = 0;
|
|
49
|
-
let s = parseInt(m);
|
|
50
|
-
s = s - e.deltaY, s < C && (s = C), s > B && (s = B), i.style.transform = `translateX(${s}px)`;
|
|
51
|
-
}
|
|
52
|
-
e.preventDefault();
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
return T(
|
|
56
|
-
() => t.children,
|
|
57
|
-
() => {
|
|
58
|
-
t.children.forEach((e) => {
|
|
59
|
-
e.children || (e.children = []);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
), T(
|
|
63
|
-
() => t.defaultKey,
|
|
64
|
-
() => {
|
|
65
|
-
r.value = t.defaultKey;
|
|
66
|
-
}
|
|
67
|
-
), $(() => {
|
|
68
|
-
t.defaultKey && (r.value = t.defaultKey);
|
|
69
|
-
}), (e, a) => {
|
|
70
|
-
const d = k("el-tab-pane"), i = k("el-tabs");
|
|
71
|
-
return l(), h(i, N({
|
|
72
|
-
onWheel: K,
|
|
73
|
-
id: e.id
|
|
74
|
-
}, e.$attrs, {
|
|
75
|
-
modelValue: r.value,
|
|
76
|
-
"onUpdate:modelValue": a[0] || (a[0] = (n) => r.value = n),
|
|
77
|
-
onTabChange: I,
|
|
78
|
-
"before-leave": E,
|
|
79
|
-
addable: e.styleType === "btn",
|
|
80
|
-
class: {
|
|
81
|
-
"modal-type": e.styleType === "modal",
|
|
82
|
-
"btn-type": e.styleType === "btn",
|
|
83
|
-
"form-item-tabs": e.styleType === "normal"
|
|
84
|
-
}
|
|
85
|
-
}), {
|
|
86
|
-
"add-icon": f(() => [
|
|
87
|
-
c("div", R, [
|
|
88
|
-
c("div", U, [
|
|
89
|
-
(l(!0), o(u, null, y(e.dynamicBtns, (n) => (l(), o(u, {
|
|
90
|
-
key: n.iconName
|
|
91
|
-
}, [
|
|
92
|
-
n.hidden ? p("", !0) : (l(), o("div", X, [
|
|
93
|
-
b(v, {
|
|
94
|
-
name: n.iconName
|
|
95
|
-
}, null, 8, ["name"])
|
|
96
|
-
]))
|
|
97
|
-
], 64))), 128))
|
|
98
|
-
]),
|
|
99
|
-
c("div", Y, [
|
|
100
|
-
(l(!0), o(u, null, y(e.staticBtns, (n) => (l(), o(u, {
|
|
101
|
-
key: n.iconName
|
|
102
|
-
}, [
|
|
103
|
-
n.hidden ? p("", !0) : (l(), o("div", j, [
|
|
104
|
-
b(v, {
|
|
105
|
-
name: n.iconName
|
|
106
|
-
}, null, 8, ["name"])
|
|
107
|
-
]))
|
|
108
|
-
], 64))), 128))
|
|
109
|
-
])
|
|
110
|
-
])
|
|
111
|
-
]),
|
|
112
|
-
default: f(() => [
|
|
113
|
-
(l(!0), o(u, null, y(e.children, (n, m) => (l(), h(d, N({
|
|
114
|
-
key: n.name,
|
|
115
|
-
ref_for: !0
|
|
116
|
-
}, n), {
|
|
117
|
-
label: f(() => [
|
|
118
|
-
c("div", q, [
|
|
119
|
-
e.styleType === "btn" && n.icon ? (l(), h(v, {
|
|
120
|
-
key: 0,
|
|
121
|
-
name: n.icon
|
|
122
|
-
}, null, 8, ["name"])) : p("", !0),
|
|
123
|
-
c("span", x, D(n.label), 1),
|
|
124
|
-
m !== e.children.length - 1 ? (l(), o("span", {
|
|
125
|
-
key: 1,
|
|
126
|
-
class: F(["divider", {
|
|
127
|
-
"divider-hidden": r.value === n.name || w.value === m
|
|
128
|
-
}])
|
|
129
|
-
}, null, 2)) : p("", !0)
|
|
130
|
-
])
|
|
131
|
-
]),
|
|
132
|
-
default: f(() => [
|
|
133
|
-
b(S(A), {
|
|
134
|
-
list: n.children
|
|
135
|
-
}, null, 8, ["list"])
|
|
136
|
-
]),
|
|
137
|
-
_: 2
|
|
138
|
-
}, 1040))), 128))
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}, 16, ["id", "modelValue", "addable", "class"]);
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
}), Q = /* @__PURE__ */ P(G, [["__scopeId", "data-v-3ce0e212"]]);
|
|
145
|
-
export {
|
|
146
|
-
Q as default
|
|
147
|
-
};
|