asiaint-lowcode 3.0.50 → 3.0.51
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/README.md +31 -31
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +89 -89
- package/dist/lazy/{Card-DKHnObTK.js → Card-DbWPDHpd.js} +2 -2
- package/dist/lazy/{Cascader-CNplvldJ.js → Cascader-DaR_fe95.js} +1 -1
- package/dist/lazy/{Checkbox-CZf2Nm-K.js → Checkbox-CAj_x8_x.js} +2 -2
- package/dist/lazy/{Collapse-DlKeKWr-.js → Collapse-vzfRRjI0.js} +1 -1
- package/dist/lazy/{Component-UJOj0afN.js → Component-BgR56d6h.js} +1 -1
- package/dist/lazy/{Component-DquL-YqE.js → Component-BsMmeosX.js} +2 -2
- package/dist/lazy/{Component-DR-4oztf.js → Component-Ca8DBAf8.js} +2 -2
- package/dist/lazy/{Component-DmignbZL.js → Component-CtMkDVqQ.js} +1 -1
- package/dist/lazy/{Component-BIP7DqyJ.js → Component-CvE_dDlj.js} +9 -9
- package/dist/lazy/{Component-CmnfQ4EO.js → Component-I7a0grkm.js} +1 -1
- package/dist/lazy/{CurdCard-De2GcNQx.js → CurdCard-CEzt2JeY.js} +18 -18
- package/dist/lazy/{Custom-Byz8HyJY.js → Custom-BvDFbIEt.js} +7 -7
- package/dist/lazy/{FormList-B-e3HzHV.js → FormList-BA1JUXMB.js} +1 -1
- package/dist/lazy/{Grid-D4yKG1VU.js → Grid-BnKEL-nj.js} +1 -1
- package/dist/lazy/Inline-Co_apdZu.js +32 -0
- package/dist/lazy/{JsonEdit-DJqpqtHl.js → JsonEdit-BZyvQP1x.js} +3 -3
- package/dist/lazy/LogList-DtqK3rJ5.js +44 -0
- package/dist/lazy/{ObjGroup-DYXkHZdQ.js → ObjGroup-Bh4e87q2.js} +1 -1
- package/dist/lazy/{OfferDetails-CZfKkVLJ.js → OfferDetails-CnQpb532.js} +24 -24
- package/dist/lazy/{OrderProgress-C3UP5xVK.js → OrderProgress-B87NXGaH.js} +2 -2
- package/dist/lazy/{Radio-CCOEImDI.js → Radio-DtMubyYA.js} +2 -2
- package/dist/lazy/{SearchSelect-CLs8NW74.js → SearchSelect-_-j2KxCv.js} +14 -14
- package/dist/lazy/{Select-cBzvd4MV.js → Select-qQDp5xqi.js} +2 -2
- package/dist/lazy/{Table-DLoU3srh.js → Table-BcJeLDC_.js} +19 -19
- package/dist/lazy/{Tabs-aogGKJou.js → Tabs-yR5-6OXt.js} +1 -1
- package/dist/lazy/{Wrapper-C-AtO0vo.js → Wrapper-BLUqb8Yz.js} +2 -2
- package/dist/lazy/{index-FVEGEQGn.js → index-D7rgb74b.js} +842 -829
- package/dist/lazy/{useSelect-BxShqme2.js → useSelect-DoEawhYH.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Inline-BrJWVeC4.js +0 -30
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as T, mergeModels as _, useModel as w, inject as g, resolveComponent as i, resolveDirective as z, openBlock as l, createElementBlock as c, toDisplayString as F, unref as s, withDirectives as I, createBlock as m, mergeProps as K, withCtx as h, createVNode as N, Fragment as k, renderList as M } from "vue";
|
|
2
|
-
import { u as P } from "./index-
|
|
3
|
-
import { u as $ } from "./useSelect-
|
|
2
|
+
import { u as P } from "./index-D7rgb74b.js";
|
|
3
|
+
import { u as $ } from "./useSelect-DoEawhYH.js";
|
|
4
4
|
const j = { key: 0 }, R = /* @__PURE__ */ T({
|
|
5
5
|
__name: "Radio",
|
|
6
6
|
props: /* @__PURE__ */ _({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as f, resolveDirective as I, openBlock as o, createElementBlock as i, toDisplayString as b, unref as u, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
|
|
2
|
-
import { u as L, _ as O, b as T } from "./index-
|
|
3
|
-
import { u as U } from "./useSelect-
|
|
2
|
+
import { u as L, _ as O, b as T } from "./index-D7rgb74b.js";
|
|
3
|
+
import { u as U } from "./useSelect-DoEawhYH.js";
|
|
4
4
|
const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "search-select-wrapper"
|
|
@@ -29,10 +29,10 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
29
29
|
}),
|
|
30
30
|
emits: ["update:modelValue"],
|
|
31
31
|
setup(v) {
|
|
32
|
-
const t = v,
|
|
33
|
-
const { valueKey:
|
|
32
|
+
const t = v, d = F(v, "modelValue"), h = L(), c = S("ruleModule", void 0), _ = S("pageMethodMap", {}), M = (e) => {
|
|
33
|
+
const { valueKey: s = "value", multiple: m, name: p } = t;
|
|
34
34
|
let n = {};
|
|
35
|
-
if (m && Array.isArray(e) ? n =
|
|
35
|
+
if (m && Array.isArray(e) ? n = r.value.filter((a) => e.includes(a[s])) : n = r.value.find((a) => a[s] === e) || {}, h.selectData && p && h.updateSelectData(p, n), t.onChange && c)
|
|
36
36
|
try {
|
|
37
37
|
c[t.onChange](_, e, n);
|
|
38
38
|
} catch (a) {
|
|
@@ -45,19 +45,19 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
45
45
|
} catch (e) {
|
|
46
46
|
console.error(e);
|
|
47
47
|
}
|
|
48
|
-
}, { currentOptions:
|
|
49
|
-
return (e,
|
|
48
|
+
}, { currentOptions: r, loading: V } = U(t);
|
|
49
|
+
return (e, s) => {
|
|
50
50
|
var g;
|
|
51
51
|
const m = f("el-option"), p = f("el-select"), n = f("el-button"), a = I("loading");
|
|
52
52
|
return e.read ? (o(), i("div", q, [
|
|
53
|
-
e.multiple ? (o(), i("div", z, b(
|
|
53
|
+
e.multiple ? (o(), i("div", z, b(d.value && d.value.map((l) => {
|
|
54
54
|
var K;
|
|
55
|
-
return (K = u(
|
|
56
|
-
}).join("、")), 1)) : (o(), i("div", G, b(((g = u(
|
|
55
|
+
return (K = u(r).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
|
|
56
|
+
}).join("、")), 1)) : (o(), i("div", G, b(((g = u(r).find((l) => l[e.valueKey] === d.value)) == null ? void 0 : g[e.labelKey]) || "--"), 1))
|
|
57
57
|
])) : (o(), i("div", H, [
|
|
58
58
|
N((o(), k(p, j({
|
|
59
|
-
modelValue:
|
|
60
|
-
"onUpdate:modelValue":
|
|
59
|
+
modelValue: d.value,
|
|
60
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => d.value = l)
|
|
61
61
|
}, e.$attrs, {
|
|
62
62
|
onChange: M,
|
|
63
63
|
multiple: e.multiple,
|
|
@@ -66,7 +66,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
66
66
|
disabled: e.disabled
|
|
67
67
|
}), {
|
|
68
68
|
default: y(() => [
|
|
69
|
-
(o(!0), i(P, null, $(u(
|
|
69
|
+
(o(!0), i(P, null, $(u(r), (l) => (o(), k(m, {
|
|
70
70
|
key: l[e.valueKey],
|
|
71
71
|
label: l[e.labelKey],
|
|
72
72
|
value: l[e.valueKey],
|
|
@@ -95,7 +95,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
95
95
|
]));
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
}), X = /* @__PURE__ */ T(J, [["__scopeId", "data-v-
|
|
98
|
+
}), X = /* @__PURE__ */ T(J, [["__scopeId", "data-v-da2bde35"]]);
|
|
99
99
|
export {
|
|
100
100
|
X as default
|
|
101
101
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as _, mergeModels as k, useModel as B, inject as f, computed as D, resolveComponent as y, resolveDirective as S, openBlock as s, createElementBlock as i, toDisplayString as v, createBlock as b, mergeProps as A, withCtx as g, withDirectives as F, Fragment as j, renderList as w, unref as h, createTextVNode as I } from "vue";
|
|
2
|
-
import { u as N } from "./index-
|
|
3
|
-
import { u as P } from "./useSelect-
|
|
2
|
+
import { u as N } from "./index-D7rgb74b.js";
|
|
3
|
+
import { u as P } from "./useSelect-DoEawhYH.js";
|
|
4
4
|
const $ = { key: 0 }, E = { style: { "min-height": "32px" } }, U = /* @__PURE__ */ _({
|
|
5
5
|
__name: "Select",
|
|
6
6
|
props: /* @__PURE__ */ k({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ke, computed as V, inject as w, ref as
|
|
2
|
-
import { $ as Me, i as Te, _ as De, f as Fe, I as $e, C as Ae, b as Ee } from "./index-
|
|
1
|
+
import { defineComponent as ke, computed as V, inject as w, ref as v, useTemplateRef as we, readonly as be, toRefs as Se, onMounted as ze, nextTick as Re, onActivated as Be, onUnmounted as Pe, resolveComponent as R, openBlock as u, createElementBlock as g, normalizeClass as U, withDirectives as j, createElementVNode as f, createVNode as b, unref as B, withCtx as h, createBlock as S, createCommentVNode as m, Fragment as P, renderList as G, toDisplayString as _, withModifiers as _e, vShow as H, mergeProps as Ne } from "vue";
|
|
2
|
+
import { $ as Me, i as Te, _ as De, f as Fe, I as $e, C as Ae, b as Ee } from "./index-D7rgb74b.js";
|
|
3
3
|
import { ElTable as Ve } from "element-plus";
|
|
4
4
|
const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"], He = ["title"], Ke = { class: "row-btn-wrapper" }, Le = /* @__PURE__ */ ke({
|
|
5
5
|
__name: "Table",
|
|
@@ -36,7 +36,7 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
36
36
|
},
|
|
37
37
|
setup(K, { expose: L }) {
|
|
38
38
|
const n = K, z = V(() => n.displayType ? n.displayType : n.typeSwitch ? "card" : "table"), W = w("ruleModule", void 0), N = w("ruleMap", void 0), c = V(() => n.rulePath && N[n.rulePath] ? N[n.rulePath] : W), p = w("pageMethodMap", {}), q = w("getGlobalParams", () => {
|
|
39
|
-
}), M = w(Me), T = M ? M.translateFn : null, y =
|
|
39
|
+
}), M = w(Me), T = M ? M.translateFn : null, y = v(), I = (e, t, a) => {
|
|
40
40
|
i.value[e] && (i.value[e][t] = a);
|
|
41
41
|
}, J = (e, t) => {
|
|
42
42
|
const a = n.columns.find((l) => l.key === e);
|
|
@@ -61,12 +61,12 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
61
61
|
} catch (t) {
|
|
62
62
|
console.error(t);
|
|
63
63
|
}
|
|
64
|
-
}, X =
|
|
64
|
+
}, X = v([]), Y = (e) => {
|
|
65
65
|
X.value = e;
|
|
66
66
|
}, Z = () => {
|
|
67
67
|
var e;
|
|
68
68
|
(e = y.value) == null || e.clearSelection();
|
|
69
|
-
}, x = () => i.value, F =
|
|
69
|
+
}, x = () => i.value, F = v(), ee = (e) => {
|
|
70
70
|
if (F.value = e, !!n.handleCurrentChange)
|
|
71
71
|
try {
|
|
72
72
|
c.value[n.handleCurrentChange](p, e);
|
|
@@ -84,9 +84,9 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
84
84
|
var l;
|
|
85
85
|
const a = (l = n.rowBtns) == null ? void 0 : l.find((k) => k.key === e);
|
|
86
86
|
a && (a.condition = !t);
|
|
87
|
-
}, $ =
|
|
87
|
+
}, $ = v(0), re = (e) => {
|
|
88
88
|
$.value = e;
|
|
89
|
-
}, r =
|
|
89
|
+
}, r = v({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), ie = () => r.value, se = (e) => {
|
|
90
90
|
let t = !1;
|
|
91
91
|
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 };
|
|
92
92
|
}, ue = (e) => {
|
|
@@ -113,11 +113,11 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
113
113
|
n.columns.forEach((l) => {
|
|
114
114
|
l.key === e && l[t] && (l[t] = a);
|
|
115
115
|
});
|
|
116
|
-
}, i =
|
|
116
|
+
}, i = v([]), he = (e) => {
|
|
117
117
|
i.value = e;
|
|
118
|
-
},
|
|
118
|
+
}, ve = (e = {}) => {
|
|
119
119
|
i.value.push(e);
|
|
120
|
-
},
|
|
120
|
+
}, fe = (e) => {
|
|
121
121
|
e >= 0 && e < i.value.length && i.value.splice(e, 1);
|
|
122
122
|
}, me = async () => {
|
|
123
123
|
i.value = [...i.value];
|
|
@@ -128,8 +128,8 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
128
128
|
getData: x,
|
|
129
129
|
getCurrentRow: te,
|
|
130
130
|
getSelectedRows: ne,
|
|
131
|
-
addRow:
|
|
132
|
-
deleteRow:
|
|
131
|
+
addRow: ve,
|
|
132
|
+
deleteRow: fe,
|
|
133
133
|
refresh: me,
|
|
134
134
|
validate: ae,
|
|
135
135
|
setData: he,
|
|
@@ -184,7 +184,7 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
184
184
|
ref_key: "rootRef",
|
|
185
185
|
ref: A
|
|
186
186
|
}, [
|
|
187
|
-
j(
|
|
187
|
+
j(f("div", null, [
|
|
188
188
|
b(B(Ve), {
|
|
189
189
|
ref_key: "tableRef",
|
|
190
190
|
ref: y,
|
|
@@ -200,12 +200,12 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
200
200
|
height: e.height
|
|
201
201
|
}, {
|
|
202
202
|
empty: h(() => [
|
|
203
|
-
|
|
203
|
+
f("div", Ue, [
|
|
204
204
|
b(B(De), {
|
|
205
205
|
name: "tableEmpty",
|
|
206
206
|
style: { width: 56, height: 56 }
|
|
207
207
|
}),
|
|
208
|
-
t[2] || (t[2] =
|
|
208
|
+
t[2] || (t[2] = f("div", null, "No data available,please check", -1))
|
|
209
209
|
])
|
|
210
210
|
]),
|
|
211
211
|
default: h(() => [
|
|
@@ -224,7 +224,7 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
224
224
|
fixed: o.fixed || !1
|
|
225
225
|
}, {
|
|
226
226
|
header: h(() => [
|
|
227
|
-
|
|
227
|
+
f("div", {
|
|
228
228
|
class: "text-ellipsis",
|
|
229
229
|
title: o.label
|
|
230
230
|
}, _(o.label), 9, je)
|
|
@@ -252,7 +252,7 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
252
252
|
width: e.rowBtns.length * 50 > 100 ? e.rowBtns.length * 50 : 100
|
|
253
253
|
}, {
|
|
254
254
|
default: h(({ row: o, $index: d }) => [
|
|
255
|
-
|
|
255
|
+
f("div", Ke, [
|
|
256
256
|
(u(!0), g(P, null, G(e.rowBtns, (s) => (u(), g(P, {
|
|
257
257
|
key: s.key
|
|
258
258
|
}, [
|
|
@@ -299,7 +299,7 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
299
299
|
j(b(Ae, Ne({ data: i.value }, n, { getColText: C }), null, 16, ["data"]), [
|
|
300
300
|
[H, z.value === "card"]
|
|
301
301
|
]),
|
|
302
|
-
|
|
302
|
+
f("div", {
|
|
303
303
|
class: U(["pagination-wrapper", {
|
|
304
304
|
hidePagination: (e.hiddenPagination || i.value.length === 0) && !e.height,
|
|
305
305
|
transparentPagination: (e.hiddenPagination || i.value.length === 0) && e.height,
|
|
@@ -323,7 +323,7 @@ const Ue = { class: "empty-content" }, je = ["title"], Ge = ["title", "onClick"]
|
|
|
323
323
|
], 2));
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
}), Je = /* @__PURE__ */ Ee(Le, [["__scopeId", "data-v-
|
|
326
|
+
}), Je = /* @__PURE__ */ Ee(Le, [["__scopeId", "data-v-0b2b049b"]]);
|
|
327
327
|
export {
|
|
328
328
|
Je as default
|
|
329
329
|
};
|
|
@@ -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-D7rgb74b.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 r, createElementBlock as a, normalizeStyle as s, createVNode as o, withCtx as p, withDirectives as i, createElementVNode 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-D7rgb74b.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const y = /* @__PURE__ */ t({
|
|
5
5
|
__name: "Wrapper",
|
|
@@ -30,7 +30,7 @@ const y = /* @__PURE__ */ t({
|
|
|
30
30
|
], 4);
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
}), w = /* @__PURE__ */ u(y, [["__scopeId", "data-v-
|
|
33
|
+
}), w = /* @__PURE__ */ u(y, [["__scopeId", "data-v-78b03d5f"]]);
|
|
34
34
|
export {
|
|
35
35
|
w as default
|
|
36
36
|
};
|