geekin-devtoys 0.3.1 → 0.3.2
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/GCard/index.js +1 -0
- package/lib/GCard/index.mjs +227 -0
- package/lib/GCard/style.css +1 -0
- package/lib/GCard.d.ts +1 -0
- package/lib/GFuzzyText/index.js +1 -0
- package/lib/GFuzzyText/index.mjs +171 -0
- package/lib/GFuzzyText.d.ts +1 -0
- package/lib/GInputTreeTag/index.js +1 -1
- package/lib/GInputTreeTag/index.mjs +129 -116
- package/lib/GInputTreeTag/style.css +1 -1
- package/lib/components/GCard/index.d.ts +46 -0
- package/lib/components/GFuzzyText/index.d.ts +61 -0
- package/lib/components/GInputTreeTag/index.d.ts +16 -4
- package/lib/components/GTable/index.d.ts +3 -126
- package/lib/index/index.js +1 -1
- package/lib/index/index.mjs +20 -14
- package/lib/index.d.ts +3 -1
- package/package.json +17 -1
|
@@ -1,126 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
size: "large" | "default" | "small";
|
|
107
|
-
pagination: boolean;
|
|
108
|
-
operationLabel: string;
|
|
109
|
-
operaWidth: number;
|
|
110
|
-
dragSort: boolean;
|
|
111
|
-
dragSortProps: string[];
|
|
112
|
-
currentPage: number;
|
|
113
|
-
pageSize: number;
|
|
114
|
-
total: number;
|
|
115
|
-
pageSizes: number[];
|
|
116
|
-
layout: string;
|
|
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
|
-
};
|
|
1
|
+
import { default as GTable } from './index';
|
|
2
|
+
export default GTable;
|
|
3
|
+
export { GTable };
|
package/lib/index/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../GCount/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../GCount/index.js"),r=require("../GDialog/index.js"),l=require("../GTable/index.js"),a=require("../GVideo/index.js"),o=require("../GBubble/index.js"),n=require("../GProgress/index.js"),d=require("../GScreen/index.js"),G=require("../GPluginVideo/index.js"),i=require("../GPie3D/index.js"),s=require("../GRing/index.js"),f=require("../GInputTreeTag/index.js"),c=require("../GFuzzyText/index.js"),g=require("../GCard/index.js"),t={GCount:u.default,GDialog:r.default,GTable:l.default,GVideo:a.default,GBubble:o.default,GProgress:n.default,GScreen:d.default,GPluginVideo:G.default,GPie3D:i.default,GRing:s.default,GInputTreeTag:f.default,GFuzzyText:c.default,GCard:g.default},b=q=>{Object.keys(t).forEach(T=>{const e=t[T];q.component(e.name,e)})},P={install:b};exports.GCount=u.default;exports.GDialog=r.default;exports.GTable=l.default;exports.GVideo=a.default;exports.GBubble=o.default;exports.GProgress=n.default;exports.GScreen=d.default;exports.GPluginVideo=G.default;exports.GPie3D=i.default;exports.GRing=s.default;exports.GInputTreeTag=f.default;exports.GFuzzyText=c.default;exports.GCard=g.default;exports.default=P;
|
package/lib/index/index.mjs
CHANGED
|
@@ -5,10 +5,12 @@ 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
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import G from "../GPluginVideo/index.mjs";
|
|
9
|
+
import c from "../GPie3D/index.mjs";
|
|
10
|
+
import u from "../GRing/index.mjs";
|
|
11
|
+
import l from "../GInputTreeTag/index.mjs";
|
|
12
|
+
import _ from "../GFuzzyText/index.mjs";
|
|
13
|
+
import d from "../GCard/index.mjs";
|
|
12
14
|
const m = {
|
|
13
15
|
GCount: i,
|
|
14
16
|
GDialog: n,
|
|
@@ -17,27 +19,31 @@ const m = {
|
|
|
17
19
|
GBubble: p,
|
|
18
20
|
GProgress: s,
|
|
19
21
|
GScreen: a,
|
|
20
|
-
GPluginVideo:
|
|
21
|
-
GPie3D:
|
|
22
|
-
GRing:
|
|
23
|
-
GInputTreeTag:
|
|
22
|
+
GPluginVideo: G,
|
|
23
|
+
GPie3D: c,
|
|
24
|
+
GRing: u,
|
|
25
|
+
GInputTreeTag: l,
|
|
26
|
+
GFuzzyText: _,
|
|
27
|
+
GCard: d
|
|
24
28
|
}, g = (r) => {
|
|
25
29
|
Object.keys(m).forEach((t) => {
|
|
26
30
|
const o = m[t];
|
|
27
31
|
r.component(o.name, o);
|
|
28
32
|
});
|
|
29
|
-
},
|
|
33
|
+
}, j = { install: g };
|
|
30
34
|
export {
|
|
31
35
|
p as GBubble,
|
|
36
|
+
d as GCard,
|
|
32
37
|
i as GCount,
|
|
33
38
|
n as GDialog,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
c as
|
|
39
|
+
_ as GFuzzyText,
|
|
40
|
+
l as GInputTreeTag,
|
|
41
|
+
c as GPie3D,
|
|
42
|
+
G as GPluginVideo,
|
|
37
43
|
s as GProgress,
|
|
38
|
-
|
|
44
|
+
u as GRing,
|
|
39
45
|
a as GScreen,
|
|
40
46
|
e as GTable,
|
|
41
47
|
f as GVideo,
|
|
42
|
-
|
|
48
|
+
j as default
|
|
43
49
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -9,8 +9,10 @@ import { GPluginVideo } from './components/GPluginVideo';
|
|
|
9
9
|
import { GPie3D } from './components/GPie3D';
|
|
10
10
|
import { GRing } from './components/GRing';
|
|
11
11
|
import { GInputTreeTag } from './components/GInputTreeTag';
|
|
12
|
+
import { GFuzzyText } from './components/GFuzzyText';
|
|
13
|
+
import { GCard } from './components/GCard';
|
|
12
14
|
declare const _default: {
|
|
13
15
|
install: (app: any) => void;
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
16
|
-
export { GCount, GDialog, GTable, GVideo, GBubble, GProgress, GScreen, GPluginVideo, GPie3D, GRing, GInputTreeTag };
|
|
18
|
+
export { GCount, GDialog, GTable, GVideo, GBubble, GProgress, GScreen, GPluginVideo, GPie3D, GRing, GInputTreeTag, GFuzzyText, GCard };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geekin-devtoys",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"author": "leon",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "geekin-devtoys组件库",
|
|
@@ -72,6 +72,14 @@
|
|
|
72
72
|
"import": "./lib/GBubble/style.css",
|
|
73
73
|
"require": "./lib/GBubble/style.css"
|
|
74
74
|
},
|
|
75
|
+
"./GCard": {
|
|
76
|
+
"import": "./lib/GCard/index.mjs",
|
|
77
|
+
"require": "./lib/GCard/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./GCard/style": {
|
|
80
|
+
"import": "./lib/GCard/style.css",
|
|
81
|
+
"require": "./lib/GCard/style.css"
|
|
82
|
+
},
|
|
75
83
|
"./GCount": {
|
|
76
84
|
"import": "./lib/GCount/index.mjs",
|
|
77
85
|
"require": "./lib/GCount/index.js"
|
|
@@ -88,6 +96,14 @@
|
|
|
88
96
|
"import": "./lib/GDialog/style.css",
|
|
89
97
|
"require": "./lib/GDialog/style.css"
|
|
90
98
|
},
|
|
99
|
+
"./GFuzzyText": {
|
|
100
|
+
"import": "./lib/GFuzzyText/index.mjs",
|
|
101
|
+
"require": "./lib/GFuzzyText/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./GFuzzyText/style": {
|
|
104
|
+
"import": "./lib/GFuzzyText/style.css",
|
|
105
|
+
"require": "./lib/GFuzzyText/style.css"
|
|
106
|
+
},
|
|
91
107
|
"./GInputTreeTag": {
|
|
92
108
|
"import": "./lib/GInputTreeTag/index.mjs",
|
|
93
109
|
"require": "./lib/GInputTreeTag/index.js"
|