asiaint-lowcode 3.1.111 → 3.1.112
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 +137 -137
- package/dist/index.d.ts +68 -5
- package/dist/lazy/{Card-DyXHNFdy.js → Card-BG49Wwxf.js} +1 -1
- package/dist/lazy/{Cascader-BVucRN0H.js → Cascader-DdfE1hp3.js} +1 -1
- package/dist/lazy/{Checkbox-BMFgDXOr.js → Checkbox-_vvLrcjZ.js} +2 -2
- package/dist/lazy/{Collapse-eTChPZNK.js → Collapse-Da9D01cw.js} +1 -1
- package/dist/lazy/{Component-D-vNI8lX.js → Component-B49SI1Fa.js} +1 -1
- package/dist/lazy/{Component-CH-4C1YZ.js → Component-BmgOcG9_.js} +1 -1
- package/dist/lazy/{Component-0oVEf4Di.js → Component-DdStE2LL.js} +1 -1
- package/dist/lazy/{Component-HPDtYzcZ.js → Component-DiRs3B36.js} +1 -1
- package/dist/lazy/{Component-CSR1r2iR.js → Component-DvSIghyb.js} +1 -1
- package/dist/lazy/{CurdCard-Bzlpnhzu.js → CurdCard-BrCKjI_U.js} +1 -1
- package/dist/lazy/{Custom-B73DCyYU.js → Custom-Cuda1LQ4.js} +1 -1
- package/dist/lazy/{DatePicker-ixriDass.js → DatePicker-DlK3Ow-v.js} +1 -1
- package/dist/lazy/{DragList-w2taF145.js → DragList-BS2f0h1l.js} +13 -13
- package/dist/lazy/{FilterSearch-cBInuqzr.js → FilterSearch-CNSQ6LIs.js} +16 -16
- package/dist/lazy/{FloatCurd-BI9x4lA9.js → FloatCurd-DXdeqsEY.js} +8 -8
- package/dist/lazy/{FormList-DU-cCZIK.js → FormList-BXfol3EJ.js} +1 -1
- package/dist/lazy/{Grid-BPr2GN2m.js → Grid-BZv7CqvV.js} +1 -1
- package/dist/lazy/{InfiniteScroll-BGcC0Sz-.js → InfiniteScroll-Cy636yjL.js} +1 -1
- package/dist/lazy/{Inline-CnP7DWVe.js → Inline-D-QKhvxw.js} +1 -1
- package/dist/lazy/{JsonEdit-D-7vs21w.js → JsonEdit-iY0i2z8J.js} +1 -1
- package/dist/lazy/{LogList-Dh2jlIxR.js → LogList-tmM9s5p5.js} +1 -1
- package/dist/lazy/{ObjGroup-DTEhyjSI.js → ObjGroup-BG_PYHJj.js} +1 -1
- package/dist/lazy/{OfferDetails-Dpjd8sm2.js → OfferDetails-Bdq3tHiO.js} +1 -1
- package/dist/lazy/{Pagination-CrGBhVt_.js → Pagination-CT7VVKhQ.js} +5 -5
- package/dist/lazy/{Progress--AkjQb-p.js → Progress-BVyWSyBk.js} +1 -1
- package/dist/lazy/{Radio-Cfwts9dr.js → Radio-DSRaAkoA.js} +2 -2
- package/dist/lazy/{SearchSelect-DJAqL0nk.js → SearchSelect-Dkgmgcyg.js} +2 -2
- package/dist/lazy/{Select-CIRgD28C.js → Select-BxPuBNKh.js} +2 -2
- package/dist/lazy/{Table-BCmwO7Ss.js → Table-DjyNYuB2.js} +1 -1
- package/dist/lazy/Tabs-CS-PV1p_.js +144 -0
- package/dist/lazy/{TextArea-D56cg88M.js → TextArea-C0K4c6lM.js} +1 -1
- package/dist/lazy/{Wrapper-CsaG-7Tr.js → Wrapper-D3kssN21.js} +1 -1
- package/dist/lazy/{index-DOOPBwet.js → index-eppeEuhm.js} +2861 -2854
- package/dist/lazy/{useSelect-Byn6pj5I.js → useSelect-D2jJvbvP.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Tabs-C5_14Wxz.js +0 -130
package/package.json
CHANGED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, ref as L, computed as N, watch as v, onMounted as z, resolveComponent as _, openBlock as d, createBlock as f, mergeProps as B, withCtx as u, createElementVNode as c, createVNode as p, createElementBlock as g, Fragment as M, renderList as W, createCommentVNode as C, toDisplayString as R, normalizeClass as S, unref as $ } from "vue";
|
|
2
|
-
import { c as D, B as T, I as F, b as x, _ as A } from "./index-DOOPBwet.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const P = { class: "right-icon-wrapper" }, U = { class: "dynamic-icon-wrapper" }, X = { class: "static-icon-wrapper" }, Y = { class: "tab-label-text" }, j = /* @__PURE__ */ K({
|
|
5
|
-
__name: "Tabs",
|
|
6
|
-
props: {
|
|
7
|
-
id: {},
|
|
8
|
-
children: {},
|
|
9
|
-
defaultKey: {},
|
|
10
|
-
tabChange: {},
|
|
11
|
-
onBeforeLeave: {},
|
|
12
|
-
styleType: { default: "normal" },
|
|
13
|
-
staticBtns: {},
|
|
14
|
-
dynamicBtns: {}
|
|
15
|
-
},
|
|
16
|
-
setup(V) {
|
|
17
|
-
const t = V, s = L(""), w = N(() => {
|
|
18
|
-
const e = t.children.findIndex((n) => n.name === s.value);
|
|
19
|
-
return e - 1 >= 0 ? e - 1 : null;
|
|
20
|
-
}), { ruleModule: m, pageMethodMap: y } = D();
|
|
21
|
-
function I(e) {
|
|
22
|
-
if (t.tabChange)
|
|
23
|
-
try {
|
|
24
|
-
m[t.tabChange](y, e);
|
|
25
|
-
} catch (n) {
|
|
26
|
-
console.error(n);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
async function k(e, n) {
|
|
30
|
-
if (t.onBeforeLeave)
|
|
31
|
-
try {
|
|
32
|
-
return await m[t.onBeforeLeave](y, e, n);
|
|
33
|
-
} catch (o) {
|
|
34
|
-
console.error(o);
|
|
35
|
-
}
|
|
36
|
-
return !0;
|
|
37
|
-
}
|
|
38
|
-
const E = (e) => {
|
|
39
|
-
if (t.id) {
|
|
40
|
-
const n = document.getElementById(t.id);
|
|
41
|
-
if (n) {
|
|
42
|
-
const o = n.getElementsByClassName("el-tabs__nav-scroll")[0], r = n.getElementsByClassName("el-tabs__nav")[0], i = r.style.transform.split("(")[1].split(")")[0].split("px")[0], b = o.offsetWidth - r.offsetWidth, h = 0;
|
|
43
|
-
let l = parseInt(i);
|
|
44
|
-
l = l - e.deltaY, l < b && (l = b), l > h && (l = h), r.style.transform = `translateX(${l}px)`;
|
|
45
|
-
}
|
|
46
|
-
e.preventDefault();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
return v(
|
|
50
|
-
() => t.children,
|
|
51
|
-
() => {
|
|
52
|
-
t.children.forEach((e) => {
|
|
53
|
-
e.children || (e.children = []);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
), v(
|
|
57
|
-
() => t.defaultKey,
|
|
58
|
-
() => {
|
|
59
|
-
s.value = t.defaultKey;
|
|
60
|
-
}
|
|
61
|
-
), z(() => {
|
|
62
|
-
t.defaultKey && (s.value = t.defaultKey);
|
|
63
|
-
}), (e, n) => {
|
|
64
|
-
const o = _("el-tab-pane"), r = _("el-tabs");
|
|
65
|
-
return d(), f(r, B({
|
|
66
|
-
ref: "tabsRef",
|
|
67
|
-
id: e.id
|
|
68
|
-
}, e.$attrs, {
|
|
69
|
-
modelValue: s.value,
|
|
70
|
-
"onUpdate:modelValue": n[0] || (n[0] = (a) => s.value = a),
|
|
71
|
-
onTabChange: I,
|
|
72
|
-
"before-leave": k,
|
|
73
|
-
addable: e.styleType === "btn",
|
|
74
|
-
class: {
|
|
75
|
-
"modal-type": e.styleType === "modal",
|
|
76
|
-
"btn-type": e.styleType === "btn",
|
|
77
|
-
"form-item-tabs": e.styleType === "normal"
|
|
78
|
-
}
|
|
79
|
-
}), {
|
|
80
|
-
"add-icon": u(() => [
|
|
81
|
-
c("div", P, [
|
|
82
|
-
c("div", U, [
|
|
83
|
-
p(T, { btns: e.dynamicBtns }, null, 8, ["btns"])
|
|
84
|
-
]),
|
|
85
|
-
c("div", X, [
|
|
86
|
-
p(T, { btns: e.staticBtns }, null, 8, ["btns"])
|
|
87
|
-
])
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
default: u(() => [
|
|
91
|
-
(d(!0), g(M, null, W(e.children, (a, i) => (d(), f(o, B({
|
|
92
|
-
key: a.name,
|
|
93
|
-
ref_for: !0
|
|
94
|
-
}, a), {
|
|
95
|
-
label: u(() => [
|
|
96
|
-
c("div", {
|
|
97
|
-
class: "tab-label",
|
|
98
|
-
style: { height: "100%" },
|
|
99
|
-
onWheel: E
|
|
100
|
-
}, [
|
|
101
|
-
e.styleType === "btn" && a.icon ? (d(), f(F, {
|
|
102
|
-
key: 0,
|
|
103
|
-
name: a.icon,
|
|
104
|
-
size: a.iconSize || "x-small"
|
|
105
|
-
}, null, 8, ["name", "size"])) : C("", !0),
|
|
106
|
-
c("span", Y, R(a.label), 1),
|
|
107
|
-
i !== e.children.length - 1 ? (d(), g("span", {
|
|
108
|
-
key: 1,
|
|
109
|
-
class: S(["divider", {
|
|
110
|
-
"divider-hidden": s.value === a.name || w.value === i
|
|
111
|
-
}])
|
|
112
|
-
}, null, 2)) : C("", !0)
|
|
113
|
-
], 32)
|
|
114
|
-
]),
|
|
115
|
-
default: u(() => [
|
|
116
|
-
p($(x), {
|
|
117
|
-
list: a.children
|
|
118
|
-
}, null, 8, ["list"])
|
|
119
|
-
]),
|
|
120
|
-
_: 2
|
|
121
|
-
}, 1040))), 128))
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 16, ["id", "modelValue", "addable", "class"]);
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
}), J = /* @__PURE__ */ A(j, [["__scopeId", "data-v-86c82e1b"]]);
|
|
128
|
-
export {
|
|
129
|
-
J as default
|
|
130
|
-
};
|