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
|
@@ -0,0 +1,144 @@
|
|
|
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 f, mergeProps as B, withCtx as u, 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-eppeEuhm.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], b = o.offsetWidth - r.offsetWidth, v = 0;
|
|
44
|
+
let l = parseInt(d);
|
|
45
|
+
l = l - e.deltaY, l < b && (l = b), 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 h = {
|
|
66
|
+
changeActiveKey: (e) => {
|
|
67
|
+
s.value = e;
|
|
68
|
+
},
|
|
69
|
+
type: "formTabs"
|
|
70
|
+
};
|
|
71
|
+
if (n.name) {
|
|
72
|
+
const e = U(n.name, h);
|
|
73
|
+
W(() => {
|
|
74
|
+
e();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return w(h), (e, t) => {
|
|
78
|
+
const o = g("el-tab-pane"), r = g("el-tabs");
|
|
79
|
+
return c(), f(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": u(() => [
|
|
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: u(() => [
|
|
105
|
+
(c(!0), C(A, null, S(e.children, (a, d) => (c(), f(o, B({
|
|
106
|
+
key: a.name,
|
|
107
|
+
ref_for: !0
|
|
108
|
+
}, a), {
|
|
109
|
+
label: u(() => [
|
|
110
|
+
i("div", {
|
|
111
|
+
class: "tab-label",
|
|
112
|
+
style: { height: "100%" },
|
|
113
|
+
onWheel: L
|
|
114
|
+
}, [
|
|
115
|
+
e.styleType === "btn" && a.icon ? (c(), f(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: u(() => [
|
|
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-451434bf"]]);
|
|
142
|
+
export {
|
|
143
|
+
ne as default
|
|
144
|
+
};
|
|
@@ -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 n, createElementVNode as y, toDisplayString as r, createBlock as V, mergeProps as k } from "vue";
|
|
2
|
-
import { u as x, _ as B } from "./index-
|
|
2
|
+
import { u as x, _ as B } from "./index-eppeEuhm.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const M = {
|
|
5
5
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, ref as f, resolveComponent as v, openBlock as r, createElementBlock as l, normalizeStyle as p, createVNode as a, withCtx as C, withDirectives as g, createElementVNode as x, normalizeClass as i, unref as _, createCommentVNode as c, vShow as b } from "vue";
|
|
2
|
-
import { c as B, b as S, I as d, _ as k } from "./index-
|
|
2
|
+
import { c as B, b as S, I as d, _ as k } from "./index-eppeEuhm.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const E = {
|
|
5
5
|
key: 0,
|