fix: add comment ts types

pull/1248/head
tanjinzhou 5 years ago
parent c89d19e6e1
commit a678e3b550

@ -16,6 +16,7 @@ import { Button } from './button/button';
import { Calendar } from './calendar';
import { Card } from './card';
import { Collapse } from './collapse/collapse';
import { Comment } from './comment';
import { Carousel } from './carousel';
import { Cascader } from './cascader';
import { Checkbox } from './checkbox/checkbox';

19
types/comment.d.ts vendored

@ -0,0 +1,19 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
export declare class Comment extends AntdComponent {
/** List of action items rendered below the comment content */
actions?: Array<any>;
/** The element to display as the comment author. */
author?: any;
/** The element to display as the comment avatar - generally an antd Avatar */
avatar?: any;
/** The main content of the comment */
content: any;
/** Comment prefix defaults to '.ant-comment' */
prefixCls?: string;
/** A datetime element containing the time to be displayed */
datetime?: any;
}
Loading…
Cancel
Save