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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
interface AnimatedListProps {
|
|
2
|
+
items?: any[];
|
|
3
|
+
showGradients?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
itemClassName?: string;
|
|
6
|
+
displayScrollbar?: boolean;
|
|
7
|
+
initialSelectedIndex?: number;
|
|
8
|
+
height?: string | number;
|
|
9
|
+
stagger?: number;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
skeletonCount?: number;
|
|
12
|
+
/** 是否开启无缝循环滚动 */
|
|
13
|
+
seamless?: boolean;
|
|
14
|
+
/** 无缝滚动速度(px / 秒) */
|
|
15
|
+
seamlessSpeed?: number;
|
|
16
|
+
/** 无缝滚动方向:up 内容上移 / down 内容下移 */
|
|
17
|
+
seamlessDirection?: 'up' | 'down';
|
|
18
|
+
/** 鼠标悬停是否暂停无缝滚动 */
|
|
19
|
+
seamlessPauseOnHover?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
23
|
+
slots: {
|
|
24
|
+
default?(_: {
|
|
25
|
+
item: any;
|
|
26
|
+
index: number;
|
|
27
|
+
}): any;
|
|
28
|
+
default?(_: {
|
|
29
|
+
item: any;
|
|
30
|
+
index: number;
|
|
31
|
+
}): any;
|
|
32
|
+
};
|
|
33
|
+
refs: {
|
|
34
|
+
seamlessWrapRef: HTMLDivElement;
|
|
35
|
+
seamlessTrackRef: HTMLDivElement;
|
|
36
|
+
listRef: HTMLDivElement;
|
|
37
|
+
};
|
|
38
|
+
rootEl: HTMLDivElement;
|
|
39
|
+
};
|
|
40
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
41
|
+
declare const __VLS_component: import('vue').DefineComponent<AnimatedListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
itemSelected: (item: any, index: number) => any;
|
|
43
|
+
}, string, import('vue').PublicProps, Readonly<AnimatedListProps> & Readonly<{
|
|
44
|
+
onItemSelected?: ((item: any, index: number) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
className: string;
|
|
47
|
+
loading: boolean;
|
|
48
|
+
stagger: number;
|
|
49
|
+
items: any[];
|
|
50
|
+
showGradients: boolean;
|
|
51
|
+
itemClassName: string;
|
|
52
|
+
displayScrollbar: boolean;
|
|
53
|
+
initialSelectedIndex: number;
|
|
54
|
+
skeletonCount: number;
|
|
55
|
+
seamless: boolean;
|
|
56
|
+
seamlessSpeed: number;
|
|
57
|
+
seamlessDirection: "up" | "down";
|
|
58
|
+
seamlessPauseOnHover: boolean;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
60
|
+
seamlessWrapRef: HTMLDivElement;
|
|
61
|
+
seamlessTrackRef: HTMLDivElement;
|
|
62
|
+
listRef: HTMLDivElement;
|
|
63
|
+
}, HTMLDivElement>;
|
|
64
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -1,3 +1,126 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
interface Props {
|
|
2
|
+
/**
|
|
3
|
+
* @description 表格数据数组,默认为空数组
|
|
4
|
+
* @version 0.1.5
|
|
5
|
+
* @default []
|
|
6
|
+
*/
|
|
7
|
+
data?: Record<string, any>[];
|
|
8
|
+
/**
|
|
9
|
+
* @description 是否显示分页组件,默认为false
|
|
10
|
+
* @version 0.1.5
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
pagination?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @description 操作列标题,默认为'操作'
|
|
16
|
+
* @version 0.1.5
|
|
17
|
+
* @default '操作'
|
|
18
|
+
*/
|
|
19
|
+
operationLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description 操作列宽度,默认为150
|
|
22
|
+
* @version 0.1.5
|
|
23
|
+
* @default 150
|
|
24
|
+
*/
|
|
25
|
+
operaWidth?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @description 是否开启拖动排序
|
|
28
|
+
* @version 0.1.5
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
dragSort?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @description 拖动排序后,排序后数组里哪些字段需要返回
|
|
34
|
+
* @version 0.1.5
|
|
35
|
+
* @default []
|
|
36
|
+
*/
|
|
37
|
+
dragSortProps?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* @description 当前页码(分页)
|
|
40
|
+
* @version 0.1.5
|
|
41
|
+
* @default 1
|
|
42
|
+
*/
|
|
43
|
+
currentPage?: number;
|
|
44
|
+
/**
|
|
45
|
+
* @description 每页条数(分页)
|
|
46
|
+
* @version 0.1.5
|
|
47
|
+
* @default 10
|
|
48
|
+
*/
|
|
49
|
+
pageSize?: number;
|
|
50
|
+
/**
|
|
51
|
+
* @description 数据总条数(分页)
|
|
52
|
+
* @version 0.1.5
|
|
53
|
+
* @default 0
|
|
54
|
+
*/
|
|
55
|
+
total?: number;
|
|
56
|
+
/**
|
|
57
|
+
* @description 每页条数下拉选项(分页)
|
|
58
|
+
* @version 0.1.5
|
|
59
|
+
* @default [10, 20, 50, 100]
|
|
60
|
+
*/
|
|
61
|
+
pageSizes?: number[];
|
|
62
|
+
/**
|
|
63
|
+
* @description 分页布局
|
|
64
|
+
* @version 0.1.5
|
|
65
|
+
* @default 'total, sizes, prev, pager, next'
|
|
66
|
+
*/
|
|
67
|
+
layout?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @description 表格尺寸,控制行高与表头高度
|
|
70
|
+
* @version 0.2.23
|
|
71
|
+
* @default 'default'
|
|
72
|
+
*/
|
|
73
|
+
size?: 'large' | 'default' | 'small';
|
|
74
|
+
}
|
|
75
|
+
declare function __VLS_template(): {
|
|
76
|
+
attrs: Partial<{}>;
|
|
77
|
+
slots: {
|
|
78
|
+
action?(_: {}): any;
|
|
79
|
+
empty?(_: {}): any;
|
|
80
|
+
default?(_: {}): any;
|
|
81
|
+
operations?(_: {
|
|
82
|
+
row: any;
|
|
83
|
+
index: any;
|
|
84
|
+
}): any;
|
|
85
|
+
more?(_: {
|
|
86
|
+
row: any;
|
|
87
|
+
index: any;
|
|
88
|
+
}): any;
|
|
89
|
+
};
|
|
90
|
+
refs: {
|
|
91
|
+
tableRef: unknown;
|
|
92
|
+
};
|
|
93
|
+
rootEl: any;
|
|
94
|
+
};
|
|
95
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
96
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
97
|
+
"update:currentPage": (value: number) => any;
|
|
98
|
+
"update:pageSize": (value: number) => any;
|
|
99
|
+
"sorted:data": (value: any[]) => any;
|
|
100
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
101
|
+
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
102
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
103
|
+
"onSorted:data"?: ((value: any[]) => any) | undefined;
|
|
104
|
+
}>, {
|
|
105
|
+
data: Record<string, any>[];
|
|
106
|
+
layout: string;
|
|
107
|
+
size: "large" | "default" | "small";
|
|
108
|
+
pagination: boolean;
|
|
109
|
+
operationLabel: string;
|
|
110
|
+
operaWidth: number;
|
|
111
|
+
dragSort: boolean;
|
|
112
|
+
dragSortProps: string[];
|
|
113
|
+
currentPage: number;
|
|
114
|
+
pageSize: number;
|
|
115
|
+
total: number;
|
|
116
|
+
pageSizes: number[];
|
|
117
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
118
|
+
tableRef: unknown;
|
|
119
|
+
}, any>;
|
|
120
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
121
|
+
export default _default;
|
|
122
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
123
|
+
new (): {
|
|
124
|
+
$slots: S;
|
|
125
|
+
};
|
|
126
|
+
};
|
package/lib/index/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../GCount/index.js"),l=require("../GDialog/index.js"),a=require("../GTable/index.js"),o=require("../GVideo/index.js"),d=require("../GBubble/index.js"),n=require("../GProgress/index.js"),G=require("../GScreen/index.js"),i=require("../GPluginVideo/index.js"),s=require("../GPie3D/index.js"),c=require("../GRing/index.js"),f=require("../GInputTreeTag/index.js"),g=require("../GFuzzyText/index.js"),e=require("../GCard/index.js"),q=require("../GScroller/index.js"),u={GCount:r.default,GDialog:l.default,GTable:a.default,GVideo:o.default,GBubble:d.default,GProgress:n.default,GScreen:G.default,GPluginVideo:i.default,GPie3D:s.default,GRing:c.default,GInputTreeTag:f.default,GFuzzyText:g.default,GCard:e.default,GScroller:q.default},P=T=>{Object.keys(u).forEach(b=>{const t=u[b];T.component(t.name,t)})},S={install:P};exports.GCount=r.default;exports.GDialog=l.default;exports.GTable=a.default;exports.GVideo=o.default;exports.GBubble=d.default;exports.GProgress=n.default;exports.GScreen=G.default;exports.GPluginVideo=i.default;exports.GPie3D=s.default;exports.GRing=c.default;exports.GInputTreeTag=f.default;exports.GFuzzyText=g.default;exports.GCard=e.default;exports.cardPresets=e.cardPresets;exports.GScroller=q.default;exports.default=S;
|
package/lib/index/index.mjs
CHANGED
|
@@ -1,49 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import e from "../GCount/index.mjs";
|
|
2
|
+
import i from "../GDialog/index.mjs";
|
|
3
|
+
import n from "../GTable/index.mjs";
|
|
4
4
|
import f from "../GVideo/index.mjs";
|
|
5
5
|
import p from "../GBubble/index.mjs";
|
|
6
6
|
import s from "../GProgress/index.mjs";
|
|
7
7
|
import a from "../GScreen/index.mjs";
|
|
8
8
|
import G from "../GPluginVideo/index.mjs";
|
|
9
9
|
import c from "../GPie3D/index.mjs";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import l from "../GRing/index.mjs";
|
|
11
|
+
import u from "../GInputTreeTag/index.mjs";
|
|
12
12
|
import _ from "../GFuzzyText/index.mjs";
|
|
13
13
|
import d from "../GCard/index.mjs";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
import { cardPresets as O } from "../GCard/index.mjs";
|
|
15
|
+
import g from "../GScroller/index.mjs";
|
|
16
|
+
const r = {
|
|
17
|
+
GCount: e,
|
|
18
|
+
GDialog: i,
|
|
19
|
+
GTable: n,
|
|
18
20
|
GVideo: f,
|
|
19
21
|
GBubble: p,
|
|
20
22
|
GProgress: s,
|
|
21
23
|
GScreen: a,
|
|
22
24
|
GPluginVideo: G,
|
|
23
25
|
GPie3D: c,
|
|
24
|
-
GRing:
|
|
25
|
-
GInputTreeTag:
|
|
26
|
+
GRing: l,
|
|
27
|
+
GInputTreeTag: u,
|
|
26
28
|
GFuzzyText: _,
|
|
27
|
-
GCard: d
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
GCard: d,
|
|
30
|
+
GScroller: g
|
|
31
|
+
}, x = (m) => {
|
|
32
|
+
Object.keys(r).forEach((t) => {
|
|
33
|
+
const o = r[t];
|
|
34
|
+
m.component(o.name, o);
|
|
32
35
|
});
|
|
33
|
-
},
|
|
36
|
+
}, B = { install: x };
|
|
34
37
|
export {
|
|
35
38
|
p as GBubble,
|
|
36
39
|
d as GCard,
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
e as GCount,
|
|
41
|
+
i as GDialog,
|
|
39
42
|
_ as GFuzzyText,
|
|
40
|
-
|
|
43
|
+
u as GInputTreeTag,
|
|
41
44
|
c as GPie3D,
|
|
42
45
|
G as GPluginVideo,
|
|
43
46
|
s as GProgress,
|
|
44
|
-
|
|
47
|
+
l as GRing,
|
|
45
48
|
a as GScreen,
|
|
46
|
-
|
|
49
|
+
g as GScroller,
|
|
50
|
+
n as GTable,
|
|
47
51
|
f as GVideo,
|
|
48
|
-
|
|
52
|
+
O as cardPresets,
|
|
53
|
+
B as default
|
|
49
54
|
};
|