asiaint-lowcode 3.1.104 → 3.1.106
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 +122 -122
- package/dist/index.d.ts +9 -2
- package/dist/lazy/{Card-BYi5RX-U.js → Card-BnkGooCH.js} +1 -1
- package/dist/lazy/{Cascader-DSc-tBXD.js → Cascader-DDnKXZFw.js} +1 -1
- package/dist/lazy/{Checkbox-BwVl_kLE.js → Checkbox-czM-ZkuP.js} +2 -2
- package/dist/lazy/{Collapse-BzBLO7eG.js → Collapse-TuSmNEJL.js} +1 -1
- package/dist/lazy/{Component-E8xzou7u.js → Component-7iUPyf6m.js} +1 -1
- package/dist/lazy/{Component-DKewZdkK.js → Component-Ckdbglgc.js} +1 -1
- package/dist/lazy/{Component-B6yFkqDM.js → Component-DzyOQl88.js} +1 -1
- package/dist/lazy/{Component-CmG7-A0E.js → Component-_5Sjh1nu.js} +1 -1
- package/dist/lazy/{Component-BbpttgSN.js → Component-xtUDj28A.js} +1 -1
- package/dist/lazy/{CurdCard-DUSKyIdd.js → CurdCard-BYzHrepq.js} +1 -1
- package/dist/lazy/{Custom-BtPzeAeT.js → Custom-CAIAv5aR.js} +1 -1
- package/dist/lazy/{DatePicker-B1avvVbv.js → DatePicker-CRFvFkIT.js} +1 -1
- package/dist/lazy/{DragList-DHzvqu30.js → DragList-BFk2_FmY.js} +1 -1
- package/dist/lazy/{FilterSearch-eAr0kyOc.js → FilterSearch-3_YF-vaq.js} +1 -1
- package/dist/lazy/{FloatCurd-BG9jysxr.js → FloatCurd-CuP0MxGk.js} +1 -1
- package/dist/lazy/{FormList-BQ2YeLlT.js → FormList-a_HdsBBG.js} +1 -1
- package/dist/lazy/{Grid-H1k8eWXm.js → Grid-CJ_6rGX8.js} +1 -1
- package/dist/lazy/{InfiniteScroll-Btx3gGPM.js → InfiniteScroll-DeERrBPp.js} +1 -1
- package/dist/lazy/{Inline-Brfx20E1.js → Inline-B4qlOTl_.js} +1 -1
- package/dist/lazy/{JsonEdit-BsmnASE5.js → JsonEdit-Xu0CvKkj.js} +1 -1
- package/dist/lazy/{LogList-RBP8AlYN.js → LogList-gUrCWb_T.js} +1 -1
- package/dist/lazy/{ObjGroup-B3568-Jm.js → ObjGroup-kx0i49ao.js} +1 -1
- package/dist/lazy/{OfferDetails-BvZ4ztZi.js → OfferDetails-BazN0cRP.js} +1 -1
- package/dist/lazy/Pagination-qtZ3j7lV.js +112 -0
- package/dist/lazy/{Progress-xe_ZWV8a.js → Progress-unyrNYS9.js} +1 -1
- package/dist/lazy/{Radio-DvvfD8rF.js → Radio-sUFgShSt.js} +2 -2
- package/dist/lazy/{SearchSelect-0BeIO2Kd.js → SearchSelect-CU-fPxxL.js} +2 -2
- package/dist/lazy/{Select-tTMv8Jr2.js → Select-CUnjp2YK.js} +2 -2
- package/dist/lazy/{Table-DUJ6Aj9o.js → Table-DOXhgBFn.js} +1 -1
- package/dist/lazy/Tabs-Do3Rmueh.js +130 -0
- package/dist/lazy/{TextArea-neOL4Tfb.js → TextArea-Cd_0HR9D.js} +1 -1
- package/dist/lazy/{Wrapper-B8feAer3.js → Wrapper-wxfNZZS3.js} +1 -1
- package/dist/lazy/{index-B-_zXaVx.js → index-Drjh5gb-.js} +488 -483
- package/dist/lazy/{useSelect-CxSvB0SH.js → useSelect-Cn0VNv0F.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Pagination-W8rSWg2_.js +0 -70
- package/dist/lazy/Tabs-cha1ej62.js +0 -147
package/package.json
CHANGED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as s, readonly as C, onUnmounted as v, resolveComponent as S, openBlock as h, createElementBlock as P, normalizeStyle as N, createVNode as _ } from "vue";
|
|
2
|
-
import { c as B, j, _ as w } from "./index-B-_zXaVx.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const M = /* @__PURE__ */ y({
|
|
5
|
-
__name: "Pagination",
|
|
6
|
-
props: {
|
|
7
|
-
pageSizes: {},
|
|
8
|
-
defaultPageSize: {},
|
|
9
|
-
paginationLayout: {},
|
|
10
|
-
hiddenPagination: { type: Boolean },
|
|
11
|
-
pagerCount: {},
|
|
12
|
-
style: { type: [Boolean, null, String, Object, Array] },
|
|
13
|
-
sizeChange: {},
|
|
14
|
-
pageChange: {},
|
|
15
|
-
name: {}
|
|
16
|
-
},
|
|
17
|
-
setup(u, { expose: l }) {
|
|
18
|
-
const t = u, { ruleModule: p, pageMethodMap: r } = B(), i = s(0), c = (e) => {
|
|
19
|
-
i.value = e;
|
|
20
|
-
}, a = s({ pageNum: 1, pageSize: t.defaultPageSize || 5 }), m = () => a.value, z = async (e) => {
|
|
21
|
-
if (a.value.pageNum = 1, a.value.pageSize = e, !!t.sizeChange)
|
|
22
|
-
try {
|
|
23
|
-
await p[t.sizeChange](r, a.value);
|
|
24
|
-
} catch (n) {
|
|
25
|
-
console.error(n);
|
|
26
|
-
}
|
|
27
|
-
}, d = async (e) => {
|
|
28
|
-
if (a.value.pageNum = e, !!t.pageChange)
|
|
29
|
-
try {
|
|
30
|
-
await p[t.pageChange](r, a.value);
|
|
31
|
-
} catch (n) {
|
|
32
|
-
console.error(n);
|
|
33
|
-
}
|
|
34
|
-
}, g = C({
|
|
35
|
-
getPagination: m,
|
|
36
|
-
setTotal: c,
|
|
37
|
-
type: "pagination"
|
|
38
|
-
});
|
|
39
|
-
if (t.name) {
|
|
40
|
-
const e = j(t.name, g);
|
|
41
|
-
v(() => {
|
|
42
|
-
e();
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return l(g), (e, n) => {
|
|
46
|
-
const f = S("el-pagination");
|
|
47
|
-
return h(), P("div", {
|
|
48
|
-
class: "pagination-wrapper",
|
|
49
|
-
style: N(e.style)
|
|
50
|
-
}, [
|
|
51
|
-
_(f, {
|
|
52
|
-
layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
|
|
53
|
-
total: i.value,
|
|
54
|
-
"page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
|
|
55
|
-
"default-page-size": e.defaultPageSize,
|
|
56
|
-
"current-page": a.value.pageNum,
|
|
57
|
-
"onUpdate:currentPage": n[0] || (n[0] = (o) => a.value.pageNum = o),
|
|
58
|
-
"page-size": a.value.pageSize,
|
|
59
|
-
"onUpdate:pageSize": n[1] || (n[1] = (o) => a.value.pageSize = o),
|
|
60
|
-
"pager-count": Number(e.pagerCount) || 5,
|
|
61
|
-
onSizeChange: z,
|
|
62
|
-
onCurrentChange: d
|
|
63
|
-
}, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
64
|
-
], 4);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}), L = /* @__PURE__ */ w(M, [["__scopeId", "data-v-0cc06d1f"]]);
|
|
68
|
-
export {
|
|
69
|
-
L as default
|
|
70
|
-
};
|
|
@@ -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-B-_zXaVx.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-e27a5838"]]);
|
|
145
|
-
export {
|
|
146
|
-
Q as default
|
|
147
|
-
};
|