asiaint-lowcode 3.0.74 → 3.1.0
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 +3 -3
- package/dist/asiaint-lowcode.umd.cjs +142 -142
- package/dist/index.d.ts +168 -28
- package/dist/lazy/{Card-BLkyronF.js → Card-6y3b8xK9.js} +2 -2
- package/dist/lazy/{Cascader-BWayPZsj.js → Cascader-1XEBAirk.js} +2 -1
- package/dist/lazy/{Checkbox-B0f2osCE.js → Checkbox-DY7Ufmrz.js} +8 -7
- package/dist/lazy/{Collapse-CwiKPgVS.js → Collapse-BT7RNNg6.js} +1 -1
- package/dist/lazy/{Component-BgbXAvZP.js → Component-AYxGCLAH.js} +20 -20
- package/dist/lazy/{Component-CxjtIKb4.js → Component-BYlYtzWb.js} +2 -2
- package/dist/lazy/{Component-DtKK0pz0.js → Component-CF4m_685.js} +1 -1
- package/dist/lazy/{Component-B0YN5w1O.js → Component-CkSnYtMh.js} +1 -1
- package/dist/lazy/{Component-BTW9MMvF.js → Component-DITfSg2v.js} +1 -1
- package/dist/lazy/{Component-DN6wPVjw.js → Component-DZMCcrpa.js} +2 -2
- package/dist/lazy/CurdCard-BXOxRtCA.js +167 -0
- package/dist/lazy/{Custom-BHrk3rwy.js → Custom-Df5H1QJV.js} +7 -7
- package/dist/lazy/{DragList-BfxZ0XM8.js → DragList-BH1VY62B.js} +59 -57
- package/dist/lazy/{FormList-Bve4HUdY.js → FormList-BMk_lCx8.js} +1 -1
- package/dist/lazy/{Grid-gYua8Lbh.js → Grid-SVpxXRzO.js} +1 -1
- package/dist/lazy/Inline-CE2A9Of4.js +35 -0
- package/dist/lazy/{JsonEdit-DspEkIiw.js → JsonEdit-C_CUvw5t.js} +3 -3
- package/dist/lazy/{LogList-BJ0N-SZh.js → LogList-COeBYixP.js} +7 -7
- package/dist/lazy/{ObjGroup-DwogU-tX.js → ObjGroup-BB2eQigf.js} +1 -1
- package/dist/lazy/{OfferDetails-BRQXALnl.js → OfferDetails-BEyNKQsf.js} +8 -7
- package/dist/lazy/{Progress-CZiRwjox.js → Progress-CYBbCXFh.js} +5 -5
- package/dist/lazy/{Radio-DAQ63lEp.js → Radio-qI1r_rWj.js} +24 -22
- package/dist/lazy/{SearchSelect-B4rd3IEr.js → SearchSelect-ZmOPM_QH.js} +18 -17
- package/dist/lazy/{Select-B9ka9Z-o.js → Select-CxtVmfLu.js} +10 -9
- package/dist/lazy/Table-YeT82lnr.js +438 -0
- package/dist/lazy/{Tabs-D_jMk0g4.js → Tabs-DFvfP_nb.js} +1 -1
- package/dist/lazy/Wrapper-DAFSrkAr.js +87 -0
- package/dist/lazy/{index-CPs7U1jG.js → index-DQ889qV3.js} +10461 -9979
- package/dist/lazy/useSelect-EfaZqc6a.js +77 -0
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/CurdCard-YilgvVgg.js +0 -160
- package/dist/lazy/Inline-DP_W3TA1.js +0 -33
- package/dist/lazy/Table-BT_PlC1e.js +0 -351
- package/dist/lazy/Wrapper-Db2njs9z.js +0 -36
- package/dist/lazy/useSelect-DBsTZmYm.js +0 -76
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { defineComponent as F, inject as V, ref as w, resolveComponent as C, openBlock as a, createElementBlock as s, normalizeClass as m, normalizeStyle as j, createElementVNode as i, createBlock as r, createCommentVNode as v, toDisplayString as S, withCtx as f, Fragment as _, renderList as M, createTextVNode as A, createVNode as p, unref as B, withDirectives as O, vShow as P } from "vue";
|
|
2
|
+
import { u as U, I as u, B as q, a as $, h as G, b as H } from "./index-DQ889qV3.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const J = ["id"], K = { class: "left-part" }, Q = { class: "title" }, W = { class: "right-part" }, X = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "switch-panel"
|
|
7
|
+
}, Y = { key: 2 }, Z = /* @__PURE__ */ F({
|
|
8
|
+
__name: "CurdCard",
|
|
9
|
+
props: {
|
|
10
|
+
name: {},
|
|
11
|
+
children: {},
|
|
12
|
+
defaultCollapse: { type: Boolean },
|
|
13
|
+
collapsible: { type: Boolean },
|
|
14
|
+
onCollapsed: {},
|
|
15
|
+
typeSwitch: { type: Boolean },
|
|
16
|
+
title: {},
|
|
17
|
+
btns: {},
|
|
18
|
+
type: {},
|
|
19
|
+
mainIcon: {},
|
|
20
|
+
extraIcons: {},
|
|
21
|
+
displayType: {},
|
|
22
|
+
radioList: {},
|
|
23
|
+
onRadioChange: {},
|
|
24
|
+
radioDefault: {},
|
|
25
|
+
style: { type: [Boolean, null, String, Object, Array] }
|
|
26
|
+
},
|
|
27
|
+
setup(R) {
|
|
28
|
+
const d = V("ruleModule", void 0), k = V("pageMethodMap", {}), n = R, g = w(n.radioDefault ?? "2"), T = (e) => {
|
|
29
|
+
if (e && d)
|
|
30
|
+
try {
|
|
31
|
+
d[e](k);
|
|
32
|
+
} catch (o) {
|
|
33
|
+
console.error(o);
|
|
34
|
+
}
|
|
35
|
+
}, D = (e) => {
|
|
36
|
+
n.onRadioChange && d && d[n.onRadioChange](k, e);
|
|
37
|
+
}, L = () => {
|
|
38
|
+
c.value = !c.value, n.onCollapsed && d && d[n.onCollapsed](k, c.value);
|
|
39
|
+
}, c = w(n.defaultCollapse ?? !1), y = w(n.displayType || (n.typeSwitch ? "card" : "table")), N = U(), b = (e) => {
|
|
40
|
+
y.value = e;
|
|
41
|
+
const o = G(N.schema.items, n.name), h = (I) => {
|
|
42
|
+
I.forEach((t) => {
|
|
43
|
+
t.component === "Table" && t.props && (t.props.displayType = e), t.children && t.children.length > 0 && h(t.children);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
o && o.children && h(o.children);
|
|
47
|
+
};
|
|
48
|
+
return b(y.value), (e, o) => {
|
|
49
|
+
const h = C("el-radio"), I = C("el-radio-group"), t = C("el-tooltip"), z = C("el-collapse-transition");
|
|
50
|
+
return a(), s("div", {
|
|
51
|
+
class: m(["crm-curd-card", { gridItem: e.type === "gridItem" }]),
|
|
52
|
+
style: j(e.style),
|
|
53
|
+
id: e.name
|
|
54
|
+
}, [
|
|
55
|
+
i("div", {
|
|
56
|
+
class: m(["card-header", {
|
|
57
|
+
inline: e.type === "inline",
|
|
58
|
+
mix: e.type === "mix",
|
|
59
|
+
default: e.type === "default",
|
|
60
|
+
gridItem: e.type === "gridItem",
|
|
61
|
+
collapsedPadding: c.value && e.onCollapsed
|
|
62
|
+
}])
|
|
63
|
+
}, [
|
|
64
|
+
i("div", K, [
|
|
65
|
+
e.mainIcon ? (a(), r(u, {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: "title-icon",
|
|
68
|
+
size: "large",
|
|
69
|
+
name: e.mainIcon.name,
|
|
70
|
+
color: e.mainIcon.color
|
|
71
|
+
}, null, 8, ["name", "color"])) : v("", !0),
|
|
72
|
+
i("span", Q, S(e.title), 1),
|
|
73
|
+
e.radioList ? (a(), r(I, {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: "ml-9",
|
|
76
|
+
modelValue: g.value,
|
|
77
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => g.value = l),
|
|
78
|
+
onChange: o[1] || (o[1] = (l) => D(g.value))
|
|
79
|
+
}, {
|
|
80
|
+
default: f(() => [
|
|
81
|
+
(a(!0), s(_, null, M(e.radioList, (l) => (a(), r(h, {
|
|
82
|
+
value: l.value,
|
|
83
|
+
key: l.value
|
|
84
|
+
}, {
|
|
85
|
+
default: f(() => [
|
|
86
|
+
A(S(l.label), 1)
|
|
87
|
+
]),
|
|
88
|
+
_: 2
|
|
89
|
+
}, 1032, ["value"]))), 128))
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["modelValue"])) : v("", !0),
|
|
93
|
+
(a(!0), s(_, null, M(e.extraIcons, (l) => (a(), s(_, {
|
|
94
|
+
key: l.name
|
|
95
|
+
}, [
|
|
96
|
+
l.tips ? (a(), r(t, {
|
|
97
|
+
key: 0,
|
|
98
|
+
content: l.tips,
|
|
99
|
+
placement: "right"
|
|
100
|
+
}, {
|
|
101
|
+
default: f(() => [
|
|
102
|
+
p(u, {
|
|
103
|
+
class: "extra-icon",
|
|
104
|
+
name: l.name,
|
|
105
|
+
color: l.color,
|
|
106
|
+
onClick: (E) => T(l.onClick)
|
|
107
|
+
}, null, 8, ["name", "color", "onClick"])
|
|
108
|
+
]),
|
|
109
|
+
_: 2
|
|
110
|
+
}, 1032, ["content"])) : (a(), r(u, {
|
|
111
|
+
key: 1,
|
|
112
|
+
class: "extra-icon",
|
|
113
|
+
name: l.name,
|
|
114
|
+
color: l.color,
|
|
115
|
+
onClick: (E) => T(l.onClick)
|
|
116
|
+
}, null, 8, ["name", "color", "onClick"]))
|
|
117
|
+
], 64))), 128))
|
|
118
|
+
]),
|
|
119
|
+
i("div", W, [
|
|
120
|
+
e.typeSwitch ? (a(), s("div", X, [
|
|
121
|
+
i("div", {
|
|
122
|
+
class: m(["switch-icon-wrapper", { active: y.value === "card" }]),
|
|
123
|
+
onClick: o[2] || (o[2] = (l) => b("card"))
|
|
124
|
+
}, [
|
|
125
|
+
p(u, { name: "icon-kapian" })
|
|
126
|
+
], 2),
|
|
127
|
+
i("div", {
|
|
128
|
+
class: m(["switch-icon-wrapper", { active: y.value === "table" }]),
|
|
129
|
+
onClick: o[3] || (o[3] = (l) => b("table"))
|
|
130
|
+
}, [
|
|
131
|
+
p(u, { name: "icon-biaoge" })
|
|
132
|
+
], 2)
|
|
133
|
+
])) : v("", !0),
|
|
134
|
+
e.collapsible ? (a(), s("div", {
|
|
135
|
+
key: 1,
|
|
136
|
+
class: m(["collapse-icon-wrapper", { collapsed: c.value }]),
|
|
137
|
+
onClick: L
|
|
138
|
+
}, [
|
|
139
|
+
p(u, { name: "icon-shaixuan" })
|
|
140
|
+
], 2)) : v("", !0),
|
|
141
|
+
e.btns && e.btns.length > 0 ? (a(), s("div", Y, [
|
|
142
|
+
p(B(q), {
|
|
143
|
+
btns: e.btns || []
|
|
144
|
+
}, null, 8, ["btns"])
|
|
145
|
+
])) : v("", !0)
|
|
146
|
+
])
|
|
147
|
+
], 2),
|
|
148
|
+
e.onCollapsed ? (a(), r(B($), {
|
|
149
|
+
key: 1,
|
|
150
|
+
list: e.children
|
|
151
|
+
}, null, 8, ["list"])) : (a(), r(z, { key: 0 }, {
|
|
152
|
+
default: f(() => [
|
|
153
|
+
O(i("div", null, [
|
|
154
|
+
p(B($), { list: e.children }, null, 8, ["list"])
|
|
155
|
+
], 512), [
|
|
156
|
+
[P, !c.value]
|
|
157
|
+
])
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}))
|
|
161
|
+
], 14, J);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}), oe = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-73ceae8b"]]);
|
|
165
|
+
export {
|
|
166
|
+
oe as default
|
|
167
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as
|
|
2
|
-
import { b as i } from "./index-
|
|
1
|
+
import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
|
|
2
|
+
import { b as i } from "./index-DQ889qV3.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|
|
@@ -12,15 +12,15 @@ const f = {
|
|
|
12
12
|
modelModifiers: {}
|
|
13
13
|
}),
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const o = p(
|
|
17
|
-
return (e, m) => e.componentName ? (t(), d(
|
|
15
|
+
setup(a) {
|
|
16
|
+
const o = p(a, "modelValue");
|
|
17
|
+
return (e, m) => e.componentName ? (t(), u(d(e.componentName), c({
|
|
18
18
|
key: 1,
|
|
19
19
|
modelValue: o.value,
|
|
20
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
20
|
+
"onUpdate:modelValue": m[0] || (m[0] = (l) => o.value = l)
|
|
21
21
|
}, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", f, "请输入全局注册得组件名"));
|
|
22
22
|
}
|
|
23
|
-
}), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-
|
|
23
|
+
}), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-a013b8cf"]]);
|
|
24
24
|
export {
|
|
25
25
|
v as default
|
|
26
26
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as X, reactive as H, ref as U, onBeforeMount as oe, onMounted as le, nextTick as f, onBeforeUnmount as ie, watch as d, provide as W, toRefs as F, openBlock as
|
|
2
|
-
import { w as fe,
|
|
1
|
+
import { defineComponent as X, reactive as H, ref as U, onBeforeMount as oe, onMounted as le, nextTick as f, onBeforeUnmount as ie, watch as d, provide as W, toRefs as F, openBlock as z, createElementBlock as T, normalizeStyle as re, renderSlot as V, Fragment as ne, renderList as se, createBlock as Y, mergeProps as ue, withCtx as j, withDirectives as de, createVNode as P, vShow as ce, mergeModels as me, useModel as ge, onUnmounted as pe, unref as q, readonly as ye } from "vue";
|
|
2
|
+
import { w as fe, m as ve, n as he, o as B, T as we, v as xe, p as b, A as Be, q as A, x as be, L as ke, y as De, r as Ce, Y as Le, s as Se, t as O, V as ze, i as Re, a as Ne, b as Me } from "./index-DQ889qV3.js";
|
|
3
3
|
import "element-plus";
|
|
4
|
-
const
|
|
4
|
+
const $e = /* @__PURE__ */ X({
|
|
5
5
|
__name: "grid-layout",
|
|
6
6
|
props: {
|
|
7
7
|
autoSize: { type: Boolean, default: !0 },
|
|
@@ -33,8 +33,8 @@ const _e = /* @__PURE__ */ X({
|
|
|
33
33
|
"update:layout",
|
|
34
34
|
"layout-ready"
|
|
35
35
|
],
|
|
36
|
-
setup(
|
|
37
|
-
const a =
|
|
36
|
+
setup(k, { expose: R, emit: D }) {
|
|
37
|
+
const a = k, u = D, t = H({
|
|
38
38
|
width: -1,
|
|
39
39
|
mergedStyle: {},
|
|
40
40
|
lastLayoutLength: 0,
|
|
@@ -52,23 +52,23 @@ const _e = /* @__PURE__ */ X({
|
|
|
52
52
|
// store last active breakpoint
|
|
53
53
|
originalLayout: null
|
|
54
54
|
// store original Layout
|
|
55
|
-
}), C = /* @__PURE__ */ new Map(), o = U(a.layout), s = U(), { observeResize:
|
|
55
|
+
}), C = /* @__PURE__ */ new Map(), o = U(a.layout), s = U(), { observeResize: c, unobserveResize: w } = fe(), r = ze();
|
|
56
56
|
r.on("resizeEvent", G), r.on("dragEvent", J), oe(() => {
|
|
57
57
|
u("layout-before-mount", o.value);
|
|
58
58
|
}), le(() => {
|
|
59
59
|
u("layout-mounted", o.value), f(() => {
|
|
60
60
|
ve(o.value), t.originalLayout = o.value, f(() => {
|
|
61
|
-
|
|
61
|
+
_(), s.value && c(s.value, he(N, 16)), B(o.value, a.verticalCompact), u("layout-updated", o.value), v(), N();
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
}), ie(() => {
|
|
65
|
-
r.clearAll(), s.value &&
|
|
65
|
+
r.clearAll(), s.value && w(s.value);
|
|
66
66
|
});
|
|
67
|
-
function G(e, n, i, p,
|
|
68
|
-
|
|
67
|
+
function G(e, n, i, p, m, g) {
|
|
68
|
+
I(e, n, i, p, m, g);
|
|
69
69
|
}
|
|
70
|
-
function J(e, n, i, p,
|
|
71
|
-
|
|
70
|
+
function J(e, n, i, p, m, g) {
|
|
71
|
+
E(e, n, i, p, m, g);
|
|
72
72
|
}
|
|
73
73
|
d(
|
|
74
74
|
() => t.width,
|
|
@@ -82,7 +82,7 @@ const _e = /* @__PURE__ */ X({
|
|
|
82
82
|
), d(
|
|
83
83
|
() => [a.layout, a.layout.length],
|
|
84
84
|
() => {
|
|
85
|
-
o.value = a.layout,
|
|
85
|
+
o.value = a.layout, $();
|
|
86
86
|
}
|
|
87
87
|
), d(
|
|
88
88
|
() => a.colNum,
|
|
@@ -132,7 +132,7 @@ const _e = /* @__PURE__ */ X({
|
|
|
132
132
|
increaseItem: K,
|
|
133
133
|
decreaseItem: Q
|
|
134
134
|
})
|
|
135
|
-
), W(xe, r),
|
|
135
|
+
), W(xe, r), R({ state: t, getItem: Z, resizeEvent: I, dragEvent: E, layoutUpdate: $ });
|
|
136
136
|
function K(e) {
|
|
137
137
|
C.set(e.i, e);
|
|
138
138
|
}
|
|
@@ -142,8 +142,8 @@ const _e = /* @__PURE__ */ X({
|
|
|
142
142
|
function Z(e) {
|
|
143
143
|
return C.get(e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
if (!
|
|
145
|
+
function $() {
|
|
146
|
+
if (!b(o.value) && !b(t.originalLayout)) {
|
|
147
147
|
if (o.value.length !== t.originalLayout.length) {
|
|
148
148
|
const e = ae(o.value, t.originalLayout);
|
|
149
149
|
if (e.length > 0)
|
|
@@ -153,9 +153,9 @@ const _e = /* @__PURE__ */ X({
|
|
|
153
153
|
const n = new Set(e.map((i) => i.i));
|
|
154
154
|
t.originalLayout = t.originalLayout.filter((i) => !n.has(i.i));
|
|
155
155
|
}
|
|
156
|
-
t.lastLayoutLength = o.value.length,
|
|
156
|
+
t.lastLayoutLength = o.value.length, _();
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
B(o.value, a.verticalCompact), r.emit("updateWidth", t.width), v(), u("layout-updated", o.value);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function v() {
|
|
@@ -172,47 +172,47 @@ const _e = /* @__PURE__ */ X({
|
|
|
172
172
|
return Be(o.value) * (a.rowHeight + e) + e + "px";
|
|
173
173
|
}
|
|
174
174
|
let M;
|
|
175
|
-
function
|
|
175
|
+
function E(e, n, i, p, m, g) {
|
|
176
176
|
let l = A(o.value, n);
|
|
177
|
-
|
|
178
|
-
(
|
|
179
|
-
...
|
|
177
|
+
b(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (M = o.value.reduce(
|
|
178
|
+
(x, { i: L, x: y, y: h }) => ({
|
|
179
|
+
...x,
|
|
180
180
|
[L]: { x: y, y: h }
|
|
181
181
|
}),
|
|
182
182
|
{}
|
|
183
|
-
)), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = l.x, t.placeholder.y = l.y, t.placeholder.w =
|
|
183
|
+
)), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = l.x, t.placeholder.y = l.y, t.placeholder.w = g, t.placeholder.h = m, f(() => {
|
|
184
184
|
t.isDragging = !0;
|
|
185
185
|
}), r.emit("updateWidth", t.width)) : f(() => {
|
|
186
186
|
t.isDragging = !1;
|
|
187
|
-
}), o.value = be(o.value, l, i, p, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0,
|
|
187
|
+
}), o.value = be(o.value, l, i, p, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0, B(o.value, a.verticalCompact, M), l.static = !1) : B(o.value, a.verticalCompact), r.emit("compact"), v(), e === "dragend" && (M = void 0, u("layout-updated", o.value));
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function I(e, n, i, p, m, g) {
|
|
190
190
|
let l = A(o.value, n);
|
|
191
|
-
|
|
192
|
-
let
|
|
191
|
+
b(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" });
|
|
192
|
+
let x;
|
|
193
193
|
if (a.preventCollision) {
|
|
194
|
-
const L = ke(o.value, { ...l, w:
|
|
194
|
+
const L = ke(o.value, { ...l, w: g, h: m }).filter(
|
|
195
195
|
(y) => y.i !== l.i
|
|
196
196
|
);
|
|
197
|
-
if (
|
|
197
|
+
if (x = L.length > 0, x) {
|
|
198
198
|
let y = 1 / 0, h = 1 / 0;
|
|
199
|
-
L.forEach((
|
|
200
|
-
|
|
199
|
+
L.forEach((S) => {
|
|
200
|
+
S.x > l.x && (y = Math.min(y, S.x)), S.y > l.y && (h = Math.min(h, S.y));
|
|
201
201
|
}), Number.isFinite(y) && (l.w = y - l.x), Number.isFinite(h) && (l.h = h - l.y);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
|
|
204
|
+
x || (l.w = g, l.h = m), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = i, t.placeholder.y = p, t.placeholder.w = l.w, t.placeholder.h = l.h, f(() => {
|
|
205
205
|
t.isDragging = !0;
|
|
206
206
|
}), r.emit("updateWidth", t.width)) : e && f(() => {
|
|
207
207
|
t.isDragging = !1;
|
|
208
|
-
}), a.responsive && te(),
|
|
208
|
+
}), a.responsive && te(), B(o.value, a.verticalCompact), r.emit("compact"), v(), e === "resizeend" && u("layout-updated", o.value);
|
|
209
209
|
}
|
|
210
210
|
function te() {
|
|
211
|
-
const e =
|
|
211
|
+
const e = De(a.breakpoints, t.width);
|
|
212
212
|
if (e === t.lastBreakpoint)
|
|
213
213
|
return;
|
|
214
|
-
const n =
|
|
215
|
-
!
|
|
214
|
+
const n = Ce(e, a.cols);
|
|
215
|
+
!b(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = Le(o.value));
|
|
216
216
|
const i = Se(
|
|
217
217
|
t.originalLayout,
|
|
218
218
|
t.layouts,
|
|
@@ -224,20 +224,20 @@ const _e = /* @__PURE__ */ X({
|
|
|
224
224
|
);
|
|
225
225
|
t.layouts[e] = i, t.lastBreakpoint !== e && u("breakpoint-changed", e, i), o.value = i, u("update:layout", i), t.lastBreakpoint = e, r.emit("setColNum", n);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function _() {
|
|
228
228
|
t.layouts = Object.assign({}, a.responsiveLayouts);
|
|
229
229
|
}
|
|
230
230
|
function ae(e, n) {
|
|
231
|
-
const i = new Set(n.map((l) => l.i)), p = new Set(e.map((l) => l.i)),
|
|
232
|
-
return
|
|
231
|
+
const i = new Set(n.map((l) => l.i)), p = new Set(e.map((l) => l.i)), m = e.filter((l) => !i.has(l.i)), g = n.filter((l) => !p.has(l.i));
|
|
232
|
+
return m.concat(g);
|
|
233
233
|
}
|
|
234
|
-
return (e, n) => (
|
|
234
|
+
return (e, n) => (z(), T("div", {
|
|
235
235
|
ref_key: "wrapper",
|
|
236
236
|
ref: s,
|
|
237
237
|
class: "vgl-layout",
|
|
238
238
|
style: re(t.mergedStyle)
|
|
239
239
|
}, [
|
|
240
|
-
e.$slots.default ? V(e.$slots, "default", { key: 0 }) : (
|
|
240
|
+
e.$slots.default ? V(e.$slots, "default", { key: 0 }) : (z(!0), T(ne, { key: 1 }, se(o.value, (i) => (z(), Y(O, ue({
|
|
241
241
|
key: i.i,
|
|
242
242
|
ref_for: !0
|
|
243
243
|
}, i), {
|
|
@@ -258,44 +258,45 @@ const _e = /* @__PURE__ */ X({
|
|
|
258
258
|
])
|
|
259
259
|
], 4));
|
|
260
260
|
}
|
|
261
|
-
}),
|
|
261
|
+
}), Ee = /* @__PURE__ */ X({
|
|
262
262
|
__name: "DragList",
|
|
263
263
|
props: /* @__PURE__ */ me({
|
|
264
264
|
children: {},
|
|
265
265
|
rowHeight: {},
|
|
266
266
|
colNum: {},
|
|
267
267
|
maxRows: {},
|
|
268
|
+
isDraggable: { type: Boolean },
|
|
268
269
|
name: {}
|
|
269
270
|
}, {
|
|
270
271
|
gridlayout: { required: !0 },
|
|
271
272
|
gridlayoutModifiers: {}
|
|
272
273
|
}),
|
|
273
274
|
emits: ["update:gridlayout"],
|
|
274
|
-
setup(
|
|
275
|
-
const
|
|
275
|
+
setup(k, { expose: R }) {
|
|
276
|
+
const D = k, a = ge(k, "gridlayout"), o = {
|
|
276
277
|
getLayout: () => ye(a),
|
|
277
|
-
setItemX: (s,
|
|
278
|
-
a.value[s].x =
|
|
278
|
+
setItemX: (s, c) => {
|
|
279
|
+
a.value[s].x = c;
|
|
279
280
|
},
|
|
280
|
-
setItemY: (s,
|
|
281
|
-
a.value[s].y =
|
|
281
|
+
setItemY: (s, c) => {
|
|
282
|
+
a.value[s].y = c;
|
|
282
283
|
},
|
|
283
284
|
type: "draglist"
|
|
284
285
|
};
|
|
285
|
-
if (
|
|
286
|
-
const s = Re(
|
|
287
|
-
|
|
286
|
+
if (R(o), D.name) {
|
|
287
|
+
const s = Re(D.name, o);
|
|
288
|
+
pe(() => {
|
|
288
289
|
s();
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
|
-
return (s,
|
|
292
|
+
return (s, c) => (z(), Y(q($e), {
|
|
292
293
|
layout: a.value,
|
|
293
|
-
"onUpdate:layout":
|
|
294
|
+
"onUpdate:layout": c[1] || (c[1] = (w) => a.value = w),
|
|
294
295
|
"col-num": s.colNum || 12,
|
|
295
296
|
"row-height": s.rowHeight || 30,
|
|
296
297
|
"max-rows": s.maxRows,
|
|
297
298
|
margin: [8, 8],
|
|
298
|
-
"is-draggable":
|
|
299
|
+
"is-draggable": s.isDraggable,
|
|
299
300
|
"is-bounded": "",
|
|
300
301
|
"is-resizable": !1,
|
|
301
302
|
"vertical-compact": "",
|
|
@@ -304,13 +305,14 @@ const _e = /* @__PURE__ */ X({
|
|
|
304
305
|
default: j(() => [
|
|
305
306
|
P(q(Ne), {
|
|
306
307
|
list: s.children,
|
|
307
|
-
gridData: a.value
|
|
308
|
+
gridData: a.value,
|
|
309
|
+
"onUpdate:gridData": c[0] || (c[0] = (w) => a.value = w)
|
|
308
310
|
}, null, 8, ["list", "gridData"])
|
|
309
311
|
]),
|
|
310
312
|
_: 1
|
|
311
|
-
}, 8, ["layout", "col-num", "row-height", "max-rows"]));
|
|
313
|
+
}, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
|
|
312
314
|
}
|
|
313
|
-
}), Ue = /* @__PURE__ */ Me(
|
|
315
|
+
}), Ue = /* @__PURE__ */ Me(Ee, [["__scopeId", "data-v-555e834e"]]);
|
|
314
316
|
export {
|
|
315
317
|
Ue as default
|
|
316
318
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
|
|
2
|
-
import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-
|
|
2
|
+
import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-DQ889qV3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
|
|
5
5
|
__name: "FormList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, computed as o, openBlock as a, createElementBlock as d, normalizeStyle as r, createVNode as l, unref as m } from "vue";
|
|
2
|
-
import { a as g } from "./index-
|
|
2
|
+
import { a as g } from "./index-DQ889qV3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const x = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Grid",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as l, computed as o, openBlock as r, createElementBlock as i, normalizeStyle as p, createVNode as s, unref as c } from "vue";
|
|
2
|
+
import { a as m, b as f } from "./index-DQ889qV3.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const u = /* @__PURE__ */ l({
|
|
5
|
+
__name: "Inline",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
align: {},
|
|
9
|
+
autoWrap: { type: Boolean },
|
|
10
|
+
gap: {},
|
|
11
|
+
alignItems: {},
|
|
12
|
+
style: { type: [Boolean, null, String, Object, Array] }
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
const e = t, n = o(() => ({
|
|
16
|
+
width: "100%",
|
|
17
|
+
display: "flex",
|
|
18
|
+
"justify-content": e.align,
|
|
19
|
+
"align-items": e.alignItems,
|
|
20
|
+
"flex-wrap": e.autoWrap ? "wrap" : "nowrap",
|
|
21
|
+
"overflow-x": "auto",
|
|
22
|
+
gap: `${e.gap || 12}px`,
|
|
23
|
+
...e.style || {}
|
|
24
|
+
}));
|
|
25
|
+
return (a, d) => (r(), i("div", {
|
|
26
|
+
class: "form-item-inline",
|
|
27
|
+
style: p(n.value)
|
|
28
|
+
}, [
|
|
29
|
+
s(c(m), { list: a.children }, null, 8, ["list"])
|
|
30
|
+
], 4));
|
|
31
|
+
}
|
|
32
|
+
}), x = /* @__PURE__ */ f(u, [["__scopeId", "data-v-8f8d5854"]]);
|
|
33
|
+
export {
|
|
34
|
+
x as default
|
|
35
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
|
|
2
|
-
import { b as xt, g as Nt } from "./index-
|
|
2
|
+
import { b as xt, g as Nt } from "./index-DQ889qV3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Mt = /* @__PURE__ */ At({
|
|
5
5
|
__name: "Disabled",
|
|
@@ -12,7 +12,7 @@ const Mt = /* @__PURE__ */ At({
|
|
|
12
12
|
It(Je.$slots, "default", {}, void 0, !0)
|
|
13
13
|
], 16)) : It(Je.$slots, "default", { key: 1 }, void 0, !0);
|
|
14
14
|
}
|
|
15
|
-
}), Bt = /* @__PURE__ */ xt(Mt, [["__scopeId", "data-v-
|
|
15
|
+
}), Bt = /* @__PURE__ */ xt(Mt, [["__scopeId", "data-v-f3803727"]]);
|
|
16
16
|
var kt = { exports: {} };
|
|
17
17
|
/*!
|
|
18
18
|
* jsoneditor.js
|
|
@@ -16350,7 +16350,7 @@ function Ft(je, Je, Xe, et, qe, ae) {
|
|
|
16350
16350
|
}, null, 2)
|
|
16351
16351
|
], 2);
|
|
16352
16352
|
}
|
|
16353
|
-
const Ot = /* @__PURE__ */ xt(Ht, [["render", Ft], ["__scopeId", "data-v-
|
|
16353
|
+
const Ot = /* @__PURE__ */ xt(Ht, [["render", Ft], ["__scopeId", "data-v-c53d52f1"]]), jt = /* @__PURE__ */ At({
|
|
16354
16354
|
inheritAttrs: !1,
|
|
16355
16355
|
__name: "JsonEdit",
|
|
16356
16356
|
props: /* @__PURE__ */ Tt({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as
|
|
2
|
-
import { b as y } from "./index-
|
|
1
|
+
import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as d, createElementVNode as s, normalizeStyle as i, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
|
|
2
|
+
import { b as y } from "./index-DQ889qV3.js";
|
|
3
3
|
const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "title" }, m = { class: "sub-title" }, k = { class: "content" }, C = { key: 0 }, L = /* @__PURE__ */ p({
|
|
4
4
|
__name: "LogList",
|
|
5
5
|
props: {
|
|
@@ -7,7 +7,7 @@ const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "titl
|
|
|
7
7
|
},
|
|
8
8
|
setup(x) {
|
|
9
9
|
return (_, N) => (e(), o("div", b, [
|
|
10
|
-
(e(!0), o(a, null,
|
|
10
|
+
(e(!0), o(a, null, d(_.content, (t) => {
|
|
11
11
|
var r;
|
|
12
12
|
return e(), o("div", {
|
|
13
13
|
class: "log-list-item",
|
|
@@ -15,18 +15,18 @@ const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "titl
|
|
|
15
15
|
}, [
|
|
16
16
|
s("div", {
|
|
17
17
|
class: "left-bar",
|
|
18
|
-
style:
|
|
18
|
+
style: i({ backgroundColor: t.color })
|
|
19
19
|
}, null, 4),
|
|
20
20
|
s("div", f, [
|
|
21
21
|
s("div", {
|
|
22
22
|
class: "circle",
|
|
23
|
-
style:
|
|
23
|
+
style: i({ backgroundColor: t.color })
|
|
24
24
|
}, l((r = t.title) == null ? void 0 : r[0]), 5),
|
|
25
25
|
s("div", h, l(t.title), 1),
|
|
26
26
|
s("div", m, l(t.subTitle), 1)
|
|
27
27
|
]),
|
|
28
28
|
s("div", k, [
|
|
29
|
-
(e(!0), o(a, null,
|
|
29
|
+
(e(!0), o(a, null, d(t.content, (n, c) => (e(), o("span", {
|
|
30
30
|
key: c,
|
|
31
31
|
class: u({ bold: n.style === "bold", normal: n.style === "normal" })
|
|
32
32
|
}, [
|
|
@@ -38,7 +38,7 @@ const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "titl
|
|
|
38
38
|
}), 128))
|
|
39
39
|
]));
|
|
40
40
|
}
|
|
41
|
-
}), B = /* @__PURE__ */ y(L, [["__scopeId", "data-v-
|
|
41
|
+
}), B = /* @__PURE__ */ y(L, [["__scopeId", "data-v-646d4f4d"]]);
|
|
42
42
|
export {
|
|
43
43
|
B as default
|
|
44
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
|
|
2
|
-
import { u as j, d as h, e as k } from "./index-
|
|
2
|
+
import { u as j, d as h, e as k } from "./index-DQ889qV3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
5
|
key: 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as B, resolveComponent as M, openBlock as a, createBlock as O, withCtx as E, createVNode as g, createElementVNode as i, createElementBlock as r, Fragment as u, renderList as y, toDisplayString as b, createCommentVNode as I, ref as D, inject as N, watchEffect as A, onMounted as R, normalizeStyle as S, unref as $ } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { k as U, $ as z, _ as F, b as x } from "./index-DQ889qV3.js";
|
|
3
|
+
const K = { class: "content" }, L = { class: "product-list" }, V = { class: "attribute-list" }, j = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "attribute-list-item"
|
|
6
6
|
}, q = { class: "product-title attribute-title" }, G = { class: "attribute-item-list" }, H = { class: "attribute-label" }, J = { class: "attribute-value" }, Q = /* @__PURE__ */ B({
|
|
@@ -25,19 +25,19 @@ const x = { class: "content" }, K = { class: "product-list" }, L = { class: "att
|
|
|
25
25
|
}, null, 8, ["data", "btns", "index"])
|
|
26
26
|
]),
|
|
27
27
|
default: E(() => [
|
|
28
|
-
i("div",
|
|
28
|
+
i("div", K, [
|
|
29
29
|
p[0] || (p[0] = i("div", { class: "product-title" }, "Product", -1)),
|
|
30
|
-
i("div",
|
|
30
|
+
i("div", L, [
|
|
31
31
|
(a(!0), r(u, null, y(l.data.product, (s) => (a(), r("div", {
|
|
32
32
|
class: "product-item",
|
|
33
33
|
key: s.label
|
|
34
34
|
}, b(s.label), 1))), 128))
|
|
35
35
|
]),
|
|
36
|
-
i("div",
|
|
36
|
+
i("div", V, [
|
|
37
37
|
(a(!0), r(u, null, y(l.data.product, (s) => (a(), r(u, {
|
|
38
38
|
key: s.label
|
|
39
39
|
}, [
|
|
40
|
-
s.children.length > 0 ? (a(), r("div",
|
|
40
|
+
s.children.length > 0 ? (a(), r("div", j, [
|
|
41
41
|
i("div", q, b(s.label), 1),
|
|
42
42
|
i("div", G, [
|
|
43
43
|
(a(!0), r(u, null, y(s.children, (d) => (a(), r("div", {
|
|
@@ -81,6 +81,7 @@ const x = { class: "content" }, K = { class: "product-list" }, L = { class: "att
|
|
|
81
81
|
hidden: { type: Boolean },
|
|
82
82
|
hiddenPagination: { type: Boolean },
|
|
83
83
|
handleCurrentChange: {},
|
|
84
|
+
selectable: {},
|
|
84
85
|
pageSizes: {},
|
|
85
86
|
pagerCount: {},
|
|
86
87
|
defaultPageSize: {},
|
|
@@ -176,7 +177,7 @@ const x = { class: "content" }, K = { class: "product-list" }, L = { class: "att
|
|
|
176
177
|
])) : I("", !0)
|
|
177
178
|
], 64));
|
|
178
179
|
}
|
|
179
|
-
}), ee = /* @__PURE__ */
|
|
180
|
+
}), ee = /* @__PURE__ */ x(X, [["__scopeId", "data-v-09844ac4"]]);
|
|
180
181
|
export {
|
|
181
182
|
ee as default
|
|
182
183
|
};
|