Skip to content

Commit a678e3b

Browse files
committed
fix: add comment ts types
1 parent c89d19e commit a678e3b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

types/ant-design-vue.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { Button } from './button/button';
1616
import { Calendar } from './calendar';
1717
import { Card } from './card';
1818
import { Collapse } from './collapse/collapse';
19+
import { Comment } from './comment';
1920
import { Carousel } from './carousel';
2021
import { Cascader } from './cascader';
2122
import { Checkbox } from './checkbox/checkbox';

types/comment.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Project: https://github.com/vueComponent/ant-design-vue
2+
// Definitions: https://github.com/vueComponent/ant-design-vue/types
3+
4+
import { AntdComponent } from './component';
5+
6+
export declare class Comment extends AntdComponent {
7+
/** List of action items rendered below the comment content */
8+
actions?: Array<any>;
9+
/** The element to display as the comment author. */
10+
author?: any;
11+
/** The element to display as the comment avatar - generally an antd Avatar */
12+
avatar?: any;
13+
/** The main content of the comment */
14+
content: any;
15+
/** Comment prefix defaults to '.ant-comment' */
16+
prefixCls?: string;
17+
/** A datetime element containing the time to be displayed */
18+
datetime?: any;
19+
}

0 commit comments

Comments
 (0)