sykj 1.0.2 → 1.1.0
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/CHANGELOG.md +7 -0
- package/dist/style.css +1 -1
- package/dist/sy-ui.cjs.js +2 -2
- package/dist/sy-ui.es.js +1027 -998
- package/package.json +2 -6
- package/packages/list/index.d.ts +14 -6
- package/packages/list/src/index.vue.d.ts +11 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sykj",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "rem adaptation🚀",
|
|
5
5
|
"main": "dist/sy-ui.cjs.js",
|
|
6
6
|
"module": "dist/sy-ui.es.js",
|
|
@@ -22,11 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vue": "^3.0.0"
|
|
24
24
|
},
|
|
25
|
-
"keywords": [
|
|
26
|
-
"keyboard",
|
|
27
|
-
"vue",
|
|
28
|
-
"ui"
|
|
29
|
-
],
|
|
25
|
+
"keywords": ["keyboard", "vue", "ui"],
|
|
30
26
|
"author": "IUHua",
|
|
31
27
|
"license": "MIT"
|
|
32
28
|
}
|
package/packages/list/index.d.ts
CHANGED
|
@@ -14,11 +14,12 @@ export declare const SyList: {
|
|
|
14
14
|
visibleItems: unknown[];
|
|
15
15
|
}) => any;
|
|
16
16
|
}, import("vue").PublicProps, {
|
|
17
|
-
height: string | number;
|
|
18
|
-
itemHeight: number;
|
|
19
17
|
items: any[];
|
|
20
18
|
virtual: boolean;
|
|
19
|
+
height: string | number;
|
|
20
|
+
itemHeight: number;
|
|
21
21
|
buffer: number;
|
|
22
|
+
columns: number;
|
|
22
23
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
23
24
|
P: {};
|
|
24
25
|
B: {};
|
|
@@ -34,11 +35,12 @@ export declare const SyList: {
|
|
|
34
35
|
visibleItems: unknown[];
|
|
35
36
|
}) => any) | undefined;
|
|
36
37
|
}>, {}, {}, {}, {}, {
|
|
37
|
-
height: string | number;
|
|
38
|
-
itemHeight: number;
|
|
39
38
|
items: any[];
|
|
40
39
|
virtual: boolean;
|
|
40
|
+
height: string | number;
|
|
41
|
+
itemHeight: number;
|
|
41
42
|
buffer: number;
|
|
43
|
+
columns: number;
|
|
42
44
|
}>;
|
|
43
45
|
__isFragment?: undefined;
|
|
44
46
|
__isTeleport?: undefined;
|
|
@@ -58,17 +60,23 @@ export declare const SyList: {
|
|
|
58
60
|
visibleItems: unknown[];
|
|
59
61
|
}) => any;
|
|
60
62
|
}, string, {
|
|
61
|
-
height: string | number;
|
|
62
|
-
itemHeight: number;
|
|
63
63
|
items: any[];
|
|
64
64
|
virtual: boolean;
|
|
65
|
+
height: string | number;
|
|
66
|
+
itemHeight: number;
|
|
65
67
|
buffer: number;
|
|
68
|
+
columns: number;
|
|
66
69
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ((new () => {
|
|
67
70
|
$slots: {
|
|
68
71
|
item?: ((props: {
|
|
69
72
|
item: any;
|
|
70
73
|
index: number;
|
|
71
74
|
}) => any) | undefined;
|
|
75
|
+
} & {
|
|
76
|
+
item?: ((props: {
|
|
77
|
+
item: any;
|
|
78
|
+
index: number;
|
|
79
|
+
}) => any) | undefined;
|
|
72
80
|
} & {
|
|
73
81
|
default?: ((props: {}) => any) | undefined;
|
|
74
82
|
};
|
|
@@ -4,6 +4,7 @@ export interface ListProps<T = any> {
|
|
|
4
4
|
height?: number | string;
|
|
5
5
|
itemHeight?: number;
|
|
6
6
|
buffer?: number;
|
|
7
|
+
columns?: number;
|
|
7
8
|
itemKey?: string | ((item: T, index: number) => string | number);
|
|
8
9
|
}
|
|
9
10
|
type __VLS_Props = ListProps;
|
|
@@ -16,22 +17,28 @@ type ScrollPayload = {
|
|
|
16
17
|
declare var __VLS_4: {
|
|
17
18
|
item: any;
|
|
18
19
|
index: number;
|
|
19
|
-
},
|
|
20
|
+
}, __VLS_12: {
|
|
21
|
+
item: any;
|
|
22
|
+
index: number;
|
|
23
|
+
}, __VLS_14: {};
|
|
20
24
|
type __VLS_Slots = {} & {
|
|
21
25
|
item?: (props: typeof __VLS_4) => any;
|
|
22
26
|
} & {
|
|
23
|
-
|
|
27
|
+
item?: (props: typeof __VLS_12) => any;
|
|
28
|
+
} & {
|
|
29
|
+
default?: (props: typeof __VLS_14) => any;
|
|
24
30
|
};
|
|
25
31
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
32
|
scroll: (payload: ScrollPayload) => any;
|
|
27
33
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
34
|
onScroll?: ((payload: ScrollPayload) => any) | undefined;
|
|
29
35
|
}>, {
|
|
30
|
-
height: string | number;
|
|
31
|
-
itemHeight: number;
|
|
32
36
|
items: any[];
|
|
33
37
|
virtual: boolean;
|
|
38
|
+
height: string | number;
|
|
39
|
+
itemHeight: number;
|
|
34
40
|
buffer: number;
|
|
41
|
+
columns: number;
|
|
35
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
36
43
|
export default _default;
|
|
37
44
|
type __VLS_WithSlots<T, S> = T & {
|