@ahzoo/sus 2.0.2 → 2.0.5
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/dist/t/index.d.ts +10 -111
- package/dist/t/index.js +446 -429
- package/dist/t/index.umd.cjs +17 -17
- package/dist/t/style.css +1 -1
- package/dist/t/types/list.d.ts +10 -29
- package/dist/v/index.d.ts +10 -0
- package/dist/v/index.js +1409 -1386
- package/dist/v/index.umd.cjs +79 -79
- package/dist/v/style.css +1 -1
- package/dist/v/types/list.d.ts +11 -26
- package/package.json +1 -1
- package/dist/v/types/index.d.ts +0 -87
package/dist/t/index.d.ts
CHANGED
|
@@ -1,111 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
userName: string;
|
|
12
|
-
userWebsite: string;
|
|
13
|
-
userAvatar: string;
|
|
14
|
-
content: string;
|
|
15
|
-
contentExtends?: string;
|
|
16
|
-
parentId?: string;
|
|
17
|
-
replyName?: string;
|
|
18
|
-
createdDate: string;
|
|
19
|
-
area?: string;
|
|
20
|
-
userAgent?: string;
|
|
21
|
-
tagName?: string;
|
|
22
|
-
showMore?: boolean;
|
|
23
|
-
showEdit?: boolean;
|
|
24
|
-
showDelete?: boolean;
|
|
25
|
-
privacy: boolean;
|
|
26
|
-
band?: string;
|
|
27
|
-
child: CommentItem[];
|
|
28
|
-
}
|
|
29
|
-
export interface Comment {
|
|
30
|
-
articleId: string;
|
|
31
|
-
userName: string;
|
|
32
|
-
userEmail: string;
|
|
33
|
-
userWebsite: string;
|
|
34
|
-
userAvatar: string;
|
|
35
|
-
content: string;
|
|
36
|
-
contentText: string;
|
|
37
|
-
replyName?: string;
|
|
38
|
-
parentId?: string;
|
|
39
|
-
notify: number;
|
|
40
|
-
privacy: boolean;
|
|
41
|
-
}
|
|
42
|
-
export interface EmojiItem {
|
|
43
|
-
readonly length: number;
|
|
44
|
-
name: string;
|
|
45
|
-
emoji: string;
|
|
46
|
-
shortcodes: string[];
|
|
47
|
-
tags: string[];
|
|
48
|
-
group: string;
|
|
49
|
-
fallbackImage: string;
|
|
50
|
-
}
|
|
51
|
-
export interface Emoji {
|
|
52
|
-
emojis: EmojiItem[];
|
|
53
|
-
showPanel: boolean;
|
|
54
|
-
}
|
|
55
|
-
export interface ToolBar {
|
|
56
|
-
emoji: {
|
|
57
|
-
show: boolean;
|
|
58
|
-
emojis: EmojiItem[];
|
|
59
|
-
};
|
|
60
|
-
image: true;
|
|
61
|
-
notify: true;
|
|
62
|
-
privacy: {
|
|
63
|
-
show: boolean;
|
|
64
|
-
disable: boolean;
|
|
65
|
-
};
|
|
66
|
-
bubbleMenu: {
|
|
67
|
-
show: boolean;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export interface InfoBar {
|
|
71
|
-
enable: boolean;
|
|
72
|
-
name: {
|
|
73
|
-
show: boolean;
|
|
74
|
-
placeholder: string;
|
|
75
|
-
};
|
|
76
|
-
website: {
|
|
77
|
-
show: boolean;
|
|
78
|
-
placeholder: string;
|
|
79
|
-
tips: string;
|
|
80
|
-
};
|
|
81
|
-
email: {
|
|
82
|
-
show: boolean;
|
|
83
|
-
placeholder: string;
|
|
84
|
-
tips: string;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export const SuSSimpleTop: DefineComponent<{ comment: TopCommentItem; }>;
|
|
88
|
-
export const SuSTop: DefineComponent<{
|
|
89
|
-
comment: TopCommentItem;
|
|
90
|
-
}, { (event: 'go-local'): void; }>;
|
|
91
|
-
export const SuSComment: DefineComponent<{
|
|
92
|
-
reply: CommentItem;
|
|
93
|
-
toolBar: ToolBar;
|
|
94
|
-
infoBar: InfoBar;
|
|
95
|
-
placeholder?: string;
|
|
96
|
-
comment?: Comment;
|
|
97
|
-
}, {
|
|
98
|
-
updateImage: (files: any) => void;
|
|
99
|
-
updatePreviewImage: (value: any) => void;
|
|
100
|
-
}, {
|
|
101
|
-
'on-save': (comment: Comment, uploadImage: any) => void;
|
|
102
|
-
'on-cancel': () => void;
|
|
103
|
-
'add-image': (imgRef: any, uploadImage: any) => void;
|
|
104
|
-
'update-avatar': (comment: Comment) => void;
|
|
105
|
-
}>;
|
|
106
|
-
export const SuSList: DefineComponent<{
|
|
107
|
-
comment: CommentItem;
|
|
108
|
-
lineHeight?: number;
|
|
109
|
-
showFooter?: boolean;
|
|
110
|
-
}, { (e: 'on-reply', comment: CommentItem): void; }>;
|
|
111
|
-
export default {SuSTop, SuSSimpleTop, SuSComment, SuSList};
|
|
1
|
+
export * from './types/comment';
|
|
2
|
+
import SuSComment from './types/comment';
|
|
3
|
+
export {SuSComment};
|
|
4
|
+
export * from './types/top';
|
|
5
|
+
import SuSTop from './types/top';
|
|
6
|
+
import SuSSimpleTop from './types/top';
|
|
7
|
+
export {SuSTop, SuSSimpleTop}
|
|
8
|
+
export * from './types/list';
|
|
9
|
+
import SuSList from './types/list';
|
|
10
|
+
export {SuSList}
|