asiaint-lowcode 3.0.30 → 3.0.33
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 +125 -125
- package/dist/index.d.ts +1 -0
- package/dist/lazy/{Card-CbehVl9_.js → Card-CBrL-lfq.js} +1 -1
- package/dist/lazy/{Cascader-8c-hC66Q.js → Cascader-B-lZfCap.js} +1 -1
- package/dist/lazy/{Checkbox-B6af4S0J.js → Checkbox-YO_0wBKc.js} +2 -2
- package/dist/lazy/{Collapse-AYFBTLq-.js → Collapse-BlH5sRWv.js} +1 -1
- package/dist/lazy/{Component-CG9-c5gd.js → Component-09uMPQXo.js} +1 -1
- package/dist/lazy/{Component-tLQlrGB3.js → Component-BCfLKjK8.js} +1 -1
- package/dist/lazy/{Component-fzK7wQlj.js → Component-Bl19KoSv.js} +1 -1
- package/dist/lazy/{Component-t0tb9C5C.js → Component-CK_IFBCD.js} +1 -1
- package/dist/lazy/{Component-CPXd3jfW.js → Component-D8B2QjBe.js} +1 -1
- package/dist/lazy/{Component-CwSm0XAw.js → Component-b97O_1Tl.js} +1 -1
- package/dist/lazy/{CurdCard-BOP82hzx.js → CurdCard-DTv68TEH.js} +1 -1
- package/dist/lazy/{Custom-D0Tfs7Js.js → Custom-Cu1dz0F5.js} +1 -1
- package/dist/lazy/{FormList-dkFHZA51.js → FormList-DbrUeW7x.js} +1 -1
- package/dist/lazy/{Grid-JIjEUyvd.js → Grid-Bg52fX8Z.js} +1 -1
- package/dist/lazy/{Inline-C3MSBCPC.js → Inline-JoP0Kz2Z.js} +1 -1
- package/dist/lazy/{JsonEdit-mVoJS-To.js → JsonEdit-B07NWENB.js} +1 -1
- package/dist/lazy/{ObjGroup-CP3mP-v0.js → ObjGroup-a2USDXVL.js} +1 -1
- package/dist/lazy/{OfferDetails-BFqz7-kS.js → OfferDetails-Dwry8T2e.js} +1 -1
- package/dist/lazy/{Radio-Bz7j70D-.js → Radio-bAObj-SF.js} +2 -2
- package/dist/lazy/{SearchSelect-pG2nWWys.js → SearchSelect-yvRqORip.js} +2 -2
- package/dist/lazy/{Select-BmYCnq9t.js → Select-B8CtrHsk.js} +2 -2
- package/dist/lazy/Table-7R5XEA27.js +300 -0
- package/dist/lazy/{Tabs-CtcEmmuH.js → Tabs-4wVyNH_D.js} +1 -1
- package/dist/lazy/{Wrapper-FhgmfTE3.js → Wrapper-6_mhBiQ0.js} +1 -1
- package/dist/lazy/{index-D6g75Cy0.js → index-C8n7TbR6.js} +3982 -3957
- package/dist/lazy/useSelect-B3zM60ey.js +61 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Table-DDvp_k46.js +0 -287
- package/dist/lazy/useSelect-CPWqgOdc.js +0 -58
package/package.json
CHANGED
|
@@ -1,287 +0,0 @@
|
|
|
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-D6g75Cy0.js";
|
|
3
|
-
import { ElTable as Ne } from "element-plus";
|
|
4
|
-
const _e = { class: "empty-content" }, Pe = ["title"], De = ["title"], Te = ["title"], Me = { class: "row-btn-wrapper" }, Ee = /* @__PURE__ */ de({
|
|
5
|
-
__name: "Table",
|
|
6
|
-
props: {
|
|
7
|
-
title: {},
|
|
8
|
-
key: {},
|
|
9
|
-
rulePath: {},
|
|
10
|
-
rowKey: {},
|
|
11
|
-
showDynamicSearch: { type: Boolean },
|
|
12
|
-
multipleSelection: { type: Boolean },
|
|
13
|
-
highlightCurrentRow: { type: Boolean },
|
|
14
|
-
"highlight-current-row": { type: Boolean },
|
|
15
|
-
stripe: { type: Boolean },
|
|
16
|
-
rowClick: {},
|
|
17
|
-
rowDbClick: {},
|
|
18
|
-
sizeChange: {},
|
|
19
|
-
pageChange: {},
|
|
20
|
-
topBtns: {},
|
|
21
|
-
rowBtns: {},
|
|
22
|
-
columns: {},
|
|
23
|
-
hidden: { type: Boolean },
|
|
24
|
-
hiddenPagination: { type: Boolean },
|
|
25
|
-
handleCurrentChange: {},
|
|
26
|
-
pageSizes: {},
|
|
27
|
-
pagerCount: {},
|
|
28
|
-
defaultPageSize: {},
|
|
29
|
-
typeSwitch: { type: Boolean },
|
|
30
|
-
displayType: { default: "table" },
|
|
31
|
-
onMounted: {},
|
|
32
|
-
height: {},
|
|
33
|
-
name: {}
|
|
34
|
-
},
|
|
35
|
-
setup(U, { expose: j }) {
|
|
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
|
-
}, K = (e, t) => {
|
|
39
|
-
const o = a.columns.find((i) => i.key === e);
|
|
40
|
-
o && (o.hidden = !t);
|
|
41
|
-
}, L = (e, t, o) => {
|
|
42
|
-
try {
|
|
43
|
-
h[e.onClick](y, t, o);
|
|
44
|
-
} catch (i) {
|
|
45
|
-
console.error(i);
|
|
46
|
-
}
|
|
47
|
-
}, A = (e) => {
|
|
48
|
-
if (a.rowClick)
|
|
49
|
-
try {
|
|
50
|
-
h[a.rowClick](y, e);
|
|
51
|
-
} catch (t) {
|
|
52
|
-
console.error(t);
|
|
53
|
-
}
|
|
54
|
-
}, W = (e) => {
|
|
55
|
-
if (a.rowDbClick)
|
|
56
|
-
try {
|
|
57
|
-
h[a.rowDbClick](y, e);
|
|
58
|
-
} catch (t) {
|
|
59
|
-
console.error(t);
|
|
60
|
-
}
|
|
61
|
-
}, q = f([]), G = (e) => {
|
|
62
|
-
q.value = e;
|
|
63
|
-
}, I = () => {
|
|
64
|
-
var e;
|
|
65
|
-
(e = k.value) == null || e.clearSelection();
|
|
66
|
-
}, J = () => r.value, D = f(), O = (e) => {
|
|
67
|
-
if (D.value = e, !!a.handleCurrentChange)
|
|
68
|
-
try {
|
|
69
|
-
h[a.handleCurrentChange](y, e);
|
|
70
|
-
} catch (t) {
|
|
71
|
-
console.error(t);
|
|
72
|
-
}
|
|
73
|
-
}, Q = () => D.value, X = () => {
|
|
74
|
-
var e;
|
|
75
|
-
return (e = k.value) == null ? void 0 : e.getSelectionRows();
|
|
76
|
-
}, Y = async () => !0, Z = (e, t) => {
|
|
77
|
-
var i;
|
|
78
|
-
const o = (i = a.topBtns) == null ? void 0 : i.find((w) => w.key === e);
|
|
79
|
-
o && (o.hidden = t);
|
|
80
|
-
}, x = (e, t) => {
|
|
81
|
-
var i;
|
|
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
|
-
T.value = e;
|
|
86
|
-
}, l = f({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), te = () => l.value, ne = (e) => {
|
|
87
|
-
let t = !1;
|
|
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
|
-
}, ae = (e) => {
|
|
90
|
-
if (l.value.pageNum = 1, l.value.pageSize = e, !!a.sizeChange)
|
|
91
|
-
try {
|
|
92
|
-
h[a.sizeChange](y, l.value);
|
|
93
|
-
} catch (t) {
|
|
94
|
-
console.error(t);
|
|
95
|
-
}
|
|
96
|
-
}, oe = (e) => {
|
|
97
|
-
if (l.value.pageNum = e, !!a.pageChange)
|
|
98
|
-
try {
|
|
99
|
-
h[a.pageChange](y, l.value);
|
|
100
|
-
} catch (t) {
|
|
101
|
-
console.error(t);
|
|
102
|
-
}
|
|
103
|
-
}, le = (e) => {
|
|
104
|
-
var t;
|
|
105
|
-
(t = k.value) == null || t.setCurrentRow(e);
|
|
106
|
-
}, ie = (e) => {
|
|
107
|
-
var 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
|
-
});
|
|
113
|
-
}, r = f([]), se = (e) => {
|
|
114
|
-
r.value = e;
|
|
115
|
-
}, ue = (e = {}) => {
|
|
116
|
-
r.value.push(e);
|
|
117
|
-
}, ce = (e) => {
|
|
118
|
-
e >= 0 && e < r.value.length && r.value.splice(e, 1);
|
|
119
|
-
}, pe = async () => {
|
|
120
|
-
r.value = [...r.value];
|
|
121
|
-
}, M = ge("rootRef"), E = he({
|
|
122
|
-
...ye(a),
|
|
123
|
-
setCellData: H,
|
|
124
|
-
clearSelection: I,
|
|
125
|
-
getData: J,
|
|
126
|
-
getCurrentRow: Q,
|
|
127
|
-
getSelectedRows: X,
|
|
128
|
-
addRow: ue,
|
|
129
|
-
deleteRow: ce,
|
|
130
|
-
refresh: pe,
|
|
131
|
-
validate: Y,
|
|
132
|
-
setData: se,
|
|
133
|
-
selectRow: le,
|
|
134
|
-
selectRowNum: ie,
|
|
135
|
-
setTotal: ee,
|
|
136
|
-
getPagination: te,
|
|
137
|
-
setPagination: ne,
|
|
138
|
-
setTopBtnHidden: Z,
|
|
139
|
-
setColVisible: K,
|
|
140
|
-
setColumn: re,
|
|
141
|
-
setRowsBtnHidden: x,
|
|
142
|
-
rootRef: M,
|
|
143
|
-
type: "table"
|
|
144
|
-
});
|
|
145
|
-
if (a.name) {
|
|
146
|
-
const e = we(a.name, E);
|
|
147
|
-
fe(() => {
|
|
148
|
-
e();
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
return j(E), (e, t) => {
|
|
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
|
-
key: 0,
|
|
155
|
-
class: _(["table-render", { tableBorder: e.displayType === "table" }]),
|
|
156
|
-
ref_key: "rootRef",
|
|
157
|
-
ref: M
|
|
158
|
-
}, [
|
|
159
|
-
V(m("div", null, [
|
|
160
|
-
S(c(Ne), {
|
|
161
|
-
ref_key: "tableRef",
|
|
162
|
-
ref: k,
|
|
163
|
-
data: r.value,
|
|
164
|
-
"highlight-current-row": e.highlightCurrentRow,
|
|
165
|
-
"row-key": e.rowKey,
|
|
166
|
-
stripe: e.stripe,
|
|
167
|
-
onRowClick: A,
|
|
168
|
-
onRowDblclick: W,
|
|
169
|
-
onSelectionChange: G,
|
|
170
|
-
onCurrentChange: O,
|
|
171
|
-
height: e.height
|
|
172
|
-
}, {
|
|
173
|
-
empty: C(() => [
|
|
174
|
-
m("div", _e, [
|
|
175
|
-
S(c(ze), {
|
|
176
|
-
name: "tableEmpty",
|
|
177
|
-
style: { width: 56, height: 56 }
|
|
178
|
-
}),
|
|
179
|
-
t[2] || (t[2] = m("div", null, "No data available,please check", -1))
|
|
180
|
-
])
|
|
181
|
-
]),
|
|
182
|
-
default: C(() => [
|
|
183
|
-
e.multipleSelection ? (u(), z(o, {
|
|
184
|
-
key: 0,
|
|
185
|
-
type: "selection",
|
|
186
|
-
width: "55"
|
|
187
|
-
})) : v("", !0),
|
|
188
|
-
(u(!0), g(R, null, $(e.columns, (n) => (u(), g(R, {
|
|
189
|
-
key: n.key
|
|
190
|
-
}, [
|
|
191
|
-
n.hidden ? v("", !0) : (u(), z(o, {
|
|
192
|
-
key: 0,
|
|
193
|
-
prop: n.key,
|
|
194
|
-
"min-width": n.minWidth,
|
|
195
|
-
fixed: n.fixed || !1
|
|
196
|
-
}, {
|
|
197
|
-
header: C(() => [
|
|
198
|
-
m("div", {
|
|
199
|
-
class: "text-ellipsis",
|
|
200
|
-
title: n.label
|
|
201
|
-
}, b(n.label), 9, Pe)
|
|
202
|
-
]),
|
|
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,
|
|
210
|
-
class: "text-ellipsis",
|
|
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))
|
|
213
|
-
]),
|
|
214
|
-
_: 2
|
|
215
|
-
}, 1032, ["prop", "min-width", "fixed"]))
|
|
216
|
-
], 64))), 128)),
|
|
217
|
-
e.rowBtns && e.rowBtns.length > 0 ? (u(), z(o, {
|
|
218
|
-
key: 1,
|
|
219
|
-
label: "Action",
|
|
220
|
-
fixed: "right",
|
|
221
|
-
align: "left"
|
|
222
|
-
}, {
|
|
223
|
-
default: C(({ row: n, $index: p }) => [
|
|
224
|
-
m("div", Me, [
|
|
225
|
-
(u(!0), g(R, null, $(e.rowBtns, (s) => (u(), g(R, {
|
|
226
|
-
key: s.key
|
|
227
|
-
}, [
|
|
228
|
-
s.condition === void 0 || s.condition === null || c(Se)(s.condition, { $row: n }) ? (u(), z(i, {
|
|
229
|
-
key: 0,
|
|
230
|
-
disabled: s.disabled,
|
|
231
|
-
link: "",
|
|
232
|
-
size: "small",
|
|
233
|
-
type: s.type,
|
|
234
|
-
onClick: me((Ve) => L(s, n, p), ["stop"])
|
|
235
|
-
}, {
|
|
236
|
-
default: C(() => [
|
|
237
|
-
s.icon ? (u(), z(Re, {
|
|
238
|
-
key: 0,
|
|
239
|
-
name: s.icon.name,
|
|
240
|
-
color: s.icon.color,
|
|
241
|
-
class: _({ "btn-icon": s.text || s.label })
|
|
242
|
-
}, null, 8, ["name", "color", "class"])) : v("", !0),
|
|
243
|
-
Ce(" " + b(s.label), 1)
|
|
244
|
-
]),
|
|
245
|
-
_: 2
|
|
246
|
-
}, 1032, ["disabled", "type", "onClick"])) : v("", !0)
|
|
247
|
-
], 64))), 128))
|
|
248
|
-
])
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
})) : v("", !0)
|
|
252
|
-
]),
|
|
253
|
-
_: 1
|
|
254
|
-
}, 8, ["data", "highlight-current-row", "row-key", "stripe", "height"])
|
|
255
|
-
], 512), [
|
|
256
|
-
[F, e.displayType === "table"]
|
|
257
|
-
]),
|
|
258
|
-
V(S(be, ve({ data: r.value }, a), null, 16, ["data"]), [
|
|
259
|
-
[F, e.displayType === "card"]
|
|
260
|
-
]),
|
|
261
|
-
m("div", {
|
|
262
|
-
class: _(["pagination-wrapper", {
|
|
263
|
-
hidePagination: e.hiddenPagination || r.value.length === 0,
|
|
264
|
-
cardlistPadding: e.displayType === "card"
|
|
265
|
-
}])
|
|
266
|
-
}, [
|
|
267
|
-
S(w, {
|
|
268
|
-
layout: "total,sizes, prev, pager, next,jumper",
|
|
269
|
-
total: T.value,
|
|
270
|
-
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
271
|
-
"default-page-size": e.defaultPageSize,
|
|
272
|
-
"current-page": l.value.pageNum,
|
|
273
|
-
"onUpdate:currentPage": t[0] || (t[0] = (n) => l.value.pageNum = n),
|
|
274
|
-
"page-size": l.value.pageSize,
|
|
275
|
-
"onUpdate:pageSize": t[1] || (t[1] = (n) => l.value.pageSize = n),
|
|
276
|
-
"pager-count": e.pagerCount,
|
|
277
|
-
onSizeChange: ae,
|
|
278
|
-
onCurrentChange: oe
|
|
279
|
-
}, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
280
|
-
], 2)
|
|
281
|
-
], 2));
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
}), je = /* @__PURE__ */ Be(Ee, [["__scopeId", "data-v-95cc0dd0"]]);
|
|
285
|
-
export {
|
|
286
|
-
je as default
|
|
287
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { inject as D, ref as v, toRaw as h, onMounted as P, watch as i } from "vue";
|
|
2
|
-
import { $ as g, u as q, l as y } from "./index-D6g75Cy0.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const w = () => {
|
|
5
|
-
const { fetchOptionsFn: t } = D(g);
|
|
6
|
-
return t;
|
|
7
|
-
}, b = (t) => {
|
|
8
|
-
const o = q(), c = w(), a = v([]), r = v(!1), n = y.debounce(async () => {
|
|
9
|
-
if (c && t.apiParams && !Object.values(t.apiParams).some((e) => e === void 0)) {
|
|
10
|
-
r.value = !0;
|
|
11
|
-
try {
|
|
12
|
-
const e = await c({
|
|
13
|
-
formItemProps: h(t),
|
|
14
|
-
formSchema: h(o.schema)
|
|
15
|
-
});
|
|
16
|
-
a.value = [...a.value, ...e];
|
|
17
|
-
} finally {
|
|
18
|
-
r.value = !1;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}, 300);
|
|
22
|
-
P(() => {
|
|
23
|
-
const { mode: e, options: s = [] } = t;
|
|
24
|
-
e === "static" && (a.value = s), e === "remote" && n();
|
|
25
|
-
}), i(
|
|
26
|
-
() => t.apiParams,
|
|
27
|
-
(e, s) => {
|
|
28
|
-
y.isEqual(e, s) || (a.value = [], n());
|
|
29
|
-
}
|
|
30
|
-
), i(
|
|
31
|
-
() => t.options,
|
|
32
|
-
(e = []) => {
|
|
33
|
-
t.mode === "static" && (a.value = e);
|
|
34
|
-
}
|
|
35
|
-
), i(
|
|
36
|
-
() => t.mode,
|
|
37
|
-
(e) => {
|
|
38
|
-
e === "static" && (a.value = t.options || []), e === "remote" && (a.value = [], n());
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
const { mode: A, dependentFields: f } = t;
|
|
42
|
-
if (A === "remote" && Array.isArray(f))
|
|
43
|
-
for (const e of f)
|
|
44
|
-
i(
|
|
45
|
-
() => o.formValues[e],
|
|
46
|
-
(s, m) => {
|
|
47
|
-
n();
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
return { selectChange: (e) => {
|
|
51
|
-
const { valueKey: s = "value", multiple: m, name: d } = t;
|
|
52
|
-
let l = {};
|
|
53
|
-
m && Array.isArray(e) ? l = a.value.filter((u) => e.includes(u[s])) : l = a.value.find((u) => u[s] === e) || {}, o.selectData && d && o.updateSelectData(d, l);
|
|
54
|
-
}, currentOptions: a, loading: r, fetchData: n };
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
b as u
|
|
58
|
-
};
|