-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.d.ts
More file actions
77 lines (73 loc) · 1.2 KB
/
type.d.ts
File metadata and controls
77 lines (73 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
interface Tip {
_id ?: string;
title : string;
create_date ?: string;
is_end ?: boolean;
end_date ?: number | string;
}
interface Article {
_id ?: string;
user_id ?: string;
sub ?: string;
title : string;
content ?: string;
updateCount ?: boolean;
}
interface Tag {
_id ?: string;
// 图片地址
src ?: string;
// 跳转地址
href ?: string;
title : string;
sub ?: string | null;
children ?: Tag[];
updateCount ?: boolean;
}
type Option = {
key ?: string,
fontIcon ?: string,
title : string
};
interface ClientInfo {
clientLeft : number;
clientRight : number;
clientTop : number;
clientBottom : number;
clientWidth : number;
clientHeight : number;
windowWidth : number;
windowHeight : number;
}
interface Position {
top ?: string
right ?: string;
bottom ?: string;
left ?: string;
}
interface PostItem {
imgSrc : string;
title : string;
sub : string;
tags : string[];
time : string;
value : string;
}
type SwipeItem = {
imgUrl : string,
title : string,
sub : string,
href : string,
}
type CURD = "get" | "add" | "remove" | "update"
export {
Tip,
Tag,
ClientInfo,
Position,
PostItem,
Option,
CURD,
Article,
SwipeItem
}