From a678e3b55021bcfd3ac2da97f0113784b56aeee2 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Sun, 29 Sep 2019 17:42:17 +0800 Subject: [PATCH] fix: add comment ts types --- types/ant-design-vue.d.ts | 1 + types/comment.d.ts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 types/comment.d.ts diff --git a/types/ant-design-vue.d.ts b/types/ant-design-vue.d.ts index 61914d2a8..d1cd355b6 100644 --- a/types/ant-design-vue.d.ts +++ b/types/ant-design-vue.d.ts @@ -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'; diff --git a/types/comment.d.ts b/types/comment.d.ts new file mode 100644 index 000000000..ad6c6b8de --- /dev/null +++ b/types/comment.d.ts @@ -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; + /** 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; +}