geekin-devtoys 0.3.2 → 0.3.3

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.
@@ -1,3 +1,126 @@
1
- import { default as GTable } from './index';
2
- export default GTable;
3
- export { GTable };
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
+ };
@@ -1 +1 @@
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;
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;
@@ -1,49 +1,54 @@
1
- import i from "../GCount/index.mjs";
2
- import n from "../GDialog/index.mjs";
3
- import e from "../GTable/index.mjs";
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 u from "../GRing/index.mjs";
11
- import l from "../GInputTreeTag/index.mjs";
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
- const m = {
15
- GCount: i,
16
- GDialog: n,
17
- GTable: e,
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: u,
25
- GInputTreeTag: l,
26
+ GRing: l,
27
+ GInputTreeTag: u,
26
28
  GFuzzyText: _,
27
- GCard: d
28
- }, g = (r) => {
29
- Object.keys(m).forEach((t) => {
30
- const o = m[t];
31
- r.component(o.name, o);
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
- }, j = { install: g };
36
+ }, B = { install: x };
34
37
  export {
35
38
  p as GBubble,
36
39
  d as GCard,
37
- i as GCount,
38
- n as GDialog,
40
+ e as GCount,
41
+ i as GDialog,
39
42
  _ as GFuzzyText,
40
- l as GInputTreeTag,
43
+ u as GInputTreeTag,
41
44
  c as GPie3D,
42
45
  G as GPluginVideo,
43
46
  s as GProgress,
44
- u as GRing,
47
+ l as GRing,
45
48
  a as GScreen,
46
- e as GTable,
49
+ g as GScroller,
50
+ n as GTable,
47
51
  f as GVideo,
48
- j as default
52
+ O as cardPresets,
53
+ B as default
49
54
  };