asiaint-lowcode 3.0.28 → 3.0.29
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 +102 -102
- package/dist/index.d.ts +2 -0
- package/dist/lazy/{Card-z13j1Hea.js → Card-DC29FDX0.js} +27 -27
- package/dist/lazy/{Cascader-DWyRds69.js → Cascader-ynXC2py2.js} +1 -1
- package/dist/lazy/{Checkbox-3gB5hjyk.js → Checkbox-DbCbYMgE.js} +2 -2
- package/dist/lazy/{Collapse-DkUlLs0R.js → Collapse-D-DkJKK_.js} +1 -1
- package/dist/lazy/{Component-HY_qpC4f.js → Component-AyllmifL.js} +1 -1
- package/dist/lazy/{Component-BsEoVYpP.js → Component-COI-Vewg.js} +1 -1
- package/dist/lazy/{Component-CAvvEMpL.js → Component-CYGKA320.js} +1 -1
- package/dist/lazy/{Component-GCDvqVFC.js → Component-CtBNySho.js} +1 -1
- package/dist/lazy/{Component-0iFTdS1B.js → Component-TPXwPgci.js} +1 -1
- package/dist/lazy/{Component-DW72e4Jb.js → Component-vM8DnyN7.js} +1 -1
- package/dist/lazy/CurdCard-D8e8RjoO.js +134 -0
- package/dist/lazy/{Custom-DshTuvc5.js → Custom-CP7UoexG.js} +1 -1
- package/dist/lazy/{FormList-C1KaQTKh.js → FormList-CYKFwLvo.js} +1 -1
- package/dist/lazy/{Grid-B-lk78Kc.js → Grid-DqT5TeyU.js} +1 -1
- package/dist/lazy/{Inline-DY_MkpWE.js → Inline-B2GAnRtb.js} +1 -1
- package/dist/lazy/{JsonEdit-oms5o4ul.js → JsonEdit-SqMogX3X.js} +1 -1
- package/dist/lazy/{ObjGroup-lbddbIgn.js → ObjGroup-DKCzJuoV.js} +1 -1
- package/dist/lazy/{OfferDetails-D7-vYQNI.js → OfferDetails-BpcEJ98j.js} +1 -1
- package/dist/lazy/{Radio-BbVL3tLa.js → Radio-yHhpDPXt.js} +2 -2
- package/dist/lazy/{SearchSelect-BSOc9F7u.js → SearchSelect-BkqPjcw3.js} +2 -2
- package/dist/lazy/{Select-Bx3fLJHb.js → Select-B6OVVv6A.js} +2 -2
- package/dist/lazy/{Table-DvXSy6kA.js → Table-C1bDvrDG.js} +91 -86
- package/dist/lazy/{Tabs-aWYBYNFZ.js → Tabs-Dys0UU7d.js} +1 -1
- package/dist/lazy/Wrapper-Chs8m9ee.js +35 -0
- package/dist/lazy/{index-NvXPJKiV.js → index-lhkKWFxt.js} +3836 -3821
- package/dist/lazy/{useSelect-m1WvnmsS.js → useSelect-C_IaRlWX.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/CurdCard-BSerZjDf.js +0 -137
- package/dist/lazy/Wrapper-DVfkWuvI.js +0 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as de, inject as
|
|
2
|
-
import { $ as ke, h as we, _ as ze, f as Se, I as Re, C as be, b as Be } from "./index-
|
|
1
|
+
import { defineComponent as de, inject as B, ref as f, useTemplateRef as ge, readonly as he, toRefs as ye, onUnmounted as fe, resolveComponent as N, openBlock as u, createElementBlock as g, normalizeClass as _, withDirectives as V, createElementVNode as m, createVNode as S, unref as c, withCtx as C, createBlock as z, createCommentVNode as v, Fragment as R, renderList as $, toDisplayString as b, withModifiers as me, createTextVNode as Ce, vShow as F, mergeProps as ve } from "vue";
|
|
2
|
+
import { $ as ke, h as we, _ as ze, f as Se, I as Re, C as be, b as Be } from "./index-lhkKWFxt.js";
|
|
3
3
|
import { ElTable as Ne } from "element-plus";
|
|
4
|
-
const
|
|
4
|
+
const _e = { class: "empty-content" }, Pe = ["title"], De = ["title"], Te = ["title"], Me = { class: "row-btn-wrapper" }, Ee = /* @__PURE__ */ de({
|
|
5
5
|
__name: "Table",
|
|
6
6
|
props: {
|
|
7
7
|
title: {},
|
|
@@ -33,84 +33,84 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
|
|
|
33
33
|
name: {}
|
|
34
34
|
},
|
|
35
35
|
setup(U, { expose: j }) {
|
|
36
|
-
const
|
|
37
|
-
r.value[e] && (r.value[e][t] =
|
|
36
|
+
const a = U, h = B("ruleModule", void 0), y = B("pageMethodMap", {}), P = B(ke), d = P ? P.translateFn : null, k = f(), H = (e, t, o) => {
|
|
37
|
+
r.value[e] && (r.value[e][t] = o);
|
|
38
38
|
}, K = (e, t) => {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
}, L = (e, t,
|
|
39
|
+
const o = a.columns.find((i) => i.key === e);
|
|
40
|
+
o && (o.hidden = !t);
|
|
41
|
+
}, L = (e, t, o) => {
|
|
42
42
|
try {
|
|
43
|
-
|
|
43
|
+
h[e.onClick](y, t, o);
|
|
44
44
|
} catch (i) {
|
|
45
45
|
console.error(i);
|
|
46
46
|
}
|
|
47
47
|
}, A = (e) => {
|
|
48
|
-
if (
|
|
48
|
+
if (a.rowClick)
|
|
49
49
|
try {
|
|
50
|
-
|
|
50
|
+
h[a.rowClick](y, e);
|
|
51
51
|
} catch (t) {
|
|
52
52
|
console.error(t);
|
|
53
53
|
}
|
|
54
54
|
}, W = (e) => {
|
|
55
|
-
if (
|
|
55
|
+
if (a.rowDbClick)
|
|
56
56
|
try {
|
|
57
|
-
|
|
57
|
+
h[a.rowDbClick](y, e);
|
|
58
58
|
} catch (t) {
|
|
59
59
|
console.error(t);
|
|
60
60
|
}
|
|
61
|
-
}, q =
|
|
61
|
+
}, q = f([]), G = (e) => {
|
|
62
62
|
q.value = e;
|
|
63
63
|
}, I = () => {
|
|
64
64
|
var e;
|
|
65
|
-
(e =
|
|
66
|
-
}, J = () => r.value, D =
|
|
67
|
-
if (D.value = e, !!
|
|
65
|
+
(e = k.value) == null || e.clearSelection();
|
|
66
|
+
}, J = () => r.value, D = f(), O = (e) => {
|
|
67
|
+
if (D.value = e, !!a.handleCurrentChange)
|
|
68
68
|
try {
|
|
69
|
-
|
|
69
|
+
h[a.handleCurrentChange](y, e);
|
|
70
70
|
} catch (t) {
|
|
71
71
|
console.error(t);
|
|
72
72
|
}
|
|
73
73
|
}, Q = () => D.value, X = () => {
|
|
74
74
|
var e;
|
|
75
|
-
return (e =
|
|
75
|
+
return (e = k.value) == null ? void 0 : e.getSelectionRows();
|
|
76
76
|
}, Y = async () => !0, Z = (e, t) => {
|
|
77
77
|
var i;
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const o = (i = a.topBtns) == null ? void 0 : i.find((w) => w.key === e);
|
|
79
|
+
o && (o.hidden = t);
|
|
80
80
|
}, x = (e, t) => {
|
|
81
81
|
var i;
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
}, T =
|
|
82
|
+
const o = (i = a.rowBtns) == null ? void 0 : i.find((w) => w.key === e);
|
|
83
|
+
o && (o.condition = !t);
|
|
84
|
+
}, T = f(0), ee = (e) => {
|
|
85
85
|
T.value = e;
|
|
86
|
-
}, l =
|
|
86
|
+
}, l = f({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), te = () => l.value, ne = (e) => {
|
|
87
87
|
let t = !1;
|
|
88
88
|
return e.pageNum > -1 && (l.value.pageNum !== e.pageNum && (t = !0), l.value.pageNum = e.pageNum), e.pageSize > -1 && (l.value.pageSize !== e.pageSize && (t = !0), l.value.pageSize = e.pageSize), { pagination: l.value, isChange: t };
|
|
89
89
|
}, ae = (e) => {
|
|
90
|
-
if (l.value.pageNum = 1, l.value.pageSize = e, !!
|
|
90
|
+
if (l.value.pageNum = 1, l.value.pageSize = e, !!a.sizeChange)
|
|
91
91
|
try {
|
|
92
|
-
|
|
92
|
+
h[a.sizeChange](y, l.value);
|
|
93
93
|
} catch (t) {
|
|
94
94
|
console.error(t);
|
|
95
95
|
}
|
|
96
96
|
}, oe = (e) => {
|
|
97
|
-
if (l.value.pageNum = e, !!
|
|
97
|
+
if (l.value.pageNum = e, !!a.pageChange)
|
|
98
98
|
try {
|
|
99
|
-
|
|
99
|
+
h[a.pageChange](y, l.value);
|
|
100
100
|
} catch (t) {
|
|
101
101
|
console.error(t);
|
|
102
102
|
}
|
|
103
103
|
}, le = (e) => {
|
|
104
104
|
var t;
|
|
105
|
-
(t =
|
|
105
|
+
(t = k.value) == null || t.setCurrentRow(e);
|
|
106
106
|
}, ie = (e) => {
|
|
107
107
|
var t;
|
|
108
|
-
(t =
|
|
109
|
-
}, re = (e, t,
|
|
110
|
-
|
|
111
|
-
i.key === e && i[t] && (i[t] =
|
|
108
|
+
(t = k.value) == null || t.setCurrentRow(r.value[e]);
|
|
109
|
+
}, re = (e, t, o) => {
|
|
110
|
+
a.columns.forEach((i) => {
|
|
111
|
+
i.key === e && i[t] && (i[t] = o);
|
|
112
112
|
});
|
|
113
|
-
}, r =
|
|
113
|
+
}, r = f([]), se = (e) => {
|
|
114
114
|
r.value = e;
|
|
115
115
|
}, ue = (e = {}) => {
|
|
116
116
|
r.value.push(e);
|
|
@@ -119,7 +119,7 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
|
|
|
119
119
|
}, pe = async () => {
|
|
120
120
|
r.value = [...r.value];
|
|
121
121
|
}, M = ge("rootRef"), E = he({
|
|
122
|
-
...ye(
|
|
122
|
+
...ye(a),
|
|
123
123
|
setCellData: H,
|
|
124
124
|
clearSelection: I,
|
|
125
125
|
getData: J,
|
|
@@ -142,24 +142,24 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
|
|
|
142
142
|
rootRef: M,
|
|
143
143
|
type: "table"
|
|
144
144
|
});
|
|
145
|
-
if (
|
|
146
|
-
const e = we(
|
|
145
|
+
if (a.name) {
|
|
146
|
+
const e = we(a.name, E);
|
|
147
147
|
fe(() => {
|
|
148
148
|
e();
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
return j(E), (e, t) => {
|
|
152
|
-
const
|
|
153
|
-
return e.hidden ?
|
|
152
|
+
const o = N("el-table-column"), i = N("el-button"), w = N("el-pagination");
|
|
153
|
+
return e.hidden ? v("", !0) : (u(), g("div", {
|
|
154
154
|
key: 0,
|
|
155
|
-
class:
|
|
155
|
+
class: _(["table-render", { tableBorder: e.displayType === "table" }]),
|
|
156
156
|
ref_key: "rootRef",
|
|
157
157
|
ref: M
|
|
158
158
|
}, [
|
|
159
|
-
V(
|
|
160
|
-
S(
|
|
159
|
+
V(m("div", null, [
|
|
160
|
+
S(c(Ne), {
|
|
161
161
|
ref_key: "tableRef",
|
|
162
|
-
ref:
|
|
162
|
+
ref: k,
|
|
163
163
|
data: r.value,
|
|
164
164
|
"highlight-current-row": e.highlightCurrentRow,
|
|
165
165
|
"row-key": e.rowKey,
|
|
@@ -170,104 +170,109 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
|
|
|
170
170
|
onCurrentChange: O,
|
|
171
171
|
height: e.height
|
|
172
172
|
}, {
|
|
173
|
-
empty:
|
|
174
|
-
|
|
175
|
-
S(
|
|
173
|
+
empty: C(() => [
|
|
174
|
+
m("div", _e, [
|
|
175
|
+
S(c(ze), {
|
|
176
176
|
name: "tableEmpty",
|
|
177
177
|
style: { width: 56, height: 56 }
|
|
178
178
|
}),
|
|
179
|
-
t[2] || (t[2] =
|
|
179
|
+
t[2] || (t[2] = m("div", null, "No data available,please check", -1))
|
|
180
180
|
])
|
|
181
181
|
]),
|
|
182
|
-
default:
|
|
183
|
-
e.multipleSelection ? (u(),
|
|
182
|
+
default: C(() => [
|
|
183
|
+
e.multipleSelection ? (u(), z(o, {
|
|
184
184
|
key: 0,
|
|
185
185
|
type: "selection",
|
|
186
186
|
width: "55"
|
|
187
|
-
})) :
|
|
188
|
-
(u(!0),
|
|
189
|
-
key:
|
|
187
|
+
})) : v("", !0),
|
|
188
|
+
(u(!0), g(R, null, $(e.columns, (n) => (u(), g(R, {
|
|
189
|
+
key: n.key
|
|
190
190
|
}, [
|
|
191
|
-
|
|
191
|
+
n.hidden ? v("", !0) : (u(), z(o, {
|
|
192
192
|
key: 0,
|
|
193
|
-
prop:
|
|
194
|
-
"min-width":
|
|
195
|
-
fixed:
|
|
193
|
+
prop: n.key,
|
|
194
|
+
"min-width": n.minWidth,
|
|
195
|
+
fixed: n.fixed || !1
|
|
196
196
|
}, {
|
|
197
|
-
header:
|
|
198
|
-
|
|
197
|
+
header: C(() => [
|
|
198
|
+
m("div", {
|
|
199
199
|
class: "text-ellipsis",
|
|
200
|
-
title:
|
|
201
|
-
},
|
|
200
|
+
title: n.label
|
|
201
|
+
}, b(n.label), 9, Pe)
|
|
202
202
|
]),
|
|
203
|
-
default:
|
|
204
|
-
|
|
203
|
+
default: C(({ row: p }) => [
|
|
204
|
+
n.type === "link" ? (u(), g("div", {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "text-ellipsis link-style",
|
|
207
|
+
title: c(d) ? c(d)(n.key, p) : p[n.key]
|
|
208
|
+
}, b(c(d) ? c(d)(n.key, p) : p[n.key]), 9, De)) : (u(), g("div", {
|
|
209
|
+
key: 1,
|
|
205
210
|
class: "text-ellipsis",
|
|
206
|
-
title:
|
|
207
|
-
},
|
|
211
|
+
title: c(d) ? c(d)(n.key, p) : p[n.key]
|
|
212
|
+
}, b(c(d) ? c(d)(n.key, p) : p[n.key]), 9, Te))
|
|
208
213
|
]),
|
|
209
214
|
_: 2
|
|
210
215
|
}, 1032, ["prop", "min-width", "fixed"]))
|
|
211
216
|
], 64))), 128)),
|
|
212
|
-
e.rowBtns && e.rowBtns.length > 0 ? (u(),
|
|
217
|
+
e.rowBtns && e.rowBtns.length > 0 ? (u(), z(o, {
|
|
213
218
|
key: 1,
|
|
214
219
|
label: "Action",
|
|
215
220
|
fixed: "right",
|
|
216
221
|
align: "left"
|
|
217
222
|
}, {
|
|
218
|
-
default:
|
|
219
|
-
|
|
220
|
-
(u(!0),
|
|
223
|
+
default: C(({ row: n, $index: p }) => [
|
|
224
|
+
m("div", Me, [
|
|
225
|
+
(u(!0), g(R, null, $(e.rowBtns, (s) => (u(), g(R, {
|
|
221
226
|
key: s.key
|
|
222
227
|
}, [
|
|
223
|
-
s.condition === void 0 || s.condition === null ||
|
|
228
|
+
s.condition === void 0 || s.condition === null || c(Se)(s.condition, { $row: n }) ? (u(), z(i, {
|
|
224
229
|
key: 0,
|
|
225
230
|
disabled: s.disabled,
|
|
226
231
|
link: "",
|
|
227
232
|
size: "small",
|
|
228
233
|
type: s.type,
|
|
229
|
-
onClick: me((
|
|
234
|
+
onClick: me((Ve) => L(s, n, p), ["stop"])
|
|
230
235
|
}, {
|
|
231
|
-
default:
|
|
232
|
-
s.icon ? (u(),
|
|
236
|
+
default: C(() => [
|
|
237
|
+
s.icon ? (u(), z(Re, {
|
|
233
238
|
key: 0,
|
|
234
239
|
name: s.icon.name,
|
|
235
240
|
color: s.icon.color,
|
|
236
|
-
class:
|
|
237
|
-
}, null, 8, ["name", "color", "class"])) :
|
|
238
|
-
Ce(" " +
|
|
241
|
+
class: _({ "btn-icon": s.text || s.label })
|
|
242
|
+
}, null, 8, ["name", "color", "class"])) : v("", !0),
|
|
243
|
+
Ce(" " + b(s.label), 1)
|
|
239
244
|
]),
|
|
240
245
|
_: 2
|
|
241
|
-
}, 1032, ["disabled", "type", "onClick"])) :
|
|
246
|
+
}, 1032, ["disabled", "type", "onClick"])) : v("", !0)
|
|
242
247
|
], 64))), 128))
|
|
243
248
|
])
|
|
244
249
|
]),
|
|
245
250
|
_: 1
|
|
246
|
-
})) :
|
|
251
|
+
})) : v("", !0)
|
|
247
252
|
]),
|
|
248
253
|
_: 1
|
|
249
254
|
}, 8, ["data", "highlight-current-row", "row-key", "stripe", "height"])
|
|
250
255
|
], 512), [
|
|
251
256
|
[F, e.displayType === "table"]
|
|
252
257
|
]),
|
|
253
|
-
V(S(be, ve({ data: r.value },
|
|
258
|
+
V(S(be, ve({ data: r.value }, a), null, 16, ["data"]), [
|
|
254
259
|
[F, e.displayType === "card"]
|
|
255
260
|
]),
|
|
256
|
-
|
|
257
|
-
class:
|
|
261
|
+
m("div", {
|
|
262
|
+
class: _(["pagination-wrapper", {
|
|
258
263
|
hidePagination: e.hiddenPagination || r.value.length === 0,
|
|
259
264
|
cardlistPadding: e.displayType === "card"
|
|
260
265
|
}])
|
|
261
266
|
}, [
|
|
262
|
-
S(
|
|
267
|
+
S(w, {
|
|
263
268
|
layout: "total,sizes, prev, pager, next,jumper",
|
|
264
269
|
total: T.value,
|
|
265
270
|
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
266
271
|
"default-page-size": e.defaultPageSize,
|
|
267
272
|
"current-page": l.value.pageNum,
|
|
268
|
-
"onUpdate:currentPage": t[0] || (t[0] = (
|
|
273
|
+
"onUpdate:currentPage": t[0] || (t[0] = (n) => l.value.pageNum = n),
|
|
269
274
|
"page-size": l.value.pageSize,
|
|
270
|
-
"onUpdate:pageSize": t[1] || (t[1] = (
|
|
275
|
+
"onUpdate:pageSize": t[1] || (t[1] = (n) => l.value.pageSize = n),
|
|
271
276
|
"pager-count": e.pagerCount,
|
|
272
277
|
onSizeChange: ae,
|
|
273
278
|
onCurrentChange: oe
|
|
@@ -276,7 +281,7 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
|
|
|
276
281
|
], 2));
|
|
277
282
|
};
|
|
278
283
|
}
|
|
279
|
-
}),
|
|
284
|
+
}), je = /* @__PURE__ */ Be(Ee, [["__scopeId", "data-v-95cc0dd0"]]);
|
|
280
285
|
export {
|
|
281
|
-
|
|
286
|
+
je as default
|
|
282
287
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
|
|
2
|
-
import { a as V } from "./index-
|
|
2
|
+
import { a as V } from "./index-lhkKWFxt.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const w = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Tabs",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as t, resolveComponent as n, openBlock as a, createElementBlock as r, createVNode as l, withCtx as s, withDirectives as p, createElementVNode as i, normalizeStyle as c, normalizeClass as m, unref as _, vShow as d } from "vue";
|
|
2
|
+
import { a as f, b as u } from "./index-lhkKWFxt.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const y = /* @__PURE__ */ t({
|
|
5
|
+
__name: "Wrapper",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
style: { type: [Boolean, null, String, Object, Array] },
|
|
9
|
+
type: {},
|
|
10
|
+
collapse: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
setup(h) {
|
|
13
|
+
return (e, v) => {
|
|
14
|
+
const o = n("el-collapse-transition");
|
|
15
|
+
return a(), r("div", null, [
|
|
16
|
+
l(o, null, {
|
|
17
|
+
default: s(() => [
|
|
18
|
+
p(i("div", {
|
|
19
|
+
style: c(e.style),
|
|
20
|
+
class: m({ normal: e.type === "normal" })
|
|
21
|
+
}, [
|
|
22
|
+
l(_(f), { list: e.children }, null, 8, ["list"])
|
|
23
|
+
], 6), [
|
|
24
|
+
[d, !e.collapse]
|
|
25
|
+
])
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
})
|
|
29
|
+
]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}), w = /* @__PURE__ */ u(y, [["__scopeId", "data-v-5bfa4aa2"]]);
|
|
33
|
+
export {
|
|
34
|
+
w as default
|
|
35
|
+
};
|