diff --git a/packages/devui-vue/docs/components/comment/index.md b/packages/devui-vue/docs/components/comment/index.md new file mode 100644 index 0000000000000000000000000000000000000000..4d9cca29ec3d22d24af1d2a750b3244a89770c75 --- /dev/null +++ b/packages/devui-vue/docs/components/comment/index.md @@ -0,0 +1,48 @@ +# Comment 评论 + +对网站内容的反馈、评价和讨论。 + +### 何时使用 + +评论组件可用于对事物的讨论,例如页面、博客文章、问题等等。 + +### 基本评论 + +:::demo + +```vue + +``` + +::: + + + +### API + +d-comment 参数 +| 参数 | 类型 | 默认 | 说明 | +| :------: | :--: | :--: | :---------------------------------------------- | +| actions | - | - | - | +| author | - | - | 要显示为注释作者的元素 | +| avatar | - | - | 要显示为评论头像的元素 - 通常是 avatar | +| content | - | - | 评论的主要内容 | +| datetime | - | - | 展示时间描述 | diff --git a/packages/devui-vue/docs/en-US/components/comment/index.md b/packages/devui-vue/docs/en-US/components/comment/index.md new file mode 100644 index 0000000000000000000000000000000000000000..feb1f3b5285dace26a3b23abb0852c8b6cf6b3f8 --- /dev/null +++ b/packages/devui-vue/docs/en-US/components/comment/index.md @@ -0,0 +1,46 @@ +# Comment + +A comment displays user feedback and discussion to website content. + +### When To Use + +Comments can be used to enable discussions on an entity such as a page, blog post, issue or other. + +### Basic Usage + +:::demo + +```vue + +``` + +::: + + + +### API + +d-comment +| Parameter | Type | Default | Description | +| :------: | :--: | :--: | :---------------------------------------------- | +| actions | - | - | - | +| author | - | - | The element to display as the comment author | +| avatar | - | - | The element to display as the comment avatar - generally an antd Avatar | +| content | - | - | The main content of the comment | +| datetime | - | - | A datetime element containing the time to be displayed |