asiaint-lowcode 3.1.93 → 3.1.95
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 +5 -5
- package/dist/asiaint-lowcode.umd.cjs +201 -201
- package/dist/index.d.ts +10 -6
- package/dist/lazy/{Card-BWGSV6sU.js → Card-BhY-Fgst.js} +23 -23
- package/dist/lazy/{Cascader-Cr2NVyVe.js → Cascader-XmlSMGR-.js} +1 -1
- package/dist/lazy/{Checkbox-B_2PQrFm.js → Checkbox-CrJQ8b8m.js} +2 -2
- package/dist/lazy/{Collapse-C3Zror2h.js → Collapse-DqnyhAKc.js} +1 -1
- package/dist/lazy/{Component-Doy8UdYy.js → Component-B23-F8PM.js} +2 -2
- package/dist/lazy/{Component-B3vpWckv.js → Component-COtlon_D.js} +2 -2
- package/dist/lazy/{Component-nqp6BzE6.js → Component-QMMxoqr-.js} +2 -2
- package/dist/lazy/{Component-BgzATNI3.js → Component-WjOc3pgY.js} +1 -1
- package/dist/lazy/{Component-Bpw0AOB6.js → Component-cdlyuX7M.js} +1 -1
- package/dist/lazy/{CurdCard-CcbhWGL6.js → CurdCard-bIgeGeGY.js} +2 -2
- package/dist/lazy/Custom-BEOBirL3.js +26 -0
- package/dist/lazy/{DatePicker-C41m2J0u.js → DatePicker-BZ47Q3q2.js} +1 -1
- package/dist/lazy/DragList-zLDHmPDQ.js +914 -0
- package/dist/lazy/{FilterSearch-Dk2OKYuk.js → FilterSearch-CO2FlIyD.js} +2 -2
- package/dist/lazy/{FloatCurd-PB1FzQYA.js → FloatCurd-1VPT60ZY.js} +9 -9
- package/dist/lazy/{FormList-D-yanIhW.js → FormList-Wx2L66o7.js} +1 -1
- package/dist/lazy/{Grid-DcnXDj44.js → Grid-DlILNB9S.js} +1 -1
- package/dist/lazy/{InfiniteScroll-CxGvFAxT.js → InfiniteScroll-B3061oQO.js} +4 -4
- package/dist/lazy/{Inline-BJu_ES59.js → Inline-C8riJsdB.js} +3 -3
- package/dist/lazy/{JsonEdit-CClXBlM_.js → JsonEdit-BOelGcOE.js} +3 -3
- package/dist/lazy/{LogList-DwTnEA0i.js → LogList-D7ElDBYm.js} +7 -7
- package/dist/lazy/{ObjGroup-Bd7HWXRi.js → ObjGroup-Ba4h-63z.js} +1 -1
- package/dist/lazy/{OfferDetails-BtD0zmf-.js → OfferDetails-BoLxA9RR.js} +11 -11
- package/dist/lazy/{Pagination-D4y4VJ8v.js → Pagination-BfNB0GsN.js} +4 -4
- package/dist/lazy/{Progress-DeyEG_Es.js → Progress-zv0m0NuE.js} +15 -15
- package/dist/lazy/{Radio-D84fKW3L.js → Radio-Dm1-45A9.js} +3 -3
- package/dist/lazy/{SearchSelect-oO5KjM_l.js → SearchSelect-C8xykgog.js} +6 -6
- package/dist/lazy/{Select-mRt2EJE4.js → Select-CtWC9yZU.js} +2 -2
- package/dist/lazy/{Table-DWp7dPQV.js → Table-DJ5mwyGc.js} +58 -58
- package/dist/lazy/Tabs-CvgTo7F0.js +147 -0
- package/dist/lazy/{TextArea-sfKHVKrN.js → TextArea-B9Bpg1Ki.js} +3 -3
- package/dist/lazy/{Wrapper-DZJLn9b5.js → Wrapper-B6vwgP3v.js} +2 -2
- package/dist/lazy/{index-Cc8kiisD.js → index-BQVdPFcV.js} +7631 -7197
- package/dist/lazy/{useSelect-CT1JUolL.js → useSelect-SPtTN3jR.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Custom-Cg-SKqfR.js +0 -26
- package/dist/lazy/DragList-D71j523z.js +0 -332
- package/dist/lazy/Tabs-BonU3MhH.js +0 -133
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": "
|
|
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.95",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"v": "npm version patch",
|
|
9
|
+
"release": "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,26 +0,0 @@
|
|
|
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 { _ as i } from "./index-Cc8kiisD.js";
|
|
3
|
-
const f = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "empty"
|
|
6
|
-
}, _ = /* @__PURE__ */ n({
|
|
7
|
-
__name: "Custom",
|
|
8
|
-
props: /* @__PURE__ */ s({
|
|
9
|
-
componentName: {}
|
|
10
|
-
}, {
|
|
11
|
-
modelValue: {},
|
|
12
|
-
modelModifiers: {}
|
|
13
|
-
}),
|
|
14
|
-
emits: ["update:modelValue"],
|
|
15
|
-
setup(a) {
|
|
16
|
-
const o = p(a, "modelValue");
|
|
17
|
-
return (e, m) => e.componentName ? (t(), u(d(e.componentName), c({
|
|
18
|
-
key: 1,
|
|
19
|
-
modelValue: o.value,
|
|
20
|
-
"onUpdate:modelValue": m[0] || (m[0] = (l) => o.value = l)
|
|
21
|
-
}, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", f, "请输入全局注册得组件名"));
|
|
22
|
-
}
|
|
23
|
-
}), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-a013b8cf"]]);
|
|
24
|
-
export {
|
|
25
|
-
v as default
|
|
26
|
-
};
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
import { defineComponent as J, reactive as F, ref as T, onBeforeMount as le, onMounted as ie, nextTick as h, onBeforeUnmount as re, watch as c, provide as j, toRefs as q, openBlock as R, createElementBlock as A, normalizeStyle as ne, renderSlot as O, Fragment as se, renderList as ue, createBlock as K, mergeProps as de, withCtx as Q, withDirectives as ce, createVNode as Z, vShow as me, mergeModels as ge, useModel as pe, onUnmounted as ye, unref as X, readonly as Y } from "vue";
|
|
2
|
-
import { w as ve, m as fe, n as he, o as k, T as we, v as xe, p as C, A as be, q as G, x as Be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as P, V as Se, c as ze, j as Re, b as Ie, _ as Ne } from "./index-Cc8kiisD.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const $e = /* @__PURE__ */ J({
|
|
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(D, { expose: I, emit: w }) {
|
|
37
|
-
const a = D, d = w, t = F({
|
|
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
|
-
}), L = /* @__PURE__ */ new Map(), o = T(a.layout), m = T(), { observeResize: M, unobserveResize: N } = ve(), i = Se();
|
|
56
|
-
i.on("resizeEvent", s), i.on("dragEvent", u), le(() => {
|
|
57
|
-
d("layout-before-mount", o.value);
|
|
58
|
-
}), ie(() => {
|
|
59
|
-
d("layout-mounted", o.value), h(() => {
|
|
60
|
-
fe(o.value), t.originalLayout = o.value, h(() => {
|
|
61
|
-
W(), m.value && M(m.value, he(E, 16)), k(o.value, a.verticalCompact), d("layout-updated", o.value), x(), E();
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}), re(() => {
|
|
65
|
-
i.clearAll(), m.value && N(m.value);
|
|
66
|
-
});
|
|
67
|
-
function s(e, n, r, v, g, p) {
|
|
68
|
-
V(e, n, r, v, g, p);
|
|
69
|
-
}
|
|
70
|
-
function u(e, n, r, v, g, p) {
|
|
71
|
-
U(e, n, r, v, g, p);
|
|
72
|
-
}
|
|
73
|
-
c(
|
|
74
|
-
() => t.width,
|
|
75
|
-
(e, n) => {
|
|
76
|
-
h(() => {
|
|
77
|
-
i.emit("updateWidth", e), n === -1 && h(() => {
|
|
78
|
-
d("layout-ready", o.value);
|
|
79
|
-
}), x();
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
), c(
|
|
83
|
-
() => [a.layout, a.layout.length],
|
|
84
|
-
() => {
|
|
85
|
-
o.value = a.layout, H();
|
|
86
|
-
}
|
|
87
|
-
), c(
|
|
88
|
-
() => a.colNum,
|
|
89
|
-
(e) => {
|
|
90
|
-
i.emit("setColNum", e);
|
|
91
|
-
}
|
|
92
|
-
), c(
|
|
93
|
-
() => a.rowHeight,
|
|
94
|
-
(e) => {
|
|
95
|
-
i.emit("setRowHeight", e);
|
|
96
|
-
}
|
|
97
|
-
), c(
|
|
98
|
-
() => a.isDraggable,
|
|
99
|
-
(e) => {
|
|
100
|
-
i.emit("setDraggable", e);
|
|
101
|
-
}
|
|
102
|
-
), c(
|
|
103
|
-
() => a.isResizable,
|
|
104
|
-
(e) => {
|
|
105
|
-
i.emit("setResizable", e);
|
|
106
|
-
}
|
|
107
|
-
), c(
|
|
108
|
-
() => a.isBounded,
|
|
109
|
-
(e) => {
|
|
110
|
-
i.emit("setBounded", e);
|
|
111
|
-
}
|
|
112
|
-
), c(
|
|
113
|
-
() => a.transformScale,
|
|
114
|
-
(e) => {
|
|
115
|
-
i.emit("setTransformScale", e);
|
|
116
|
-
}
|
|
117
|
-
), c(
|
|
118
|
-
() => a.responsive,
|
|
119
|
-
(e) => {
|
|
120
|
-
e || (d("update:layout", t.originalLayout), i.emit("setColNum", a.colNum)), E();
|
|
121
|
-
}
|
|
122
|
-
), c(
|
|
123
|
-
() => a.maxRows,
|
|
124
|
-
(e) => {
|
|
125
|
-
i.emit("setMaxRows", e);
|
|
126
|
-
}
|
|
127
|
-
), c([() => a.margin, () => a.margin[1]], x), j(
|
|
128
|
-
we,
|
|
129
|
-
F({
|
|
130
|
-
...q(a),
|
|
131
|
-
...q(t),
|
|
132
|
-
increaseItem: y,
|
|
133
|
-
decreaseItem: $
|
|
134
|
-
})
|
|
135
|
-
), j(xe, i), I({ state: t, getItem: ee, resizeEvent: V, dragEvent: U, layoutUpdate: H });
|
|
136
|
-
function y(e) {
|
|
137
|
-
L.set(e.i, e);
|
|
138
|
-
}
|
|
139
|
-
function $(e) {
|
|
140
|
-
L.delete(e.i);
|
|
141
|
-
}
|
|
142
|
-
function ee(e) {
|
|
143
|
-
return L.get(e);
|
|
144
|
-
}
|
|
145
|
-
function H() {
|
|
146
|
-
if (!C(o.value) && !C(t.originalLayout)) {
|
|
147
|
-
if (o.value.length !== t.originalLayout.length) {
|
|
148
|
-
const e = oe(o.value, t.originalLayout);
|
|
149
|
-
if (e.length > 0)
|
|
150
|
-
if (o.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 = o.value.length, W();
|
|
157
|
-
}
|
|
158
|
-
k(o.value, a.verticalCompact), i.emit("updateWidth", t.width), x(), d("layout-updated", o.value);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function x() {
|
|
162
|
-
t.mergedStyle = {
|
|
163
|
-
height: te()
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function E() {
|
|
167
|
-
m.value && (t.width = m.value.offsetWidth), i.emit("resizeEvent");
|
|
168
|
-
}
|
|
169
|
-
function te() {
|
|
170
|
-
if (!a.autoSize) return;
|
|
171
|
-
const e = parseFloat(a.margin[1]);
|
|
172
|
-
return be(o.value) * (a.rowHeight + e) + e + "px";
|
|
173
|
-
}
|
|
174
|
-
let _;
|
|
175
|
-
function U(e, n, r, v, g, p) {
|
|
176
|
-
let l = G(o.value, n);
|
|
177
|
-
C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (_ = o.value.reduce(
|
|
178
|
-
(B, { i: S, x: f, y: b }) => ({
|
|
179
|
-
...B,
|
|
180
|
-
[S]: { x: f, y: b }
|
|
181
|
-
}),
|
|
182
|
-
{}
|
|
183
|
-
)), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = l.x, t.placeholder.y = l.y, t.placeholder.w = p, t.placeholder.h = g, h(() => {
|
|
184
|
-
t.isDragging = !0;
|
|
185
|
-
}), i.emit("updateWidth", t.width)) : h(() => {
|
|
186
|
-
t.isDragging = !1;
|
|
187
|
-
}), o.value = Be(o.value, l, r, v, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0, k(o.value, a.verticalCompact, _), l.static = !1) : k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "dragend" && (_ = void 0, d("layout-updated", o.value));
|
|
188
|
-
}
|
|
189
|
-
function V(e, n, r, v, g, p) {
|
|
190
|
-
let l = G(o.value, n);
|
|
191
|
-
C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" });
|
|
192
|
-
let B;
|
|
193
|
-
if (a.preventCollision) {
|
|
194
|
-
const S = ke(o.value, { ...l, w: p, h: g }).filter(
|
|
195
|
-
(f) => f.i !== l.i
|
|
196
|
-
);
|
|
197
|
-
if (B = S.length > 0, B) {
|
|
198
|
-
let f = 1 / 0, b = 1 / 0;
|
|
199
|
-
S.forEach((z) => {
|
|
200
|
-
z.x > l.x && (f = Math.min(f, z.x)), z.y > l.y && (b = Math.min(b, z.y));
|
|
201
|
-
}), Number.isFinite(f) && (l.w = f - l.x), Number.isFinite(b) && (l.h = b - l.y);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
B || (l.w = p, l.h = g), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = r, t.placeholder.y = v, t.placeholder.w = l.w, t.placeholder.h = l.h, h(() => {
|
|
205
|
-
t.isDragging = !0;
|
|
206
|
-
}), i.emit("updateWidth", t.width)) : e && h(() => {
|
|
207
|
-
t.isDragging = !1;
|
|
208
|
-
}), a.responsive && ae(), k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "resizeend" && d("layout-updated", o.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
|
-
!C(t.lastBreakpoint) && !t.layouts[t.lastBreakpoint] && (t.layouts[t.lastBreakpoint] = Le(o.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 && d("breakpoint-changed", e, r), o.value = r, d("update:layout", r), t.lastBreakpoint = e, i.emit("setColNum", n);
|
|
226
|
-
}
|
|
227
|
-
function W() {
|
|
228
|
-
t.layouts = Object.assign({}, a.responsiveLayouts);
|
|
229
|
-
}
|
|
230
|
-
function oe(e, n) {
|
|
231
|
-
const r = new Set(n.map((l) => l.i)), v = new Set(e.map((l) => l.i)), g = e.filter((l) => !r.has(l.i)), p = n.filter((l) => !v.has(l.i));
|
|
232
|
-
return g.concat(p);
|
|
233
|
-
}
|
|
234
|
-
return (e, n) => (R(), A("div", {
|
|
235
|
-
ref_key: "wrapper",
|
|
236
|
-
ref: m,
|
|
237
|
-
class: "vgl-layout",
|
|
238
|
-
style: ne(t.mergedStyle)
|
|
239
|
-
}, [
|
|
240
|
-
e.$slots.default ? O(e.$slots, "default", { key: 0 }) : (R(!0), A(se, { key: 1 }, ue(o.value, (r) => (R(), K(P, de({
|
|
241
|
-
key: r.i,
|
|
242
|
-
ref_for: !0
|
|
243
|
-
}, r), {
|
|
244
|
-
default: Q(() => [
|
|
245
|
-
O(e.$slots, "item", { item: r })
|
|
246
|
-
]),
|
|
247
|
-
_: 2
|
|
248
|
-
}, 1040))), 128)),
|
|
249
|
-
ce(Z(P, {
|
|
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__ */ J({
|
|
262
|
-
__name: "DragList",
|
|
263
|
-
props: /* @__PURE__ */ ge({
|
|
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(D, { expose: I }) {
|
|
277
|
-
const w = D, a = pe(D, "gridlayout"), m = {
|
|
278
|
-
getLayout: () => Y(a),
|
|
279
|
-
setItemX: (s, u) => {
|
|
280
|
-
a.value[s].x = u;
|
|
281
|
-
},
|
|
282
|
-
setItemY: (s, u) => {
|
|
283
|
-
a.value[s].y = u;
|
|
284
|
-
},
|
|
285
|
-
setItemVisible: (s, u) => {
|
|
286
|
-
const y = a.value.find(($) => $.i === s);
|
|
287
|
-
y && (y.h = u ? y.contentHeight || 1 : 0);
|
|
288
|
-
},
|
|
289
|
-
type: "draglist"
|
|
290
|
-
}, { ruleModule: M, pageMethodMap: N } = ze(), i = () => {
|
|
291
|
-
if (w.onMoved && M)
|
|
292
|
-
try {
|
|
293
|
-
M[w.onMoved](N, Y(a.value));
|
|
294
|
-
} catch (s) {
|
|
295
|
-
console.error(s + `
|
|
296
|
-
onMoved: ${w.onMoved}`);
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
if (I(m), w.name) {
|
|
300
|
-
const s = Re(w.name, m);
|
|
301
|
-
ye(() => {
|
|
302
|
-
s();
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
return (s, u) => (R(), K(X($e), {
|
|
306
|
-
layout: a.value,
|
|
307
|
-
"onUpdate:layout": u[1] || (u[1] = (y) => a.value = y),
|
|
308
|
-
"col-num": s.colNum || 12,
|
|
309
|
-
"row-height": s.rowHeight || 30,
|
|
310
|
-
"max-rows": s.maxRows,
|
|
311
|
-
margin: [8, 8],
|
|
312
|
-
"is-draggable": s.isDraggable,
|
|
313
|
-
"is-bounded": "",
|
|
314
|
-
"is-resizable": !1,
|
|
315
|
-
"vertical-compact": "",
|
|
316
|
-
"use-css-transforms": ""
|
|
317
|
-
}, {
|
|
318
|
-
default: Q(() => [
|
|
319
|
-
Z(X(Ie), {
|
|
320
|
-
list: s.children,
|
|
321
|
-
gridData: a.value,
|
|
322
|
-
"onUpdate:gridData": u[0] || (u[0] = (y) => a.value = y),
|
|
323
|
-
onGridItemMoved: i
|
|
324
|
-
}, null, 8, ["list", "gridData"])
|
|
325
|
-
]),
|
|
326
|
-
_: 1
|
|
327
|
-
}, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
|
|
328
|
-
}
|
|
329
|
-
}), Ve = /* @__PURE__ */ Ne(Ee, [["__scopeId", "data-v-f58dab66"]]);
|
|
330
|
-
export {
|
|
331
|
-
Ve as default
|
|
332
|
-
};
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, ref as V, computed as I, watch as _, onMounted as L, resolveComponent as g, openBlock as t, createBlock as p, mergeProps as C, withCtx as c, createElementVNode as s, createElementBlock as l, Fragment as d, renderList as m, createVNode as f, createCommentVNode as i, toDisplayString as M, normalizeClass as E, unref as F } from "vue";
|
|
2
|
-
import { c as $, I as h, b as z, _ as A } from "./index-Cc8kiisD.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const D = { class: "right-icon-wrapper" }, P = { class: "dynamic-icon-wrapper" }, R = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "dynamic-icon-item"
|
|
7
|
-
}, S = { class: "static-icon-wrapper" }, U = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "static-icon-item"
|
|
10
|
-
}, j = { class: "tab-label" }, q = { class: "tab-label-text" }, G = /* @__PURE__ */ K({
|
|
11
|
-
__name: "Tabs",
|
|
12
|
-
props: {
|
|
13
|
-
id: {},
|
|
14
|
-
children: {},
|
|
15
|
-
defaultKey: {},
|
|
16
|
-
tabChange: {},
|
|
17
|
-
onBeforeLeave: {},
|
|
18
|
-
styleType: { default: "normal" },
|
|
19
|
-
staticBtns: {},
|
|
20
|
-
dynamicBtns: {}
|
|
21
|
-
},
|
|
22
|
-
setup(k) {
|
|
23
|
-
const a = k, r = V(""), T = I(() => {
|
|
24
|
-
const e = a.children.findIndex((o) => o.name === r.value);
|
|
25
|
-
return e - 1 >= 0 ? e - 1 : null;
|
|
26
|
-
}), { ruleModule: y, pageMethodMap: b } = $();
|
|
27
|
-
function B(e) {
|
|
28
|
-
if (a.tabChange)
|
|
29
|
-
try {
|
|
30
|
-
y[a.tabChange](b, e);
|
|
31
|
-
} catch (o) {
|
|
32
|
-
console.error(o);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
async function N(e, o) {
|
|
36
|
-
if (a.onBeforeLeave)
|
|
37
|
-
try {
|
|
38
|
-
return await y[a.onBeforeLeave](b, e, o);
|
|
39
|
-
} catch (u) {
|
|
40
|
-
console.error(u);
|
|
41
|
-
}
|
|
42
|
-
return !0;
|
|
43
|
-
}
|
|
44
|
-
return _(
|
|
45
|
-
() => a.children,
|
|
46
|
-
() => {
|
|
47
|
-
a.children.forEach((e) => {
|
|
48
|
-
e.children || (e.children = []);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
), _(
|
|
52
|
-
() => a.defaultKey,
|
|
53
|
-
() => {
|
|
54
|
-
r.value = a.defaultKey;
|
|
55
|
-
}
|
|
56
|
-
), L(() => {
|
|
57
|
-
a.defaultKey && (r.value = a.defaultKey);
|
|
58
|
-
}), (e, o) => {
|
|
59
|
-
const u = g("el-tab-pane"), w = g("el-tabs");
|
|
60
|
-
return t(), p(w, C({ id: e.id }, e.$attrs, {
|
|
61
|
-
modelValue: r.value,
|
|
62
|
-
"onUpdate:modelValue": o[0] || (o[0] = (n) => r.value = n),
|
|
63
|
-
onTabChange: B,
|
|
64
|
-
"before-leave": N,
|
|
65
|
-
addable: e.styleType === "btn",
|
|
66
|
-
class: {
|
|
67
|
-
"modal-type": e.styleType === "modal",
|
|
68
|
-
"btn-type": e.styleType === "btn",
|
|
69
|
-
"form-item-tabs": e.styleType === "normal"
|
|
70
|
-
}
|
|
71
|
-
}), {
|
|
72
|
-
"add-icon": c(() => [
|
|
73
|
-
s("div", D, [
|
|
74
|
-
s("div", P, [
|
|
75
|
-
(t(!0), l(d, null, m(e.dynamicBtns, (n) => (t(), l(d, {
|
|
76
|
-
key: n.iconName
|
|
77
|
-
}, [
|
|
78
|
-
n.hidden ? i("", !0) : (t(), l("div", R, [
|
|
79
|
-
f(h, {
|
|
80
|
-
name: n.iconName
|
|
81
|
-
}, null, 8, ["name"])
|
|
82
|
-
]))
|
|
83
|
-
], 64))), 128))
|
|
84
|
-
]),
|
|
85
|
-
s("div", S, [
|
|
86
|
-
(t(!0), l(d, null, m(e.staticBtns, (n) => (t(), l(d, {
|
|
87
|
-
key: n.iconName
|
|
88
|
-
}, [
|
|
89
|
-
n.hidden ? i("", !0) : (t(), l("div", U, [
|
|
90
|
-
f(h, {
|
|
91
|
-
name: n.iconName
|
|
92
|
-
}, null, 8, ["name"])
|
|
93
|
-
]))
|
|
94
|
-
], 64))), 128))
|
|
95
|
-
])
|
|
96
|
-
])
|
|
97
|
-
]),
|
|
98
|
-
default: c(() => [
|
|
99
|
-
(t(!0), l(d, null, m(e.children, (n, v) => (t(), p(u, C({
|
|
100
|
-
key: n.name,
|
|
101
|
-
ref_for: !0
|
|
102
|
-
}, n), {
|
|
103
|
-
label: c(() => [
|
|
104
|
-
s("div", j, [
|
|
105
|
-
e.styleType === "btn" && n.icon ? (t(), p(h, {
|
|
106
|
-
key: 0,
|
|
107
|
-
name: n.icon
|
|
108
|
-
}, null, 8, ["name"])) : i("", !0),
|
|
109
|
-
s("span", q, M(n.label), 1),
|
|
110
|
-
v !== e.children.length - 1 ? (t(), l("span", {
|
|
111
|
-
key: 1,
|
|
112
|
-
class: E(["divider", {
|
|
113
|
-
"divider-hidden": r.value === n.name || T.value === v
|
|
114
|
-
}])
|
|
115
|
-
}, null, 2)) : i("", !0)
|
|
116
|
-
])
|
|
117
|
-
]),
|
|
118
|
-
default: c(() => [
|
|
119
|
-
f(F(z), {
|
|
120
|
-
list: n.children
|
|
121
|
-
}, null, 8, ["list"])
|
|
122
|
-
]),
|
|
123
|
-
_: 2
|
|
124
|
-
}, 1040))), 128))
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 16, ["id", "modelValue", "addable", "class"]);
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}), Q = /* @__PURE__ */ A(G, [["__scopeId", "data-v-b1c53d0d"]]);
|
|
131
|
-
export {
|
|
132
|
-
Q as default
|
|
133
|
-
};
|