asiaint-lowcode 3.0.31 → 3.0.34
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 +7 -2
- package/dist/lazy/Card-DyDOeYfh.js +102 -0
- package/dist/lazy/{Cascader-P7IuNThb.js → Cascader-hwQ0ped8.js} +1 -1
- package/dist/lazy/{Checkbox-07QRyXME.js → Checkbox-z4QRPu-x.js} +2 -2
- package/dist/lazy/{Collapse-ByfiOimw.js → Collapse-oh9RnpYq.js} +1 -1
- package/dist/lazy/Component-56ym46d6.js +36 -0
- package/dist/lazy/{Component-6TS6wNl_.js → Component-CXtb3Yi3.js} +1 -1
- package/dist/lazy/{Component-D3_BYRj4.js → Component-ClkUsqZ1.js} +1 -1
- package/dist/lazy/{Component-B0XVJZnQ.js → Component-DYCbyY8z.js} +1 -1
- package/dist/lazy/{Component-DjB_gS1V.js → Component-DadAKRPu.js} +1 -1
- package/dist/lazy/{Component-CyKpm5k5.js → Component-mcJAWcjt.js} +1 -1
- package/dist/lazy/{CurdCard-BpFxnWRz.js → CurdCard-BTYaL0uB.js} +1 -1
- package/dist/lazy/{Custom-CScf47ec.js → Custom-CrZDANN2.js} +1 -1
- package/dist/lazy/{FormList-B4ySQVLt.js → FormList-BGuR7mbH.js} +1 -1
- package/dist/lazy/{Grid-D8IOvbfU.js → Grid-BRKcU88d.js} +1 -1
- package/dist/lazy/{Inline-CCyImOu3.js → Inline-x1p6kwDV.js} +1 -1
- package/dist/lazy/{JsonEdit-DDieBuc6.js → JsonEdit-C8acmbOx.js} +1 -1
- package/dist/lazy/{ObjGroup-QEyMHJ0O.js → ObjGroup-Bvm_JRv0.js} +1 -1
- package/dist/lazy/OfferDetails-IuisIR_V.js +168 -0
- package/dist/lazy/{Radio-aDFaQLLq.js → Radio-Swys9rO6.js} +2 -2
- package/dist/lazy/{SearchSelect-B96_wH_8.js → SearchSelect-DpWjU1ff.js} +2 -2
- package/dist/lazy/{Select-C84zNi2F.js → Select-BG2okaza.js} +2 -2
- package/dist/lazy/{Table-C2RB8hlb.js → Table-BOIHWhbh.js} +95 -83
- package/dist/lazy/{Tabs-4CRMSCiJ.js → Tabs-ByfQlZ3V.js} +1 -1
- package/dist/lazy/{Wrapper-3N8Y7y6e.js → Wrapper-CJINhrFP.js} +1 -1
- package/dist/lazy/{index-Be_hWoLI.js → index-CX2louHY.js} +4887 -4718
- package/dist/lazy/useSelect-PiddJYFH.js +61 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-D4r6xjTv.js +0 -93
- package/dist/lazy/Component-DVIJ_1tV.js +0 -34
- package/dist/lazy/OfferDetails-Dh_ZZz7F.js +0 -165
- package/dist/lazy/useSelect-BLvs_Rd3.js +0 -58
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { ElTable as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as ye, inject as S, ref as m, useTemplateRef as fe, readonly as me, toRefs as Ce, onUnmounted as ke, resolveComponent as R, openBlock as u, createElementBlock as g, normalizeClass as E, withDirectives as F, createElementVNode as C, createVNode as b, unref as p, withCtx as h, createBlock as z, createCommentVNode as k, Fragment as B, renderList as V, toDisplayString as _, withModifiers as ve, vShow as U, mergeProps as we } from "vue";
|
|
2
|
+
import { $ as be, i as ze, _ as Se, f as Re, I as Be, C as _e, b as Pe } from "./index-CX2louHY.js";
|
|
3
|
+
import { ElTable as Ne } from "element-plus";
|
|
4
|
+
const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"], $e = ["title"], Ee = { class: "row-btn-wrapper" }, Fe = /* @__PURE__ */ ye({
|
|
5
5
|
__name: "Table",
|
|
6
6
|
props: {
|
|
7
7
|
title: {},
|
|
@@ -30,48 +30,49 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
30
30
|
displayType: { default: "table" },
|
|
31
31
|
onMounted: {},
|
|
32
32
|
height: {},
|
|
33
|
+
collapsible: { type: Boolean },
|
|
33
34
|
name: {}
|
|
34
35
|
},
|
|
35
36
|
setup(j, { expose: G }) {
|
|
36
|
-
const a = j,
|
|
37
|
-
}),
|
|
38
|
-
|
|
37
|
+
const a = j, y = S("ruleModule", void 0), f = S("pageMethodMap", {}), H = S("getGlobalParams", () => {
|
|
38
|
+
}), P = S(be), d = P ? P.translateFn : null, v = m(), K = (e, t, o) => {
|
|
39
|
+
r.value[e] && (r.value[e][t] = o);
|
|
39
40
|
}, L = (e, t) => {
|
|
40
41
|
const o = a.columns.find((i) => i.key === e);
|
|
41
42
|
o && (o.hidden = !t);
|
|
42
|
-
},
|
|
43
|
+
}, N = (e, t, o) => {
|
|
43
44
|
try {
|
|
44
|
-
|
|
45
|
+
y[e.onClick](f, t, o);
|
|
45
46
|
} catch (i) {
|
|
46
47
|
console.error(i);
|
|
47
48
|
}
|
|
48
49
|
}, A = (e) => {
|
|
49
50
|
if (a.rowClick)
|
|
50
51
|
try {
|
|
51
|
-
|
|
52
|
+
y[a.rowClick](f, e);
|
|
52
53
|
} catch (t) {
|
|
53
54
|
console.error(t);
|
|
54
55
|
}
|
|
55
56
|
}, W = (e) => {
|
|
56
57
|
if (a.rowDbClick)
|
|
57
58
|
try {
|
|
58
|
-
|
|
59
|
+
y[a.rowDbClick](f, e);
|
|
59
60
|
} catch (t) {
|
|
60
61
|
console.error(t);
|
|
61
62
|
}
|
|
62
|
-
}, q =
|
|
63
|
+
}, q = m([]), I = (e) => {
|
|
63
64
|
q.value = e;
|
|
64
65
|
}, J = () => {
|
|
65
66
|
var e;
|
|
66
67
|
(e = v.value) == null || e.clearSelection();
|
|
67
|
-
}, O = () =>
|
|
68
|
-
if (
|
|
68
|
+
}, O = () => r.value, D = m(), Q = (e) => {
|
|
69
|
+
if (D.value = e, !!a.handleCurrentChange)
|
|
69
70
|
try {
|
|
70
|
-
|
|
71
|
+
y[a.handleCurrentChange](f, e);
|
|
71
72
|
} catch (t) {
|
|
72
73
|
console.error(t);
|
|
73
74
|
}
|
|
74
|
-
}, X = () =>
|
|
75
|
+
}, X = () => D.value, Y = () => {
|
|
75
76
|
var e;
|
|
76
77
|
return (e = v.value) == null ? void 0 : e.getSelectionRows();
|
|
77
78
|
}, Z = async () => !0, x = (e, t) => {
|
|
@@ -82,22 +83,22 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
82
83
|
var i;
|
|
83
84
|
const o = (i = a.rowBtns) == null ? void 0 : i.find((w) => w.key === e);
|
|
84
85
|
o && (o.condition = !t);
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
}, l =
|
|
86
|
+
}, T = m(0), te = (e) => {
|
|
87
|
+
T.value = e;
|
|
88
|
+
}, l = m({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), ne = () => l.value, ae = (e) => {
|
|
88
89
|
let t = !1;
|
|
89
90
|
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 };
|
|
90
91
|
}, oe = (e) => {
|
|
91
92
|
if (l.value.pageNum = 1, l.value.pageSize = e, !!a.sizeChange)
|
|
92
93
|
try {
|
|
93
|
-
|
|
94
|
+
y[a.sizeChange](f, l.value);
|
|
94
95
|
} catch (t) {
|
|
95
96
|
console.error(t);
|
|
96
97
|
}
|
|
97
98
|
}, le = (e) => {
|
|
98
99
|
if (l.value.pageNum = e, !!a.pageChange)
|
|
99
100
|
try {
|
|
100
|
-
|
|
101
|
+
y[a.pageChange](f, l.value);
|
|
101
102
|
} catch (t) {
|
|
102
103
|
console.error(t);
|
|
103
104
|
}
|
|
@@ -106,28 +107,28 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
106
107
|
(t = v.value) == null || t.setCurrentRow(e);
|
|
107
108
|
}, re = (e) => {
|
|
108
109
|
var t;
|
|
109
|
-
(t = v.value) == null || t.setCurrentRow(
|
|
110
|
+
(t = v.value) == null || t.setCurrentRow(r.value[e]);
|
|
110
111
|
}, se = (e, t, o) => {
|
|
111
112
|
a.columns.forEach((i) => {
|
|
112
113
|
i.key === e && i[t] && (i[t] = o);
|
|
113
114
|
});
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
e >= 0 && e <
|
|
115
|
+
}, r = m([]), ue = (e) => {
|
|
116
|
+
r.value = e;
|
|
117
|
+
}, pe = (e = {}) => {
|
|
118
|
+
r.value.push(e);
|
|
119
|
+
}, ce = (e) => {
|
|
120
|
+
e >= 0 && e < r.value.length && r.value.splice(e, 1);
|
|
120
121
|
}, de = async () => {
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
...
|
|
122
|
+
r.value = [...r.value];
|
|
123
|
+
}, M = fe("rootRef"), $ = me({
|
|
124
|
+
...Ce(a),
|
|
124
125
|
setCellData: K,
|
|
125
126
|
clearSelection: J,
|
|
126
127
|
getData: O,
|
|
127
128
|
getCurrentRow: X,
|
|
128
129
|
getSelectedRows: Y,
|
|
129
|
-
addRow:
|
|
130
|
-
deleteRow:
|
|
130
|
+
addRow: pe,
|
|
131
|
+
deleteRow: ce,
|
|
131
132
|
refresh: de,
|
|
132
133
|
validate: Z,
|
|
133
134
|
setData: ue,
|
|
@@ -140,29 +141,29 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
140
141
|
setColVisible: L,
|
|
141
142
|
setColumn: se,
|
|
142
143
|
setRowsBtnHidden: ee,
|
|
143
|
-
rootRef:
|
|
144
|
+
rootRef: M,
|
|
144
145
|
type: "table"
|
|
145
146
|
});
|
|
146
147
|
if (a.name) {
|
|
147
|
-
const e = ze(a.name,
|
|
148
|
-
|
|
148
|
+
const e = ze(a.name, $);
|
|
149
|
+
ke(() => {
|
|
149
150
|
e();
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
|
-
return G(
|
|
153
|
-
const o =
|
|
153
|
+
return G($), (e, t) => {
|
|
154
|
+
const o = R("el-table-column"), i = R("el-tooltip"), w = R("el-button"), ge = R("el-pagination");
|
|
154
155
|
return e.hidden ? k("", !0) : (u(), g("div", {
|
|
155
156
|
key: 0,
|
|
156
|
-
class:
|
|
157
|
+
class: E(["table-render", { tableBorder: e.displayType === "table" }]),
|
|
157
158
|
ref_key: "rootRef",
|
|
158
|
-
ref:
|
|
159
|
+
ref: M
|
|
159
160
|
}, [
|
|
160
|
-
F(
|
|
161
|
-
b(
|
|
161
|
+
F(C("div", null, [
|
|
162
|
+
b(p(Ne), {
|
|
162
163
|
ref_key: "tableRef",
|
|
163
164
|
ref: v,
|
|
164
|
-
data:
|
|
165
|
-
"highlight-current-row":
|
|
165
|
+
data: r.value,
|
|
166
|
+
"highlight-current-row": "",
|
|
166
167
|
"row-key": e.rowKey,
|
|
167
168
|
stripe: e.stripe,
|
|
168
169
|
onRowClick: A,
|
|
@@ -171,22 +172,22 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
171
172
|
onCurrentChange: Q,
|
|
172
173
|
height: e.height
|
|
173
174
|
}, {
|
|
174
|
-
empty:
|
|
175
|
-
|
|
176
|
-
b(
|
|
175
|
+
empty: h(() => [
|
|
176
|
+
C("div", De, [
|
|
177
|
+
b(p(Se), {
|
|
177
178
|
name: "tableEmpty",
|
|
178
179
|
style: { width: 56, height: 56 }
|
|
179
180
|
}),
|
|
180
|
-
t[2] || (t[2] =
|
|
181
|
+
t[2] || (t[2] = C("div", null, "No data available,please check", -1))
|
|
181
182
|
])
|
|
182
183
|
]),
|
|
183
|
-
default:
|
|
184
|
+
default: h(() => [
|
|
184
185
|
e.multipleSelection ? (u(), z(o, {
|
|
185
186
|
key: 0,
|
|
186
187
|
type: "selection",
|
|
187
188
|
width: "55"
|
|
188
189
|
})) : k("", !0),
|
|
189
|
-
(u(!0), g(
|
|
190
|
+
(u(!0), g(B, null, V(e.columns, (n) => (u(), g(B, {
|
|
190
191
|
key: n.key
|
|
191
192
|
}, [
|
|
192
193
|
n.hidden ? k("", !0) : (u(), z(o, {
|
|
@@ -195,23 +196,23 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
195
196
|
"min-width": n.minWidth,
|
|
196
197
|
fixed: n.fixed || !1
|
|
197
198
|
}, {
|
|
198
|
-
header:
|
|
199
|
-
|
|
199
|
+
header: h(() => [
|
|
200
|
+
C("div", {
|
|
200
201
|
class: "text-ellipsis",
|
|
201
202
|
title: n.label
|
|
202
|
-
}, _(n.label), 9,
|
|
203
|
+
}, _(n.label), 9, Te)
|
|
203
204
|
]),
|
|
204
|
-
default:
|
|
205
|
+
default: h(({ row: c, $index: s }) => [
|
|
205
206
|
n.type === "link" ? (u(), g("div", {
|
|
206
207
|
key: 0,
|
|
207
208
|
class: "text-ellipsis link-style",
|
|
208
|
-
title:
|
|
209
|
-
onClick: (
|
|
210
|
-
}, _(
|
|
209
|
+
title: p(d) ? p(d)(n.key, c) : c[n.key],
|
|
210
|
+
onClick: (he) => N(n, c, s)
|
|
211
|
+
}, _(p(d) ? p(d)(n.key, c) : c[n.key]), 9, Me)) : (u(), g("div", {
|
|
211
212
|
key: 1,
|
|
212
213
|
class: "text-ellipsis",
|
|
213
|
-
title:
|
|
214
|
-
}, _(
|
|
214
|
+
title: p(d) ? p(d)(n.key, c) : c[n.key]
|
|
215
|
+
}, _(p(d) ? p(d)(n.key, c) : c[n.key]), 9, $e))
|
|
215
216
|
]),
|
|
216
217
|
_: 2
|
|
217
218
|
}, 1032, ["prop", "min-width", "fixed"]))
|
|
@@ -222,26 +223,37 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
222
223
|
fixed: "right",
|
|
223
224
|
align: "left"
|
|
224
225
|
}, {
|
|
225
|
-
default:
|
|
226
|
-
|
|
227
|
-
(u(!0), g(
|
|
228
|
-
key:
|
|
226
|
+
default: h(({ row: n, $index: c }) => [
|
|
227
|
+
C("div", Ee, [
|
|
228
|
+
(u(!0), g(B, null, V(e.rowBtns, (s) => (u(), g(B, {
|
|
229
|
+
key: s.key
|
|
229
230
|
}, [
|
|
230
|
-
|
|
231
|
+
s.condition === void 0 || s.condition === null || p(Re)(s.condition, { $row: n, $globalParams: p(H)() }) ? (u(), z(w, {
|
|
231
232
|
key: 0,
|
|
232
|
-
disabled:
|
|
233
|
+
disabled: s.disabled,
|
|
233
234
|
link: "",
|
|
234
235
|
size: "small",
|
|
235
|
-
type:
|
|
236
|
-
onClick:
|
|
236
|
+
type: s.type,
|
|
237
|
+
onClick: ve((he) => N(s, n, c), ["stop"])
|
|
237
238
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
239
|
+
default: h(() => [
|
|
240
|
+
b(i, {
|
|
241
|
+
class: "box-item",
|
|
242
|
+
effect: "dark",
|
|
243
|
+
content: s.label,
|
|
244
|
+
placement: "top",
|
|
245
|
+
"popper-class": "low-tsp",
|
|
246
|
+
"show-after": 300
|
|
247
|
+
}, {
|
|
248
|
+
default: h(() => [
|
|
249
|
+
s.icon ? (u(), z(Be, {
|
|
250
|
+
key: 0,
|
|
251
|
+
name: s.icon.name,
|
|
252
|
+
color: s.icon.color
|
|
253
|
+
}, null, 8, ["name", "color"])) : k("", !0)
|
|
254
|
+
]),
|
|
255
|
+
_: 2
|
|
256
|
+
}, 1032, ["content"])
|
|
245
257
|
]),
|
|
246
258
|
_: 2
|
|
247
259
|
}, 1032, ["disabled", "type", "onClick"])) : k("", !0)
|
|
@@ -252,22 +264,22 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
252
264
|
})) : k("", !0)
|
|
253
265
|
]),
|
|
254
266
|
_: 1
|
|
255
|
-
}, 8, ["data", "
|
|
267
|
+
}, 8, ["data", "row-key", "stripe", "height"])
|
|
256
268
|
], 512), [
|
|
257
269
|
[U, e.displayType === "table"]
|
|
258
270
|
]),
|
|
259
|
-
F(b(
|
|
271
|
+
F(b(_e, we({ data: r.value }, a), null, 16, ["data"]), [
|
|
260
272
|
[U, e.displayType === "card"]
|
|
261
273
|
]),
|
|
262
|
-
|
|
263
|
-
class:
|
|
264
|
-
hidePagination: e.hiddenPagination ||
|
|
274
|
+
C("div", {
|
|
275
|
+
class: E(["pagination-wrapper", {
|
|
276
|
+
hidePagination: e.hiddenPagination || r.value.length === 0,
|
|
265
277
|
cardlistPadding: e.displayType === "card"
|
|
266
278
|
}])
|
|
267
279
|
}, [
|
|
268
|
-
b(
|
|
280
|
+
b(ge, {
|
|
269
281
|
layout: "total,sizes, prev, pager, next,jumper",
|
|
270
|
-
total:
|
|
282
|
+
total: T.value,
|
|
271
283
|
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
272
284
|
"default-page-size": e.defaultPageSize,
|
|
273
285
|
"current-page": l.value.pageNum,
|
|
@@ -282,7 +294,7 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
|
|
|
282
294
|
], 2));
|
|
283
295
|
};
|
|
284
296
|
}
|
|
285
|
-
}),
|
|
297
|
+
}), Ge = /* @__PURE__ */ Pe(Fe, [["__scopeId", "data-v-bc7f6b3e"]]);
|
|
286
298
|
export {
|
|
287
|
-
|
|
299
|
+
Ge as default
|
|
288
300
|
};
|
|
@@ -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-CX2louHY.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 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-
|
|
2
|
+
import { a as f, b as u } from "./index-CX2louHY.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const y = /* @__PURE__ */ t({
|
|
5
5
|
__name: "Wrapper",
|