geekin-devtoys 0.3.3 → 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 +105 -101
- 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 -9
- package/lib/GInputTreeTag/index.mjs +185 -315
- package/lib/GScroller/index.mjs +12 -12
- package/lib/components/GBubble/index.d.ts +1 -1
- package/lib/components/GCard/index.d.ts +6 -0
- package/lib/components/GFuzzyText/index.d.ts +1 -1
- package/lib/components/GInputTreeTag/index.d.ts +7 -6
- 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/{index-Bi7JS7ve.mjs → index-CVPHcKaV.mjs} +3 -3
- package/package.json +1 -1
package/lib/GScroller/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as n, watchEffect as de, unref as W, defineComponent as ee, h as ve, useSlots as ge, computed as B, onMounted as pe, onUnmounted as he, watch as G, nextTick as P, createElementBlock as c, openBlock as r, normalizeStyle as C, normalizeClass as y, createElementVNode as m, createCommentVNode as le, Fragment as k, renderList as V, renderSlot as te, toDisplayString as se, createBlock as _e, withCtx as ye } from "vue";
|
|
2
2
|
import { unrefElement as ke } from "@vueuse/core";
|
|
3
|
-
import { i as Se,
|
|
3
|
+
import { i as Se, m as Te } from "../index-CVPHcKaV.mjs";
|
|
4
4
|
import { _ as we } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
function Me(S, E) {
|
|
6
6
|
const p = n(!1);
|
|
7
7
|
return de((l) => {
|
|
8
|
-
const T = W(E) || {}, { once:
|
|
9
|
-
if (!w ||
|
|
10
|
-
const g = Se(w, () => (p.value = !0,
|
|
8
|
+
const T = W(E) || {}, { once: H } = T, w = ke(S);
|
|
9
|
+
if (!w || H && p.value) return;
|
|
10
|
+
const g = Se(w, () => (p.value = !0, H ? void 0 : () => {
|
|
11
11
|
p.value = !1;
|
|
12
12
|
}), {
|
|
13
13
|
...T,
|
|
@@ -18,7 +18,7 @@ function Me(S, E) {
|
|
|
18
18
|
});
|
|
19
19
|
}, { flush: "post" }), p;
|
|
20
20
|
}
|
|
21
|
-
const Ce = ["onMouseenter", "onClick"],
|
|
21
|
+
const Ce = ["onMouseenter", "onClick"], He = { class: "g-scroller__item-text" }, be = { class: "g-scroller__item-text" }, ae = 80, Ie = 10, $e = /* @__PURE__ */ ee({
|
|
22
22
|
__name: "index",
|
|
23
23
|
props: {
|
|
24
24
|
items: { default: () => [] },
|
|
@@ -68,7 +68,7 @@ const Ce = ["onMouseenter", "onClick"], be = { class: "g-scroller__item-text" },
|
|
|
68
68
|
a.default?.()
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
}), l = S, T = E,
|
|
71
|
+
}), l = S, T = E, H = ge(), w = B(() => !!H.default), R = n(null), g = n(l.initialSelectedIndex), q = n(0), z = n(1), U = n(0), M = n(0), b = n(!1);
|
|
72
72
|
let f = null;
|
|
73
73
|
const I = n(!1);
|
|
74
74
|
let K = 0, D = 0, d = null;
|
|
@@ -105,8 +105,8 @@ const Ce = ["onMouseenter", "onClick"], be = { class: "g-scroller__item-text" },
|
|
|
105
105
|
const v = t <= 0, F = t + u >= s - 1;
|
|
106
106
|
if (v && e.deltaY < 0 || F && e.deltaY > 0) {
|
|
107
107
|
const x = ie(M.value - e.deltaY * 0.3, -ae, ae);
|
|
108
|
-
M.value = x,
|
|
109
|
-
M.value = 0,
|
|
108
|
+
M.value = x, b.value = !0, f && clearTimeout(f), f = setTimeout(() => {
|
|
109
|
+
M.value = 0, b.value = !1;
|
|
110
110
|
}, 150);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -163,7 +163,7 @@ const Ce = ["onMouseenter", "onClick"], be = { class: "g-scroller__item-text" },
|
|
|
163
163
|
), G(
|
|
164
164
|
() => l.loading,
|
|
165
165
|
(e) => {
|
|
166
|
-
e ? (M.value = 0,
|
|
166
|
+
e ? (M.value = 0, b.value = !1, I.value = !1, A(), f && (clearTimeout(f), f = null), d && (clearTimeout(d), d = null)) : l.seamless && P(() => {
|
|
167
167
|
O(), o.value = l.seamlessDirection === "down" ? -i.value : 0, N();
|
|
168
168
|
});
|
|
169
169
|
}
|
|
@@ -201,7 +201,7 @@ const Ce = ["onMouseenter", "onClick"], be = { class: "g-scroller__item-text" },
|
|
|
201
201
|
item: t,
|
|
202
202
|
index: s % e.items.length
|
|
203
203
|
}, () => [
|
|
204
|
-
m("p",
|
|
204
|
+
m("p", He, se(t), 1)
|
|
205
205
|
], !0)
|
|
206
206
|
], 42, Ce))), 128))
|
|
207
207
|
], 4),
|
|
@@ -228,7 +228,7 @@ const Ce = ["onMouseenter", "onClick"], be = { class: "g-scroller__item-text" },
|
|
|
228
228
|
onWheel: ce
|
|
229
229
|
}, [
|
|
230
230
|
m("div", {
|
|
231
|
-
class: y(["g-scroller__content", { "g-scroller__content--pulling":
|
|
231
|
+
class: y(["g-scroller__content", { "g-scroller__content--pulling": b.value }]),
|
|
232
232
|
style: C({ transform: `translateY(${M.value}px)` })
|
|
233
233
|
}, [
|
|
234
234
|
(r(!0), c(k, null, V(e.items, (t, s) => (r(), _e(W(p), {
|
|
@@ -252,7 +252,7 @@ const Ce = ["onMouseenter", "onClick"], be = { class: "g-scroller__item-text" },
|
|
|
252
252
|
item: t,
|
|
253
253
|
index: s
|
|
254
254
|
}, () => [
|
|
255
|
-
m("p",
|
|
255
|
+
m("p", be, se(t), 1)
|
|
256
256
|
], !0)
|
|
257
257
|
], 2)
|
|
258
258
|
]),
|
|
@@ -40,6 +40,7 @@ declare function __VLS_template(): {
|
|
|
40
40
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
41
41
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
42
42
|
data: Record<string, any>[];
|
|
43
|
+
animation: boolean;
|
|
43
44
|
config: {
|
|
44
45
|
minRadius?: number;
|
|
45
46
|
maxRadius?: number;
|
|
@@ -47,7 +48,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
47
48
|
colors?: string[];
|
|
48
49
|
textColor?: string;
|
|
49
50
|
};
|
|
50
|
-
animation: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
52
52
|
containerRef: HTMLDivElement;
|
|
53
53
|
canvasRef: HTMLCanvasElement;
|
|
@@ -10,6 +10,10 @@ interface BorderGlowProps {
|
|
|
10
10
|
animated?: boolean;
|
|
11
11
|
colors?: string[];
|
|
12
12
|
fillOpacity?: number;
|
|
13
|
+
/** 外阴影开关,默认开启 */
|
|
14
|
+
shadow?: boolean;
|
|
15
|
+
/** 发光效果开关,默认开启 */
|
|
16
|
+
glow?: boolean;
|
|
13
17
|
}
|
|
14
18
|
declare function __VLS_template(): {
|
|
15
19
|
attrs: Partial<{}>;
|
|
@@ -33,6 +37,8 @@ declare const __VLS_component: import('vue').DefineComponent<BorderGlowProps, {}
|
|
|
33
37
|
coneSpread: number;
|
|
34
38
|
animated: boolean;
|
|
35
39
|
colors: string[];
|
|
40
|
+
shadow: boolean;
|
|
41
|
+
glow: boolean;
|
|
36
42
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
37
43
|
cardRef: HTMLDivElement;
|
|
38
44
|
}, HTMLDivElement>;
|
|
@@ -39,13 +39,13 @@ interface FuzzyTextProps {
|
|
|
39
39
|
declare const _default: import('vue').DefineComponent<FuzzyTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FuzzyTextProps> & Readonly<{}>, {
|
|
40
40
|
className: string;
|
|
41
41
|
color: string;
|
|
42
|
-
gradient: string[] | null;
|
|
43
42
|
direction: "horizontal" | "vertical" | "both";
|
|
44
43
|
fontFamily: string;
|
|
45
44
|
fontSize: number | string;
|
|
46
45
|
fontWeight: string | number;
|
|
47
46
|
letterSpacing: number;
|
|
48
47
|
transitionDuration: number;
|
|
48
|
+
gradient: string[] | null;
|
|
49
49
|
enableHover: boolean;
|
|
50
50
|
baseIntensity: number;
|
|
51
51
|
hoverIntensity: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface TreeFieldProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
children?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
isLeaf?: string;
|
|
5
6
|
disabled?: string;
|
|
6
7
|
}
|
|
7
8
|
interface EchoFieldProps {
|
|
@@ -1132,10 +1133,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
1132
1133
|
props: TreeFieldProps;
|
|
1133
1134
|
data: any[];
|
|
1134
1135
|
disabled: boolean;
|
|
1135
|
-
|
|
1136
|
+
placeholder: string;
|
|
1136
1137
|
width: number | string;
|
|
1138
|
+
modelValue: any[];
|
|
1137
1139
|
nodeKey: string;
|
|
1138
|
-
placeholder: string;
|
|
1139
1140
|
popperMaxHeight: number;
|
|
1140
1141
|
popperZIndex: number;
|
|
1141
1142
|
popperOffset: number;
|
|
@@ -84,6 +84,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
84
84
|
"onSlice-click"?: ((data: PieDatum, index: number) => any) | undefined;
|
|
85
85
|
}>, {
|
|
86
86
|
data: PieDatum[];
|
|
87
|
+
animation: boolean;
|
|
87
88
|
config: {
|
|
88
89
|
/** 视角倾斜角度 (单位 deg, 取值 0 ~ 80, 越大越扁平) */
|
|
89
90
|
alpha?: number;
|
|
@@ -120,7 +121,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
120
121
|
/** 标签折线宽度 (px), 默认 1 */
|
|
121
122
|
labelLineWidth?: number;
|
|
122
123
|
};
|
|
123
|
-
animation: boolean;
|
|
124
124
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
125
125
|
containerRef: HTMLDivElement;
|
|
126
126
|
canvasRef: HTMLCanvasElement;
|
|
@@ -54,8 +54,8 @@ declare function __VLS_template(): {
|
|
|
54
54
|
};
|
|
55
55
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
56
56
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
57
|
-
count: number | string;
|
|
58
57
|
height: number | string;
|
|
58
|
+
count: number | string;
|
|
59
59
|
gradient: string[];
|
|
60
60
|
textColor: string;
|
|
61
61
|
wave: boolean;
|
|
@@ -65,13 +65,13 @@ declare function __VLS_template(): {
|
|
|
65
65
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
66
66
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
67
67
|
size: number | string;
|
|
68
|
+
strokeWidth: number;
|
|
68
69
|
count: number | string;
|
|
69
70
|
gradient: string[];
|
|
70
71
|
textColor: string;
|
|
71
72
|
wave: boolean;
|
|
72
73
|
waveSpeed: number;
|
|
73
74
|
forceAnimation: boolean;
|
|
74
|
-
strokeWidth: number;
|
|
75
75
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
76
76
|
beamRef: HTMLDivElement;
|
|
77
77
|
}, any>;
|
|
@@ -42,8 +42,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
42
42
|
safeScaleX: import('vue').ComputedRef<number>;
|
|
43
43
|
yScaleRatio: import('vue').ComputedRef<number>;
|
|
44
44
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
45
|
-
width: number;
|
|
46
45
|
height: number;
|
|
46
|
+
width: number;
|
|
47
47
|
debounceDelay: number;
|
|
48
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
49
49
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|