geekin-devtoys 0.3.2 → 0.3.4
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/lib/AnimatePresence-CXPNzIHs.js +9 -0
- package/lib/AnimatePresence-DkTyYbzH.mjs +136 -0
- package/lib/GCard/index.js +1 -1
- package/lib/GCard/index.mjs +191 -127
- package/lib/GCard/style.css +1 -1
- package/lib/GDialog/index.js +1 -1
- package/lib/GDialog/index.mjs +220 -206
- package/lib/GDialog/style.css +1 -1
- package/lib/GInputTreeTag/index.js +1 -1
- package/lib/GInputTreeTag/index.mjs +221 -175
- package/lib/GInputTreeTag/style.css +1 -1
- package/lib/GScroller/index.js +1 -0
- package/lib/GScroller/index.mjs +283 -0
- package/lib/GScroller/style.css +1 -0
- package/lib/GScroller.d.ts +1 -0
- package/lib/components/GBubble/index.d.ts +1 -1
- package/lib/components/GCard/index.d.ts +8 -3
- package/lib/components/GCard/presets.d.ts +17 -0
- package/lib/components/GFuzzyText/index.d.ts +5 -5
- package/lib/components/GInputTreeTag/index.d.ts +14 -16
- package/lib/components/GPie3D/index.d.ts +1 -1
- package/lib/components/GProgress/index.d.ts +1 -1
- package/lib/components/GRing/index.d.ts +1 -1
- package/lib/components/GScreen/index.d.ts +1 -1
- package/lib/components/GScroller/index.d.ts +70 -0
- package/lib/components/GTable/index.d.ts +126 -3
- package/lib/index/index.js +1 -1
- package/lib/index/index.mjs +28 -23
- package/lib/index-CVPHcKaV.mjs +5152 -0
- package/lib/index-xqOURU1q.js +1 -0
- package/lib/index.d.ts +4 -2
- package/package.json +15 -5
package/lib/GDialog/index.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { inject as fe, reactive as J, computed as r, defineComponent as Q, ref as T, watch as $, onUnmounted as ee, resolveComponent as H, createBlock as k, openBlock as m, Teleport as te, createVNode as F, unref as C, normalizeStyle as me, normalizeClass as ge, withCtx as g, createElementVNode as f, toDisplayString as M, useId as X, onMounted as pe, createCommentVNode as I, mergeProps as ve, createSlots as _e, renderSlot as P, createElementBlock as Y, Fragment as Z, renderList as ye, createTextVNode as A } from "vue";
|
|
2
|
+
import { c as he, r as ze, a as Te, b as ke } from "../index-Dxw2pU4z.mjs";
|
|
3
|
+
import { A as be } from "../AnimatePresence-DkTyYbzH.mjs";
|
|
4
|
+
import { m as we } from "../index-CVPHcKaV.mjs";
|
|
5
|
+
import { _ as ie } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
const Me = /* @__PURE__ */ Symbol("GDialogManager"), q = {
|
|
5
7
|
small: "380px",
|
|
6
8
|
medium: "480px",
|
|
7
9
|
large: "580px"
|
|
8
|
-
},
|
|
10
|
+
}, L = {
|
|
9
11
|
ICON_WIDTH: 92,
|
|
10
12
|
ICON_HEIGHT: 34,
|
|
11
13
|
GAP: 8,
|
|
@@ -13,30 +15,30 @@ const he = /* @__PURE__ */ Symbol("GDialogManager"), U = {
|
|
|
13
15
|
RIGHT_OFFSET: 18,
|
|
14
16
|
MAX_PER_ROW: 8
|
|
15
17
|
};
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
return a.forEach((
|
|
19
|
-
const o = Math.floor(
|
|
20
|
-
|
|
21
|
-
right: n + i * (l +
|
|
22
|
-
bottom:
|
|
18
|
+
function Ce(a) {
|
|
19
|
+
const p = /* @__PURE__ */ new Map(), { ICON_WIDTH: l, ICON_HEIGHT: s, GAP: v, BOTTOM_OFFSET: h, RIGHT_OFFSET: n, MAX_PER_ROW: t } = L;
|
|
20
|
+
return a.forEach((c, u) => {
|
|
21
|
+
const o = Math.floor(u / t), i = u % t;
|
|
22
|
+
p.set(c, {
|
|
23
|
+
right: n + i * (l + v),
|
|
24
|
+
bottom: h + o * (s + v)
|
|
23
25
|
});
|
|
24
|
-
}),
|
|
26
|
+
}), p;
|
|
25
27
|
}
|
|
26
|
-
function
|
|
27
|
-
const a =
|
|
28
|
+
function xe() {
|
|
29
|
+
const a = J(/* @__PURE__ */ new Map()), p = r(() => {
|
|
28
30
|
const o = [];
|
|
29
31
|
return a.forEach((i) => {
|
|
30
32
|
i.isMinimized && o.push(i.id);
|
|
31
33
|
}), o;
|
|
32
|
-
}), l =
|
|
34
|
+
}), l = r(() => Ce(p.value));
|
|
33
35
|
function s(o) {
|
|
34
36
|
a.set(o.id, { attentionTick: 0, ...o });
|
|
35
37
|
}
|
|
36
|
-
function
|
|
38
|
+
function v(o) {
|
|
37
39
|
a.delete(o);
|
|
38
40
|
}
|
|
39
|
-
function
|
|
41
|
+
function h(o) {
|
|
40
42
|
const i = a.get(o);
|
|
41
43
|
if (i) {
|
|
42
44
|
if (i.isMinimized) {
|
|
@@ -54,33 +56,33 @@ function $e() {
|
|
|
54
56
|
const i = a.get(o);
|
|
55
57
|
i && (i.isMinimized = !1);
|
|
56
58
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
59
|
+
function c(o) {
|
|
60
|
+
return r(
|
|
59
61
|
() => l.value.get(o) ?? {
|
|
60
|
-
right:
|
|
61
|
-
bottom:
|
|
62
|
+
right: L.RIGHT_OFFSET,
|
|
63
|
+
bottom: L.BOTTOM_OFFSET
|
|
62
64
|
}
|
|
63
65
|
);
|
|
64
66
|
}
|
|
65
|
-
const
|
|
67
|
+
const u = r(() => p.value.map((o) => a.get(o)).filter(Boolean));
|
|
66
68
|
return {
|
|
67
69
|
dialogs: a,
|
|
68
70
|
register: s,
|
|
69
|
-
unregister:
|
|
70
|
-
minimize:
|
|
71
|
+
unregister: v,
|
|
72
|
+
minimize: h,
|
|
71
73
|
remindMinimized: n,
|
|
72
74
|
restore: t,
|
|
73
|
-
getPosition:
|
|
74
|
-
minimizedList:
|
|
75
|
+
getPosition: c,
|
|
76
|
+
minimizedList: u
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
|
-
function
|
|
78
|
-
return
|
|
79
|
+
function Oe() {
|
|
80
|
+
return fe(Me, null);
|
|
79
81
|
}
|
|
80
|
-
const
|
|
82
|
+
const Ie = {
|
|
81
83
|
class: "g-dialog-minimized-icon__icon",
|
|
82
84
|
"aria-hidden": "true"
|
|
83
|
-
},
|
|
85
|
+
}, Se = { class: "g-dialog-minimized-icon__title" }, De = /* @__PURE__ */ Q({
|
|
84
86
|
name: "GDialogMinimizedIcon",
|
|
85
87
|
__name: "GDialogMinimizedIcon",
|
|
86
88
|
props: {
|
|
@@ -89,61 +91,71 @@ const ke = ["title", "aria-label"], be = {
|
|
|
89
91
|
attentionTick: { default: 0 }
|
|
90
92
|
},
|
|
91
93
|
emits: ["restore"],
|
|
92
|
-
setup(a, { emit:
|
|
93
|
-
const l = a, s =
|
|
94
|
+
setup(a, { emit: p }) {
|
|
95
|
+
const l = a, s = p, v = r(() => l.title || "弹窗"), h = r(() => `恢复 ${v.value}`), n = { opacity: 0, scale: 0.8, x: -24, y: 12 }, t = { opacity: 1, scale: 1, x: 0, y: 0 }, c = { opacity: 0, scale: 0.8, x: -24, y: 12 }, u = { duration: 0.28, ease: [0.2, 0.8, 0.2, 1] }, o = { scale: 1.04, y: -2 }, i = { scale: 0.98 }, b = r(() => ({
|
|
94
96
|
position: "fixed",
|
|
95
97
|
right: `${l.position.right}px`,
|
|
96
98
|
bottom: `${l.position.bottom}px`
|
|
97
|
-
})),
|
|
98
|
-
let
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
})), z = T(!1);
|
|
100
|
+
let O;
|
|
101
|
+
$(() => l.attentionTick, (S, _) => {
|
|
102
|
+
_ === void 0 || S === _ || (z.value = !1, window.clearTimeout(O), window.requestAnimationFrame(() => {
|
|
103
|
+
z.value = !0, O = window.setTimeout(() => {
|
|
104
|
+
z.value = !1;
|
|
103
105
|
}, 580);
|
|
104
106
|
}));
|
|
105
|
-
}),
|
|
106
|
-
window.clearTimeout(
|
|
107
|
+
}), ee(() => {
|
|
108
|
+
window.clearTimeout(O);
|
|
107
109
|
});
|
|
108
|
-
function
|
|
110
|
+
function B() {
|
|
109
111
|
s("restore");
|
|
110
112
|
}
|
|
111
|
-
return (
|
|
112
|
-
const
|
|
113
|
-
return m(),
|
|
114
|
-
|
|
115
|
-
class:
|
|
113
|
+
return (S, _) => {
|
|
114
|
+
const G = H("el-icon");
|
|
115
|
+
return m(), k(te, { to: "body" }, [
|
|
116
|
+
F(C(we).div, {
|
|
117
|
+
class: ge(["g-dialog-minimized-icon", { "is-attention": z.value }]),
|
|
116
118
|
type: "button",
|
|
117
|
-
style:
|
|
118
|
-
title:
|
|
119
|
-
"aria-label":
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
})
|
|
119
|
+
style: me(b.value),
|
|
120
|
+
title: h.value,
|
|
121
|
+
"aria-label": h.value,
|
|
122
|
+
initial: n,
|
|
123
|
+
animate: t,
|
|
124
|
+
exit: c,
|
|
125
|
+
transition: u,
|
|
126
|
+
"while-hover": o,
|
|
127
|
+
"while-press": i,
|
|
128
|
+
onClick: B
|
|
129
|
+
}, {
|
|
130
|
+
default: g(() => [
|
|
131
|
+
_[0] || (_[0] = f("span", {
|
|
132
|
+
class: "g-dialog-minimized-icon__glow",
|
|
133
|
+
"aria-hidden": "true"
|
|
134
|
+
}, null, -1)),
|
|
135
|
+
_[1] || (_[1] = f("span", {
|
|
136
|
+
class: "g-dialog-minimized-icon__wave",
|
|
137
|
+
"aria-hidden": "true"
|
|
138
|
+
}, null, -1)),
|
|
139
|
+
f("span", Ie, [
|
|
140
|
+
F(G, null, {
|
|
141
|
+
default: g(() => [
|
|
142
|
+
F(C(he))
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
f("span", Se, M(v.value), 1)
|
|
137
148
|
]),
|
|
138
|
-
|
|
139
|
-
|
|
149
|
+
_: 1,
|
|
150
|
+
__: [0, 1]
|
|
151
|
+
}, 8, ["class", "style", "title", "aria-label"])
|
|
140
152
|
]);
|
|
141
153
|
};
|
|
142
154
|
}
|
|
143
|
-
}),
|
|
155
|
+
}), N = /* @__PURE__ */ ie(De, [["__scopeId", "data-v-5ff0a7c2"]]), Ee = { class: "g-dialog-header" }, Ae = { class: "g-dialog-title" }, Fe = {
|
|
144
156
|
class: "g-dialog-operation-container",
|
|
145
157
|
"aria-label": "弹窗操作"
|
|
146
|
-
},
|
|
158
|
+
}, Be = ["aria-label", "title"], Ge = ["onClick"], Ve = { class: "g-dialog-footer" }, K = "关闭", Pe = /* @__PURE__ */ Q({
|
|
147
159
|
name: "GDialog",
|
|
148
160
|
inheritAttrs: !1,
|
|
149
161
|
__name: "index",
|
|
@@ -164,43 +176,40 @@ const ke = ["title", "aria-label"], be = {
|
|
|
164
176
|
beforeClose: {}
|
|
165
177
|
},
|
|
166
178
|
emits: ["cancel", "reset", "save", "minimize", "action", "update:modelValue"],
|
|
167
|
-
setup(a, { emit:
|
|
168
|
-
const l = a, s =
|
|
169
|
-
function
|
|
179
|
+
setup(a, { emit: p }) {
|
|
180
|
+
const l = a, s = p, v = r(() => l.modelValue);
|
|
181
|
+
function h(e) {
|
|
170
182
|
s("update:modelValue", e);
|
|
171
183
|
}
|
|
172
|
-
const n =
|
|
173
|
-
|
|
184
|
+
const n = X ? X() : `g-dialog-${Date.now()}-${Math.random().toString(36).slice(2)}`, t = Oe(), c = T(!1), u = T(!0), o = T(0), i = T(!1), b = T(!1), z = T(!1), O = r(() => t ? t.dialogs.get(n)?.isMinimized ?? !1 : c.value), B = r(() => t ? t.dialogs.get(n)?.attentionTick ?? 0 : o.value), S = r(() => t ? !b.value : u.value), _ = r(() => t ? t.getPosition(n).value : { right: 20, bottom: 20 });
|
|
185
|
+
pe(() => {
|
|
174
186
|
t?.register({
|
|
175
187
|
id: n,
|
|
176
188
|
title: l.title,
|
|
177
189
|
isMinimized: !1
|
|
178
190
|
});
|
|
179
|
-
}),
|
|
191
|
+
}), ee(() => {
|
|
180
192
|
t?.unregister(n);
|
|
181
|
-
}),
|
|
193
|
+
}), $(
|
|
182
194
|
() => l.title,
|
|
183
195
|
(e) => {
|
|
184
196
|
if (t) {
|
|
185
|
-
const
|
|
186
|
-
|
|
197
|
+
const y = t.dialogs.get(n);
|
|
198
|
+
y && (y.title = e);
|
|
187
199
|
}
|
|
188
200
|
}
|
|
189
|
-
),
|
|
201
|
+
), $(
|
|
190
202
|
() => l.modelValue,
|
|
191
203
|
(e) => {
|
|
192
204
|
if (e === !1) {
|
|
193
|
-
if (i.value)
|
|
194
|
-
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
t ? t.restore(n) : (d.value = !0, r.value = !1);
|
|
205
|
+
if (i.value) return;
|
|
206
|
+
t ? (t.restore(n), b.value = !1) : (u.value = !0, c.value = !1);
|
|
198
207
|
}
|
|
199
|
-
e === !0 && (t?.dialogs.get(n)?.isMinimized ? t.remindMinimized(n) :
|
|
208
|
+
e === !0 && (t?.dialogs.get(n)?.isMinimized ? t.remindMinimized(n) : c.value && (o.value += 1));
|
|
200
209
|
}
|
|
201
210
|
);
|
|
202
|
-
const
|
|
203
|
-
async function
|
|
211
|
+
const G = r(() => Object.prototype.hasOwnProperty.call(q, l.size) ? q[l.size] : l.size);
|
|
212
|
+
async function w(e) {
|
|
204
213
|
if (!l.beforeClose) return !0;
|
|
205
214
|
try {
|
|
206
215
|
return await l.beforeClose(e) !== !1;
|
|
@@ -208,187 +217,192 @@ const ke = ["title", "aria-label"], be = {
|
|
|
208
217
|
return !1;
|
|
209
218
|
}
|
|
210
219
|
}
|
|
211
|
-
async function
|
|
212
|
-
const
|
|
213
|
-
e(!
|
|
220
|
+
async function oe(e) {
|
|
221
|
+
const y = await w("close");
|
|
222
|
+
e(!y);
|
|
214
223
|
}
|
|
215
|
-
async function
|
|
216
|
-
await
|
|
224
|
+
async function ne() {
|
|
225
|
+
await w("close") && s("update:modelValue", !1);
|
|
217
226
|
}
|
|
218
|
-
async function
|
|
219
|
-
await
|
|
227
|
+
async function W() {
|
|
228
|
+
await w("cancel") && s("cancel");
|
|
220
229
|
}
|
|
221
|
-
function
|
|
230
|
+
function x() {
|
|
222
231
|
s("reset");
|
|
223
232
|
}
|
|
224
|
-
async function
|
|
225
|
-
await
|
|
233
|
+
async function U() {
|
|
234
|
+
await w("save") && s("save");
|
|
226
235
|
}
|
|
227
|
-
const
|
|
228
|
-
async function
|
|
229
|
-
if (await
|
|
236
|
+
const V = J({});
|
|
237
|
+
async function le(e) {
|
|
238
|
+
if (await w("action") && (s("action", e.key), !!e.onClick))
|
|
230
239
|
try {
|
|
231
|
-
const
|
|
232
|
-
|
|
240
|
+
const y = e.onClick();
|
|
241
|
+
y instanceof Promise && (V[e.key] = !0, await y);
|
|
233
242
|
} finally {
|
|
234
|
-
|
|
243
|
+
V[e.key] = !1;
|
|
235
244
|
}
|
|
236
245
|
}
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
if (await
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
if (r.value) {
|
|
245
|
-
o.value += 1, s("minimize", { id: n });
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
d.value = !1, r.value = !0;
|
|
249
|
-
}
|
|
250
|
-
s("update:modelValue", !1), s("minimize", { id: n });
|
|
246
|
+
const D = T(!1), ae = () => {
|
|
247
|
+
D.value = !D.value;
|
|
248
|
+
}, j = r(() => D.value ? "退出全屏" : "全屏"), se = async () => {
|
|
249
|
+
if (!await w("minimize")) return;
|
|
250
|
+
if (t ? t.dialogs.get(n)?.isMinimized ?? !1 : c.value) {
|
|
251
|
+
t ? t.minimize(n) : o.value += 1, s("minimize", { id: n });
|
|
252
|
+
return;
|
|
251
253
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
i.value = !0, t ? t.minimize(n) : c.value = !0, s("update:modelValue", !1), s("minimize", { id: n });
|
|
255
|
+
}, re = () => {
|
|
256
|
+
z.value = !0, i.value = !1, t ? (b.value = !1, t.restore(n)) : (u.value = !0, c.value = !1), s("update:modelValue", !0);
|
|
257
|
+
}, ce = () => {
|
|
258
|
+
i.value && (t ? b.value = !0 : u.value = !1, i.value = !1);
|
|
259
|
+
}, ue = () => {
|
|
260
|
+
z.value = !1;
|
|
254
261
|
};
|
|
255
|
-
return (e,
|
|
256
|
-
const
|
|
257
|
-
return m(),
|
|
258
|
-
|
|
259
|
-
"model-value":
|
|
260
|
-
width:
|
|
262
|
+
return (e, y) => {
|
|
263
|
+
const E = H("el-button"), de = H("el-dialog");
|
|
264
|
+
return m(), k(te, { to: "body" }, [
|
|
265
|
+
S.value ? (m(), k(de, ve({ key: 0 }, e.$attrs, {
|
|
266
|
+
"model-value": v.value,
|
|
267
|
+
width: G.value,
|
|
261
268
|
"lock-scroll": !1,
|
|
262
269
|
"show-close": !1,
|
|
263
|
-
fullscreen:
|
|
264
|
-
"before-close":
|
|
265
|
-
class: "g-dialog",
|
|
266
|
-
"onUpdate:modelValue":
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
fullscreen: D.value,
|
|
271
|
+
"before-close": oe,
|
|
272
|
+
class: ["g-dialog", { "is-leave-to-minimize": i.value, "is-enter-from-minimize": z.value }],
|
|
273
|
+
"onUpdate:modelValue": h,
|
|
274
|
+
onClosed: ce,
|
|
275
|
+
onOpened: ue
|
|
276
|
+
}), _e({
|
|
277
|
+
header: g(({ close: d }) => [
|
|
278
|
+
f("div", Ee, [
|
|
279
|
+
f("p", Ae, M(e.title), 1),
|
|
280
|
+
f("div", Fe, [
|
|
281
|
+
f("button", {
|
|
273
282
|
type: "button",
|
|
274
283
|
class: "g-dialog-control g-dialog-control--minimize",
|
|
275
284
|
"aria-label": "最小化",
|
|
276
285
|
title: "最小化",
|
|
277
|
-
onClick:
|
|
286
|
+
onClick: se
|
|
278
287
|
}),
|
|
279
|
-
|
|
288
|
+
f("button", {
|
|
280
289
|
type: "button",
|
|
281
290
|
class: "g-dialog-control g-dialog-control--fullscreen",
|
|
282
|
-
"aria-label":
|
|
283
|
-
title:
|
|
284
|
-
onClick:
|
|
285
|
-
}, null, 8,
|
|
286
|
-
|
|
291
|
+
"aria-label": j.value,
|
|
292
|
+
title: j.value,
|
|
293
|
+
onClick: ae
|
|
294
|
+
}, null, 8, Be),
|
|
295
|
+
f("button", {
|
|
287
296
|
type: "button",
|
|
288
297
|
class: "g-dialog-control g-dialog-control--close",
|
|
289
|
-
"aria-label":
|
|
290
|
-
title:
|
|
291
|
-
onClick:
|
|
292
|
-
}, null, 8,
|
|
298
|
+
"aria-label": K,
|
|
299
|
+
title: K,
|
|
300
|
+
onClick: d
|
|
301
|
+
}, null, 8, Ge)
|
|
293
302
|
])
|
|
294
303
|
])
|
|
295
304
|
]),
|
|
296
|
-
default:
|
|
297
|
-
|
|
305
|
+
default: g(() => [
|
|
306
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
298
307
|
]),
|
|
299
308
|
_: 2
|
|
300
309
|
}, [
|
|
301
310
|
e.hideFooter ? void 0 : {
|
|
302
311
|
name: "footer",
|
|
303
|
-
fn:
|
|
304
|
-
|
|
305
|
-
cancel:
|
|
306
|
-
reset:
|
|
307
|
-
save:
|
|
308
|
-
close:
|
|
312
|
+
fn: g(() => [
|
|
313
|
+
P(e.$slots, "footer", {
|
|
314
|
+
cancel: W,
|
|
315
|
+
reset: x,
|
|
316
|
+
save: U,
|
|
317
|
+
close: ne,
|
|
309
318
|
loading: e.saveLoading
|
|
310
319
|
}, () => [
|
|
311
|
-
|
|
312
|
-
e.actions && e.actions.length ? (m(!0),
|
|
313
|
-
key:
|
|
314
|
-
type:
|
|
315
|
-
icon:
|
|
316
|
-
loading:
|
|
317
|
-
disabled:
|
|
318
|
-
plain:
|
|
320
|
+
f("div", Ve, [
|
|
321
|
+
e.actions && e.actions.length ? (m(!0), Y(Z, { key: 0 }, ye(e.actions, (d) => (m(), k(E, {
|
|
322
|
+
key: d.key,
|
|
323
|
+
type: d.type,
|
|
324
|
+
icon: d.icon,
|
|
325
|
+
loading: d.loading || V[d.key],
|
|
326
|
+
disabled: d.disabled,
|
|
327
|
+
plain: d.plain,
|
|
319
328
|
size: "small",
|
|
320
|
-
onClick: (
|
|
329
|
+
onClick: (Re) => le(d)
|
|
321
330
|
}, {
|
|
322
|
-
default:
|
|
323
|
-
|
|
331
|
+
default: g(() => [
|
|
332
|
+
A(M(d.label), 1)
|
|
324
333
|
]),
|
|
325
334
|
_: 2
|
|
326
|
-
}, 1032, ["type", "icon", "loading", "disabled", "plain", "onClick"]))), 128)) : (m(),
|
|
327
|
-
e.showCancel ? (m(),
|
|
335
|
+
}, 1032, ["type", "icon", "loading", "disabled", "plain", "onClick"]))), 128)) : (m(), Y(Z, { key: 1 }, [
|
|
336
|
+
e.showCancel ? (m(), k(E, {
|
|
328
337
|
key: 0,
|
|
329
|
-
icon:
|
|
338
|
+
icon: C(ze),
|
|
330
339
|
size: "small",
|
|
331
|
-
onClick:
|
|
340
|
+
onClick: W
|
|
332
341
|
}, {
|
|
333
|
-
default:
|
|
334
|
-
|
|
342
|
+
default: g(() => [
|
|
343
|
+
A(M(e.cancelText), 1)
|
|
335
344
|
]),
|
|
336
345
|
_: 1
|
|
337
|
-
}, 8, ["icon"])) :
|
|
338
|
-
e.showReset ? (m(),
|
|
346
|
+
}, 8, ["icon"])) : I("", !0),
|
|
347
|
+
e.showReset ? (m(), k(E, {
|
|
339
348
|
key: 1,
|
|
340
|
-
icon:
|
|
349
|
+
icon: C(Te),
|
|
341
350
|
size: "small",
|
|
342
|
-
onClick:
|
|
351
|
+
onClick: x
|
|
343
352
|
}, {
|
|
344
|
-
default:
|
|
345
|
-
|
|
353
|
+
default: g(() => [
|
|
354
|
+
A(M(e.resetText), 1)
|
|
346
355
|
]),
|
|
347
356
|
_: 1
|
|
348
|
-
}, 8, ["icon"])) :
|
|
349
|
-
e.showSave ? (m(),
|
|
357
|
+
}, 8, ["icon"])) : I("", !0),
|
|
358
|
+
e.showSave ? (m(), k(E, {
|
|
350
359
|
key: 2,
|
|
351
360
|
type: "primary",
|
|
352
|
-
icon:
|
|
361
|
+
icon: C(ke),
|
|
353
362
|
loading: e.saveLoading,
|
|
354
363
|
disabled: e.saveDisabled,
|
|
355
364
|
size: "small",
|
|
356
|
-
onClick:
|
|
365
|
+
onClick: U
|
|
357
366
|
}, {
|
|
358
|
-
default:
|
|
359
|
-
|
|
367
|
+
default: g(() => [
|
|
368
|
+
A(M(e.saveText), 1)
|
|
360
369
|
]),
|
|
361
370
|
_: 1
|
|
362
|
-
}, 8, ["icon", "loading", "disabled"])) :
|
|
371
|
+
}, 8, ["icon", "loading", "disabled"])) : I("", !0)
|
|
363
372
|
], 64)),
|
|
364
|
-
|
|
373
|
+
P(e.$slots, "moreOperations", {}, void 0, !0)
|
|
365
374
|
])
|
|
366
375
|
], !0)
|
|
367
376
|
]),
|
|
368
377
|
key: "0"
|
|
369
378
|
}
|
|
370
|
-
]), 1040, ["model-value", "width", "fullscreen"])) :
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
379
|
+
]), 1040, ["model-value", "width", "fullscreen", "class"])) : I("", !0),
|
|
380
|
+
F(C(be), null, {
|
|
381
|
+
default: g(() => [
|
|
382
|
+
O.value ? (m(), k(N, {
|
|
383
|
+
key: 0,
|
|
384
|
+
title: e.title,
|
|
385
|
+
position: _.value,
|
|
386
|
+
"attention-tick": B.value,
|
|
387
|
+
onRestore: re
|
|
388
|
+
}, null, 8, ["title", "position", "attention-tick"])) : I("", !0)
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
})
|
|
378
392
|
]);
|
|
379
393
|
};
|
|
380
394
|
}
|
|
381
|
-
}),
|
|
382
|
-
|
|
383
|
-
a.component(
|
|
395
|
+
}), R = /* @__PURE__ */ ie(Pe, [["__scopeId", "data-v-4a8b52ec"]]);
|
|
396
|
+
R.install = (a) => {
|
|
397
|
+
a.component(R.name, R), a.component(N.name, N);
|
|
384
398
|
};
|
|
385
399
|
export {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
400
|
+
Me as DIALOG_MANAGER_KEY,
|
|
401
|
+
q as DIALOG_SIZES,
|
|
402
|
+
R as GDialog,
|
|
403
|
+
N as GDialogMinimizedIcon,
|
|
404
|
+
L as MINIMIZED_LAYOUT,
|
|
405
|
+
xe as createDialogManager,
|
|
406
|
+
R as default,
|
|
407
|
+
Oe as useDialogManager
|
|
394
408
|
};
|