asiaint-lowcode 3.0.17 → 3.0.18
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 +76 -76
- package/dist/index.d.ts +2 -0
- package/dist/lazy/Card-BZBVb7aE.js +92 -0
- package/dist/lazy/{CardList-MgVKIygB.js → CardList-DwWiAo9-.js} +2 -2
- package/dist/lazy/{CardListItem-CKntC7cg.js → CardListItem-yhIgxbTe.js} +1 -1
- package/dist/lazy/{Cascader-CYH5Fi7i.js → Cascader-B4lz7iK6.js} +1 -1
- package/dist/lazy/{Checkbox-D53Paz5b.js → Checkbox-Bynb0NT0.js} +2 -2
- package/dist/lazy/{Collapse-Cmx5or4b.js → Collapse-G30hqmNm.js} +1 -1
- package/dist/lazy/{Component-DF8iAcIj.js → Component-B0hYH3vU.js} +1 -1
- package/dist/lazy/{Component-gsuTGjd3.js → Component-BeSgMnB2.js} +1 -1
- package/dist/lazy/{Component-D0dwgR6z.js → Component-CPdFFbsj.js} +11 -11
- package/dist/lazy/{Component-CGdDOPOy.js → Component-CWNB0Jlu.js} +1 -1
- package/dist/lazy/{Component-Cj1LHwcP.js → Component-DPvjrsCR.js} +1 -1
- package/dist/lazy/{Component-CU23NOb2.js → Component-fNOhYdFv.js} +1 -1
- package/dist/lazy/CurdCard-B7bGNxEj.js +107 -0
- package/dist/lazy/{Custom-_TKg63Y-.js → Custom-iAQ_31Jp.js} +1 -1
- package/dist/lazy/{FormList-BpRr23C5.js → FormList-paORw3Fb.js} +1 -1
- package/dist/lazy/{Grid-uJbOswN2.js → Grid-CAcJjpEy.js} +1 -1
- package/dist/lazy/{Inline-JPrJPoID.js → Inline-Dtx-csTe.js} +1 -1
- package/dist/lazy/{JsonEdit-BZR2tMmu.js → JsonEdit-CvdrWLHq.js} +1 -1
- package/dist/lazy/{ObjGroup-BFLXonc_.js → ObjGroup-Cjz4SzvJ.js} +1 -1
- package/dist/lazy/{OfferDetails-wBzkM5UY.js → OfferDetails-BGoovbJm.js} +2 -2
- package/dist/lazy/{Radio-DY3h8hvk.js → Radio-DKzZn31G.js} +2 -2
- package/dist/lazy/{SearchSelect-BA6DwHFz.js → SearchSelect-B1YX-Ao2.js} +2 -2
- package/dist/lazy/{Select-B5xgS3RP.js → Select-p4eyst_E.js} +2 -2
- package/dist/lazy/{Table-lhInsLy-.js → Table-CuJVitWt.js} +101 -102
- package/dist/lazy/{Tabs-DvbrjYdV.js → Tabs-10OyFGmb.js} +1 -1
- package/dist/lazy/{Wrapper-DOKiemVa.js → Wrapper-DauMa47J.js} +1 -1
- package/dist/lazy/{index-KOkHm1wc.js → index-DMmaR_UH.js} +1272 -1245
- package/dist/lazy/{useSelect-DnnrbcQO.js → useSelect-BsvU-jJC.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-C5_msSt_.js +0 -59
- package/dist/lazy/CurdCard-B837mmwu.js +0 -108
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { $ as ye, h as Ce, _ as ke, f as ve, I as we, b as ze } from "./index-
|
|
1
|
+
import { defineComponent as pe, inject as _, ref as f, useTemplateRef as de, readonly as ge, toRefs as he, onUnmounted as fe, resolveComponent as R, openBlock as c, createElementBlock as k, createVNode as v, unref as p, withCtx as u, createElementVNode as w, createBlock as z, createCommentVNode as m, Fragment as b, renderList as E, toDisplayString as B, normalizeClass as V, createTextVNode as me } from "vue";
|
|
2
|
+
import { $ as ye, h as Ce, _ as ke, f as ve, I as we, b as ze } from "./index-DMmaR_UH.js";
|
|
3
3
|
import { ElTable as Se } from "element-plus";
|
|
4
|
-
const Re = { class: "empty-content" },
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "pagination-wrapper"
|
|
7
|
-
}, Ne = /* @__PURE__ */ ue({
|
|
4
|
+
const Re = { class: "empty-content" }, be = { class: "text-ellipsis" }, _e = { class: "text-ellipsis" }, Be = /* @__PURE__ */ pe({
|
|
8
5
|
__name: "Table",
|
|
9
6
|
props: {
|
|
10
7
|
title: {},
|
|
@@ -30,125 +27,125 @@ const Re = { class: "empty-content" }, _e = { class: "text-ellipsis" }, be = { c
|
|
|
30
27
|
defaultPageSize: {},
|
|
31
28
|
name: {}
|
|
32
29
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const n =
|
|
30
|
+
setup($, { expose: F }) {
|
|
31
|
+
const n = $, d = _("ruleModule", void 0), g = _("pageMethodMap", {}), N = _(ye), S = N ? N.translateFn : null, y = f(), U = (e, t, o) => {
|
|
35
32
|
s.value[e] && (s.value[e][t] = o);
|
|
36
|
-
},
|
|
33
|
+
}, j = (e, t) => {
|
|
37
34
|
const o = n.columns.find((l) => l.key === e);
|
|
38
35
|
o && (o.hidden = !t);
|
|
39
|
-
},
|
|
36
|
+
}, H = (e, t, o) => {
|
|
40
37
|
try {
|
|
41
|
-
|
|
38
|
+
d[e.onClick](g, t, o);
|
|
42
39
|
} catch (l) {
|
|
43
40
|
console.error(l);
|
|
44
41
|
}
|
|
45
|
-
},
|
|
42
|
+
}, K = (e) => {
|
|
46
43
|
if (n.rowClick)
|
|
47
44
|
try {
|
|
48
|
-
|
|
45
|
+
d[n.rowClick](g, e);
|
|
49
46
|
} catch (t) {
|
|
50
47
|
console.error(t);
|
|
51
48
|
}
|
|
52
|
-
},
|
|
49
|
+
}, x = (e) => {
|
|
53
50
|
if (n.rowDbClick)
|
|
54
51
|
try {
|
|
55
|
-
|
|
52
|
+
d[n.rowDbClick](g, e);
|
|
56
53
|
} catch (t) {
|
|
57
54
|
console.error(t);
|
|
58
55
|
}
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
56
|
+
}, A = f([]), L = (e) => {
|
|
57
|
+
A.value = e;
|
|
58
|
+
}, W = () => {
|
|
62
59
|
var e;
|
|
63
|
-
(e =
|
|
64
|
-
},
|
|
60
|
+
(e = y.value) == null || e.clearSelection();
|
|
61
|
+
}, q = () => s.value, P = f(), G = (e) => {
|
|
65
62
|
if (P.value = e, !!n.handleCurrentChange)
|
|
66
63
|
try {
|
|
67
|
-
|
|
64
|
+
d[n.handleCurrentChange](g, e);
|
|
68
65
|
} catch (t) {
|
|
69
66
|
console.error(t);
|
|
70
67
|
}
|
|
71
|
-
},
|
|
68
|
+
}, I = () => P.value, J = () => {
|
|
72
69
|
var e;
|
|
73
|
-
return (e =
|
|
74
|
-
},
|
|
70
|
+
return (e = y.value) == null ? void 0 : e.getSelectionRows();
|
|
71
|
+
}, O = async () => !0, Q = (e, t) => {
|
|
75
72
|
var l;
|
|
76
|
-
const o = (l = n.topBtns) == null ? void 0 : l.find((
|
|
73
|
+
const o = (l = n.topBtns) == null ? void 0 : l.find((C) => C.key === e);
|
|
77
74
|
o && (o.hidden = t);
|
|
78
|
-
},
|
|
75
|
+
}, X = (e, t) => {
|
|
79
76
|
var l;
|
|
80
|
-
const o = (l = n.rowBtns) == null ? void 0 : l.find((
|
|
77
|
+
const o = (l = n.rowBtns) == null ? void 0 : l.find((C) => C.key === e);
|
|
81
78
|
o && (o.condition = !t);
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
}, r =
|
|
79
|
+
}, D = f(0), Y = (e) => {
|
|
80
|
+
D.value = e;
|
|
81
|
+
}, r = f({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), Z = () => r.value, ee = (e) => {
|
|
85
82
|
let t = !1;
|
|
86
83
|
return e.pageNum > -1 && (r.value.pageNum !== e.pageNum && (t = !0), r.value.pageNum = e.pageNum), e.pageSize > -1 && (r.value.pageSize !== e.pageSize && (t = !0), r.value.pageSize = e.pageSize), { pagination: r.value, isChange: t };
|
|
87
|
-
},
|
|
84
|
+
}, te = (e) => {
|
|
88
85
|
if (r.value.pageNum = 1, r.value.pageSize = e, !!n.sizeChange)
|
|
89
86
|
try {
|
|
90
|
-
|
|
87
|
+
d[n.sizeChange](g, r.value);
|
|
91
88
|
} catch (t) {
|
|
92
89
|
console.error(t);
|
|
93
90
|
}
|
|
94
|
-
},
|
|
91
|
+
}, ne = (e) => {
|
|
95
92
|
if (r.value.pageNum = e, !!n.pageChange)
|
|
96
93
|
try {
|
|
97
|
-
|
|
94
|
+
d[n.pageChange](g, r.value);
|
|
98
95
|
} catch (t) {
|
|
99
96
|
console.error(t);
|
|
100
97
|
}
|
|
101
|
-
}, ne = (e) => {
|
|
102
|
-
var t;
|
|
103
|
-
(t = C.value) == null || t.setCurrentRow(e);
|
|
104
98
|
}, oe = (e) => {
|
|
105
99
|
var t;
|
|
106
|
-
(t =
|
|
107
|
-
}, ae = (e
|
|
100
|
+
(t = y.value) == null || t.setCurrentRow(e);
|
|
101
|
+
}, ae = (e) => {
|
|
102
|
+
var t;
|
|
103
|
+
(t = y.value) == null || t.setCurrentRow(s.value[e]);
|
|
104
|
+
}, le = (e, t, o) => {
|
|
108
105
|
n.columns.forEach((l) => {
|
|
109
106
|
l.key === e && l[t] && (l[t] = o);
|
|
110
107
|
});
|
|
111
|
-
}, s =
|
|
108
|
+
}, s = f([]), re = (e) => {
|
|
112
109
|
s.value = e;
|
|
113
|
-
},
|
|
110
|
+
}, ie = (e = {}) => {
|
|
114
111
|
s.value.push(e);
|
|
115
|
-
},
|
|
112
|
+
}, se = (e) => {
|
|
116
113
|
e >= 0 && e < s.value.length && s.value.splice(e, 1);
|
|
117
|
-
},
|
|
114
|
+
}, ce = async () => {
|
|
118
115
|
s.value = [...s.value];
|
|
119
|
-
}, T =
|
|
120
|
-
...
|
|
121
|
-
setCellData:
|
|
122
|
-
clearSelection:
|
|
123
|
-
getData:
|
|
124
|
-
getCurrentRow:
|
|
125
|
-
getSelectedRows:
|
|
126
|
-
addRow:
|
|
127
|
-
deleteRow:
|
|
128
|
-
refresh:
|
|
129
|
-
validate:
|
|
130
|
-
setData:
|
|
131
|
-
selectRow:
|
|
132
|
-
selectRowNum:
|
|
133
|
-
setTotal:
|
|
134
|
-
getPagination:
|
|
135
|
-
setPagination:
|
|
136
|
-
setTopBtnHidden:
|
|
137
|
-
setColVisible:
|
|
138
|
-
setColumn:
|
|
139
|
-
setRowsBtnHidden:
|
|
116
|
+
}, T = de("rootRef"), M = ge({
|
|
117
|
+
...he(n),
|
|
118
|
+
setCellData: U,
|
|
119
|
+
clearSelection: W,
|
|
120
|
+
getData: q,
|
|
121
|
+
getCurrentRow: I,
|
|
122
|
+
getSelectedRows: J,
|
|
123
|
+
addRow: ie,
|
|
124
|
+
deleteRow: se,
|
|
125
|
+
refresh: ce,
|
|
126
|
+
validate: O,
|
|
127
|
+
setData: re,
|
|
128
|
+
selectRow: oe,
|
|
129
|
+
selectRowNum: ae,
|
|
130
|
+
setTotal: Y,
|
|
131
|
+
getPagination: Z,
|
|
132
|
+
setPagination: ee,
|
|
133
|
+
setTopBtnHidden: Q,
|
|
134
|
+
setColVisible: j,
|
|
135
|
+
setColumn: le,
|
|
136
|
+
setRowsBtnHidden: X,
|
|
140
137
|
rootRef: T,
|
|
141
138
|
type: "table"
|
|
142
139
|
});
|
|
143
140
|
if (n.name) {
|
|
144
141
|
const e = Ce(n.name, M);
|
|
145
|
-
|
|
142
|
+
fe(() => {
|
|
146
143
|
e();
|
|
147
144
|
});
|
|
148
145
|
}
|
|
149
|
-
return
|
|
150
|
-
const o =
|
|
151
|
-
return e.hidden ?
|
|
146
|
+
return F(M), (e, t) => {
|
|
147
|
+
const o = R("el-table-column"), l = R("el-tooltip"), C = R("el-button"), ue = R("el-pagination");
|
|
148
|
+
return e.hidden ? m("", !0) : (c(), k("div", {
|
|
152
149
|
key: 0,
|
|
153
150
|
class: "table-render",
|
|
154
151
|
ref_key: "rootRef",
|
|
@@ -156,35 +153,35 @@ const Re = { class: "empty-content" }, _e = { class: "text-ellipsis" }, be = { c
|
|
|
156
153
|
}, [
|
|
157
154
|
v(p(Se), {
|
|
158
155
|
ref_key: "tableRef",
|
|
159
|
-
ref:
|
|
156
|
+
ref: y,
|
|
160
157
|
data: s.value,
|
|
161
158
|
"highlight-current-row": e.highlightCurrentRow,
|
|
162
159
|
"row-key": e.rowKey,
|
|
163
160
|
stripe: e.stripe,
|
|
164
|
-
onRowClick:
|
|
165
|
-
onRowDblclick:
|
|
166
|
-
onSelectionChange:
|
|
167
|
-
onCurrentChange:
|
|
161
|
+
onRowClick: K,
|
|
162
|
+
onRowDblclick: x,
|
|
163
|
+
onSelectionChange: L,
|
|
164
|
+
onCurrentChange: G
|
|
168
165
|
}, {
|
|
169
166
|
empty: u(() => [
|
|
170
|
-
|
|
167
|
+
w("div", Re, [
|
|
171
168
|
v(p(ke), {
|
|
172
169
|
name: "tableEmpty",
|
|
173
170
|
style: { width: 56, height: 56 }
|
|
174
171
|
}),
|
|
175
|
-
t[2] || (t[2] =
|
|
172
|
+
t[2] || (t[2] = w("div", null, "No data available,please check", -1))
|
|
176
173
|
])
|
|
177
174
|
]),
|
|
178
175
|
default: u(() => [
|
|
179
|
-
e.multipleSelection ? (c(),
|
|
176
|
+
e.multipleSelection ? (c(), z(o, {
|
|
180
177
|
key: 0,
|
|
181
178
|
type: "selection",
|
|
182
179
|
width: "55"
|
|
183
|
-
})) :
|
|
184
|
-
(c(!0),
|
|
180
|
+
})) : m("", !0),
|
|
181
|
+
(c(!0), k(b, null, E(e.columns, (a) => (c(), k(b, {
|
|
185
182
|
key: a.key
|
|
186
183
|
}, [
|
|
187
|
-
a.hidden ?
|
|
184
|
+
a.hidden ? m("", !0) : (c(), z(o, {
|
|
188
185
|
key: 0,
|
|
189
186
|
prop: a.key,
|
|
190
187
|
"min-width": a.minWidth,
|
|
@@ -199,21 +196,21 @@ const Re = { class: "empty-content" }, _e = { class: "text-ellipsis" }, be = { c
|
|
|
199
196
|
placement: "top"
|
|
200
197
|
}, {
|
|
201
198
|
default: u(() => [
|
|
202
|
-
|
|
199
|
+
w("div", be, B(a.label), 1)
|
|
203
200
|
]),
|
|
204
201
|
_: 2
|
|
205
202
|
}, 1032, ["content"])
|
|
206
203
|
]),
|
|
207
|
-
default: u(({ row:
|
|
204
|
+
default: u(({ row: h }) => [
|
|
208
205
|
v(l, {
|
|
209
206
|
class: "box-item",
|
|
210
207
|
effect: "dark",
|
|
211
|
-
content: p(
|
|
208
|
+
content: p(S) ? p(S)(a.key, h) : h[a.key],
|
|
212
209
|
"show-after": 300,
|
|
213
210
|
placement: "top"
|
|
214
211
|
}, {
|
|
215
212
|
default: u(() => [
|
|
216
|
-
|
|
213
|
+
w("div", _e, B(p(S) ? p(S)(a.key, h) : h[a.key]), 1)
|
|
217
214
|
]),
|
|
218
215
|
_: 2
|
|
219
216
|
}, 1032, ["content"])
|
|
@@ -221,60 +218,62 @@ const Re = { class: "empty-content" }, _e = { class: "text-ellipsis" }, be = { c
|
|
|
221
218
|
_: 2
|
|
222
219
|
}, 1032, ["prop", "min-width", "fixed"]))
|
|
223
220
|
], 64))), 128)),
|
|
224
|
-
e.rowBtns && e.rowBtns.length > 0 ? (c(),
|
|
221
|
+
e.rowBtns && e.rowBtns.length > 0 ? (c(), z(o, {
|
|
225
222
|
key: 1,
|
|
226
223
|
label: "Action",
|
|
227
224
|
fixed: "right",
|
|
228
225
|
align: "left"
|
|
229
226
|
}, {
|
|
230
|
-
default: u(({ row: a, $index:
|
|
231
|
-
(c(!0),
|
|
227
|
+
default: u(({ row: a, $index: h }) => [
|
|
228
|
+
(c(!0), k(b, null, E(e.rowBtns, (i) => (c(), k(b, {
|
|
232
229
|
key: i.key
|
|
233
230
|
}, [
|
|
234
|
-
i.condition === void 0 || i.condition === null || p(ve)(i.condition, { $row: a }) ? (c(),
|
|
231
|
+
i.condition === void 0 || i.condition === null || p(ve)(i.condition, { $row: a }) ? (c(), z(C, {
|
|
235
232
|
key: 0,
|
|
236
233
|
disabled: i.disabled,
|
|
237
234
|
size: "small",
|
|
238
235
|
type: i.type,
|
|
239
|
-
onClick: (
|
|
236
|
+
onClick: (Ne) => H(i, a, h)
|
|
240
237
|
}, {
|
|
241
238
|
default: u(() => [
|
|
242
|
-
i.icon ? (c(),
|
|
239
|
+
i.icon ? (c(), z(we, {
|
|
243
240
|
key: 0,
|
|
244
241
|
name: i.icon.name,
|
|
245
242
|
color: i.icon.color,
|
|
246
|
-
class:
|
|
247
|
-
}, null, 8, ["name", "color", "class"])) :
|
|
248
|
-
me(" " +
|
|
243
|
+
class: V({ "btn-icon": i.text || i.label })
|
|
244
|
+
}, null, 8, ["name", "color", "class"])) : m("", !0),
|
|
245
|
+
me(" " + B(i.label), 1)
|
|
249
246
|
]),
|
|
250
247
|
_: 2
|
|
251
|
-
}, 1032, ["disabled", "type", "onClick"])) :
|
|
248
|
+
}, 1032, ["disabled", "type", "onClick"])) : m("", !0)
|
|
252
249
|
], 64))), 128))
|
|
253
250
|
]),
|
|
254
251
|
_: 1
|
|
255
|
-
})) :
|
|
252
|
+
})) : m("", !0)
|
|
256
253
|
]),
|
|
257
254
|
_: 1
|
|
258
255
|
}, 8, ["data", "highlight-current-row", "row-key", "stripe"]),
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
w("div", {
|
|
257
|
+
class: V(["pagination-wrapper", { hidePagination: e.hiddenPagination }])
|
|
258
|
+
}, [
|
|
259
|
+
v(ue, {
|
|
261
260
|
background: "",
|
|
262
261
|
layout: "total,sizes, prev, pager, next,jumper",
|
|
263
|
-
total:
|
|
262
|
+
total: D.value,
|
|
264
263
|
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
265
264
|
"default-page-size": e.defaultPageSize,
|
|
266
265
|
"current-page": r.value.pageNum,
|
|
267
266
|
"onUpdate:currentPage": t[0] || (t[0] = (a) => r.value.pageNum = a),
|
|
268
267
|
"page-size": r.value.pageSize,
|
|
269
268
|
"onUpdate:pageSize": t[1] || (t[1] = (a) => r.value.pageSize = a),
|
|
270
|
-
onSizeChange:
|
|
271
|
-
onCurrentChange:
|
|
269
|
+
onSizeChange: te,
|
|
270
|
+
onCurrentChange: ne
|
|
272
271
|
}, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size"])
|
|
273
|
-
]
|
|
272
|
+
], 2)
|
|
274
273
|
], 512));
|
|
275
274
|
};
|
|
276
275
|
}
|
|
277
|
-
}),
|
|
276
|
+
}), Me = /* @__PURE__ */ ze(Be, [["__scopeId", "data-v-7b1b78e9"]]);
|
|
278
277
|
export {
|
|
279
|
-
|
|
278
|
+
Me as default
|
|
280
279
|
};
|
|
@@ -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-DMmaR_UH.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const w = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Tabs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as r, createBlock as t, Transition as a, withCtx as l, withDirectives as n, createElementVNode as s, normalizeStyle as p, normalizeClass as i, createVNode as c, unref as m, vShow as f } from "vue";
|
|
2
|
-
import { a as _, b as d } from "./index-
|
|
2
|
+
import { a as _, b as d } from "./index-DMmaR_UH.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const y = /* @__PURE__ */ o({
|
|
5
5
|
__name: "Wrapper",
|