asiaint-lowcode 3.0.33 → 3.0.35
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 +7 -2
- package/dist/lazy/Card-BjIjVHSY.js +102 -0
- package/dist/lazy/{Cascader-B-lZfCap.js → Cascader-avy7s_TT.js} +1 -1
- package/dist/lazy/{Checkbox-YO_0wBKc.js → Checkbox-BZn0GYIB.js} +2 -2
- package/dist/lazy/{Collapse-BlH5sRWv.js → Collapse-Db0LTA46.js} +1 -1
- package/dist/lazy/Component-1h985-3I.js +36 -0
- package/dist/lazy/{Component-b97O_1Tl.js → Component-BzkGuQn6.js} +1 -1
- package/dist/lazy/{Component-Bl19KoSv.js → Component-CYGJTTJw.js} +1 -1
- package/dist/lazy/{Component-BCfLKjK8.js → Component-GQYCJTtl.js} +1 -1
- package/dist/lazy/{Component-D8B2QjBe.js → Component-ln-XJiQI.js} +1 -1
- package/dist/lazy/{Component-09uMPQXo.js → Component-v8evKRwj.js} +1 -1
- package/dist/lazy/{CurdCard-DTv68TEH.js → CurdCard-DUQI--iE.js} +1 -1
- package/dist/lazy/{Custom-Cu1dz0F5.js → Custom-DXU5JHcS.js} +1 -1
- package/dist/lazy/{FormList-DbrUeW7x.js → FormList-DfuTiprs.js} +1 -1
- package/dist/lazy/{Grid-Bg52fX8Z.js → Grid-CdKMWQTk.js} +1 -1
- package/dist/lazy/{Inline-JoP0Kz2Z.js → Inline-DctgzZdL.js} +1 -1
- package/dist/lazy/{JsonEdit-B07NWENB.js → JsonEdit-CflVlRK6.js} +1 -1
- package/dist/lazy/{ObjGroup-a2USDXVL.js → ObjGroup-DdYz8IBo.js} +1 -1
- package/dist/lazy/OfferDetails-SqqsGCMK.js +168 -0
- package/dist/lazy/{Radio-bAObj-SF.js → Radio-B36DUIWx.js} +2 -2
- package/dist/lazy/{SearchSelect-yvRqORip.js → SearchSelect-CvMAXRRc.js} +2 -2
- package/dist/lazy/{Select-B8CtrHsk.js → Select-CclP3zyB.js} +2 -2
- package/dist/lazy/{Table-7R5XEA27.js → Table-BbiZUQ-6.js} +54 -54
- package/dist/lazy/{Tabs-4wVyNH_D.js → Tabs-CQuqM3SJ.js} +1 -1
- package/dist/lazy/{Wrapper-6_mhBiQ0.js → Wrapper-DX0sH3RH.js} +1 -1
- package/dist/lazy/{index-C8n7TbR6.js → index-BVOhSRT8.js} +4748 -4591
- package/dist/lazy/{useSelect-B3zM60ey.js → useSelect-Br3_JWNA.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-CBrL-lfq.js +0 -93
- package/dist/lazy/Component-CK_IFBCD.js +0 -34
- package/dist/lazy/OfferDetails-Dwry8T2e.js +0 -165
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
2
|
-
import { $ as be, i as ze, _ as Se, f as Re, I as Be, C as _e, b as Pe } from "./index-
|
|
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-BVOhSRT8.js";
|
|
3
3
|
import { ElTable as Ne } from "element-plus";
|
|
4
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",
|
|
@@ -30,16 +30,17 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["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
37
|
const a = j, y = S("ruleModule", void 0), f = S("pageMethodMap", {}), H = S("getGlobalParams", () => {
|
|
37
|
-
}),
|
|
38
|
-
|
|
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) {
|
|
@@ -64,14 +65,14 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
|
|
|
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,8 +83,8 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["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
|
-
|
|
86
|
+
}, T = m(0), te = (e) => {
|
|
87
|
+
T.value = e;
|
|
87
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 };
|
|
@@ -106,28 +107,28 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["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
|
-
},
|
|
122
|
+
r.value = [...r.value];
|
|
123
|
+
}, M = fe("rootRef"), $ = me({
|
|
123
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,28 +141,28 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["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
|
+
const e = ze(a.name, $);
|
|
148
149
|
ke(() => {
|
|
149
150
|
e();
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
|
-
return G(
|
|
153
|
+
return G($), (e, t) => {
|
|
153
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
161
|
F(C("div", null, [
|
|
161
|
-
b(
|
|
162
|
+
b(p(Ne), {
|
|
162
163
|
ref_key: "tableRef",
|
|
163
164
|
ref: v,
|
|
164
|
-
data:
|
|
165
|
+
data: r.value,
|
|
165
166
|
"highlight-current-row": "",
|
|
166
167
|
"row-key": e.rowKey,
|
|
167
168
|
stripe: e.stripe,
|
|
@@ -173,7 +174,7 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
|
|
|
173
174
|
}, {
|
|
174
175
|
empty: h(() => [
|
|
175
176
|
C("div", De, [
|
|
176
|
-
b(
|
|
177
|
+
b(p(Se), {
|
|
177
178
|
name: "tableEmpty",
|
|
178
179
|
style: { width: 56, height: 56 }
|
|
179
180
|
}),
|
|
@@ -199,19 +200,19 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
|
|
|
199
200
|
C("div", {
|
|
200
201
|
class: "text-ellipsis",
|
|
201
202
|
title: n.label
|
|
202
|
-
},
|
|
203
|
+
}, _(n.label), 9, Te)
|
|
203
204
|
]),
|
|
204
|
-
default: h(({ row:
|
|
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: (he) =>
|
|
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,35 +223,34 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
|
|
|
222
223
|
fixed: "right",
|
|
223
224
|
align: "left"
|
|
224
225
|
}, {
|
|
225
|
-
default: h(({ row: n, $index:
|
|
226
|
+
default: h(({ row: n, $index: c }) => [
|
|
226
227
|
C("div", Ee, [
|
|
227
|
-
(u(!0), g(B, null, V(e.rowBtns, (
|
|
228
|
-
key:
|
|
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: ve((he) =>
|
|
236
|
+
type: s.type,
|
|
237
|
+
onClick: ve((he) => N(s, n, c), ["stop"])
|
|
237
238
|
}, {
|
|
238
239
|
default: h(() => [
|
|
239
240
|
b(i, {
|
|
240
241
|
class: "box-item",
|
|
241
242
|
effect: "dark",
|
|
242
|
-
content:
|
|
243
|
+
content: s.label,
|
|
243
244
|
placement: "top",
|
|
244
245
|
"popper-class": "low-tsp",
|
|
245
246
|
"show-after": 300
|
|
246
247
|
}, {
|
|
247
248
|
default: h(() => [
|
|
248
|
-
|
|
249
|
+
s.icon ? (u(), z(Be, {
|
|
249
250
|
key: 0,
|
|
250
|
-
name:
|
|
251
|
-
color:
|
|
252
|
-
|
|
253
|
-
}, null, 8, ["name", "color", "class"])) : k("", !0)
|
|
251
|
+
name: s.icon.name,
|
|
252
|
+
color: s.icon.color
|
|
253
|
+
}, null, 8, ["name", "color"])) : k("", !0)
|
|
254
254
|
]),
|
|
255
255
|
_: 2
|
|
256
256
|
}, 1032, ["content"])
|
|
@@ -268,18 +268,18 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
|
|
|
268
268
|
], 512), [
|
|
269
269
|
[U, e.displayType === "table"]
|
|
270
270
|
]),
|
|
271
|
-
F(b(_e, we({ data:
|
|
271
|
+
F(b(_e, we({ data: r.value }, a), null, 16, ["data"]), [
|
|
272
272
|
[U, e.displayType === "card"]
|
|
273
273
|
]),
|
|
274
274
|
C("div", {
|
|
275
|
-
class:
|
|
276
|
-
hidePagination: e.hiddenPagination ||
|
|
275
|
+
class: E(["pagination-wrapper", {
|
|
276
|
+
hidePagination: e.hiddenPagination || r.value.length === 0,
|
|
277
277
|
cardlistPadding: e.displayType === "card"
|
|
278
278
|
}])
|
|
279
279
|
}, [
|
|
280
280
|
b(ge, {
|
|
281
281
|
layout: "total,sizes, prev, pager, next,jumper",
|
|
282
|
-
total:
|
|
282
|
+
total: T.value,
|
|
283
283
|
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
284
284
|
"default-page-size": e.defaultPageSize,
|
|
285
285
|
"current-page": l.value.pageNum,
|
|
@@ -294,7 +294,7 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
|
|
|
294
294
|
], 2));
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}), Ge = /* @__PURE__ */ Pe(Fe, [["__scopeId", "data-v-
|
|
297
|
+
}), Ge = /* @__PURE__ */ Pe(Fe, [["__scopeId", "data-v-bc7f6b3e"]]);
|
|
298
298
|
export {
|
|
299
299
|
Ge as default
|
|
300
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-BVOhSRT8.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-BVOhSRT8.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const y = /* @__PURE__ */ t({
|
|
5
5
|
__name: "Wrapper",
|