asiaint-lowcode 3.1.28 → 3.1.31
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 +112 -112
- package/dist/index.d.ts +25 -32
- package/dist/lazy/{Card-DGMh1YUW.js → Card-D8HjOL8I.js} +7 -7
- package/dist/lazy/{Cascader-B0BOUDxr.js → Cascader-DcX0HU9f.js} +1 -1
- package/dist/lazy/{Checkbox-BMqAhYnA.js → Checkbox-D8hrT_oZ.js} +2 -2
- package/dist/lazy/{Collapse-StJheEp_.js → Collapse-BU1ZdbTe.js} +1 -1
- package/dist/lazy/{Component-Cc31tfHn.js → Component-ANb1fc69.js} +1 -1
- package/dist/lazy/{Component-D8sASQfc.js → Component-BzDR4_1B.js} +1 -1
- package/dist/lazy/{Component-CkgwHFyA.js → Component-C0-Kyk4f.js} +1 -1
- package/dist/lazy/{Component-t9hOt6mg.js → Component-Ca7A-16i.js} +2 -2
- package/dist/lazy/{Component-D4L7YulM.js → Component-D-ze66va.js} +6 -6
- package/dist/lazy/{Component-C-FHt4Zt.js → Component-Dh056o-e.js} +2 -2
- package/dist/lazy/{CurdCard-D3c0LygX.js → CurdCard-Bya-Pt3V.js} +2 -2
- package/dist/lazy/{Custom-DrHpg5ld.js → Custom-CKOt7SVY.js} +7 -7
- package/dist/lazy/{DatePicker-BPN3XySz.js → DatePicker-DO6-0hKB.js} +1 -1
- package/dist/lazy/DragList-BWW2qQ_q.js +332 -0
- package/dist/lazy/{FilterSearch-vrwiLjz4.js → FilterSearch-C73AfY8V.js} +12 -12
- package/dist/lazy/{FormList-KAGUqKES.js → FormList-Ch5CDcgb.js} +1 -1
- package/dist/lazy/{Grid-G7rJU_ys.js → Grid-DTKBdz1d.js} +1 -1
- package/dist/lazy/InfiniteScroll-DO2CUHVC.js +36 -0
- package/dist/lazy/{Inline-BIUU_dU3.js → Inline-Cjo44B0J.js} +3 -3
- package/dist/lazy/{JsonEdit-BQXoso4m.js → JsonEdit-C5HF_A1u.js} +3 -3
- package/dist/lazy/{LogList-Db8vVmH3.js → LogList-CRrslqMx.js} +7 -7
- package/dist/lazy/{ObjGroup-CJUUmQXW.js → ObjGroup-CDlI7Ktb.js} +1 -1
- package/dist/lazy/{OfferDetails-DGFMJE2z.js → OfferDetails-_meQU-w_.js} +11 -11
- package/dist/lazy/{Pagination-CTGe-H1H.js → Pagination-C7pM44u3.js} +7 -7
- package/dist/lazy/{Progress-BWsAOjS3.js → Progress-Bdhoj0ZD.js} +5 -5
- package/dist/lazy/{Radio-BqnZQo_Z.js → Radio-BnhnWmW0.js} +3 -3
- package/dist/lazy/{SearchSelect-YTSmm5K1.js → SearchSelect-Bsey-hVI.js} +11 -11
- package/dist/lazy/{Select-BcKvvFlO.js → Select-Bx0Y0eIC.js} +2 -2
- package/dist/lazy/{Table-GAOuzzYK.js → Table-DnwQ4LvZ.js} +3 -3
- package/dist/lazy/{Tabs-D_iRQhnJ.js → Tabs-CxHfFdM0.js} +1 -1
- package/dist/lazy/Wrapper-BgVkNMk5.js +86 -0
- package/dist/lazy/{index-D9wRYhH_.js → index-S44_bvvo.js} +1916 -1889
- package/dist/lazy/{useSelect-Dk8O9lej.js → useSelect-BNA_IutY.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/DragList-D_VjmEi0.js +0 -328
- package/dist/lazy/Wrapper-BC219Ma2.js +0 -88
package/global.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare module 'vue' {
|
|
2
|
-
export interface GlobalComponents {
|
|
3
|
-
FormRender: (typeof import('asiaint-lowcode'))['FormRender']
|
|
4
|
-
FormDesign: (typeof import('asiaint-lowcode'))['FormDesign']
|
|
5
|
-
TableRender: (typeof import('asiaint-lowcode'))['TableRender']
|
|
6
|
-
PageRender: (typeof import('asiaint-lowcode'))['PageRender']
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export {}
|
|
1
|
+
declare module 'vue' {
|
|
2
|
+
export interface GlobalComponents {
|
|
3
|
+
FormRender: (typeof import('asiaint-lowcode'))['FormRender']
|
|
4
|
+
FormDesign: (typeof import('asiaint-lowcode'))['FormDesign']
|
|
5
|
+
TableRender: (typeof import('asiaint-lowcode'))['TableRender']
|
|
6
|
+
PageRender: (typeof import('asiaint-lowcode'))['PageRender']
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "asiaint-lowcode",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "vite build",
|
|
8
|
-
"v": "npm version patch",
|
|
9
|
-
"release": "vite build && npm publish"
|
|
10
|
-
},
|
|
11
|
-
"peerDependencies": {
|
|
12
|
-
"vue": "^3.2.0",
|
|
13
|
-
"element-plus": "^2.6.0"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"element-plus": "^2.8.3",
|
|
17
|
-
"vue": "^3.5.8"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"vite-plugin-dts": "^3.7.3",
|
|
21
|
-
"vite-plugin-libcss": "^1.1.1"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"global.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"main": "./dist/asiaint-lowcode.js",
|
|
28
|
-
"module": "./dist/asiaint-lowcode.js",
|
|
29
|
-
"types": "dist/index.d.ts",
|
|
30
|
-
"keywords": [
|
|
31
|
-
"component",
|
|
32
|
-
"vue",
|
|
33
|
-
"form",
|
|
34
|
-
"element-ui"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "asiaint-lowcode",
|
|
3
|
+
"version": "3.1.31",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"v": "npm version patch",
|
|
9
|
+
"release": "vite build && npm publish"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"vue": "^3.2.0",
|
|
13
|
+
"element-plus": "^2.6.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"element-plus": "^2.8.3",
|
|
17
|
+
"vue": "^3.5.8"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"vite-plugin-dts": "^3.7.3",
|
|
21
|
+
"vite-plugin-libcss": "^1.1.1"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"global.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"main": "./dist/asiaint-lowcode.js",
|
|
28
|
+
"module": "./dist/asiaint-lowcode.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"component",
|
|
32
|
+
"vue",
|
|
33
|
+
"form",
|
|
34
|
+
"element-ui"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
import { defineComponent as G, reactive as W, ref as F, onBeforeMount as le, onMounted as ie, nextTick as v, onBeforeUnmount as re, watch as u, provide as T, toRefs as V, openBlock as S, createElementBlock as j, normalizeStyle as ne, renderSlot as q, Fragment as se, renderList as ue, createBlock as P, mergeProps as de, withCtx as J, withDirectives as ce, createVNode as K, vShow as me, mergeModels as pe, useModel as ge, onUnmounted as ye, unref as A, readonly as O } from "vue";
|
|
2
|
-
import { w as ve, m as fe, n as he, o as b, T as we, v as xe, p as k, A as Be, q as X, x as be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as Y, V as Se, c as ze, j as Re, a as Ne, b as $e } from "./index-D9wRYhH_.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const Ie = /* @__PURE__ */ G({
|
|
5
|
-
__name: "grid-layout",
|
|
6
|
-
props: {
|
|
7
|
-
autoSize: { type: Boolean, default: !0 },
|
|
8
|
-
colNum: { default: 12 },
|
|
9
|
-
rowHeight: { default: 150 },
|
|
10
|
-
maxRows: { default: 1 / 0 },
|
|
11
|
-
margin: { default: () => [10, 10] },
|
|
12
|
-
isDraggable: { type: Boolean, default: !0 },
|
|
13
|
-
isResizable: { type: Boolean, default: !0 },
|
|
14
|
-
isMirrored: { type: Boolean, default: !1 },
|
|
15
|
-
isBounded: { type: Boolean, default: !1 },
|
|
16
|
-
useCssTransforms: { type: Boolean, default: !0 },
|
|
17
|
-
verticalCompact: { type: Boolean, default: !0 },
|
|
18
|
-
restoreOnDrag: { type: Boolean, default: !1 },
|
|
19
|
-
layout: {},
|
|
20
|
-
responsive: { type: Boolean, default: !1 },
|
|
21
|
-
responsiveLayouts: { default: () => ({}) },
|
|
22
|
-
transformScale: { default: 1 },
|
|
23
|
-
breakpoints: { default: () => ({ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }) },
|
|
24
|
-
cols: { default: () => ({ lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }) },
|
|
25
|
-
preventCollision: { type: Boolean, default: !1 },
|
|
26
|
-
useStyleCursor: { type: Boolean, default: !0 }
|
|
27
|
-
},
|
|
28
|
-
emits: [
|
|
29
|
-
"layout-before-mount",
|
|
30
|
-
"layout-mounted",
|
|
31
|
-
"layout-updated",
|
|
32
|
-
"breakpoint-changed",
|
|
33
|
-
"update:layout",
|
|
34
|
-
"layout-ready"
|
|
35
|
-
],
|
|
36
|
-
setup(C, { expose: z, emit: f }) {
|
|
37
|
-
const a = C, s = f, t = W({
|
|
38
|
-
width: -1,
|
|
39
|
-
mergedStyle: {},
|
|
40
|
-
lastLayoutLength: 0,
|
|
41
|
-
isDragging: !1,
|
|
42
|
-
placeholder: {
|
|
43
|
-
x: 0,
|
|
44
|
-
y: 0,
|
|
45
|
-
w: 0,
|
|
46
|
-
h: 0,
|
|
47
|
-
i: ""
|
|
48
|
-
},
|
|
49
|
-
layouts: {},
|
|
50
|
-
// array to store all layouts from different breakpoints
|
|
51
|
-
lastBreakpoint: null,
|
|
52
|
-
// store last active breakpoint
|
|
53
|
-
originalLayout: null
|
|
54
|
-
// store original Layout
|
|
55
|
-
}), D = /* @__PURE__ */ new Map(), l = F(a.layout), d = F(), { observeResize: R, unobserveResize: N } = ve(), o = Se();
|
|
56
|
-
o.on("resizeEvent", c), o.on("dragEvent", x), le(() => {
|
|
57
|
-
s("layout-before-mount", l.value);
|
|
58
|
-
}), ie(() => {
|
|
59
|
-
s("layout-mounted", l.value), v(() => {
|
|
60
|
-
fe(l.value), t.originalLayout = l.value, v(() => {
|
|
61
|
-
U(), d.value && R(d.value, he($, 16)), b(l.value, a.verticalCompact), s("layout-updated", l.value), h(), $();
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}), re(() => {
|
|
65
|
-
o.clearAll(), d.value && N(d.value);
|
|
66
|
-
});
|
|
67
|
-
function c(e, n, r, g, m, p) {
|
|
68
|
-
H(e, n, r, g, m, p);
|
|
69
|
-
}
|
|
70
|
-
function x(e, n, r, g, m, p) {
|
|
71
|
-
_(e, n, r, g, m, p);
|
|
72
|
-
}
|
|
73
|
-
u(
|
|
74
|
-
() => t.width,
|
|
75
|
-
(e, n) => {
|
|
76
|
-
v(() => {
|
|
77
|
-
o.emit("updateWidth", e), n === -1 && v(() => {
|
|
78
|
-
s("layout-ready", l.value);
|
|
79
|
-
}), h();
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
), u(
|
|
83
|
-
() => [a.layout, a.layout.length],
|
|
84
|
-
() => {
|
|
85
|
-
l.value = a.layout, E();
|
|
86
|
-
}
|
|
87
|
-
), u(
|
|
88
|
-
() => a.colNum,
|
|
89
|
-
(e) => {
|
|
90
|
-
o.emit("setColNum", e);
|
|
91
|
-
}
|
|
92
|
-
), u(
|
|
93
|
-
() => a.rowHeight,
|
|
94
|
-
(e) => {
|
|
95
|
-
o.emit("setRowHeight", e);
|
|
96
|
-
}
|
|
97
|
-
), u(
|
|
98
|
-
() => a.isDraggable,
|
|
99
|
-
(e) => {
|
|
100
|
-
o.emit("setDraggable", e);
|
|
101
|
-
}
|
|
102
|
-
), u(
|
|
103
|
-
() => a.isResizable,
|
|
104
|
-
(e) => {
|
|
105
|
-
o.emit("setResizable", e);
|
|
106
|
-
}
|
|
107
|
-
), u(
|
|
108
|
-
() => a.isBounded,
|
|
109
|
-
(e) => {
|
|
110
|
-
o.emit("setBounded", e);
|
|
111
|
-
}
|
|
112
|
-
), u(
|
|
113
|
-
() => a.transformScale,
|
|
114
|
-
(e) => {
|
|
115
|
-
o.emit("setTransformScale", e);
|
|
116
|
-
}
|
|
117
|
-
), u(
|
|
118
|
-
() => a.responsive,
|
|
119
|
-
(e) => {
|
|
120
|
-
e || (s("update:layout", t.originalLayout), o.emit("setColNum", a.colNum)), $();
|
|
121
|
-
}
|
|
122
|
-
), u(
|
|
123
|
-
() => a.maxRows,
|
|
124
|
-
(e) => {
|
|
125
|
-
o.emit("setMaxRows", e);
|
|
126
|
-
}
|
|
127
|
-
), u([() => a.margin, () => a.margin[1]], h), T(
|
|
128
|
-
we,
|
|
129
|
-
W({
|
|
130
|
-
...V(a),
|
|
131
|
-
...V(t),
|
|
132
|
-
increaseItem: Q,
|
|
133
|
-
decreaseItem: Z
|
|
134
|
-
})
|
|
135
|
-
), T(xe, o), z({ state: t, getItem: ee, resizeEvent: H, dragEvent: _, layoutUpdate: E });
|
|
136
|
-
function Q(e) {
|
|
137
|
-
D.set(e.i, e);
|
|
138
|
-
}
|
|
139
|
-
function Z(e) {
|
|
140
|
-
D.delete(e.i);
|
|
141
|
-
}
|
|
142
|
-
function ee(e) {
|
|
143
|
-
return D.get(e);
|
|
144
|
-
}
|
|
145
|
-
function E() {
|
|
146
|
-
if (!k(l.value) && !k(t.originalLayout)) {
|
|
147
|
-
if (l.value.length !== t.originalLayout.length) {
|
|
148
|
-
const e = oe(l.value, t.originalLayout);
|
|
149
|
-
if (e.length > 0)
|
|
150
|
-
if (l.value.length > t.originalLayout.length)
|
|
151
|
-
t.originalLayout = t.originalLayout.concat(e);
|
|
152
|
-
else {
|
|
153
|
-
const n = new Set(e.map((r) => r.i));
|
|
154
|
-
t.originalLayout = t.originalLayout.filter((r) => !n.has(r.i));
|
|
155
|
-
}
|
|
156
|
-
t.lastLayoutLength = l.value.length, U();
|
|
157
|
-
}
|
|
158
|
-
b(l.value, a.verticalCompact), o.emit("updateWidth", t.width), h(), s("layout-updated", l.value);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function h() {
|
|
162
|
-
t.mergedStyle = {
|
|
163
|
-
height: te()
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function $() {
|
|
167
|
-
d.value && (t.width = d.value.offsetWidth), o.emit("resizeEvent");
|
|
168
|
-
}
|
|
169
|
-
function te() {
|
|
170
|
-
if (!a.autoSize) return;
|
|
171
|
-
const e = parseFloat(a.margin[1]);
|
|
172
|
-
return Be(l.value) * (a.rowHeight + e) + e + "px";
|
|
173
|
-
}
|
|
174
|
-
let I;
|
|
175
|
-
function _(e, n, r, g, m, p) {
|
|
176
|
-
let i = X(l.value, n);
|
|
177
|
-
k(i) && (i = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (I = l.value.reduce(
|
|
178
|
-
(B, { i: L, x: y, y: w }) => ({
|
|
179
|
-
...B,
|
|
180
|
-
[L]: { x: y, y: w }
|
|
181
|
-
}),
|
|
182
|
-
{}
|
|
183
|
-
)), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = i.x, t.placeholder.y = i.y, t.placeholder.w = p, t.placeholder.h = m, v(() => {
|
|
184
|
-
t.isDragging = !0;
|
|
185
|
-
}), o.emit("updateWidth", t.width)) : v(() => {
|
|
186
|
-
t.isDragging = !1;
|
|
187
|
-
}), l.value = be(l.value, i, r, g, !0, a.preventCollision), a.restoreOnDrag ? (i.static = !0, b(l.value, a.verticalCompact, I), i.static = !1) : b(l.value, a.verticalCompact), o.emit("compact"), h(), e === "dragend" && (I = void 0, s("layout-updated", l.value));
|
|
188
|
-
}
|
|
189
|
-
function H(e, n, r, g, m, p) {
|
|
190
|
-
let i = X(l.value, n);
|
|
191
|
-
k(i) && (i = { h: 0, w: 0, x: 0, y: 0, i: "" });
|
|
192
|
-
let B;
|
|
193
|
-
if (a.preventCollision) {
|
|
194
|
-
const L = ke(l.value, { ...i, w: p, h: m }).filter(
|
|
195
|
-
(y) => y.i !== i.i
|
|
196
|
-
);
|
|
197
|
-
if (B = L.length > 0, B) {
|
|
198
|
-
let y = 1 / 0, w = 1 / 0;
|
|
199
|
-
L.forEach((M) => {
|
|
200
|
-
M.x > i.x && (y = Math.min(y, M.x)), M.y > i.y && (w = Math.min(w, M.y));
|
|
201
|
-
}), Number.isFinite(y) && (i.w = y - i.x), Number.isFinite(w) && (i.h = w - i.y);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
B || (i.w = p, i.h = m), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = r, t.placeholder.y = g, t.placeholder.w = i.w, t.placeholder.h = i.h, v(() => {
|
|
205
|
-
t.isDragging = !0;
|
|
206
|
-
}), o.emit("updateWidth", t.width)) : e && v(() => {
|
|
207
|
-
t.isDragging = !1;
|
|
208
|
-
}), a.responsive && ae(), b(l.value, a.verticalCompact), o.emit("compact"), h(), e === "resizeend" && s("layout-updated", l.value);
|
|
209
|
-
}
|
|
210
|
-
function ae() {
|
|
211
|
-
const e = Ce(a.breakpoints, t.width);
|
|
212
|
-
if (e === t.lastBreakpoint)
|
|
213
|
-
return;
|
|
214
|
-
const n = De(e, a.cols);
|
|
215
|
-
!k(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = Le(l.value));
|
|
216
|
-
const r = Me(
|
|
217
|
-
t.originalLayout,
|
|
218
|
-
t.layouts,
|
|
219
|
-
a.breakpoints,
|
|
220
|
-
e,
|
|
221
|
-
t.lastBreakpoint,
|
|
222
|
-
n,
|
|
223
|
-
a.verticalCompact
|
|
224
|
-
);
|
|
225
|
-
t.layouts[e] = r, t.lastBreakpoint !== e && s("breakpoint-changed", e, r), l.value = r, s("update:layout", r), t.lastBreakpoint = e, o.emit("setColNum", n);
|
|
226
|
-
}
|
|
227
|
-
function U() {
|
|
228
|
-
t.layouts = Object.assign({}, a.responsiveLayouts);
|
|
229
|
-
}
|
|
230
|
-
function oe(e, n) {
|
|
231
|
-
const r = new Set(n.map((i) => i.i)), g = new Set(e.map((i) => i.i)), m = e.filter((i) => !r.has(i.i)), p = n.filter((i) => !g.has(i.i));
|
|
232
|
-
return m.concat(p);
|
|
233
|
-
}
|
|
234
|
-
return (e, n) => (S(), j("div", {
|
|
235
|
-
ref_key: "wrapper",
|
|
236
|
-
ref: d,
|
|
237
|
-
class: "vgl-layout",
|
|
238
|
-
style: ne(t.mergedStyle)
|
|
239
|
-
}, [
|
|
240
|
-
e.$slots.default ? q(e.$slots, "default", { key: 0 }) : (S(!0), j(se, { key: 1 }, ue(l.value, (r) => (S(), P(Y, de({
|
|
241
|
-
key: r.i,
|
|
242
|
-
ref_for: !0
|
|
243
|
-
}, r), {
|
|
244
|
-
default: J(() => [
|
|
245
|
-
q(e.$slots, "item", { item: r })
|
|
246
|
-
]),
|
|
247
|
-
_: 2
|
|
248
|
-
}, 1040))), 128)),
|
|
249
|
-
ce(K(Y, {
|
|
250
|
-
class: "vgl-item--placeholder",
|
|
251
|
-
x: t.placeholder.x,
|
|
252
|
-
y: t.placeholder.y,
|
|
253
|
-
w: t.placeholder.w,
|
|
254
|
-
h: t.placeholder.h,
|
|
255
|
-
i: t.placeholder.i
|
|
256
|
-
}, null, 8, ["x", "y", "w", "h", "i"]), [
|
|
257
|
-
[me, t.isDragging]
|
|
258
|
-
])
|
|
259
|
-
], 4));
|
|
260
|
-
}
|
|
261
|
-
}), Ee = /* @__PURE__ */ G({
|
|
262
|
-
__name: "DragList",
|
|
263
|
-
props: /* @__PURE__ */ pe({
|
|
264
|
-
children: {},
|
|
265
|
-
rowHeight: {},
|
|
266
|
-
colNum: {},
|
|
267
|
-
maxRows: {},
|
|
268
|
-
isDraggable: { type: Boolean },
|
|
269
|
-
name: {},
|
|
270
|
-
onMoved: {}
|
|
271
|
-
}, {
|
|
272
|
-
gridlayout: { required: !0 },
|
|
273
|
-
gridlayoutModifiers: {}
|
|
274
|
-
}),
|
|
275
|
-
emits: ["update:gridlayout"],
|
|
276
|
-
setup(C, { expose: z }) {
|
|
277
|
-
const f = C, a = ge(C, "gridlayout"), l = {
|
|
278
|
-
getLayout: () => O(a),
|
|
279
|
-
setItemX: (o, c) => {
|
|
280
|
-
a.value[o].x = c;
|
|
281
|
-
},
|
|
282
|
-
setItemY: (o, c) => {
|
|
283
|
-
a.value[o].y = c;
|
|
284
|
-
},
|
|
285
|
-
type: "draglist"
|
|
286
|
-
}, { ruleModule: d, pageMethodMap: R } = ze(), N = () => {
|
|
287
|
-
if (f.onMoved && d)
|
|
288
|
-
try {
|
|
289
|
-
d[f.onMoved](R, O(a.value));
|
|
290
|
-
} catch (o) {
|
|
291
|
-
console.error(o + `
|
|
292
|
-
onMoved: ${f.onMoved}`);
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
if (z(l), f.name) {
|
|
296
|
-
const o = Re(f.name, l);
|
|
297
|
-
ye(() => {
|
|
298
|
-
o();
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
return (o, c) => (S(), P(A(Ie), {
|
|
302
|
-
layout: a.value,
|
|
303
|
-
"onUpdate:layout": c[1] || (c[1] = (x) => a.value = x),
|
|
304
|
-
"col-num": o.colNum || 12,
|
|
305
|
-
"row-height": o.rowHeight || 30,
|
|
306
|
-
"max-rows": o.maxRows,
|
|
307
|
-
margin: [8, 8],
|
|
308
|
-
"is-draggable": o.isDraggable,
|
|
309
|
-
"is-bounded": "",
|
|
310
|
-
"is-resizable": !1,
|
|
311
|
-
"vertical-compact": "",
|
|
312
|
-
"use-css-transforms": ""
|
|
313
|
-
}, {
|
|
314
|
-
default: J(() => [
|
|
315
|
-
K(A(Ne), {
|
|
316
|
-
list: o.children,
|
|
317
|
-
gridData: a.value,
|
|
318
|
-
"onUpdate:gridData": c[0] || (c[0] = (x) => a.value = x),
|
|
319
|
-
onGridItemMoved: N
|
|
320
|
-
}, null, 8, ["list", "gridData"])
|
|
321
|
-
]),
|
|
322
|
-
_: 1
|
|
323
|
-
}, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
|
|
324
|
-
}
|
|
325
|
-
}), We = /* @__PURE__ */ $e(Ee, [["__scopeId", "data-v-4c9d1c4f"]]);
|
|
326
|
-
export {
|
|
327
|
-
We as default
|
|
328
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, ref as i, resolveComponent as C, openBlock as l, createElementBlock as t, normalizeStyle as c, createVNode as r, withCtx as _, withDirectives as g, createElementVNode as x, normalizeClass as d, unref as S, createCommentVNode as u, vShow as b } from "vue";
|
|
2
|
-
import { c as B, a as k, I as y, b as E } from "./index-D9wRYhH_.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const D = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "dropdown-icon-wrapper"
|
|
7
|
-
}, I = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "expansion-icon-wrapper"
|
|
10
|
-
}, j = /* @__PURE__ */ f({
|
|
11
|
-
__name: "Wrapper",
|
|
12
|
-
props: {
|
|
13
|
-
children: {},
|
|
14
|
-
style: { type: [Boolean, null, String, Object, Array] },
|
|
15
|
-
innerStyle: { type: [Boolean, null, String, Object, Array] },
|
|
16
|
-
type: {},
|
|
17
|
-
collapse: { type: Boolean },
|
|
18
|
-
dropdown: { type: Boolean },
|
|
19
|
-
expansion: { type: Boolean },
|
|
20
|
-
expansionIconTop: {},
|
|
21
|
-
onDropdownChange: {},
|
|
22
|
-
onExpand: {}
|
|
23
|
-
},
|
|
24
|
-
setup(m) {
|
|
25
|
-
const o = m, { ruleModule: s, pageMethodMap: p } = B(), n = i(!1), h = () => {
|
|
26
|
-
if (o.onDropdownChange) {
|
|
27
|
-
n.value = !n.value;
|
|
28
|
-
try {
|
|
29
|
-
s[o.onDropdownChange](p, n.value);
|
|
30
|
-
} catch (e) {
|
|
31
|
-
console.error(e);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}, a = i(!1), v = () => {
|
|
35
|
-
if (o.onExpand) {
|
|
36
|
-
a.value = !a.value;
|
|
37
|
-
try {
|
|
38
|
-
s[o.onExpand](p, a.value);
|
|
39
|
-
} catch (e) {
|
|
40
|
-
console.error(e);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return (e, M) => {
|
|
45
|
-
const w = C("el-collapse-transition");
|
|
46
|
-
return l(), t("div", {
|
|
47
|
-
style: c(e.style)
|
|
48
|
-
}, [
|
|
49
|
-
r(w, null, {
|
|
50
|
-
default: _(() => [
|
|
51
|
-
g(x("div", {
|
|
52
|
-
class: d({
|
|
53
|
-
normal: e.type === "normal",
|
|
54
|
-
onlytable: e.type === "onlytable",
|
|
55
|
-
dropdownChildren: e.type === "dropdown-children",
|
|
56
|
-
expansionWrapper: e.expansion
|
|
57
|
-
}),
|
|
58
|
-
style: c(e.innerStyle)
|
|
59
|
-
}, [
|
|
60
|
-
r(S(k), { list: e.children }, null, 8, ["list"]),
|
|
61
|
-
e.dropdown ? (l(), t("div", D, [
|
|
62
|
-
r(y, {
|
|
63
|
-
name: "icon-xialaliebiao",
|
|
64
|
-
color: "#666666",
|
|
65
|
-
onClick: h,
|
|
66
|
-
class: d({ reversed: n.value })
|
|
67
|
-
}, null, 8, ["class"])
|
|
68
|
-
])) : u("", !0),
|
|
69
|
-
e.expansion ? (l(), t("div", I, [
|
|
70
|
-
r(y, {
|
|
71
|
-
name: "icon-shuangxiangjiantou",
|
|
72
|
-
color: a.value ? "var(--el-color-primary)" : "#666666",
|
|
73
|
-
onClick: v
|
|
74
|
-
}, null, 8, ["color"])
|
|
75
|
-
])) : u("", !0)
|
|
76
|
-
], 6), [
|
|
77
|
-
[b, !e.collapse]
|
|
78
|
-
])
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
})
|
|
82
|
-
], 4);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}), z = /* @__PURE__ */ E(j, [["__scopeId", "data-v-73936db9"]]);
|
|
86
|
-
export {
|
|
87
|
-
z as default
|
|
88
|
-
};
|