From f59777501fd61b1447957e74da7c2b7a0b795dbe Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 2 Jan 2019 11:03:46 +0800 Subject: [PATCH] feat: update comment --- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- components/comment/demo/basic.md | 4 +- components/comment/demo/editor.md | 2 +- components/comment/demo/list.md | 2 +- components/comment/demo/nested.md | 68 +++++++------------ components/comment/index.en-US.md | 3 +- components/comment/index.jsx | 14 ++-- components/comment/index.zh-CN.md | 3 +- 8 files changed, 39 insertions(+), 61 deletions(-) diff --git a/components/comment/__tests__/__snapshots__/demo.test.js.snap b/components/comment/__tests__/__snapshots__/demo.test.js.snap index 6ebcdcd34..038341bed 100644 --- a/components/comment/__tests__/__snapshots__/demo.test.js.snap +++ b/components/comment/__tests__/__snapshots__/demo.test.js.snap @@ -68,7 +68,7 @@ exports[`renders ./components/comment/demo/list.md correctly 1`] = `
- +

We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

@@ -86,7 +86,7 @@ exports[`renders ./components/comment/demo/list.md correctly 1`] = `
- +

We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

diff --git a/components/comment/demo/basic.md b/components/comment/demo/basic.md index d851d211f..455f774da 100644 --- a/components/comment/demo/basic.md +++ b/components/comment/demo/basic.md @@ -20,7 +20,7 @@ A basic comment with author, avatar, time and actions. @click="like" /> - + {{likes}} @@ -32,7 +32,7 @@ A basic comment with author, avatar, time and actions. @click="dislike" /> - + {{dislikes}} diff --git a/components/comment/demo/editor.md b/components/comment/demo/editor.md index 6fd229342..d2855251d 100644 --- a/components/comment/demo/editor.md +++ b/components/comment/demo/editor.md @@ -35,7 +35,7 @@ Comment can be used as editor, user can customize the editor component. />
- + {{action}}

{{item.content}}

- + {{item.datetime.fromNow()}} diff --git a/components/comment/demo/nested.md b/components/comment/demo/nested.md index 4f28249e5..d8544d8b7 100644 --- a/components/comment/demo/nested.md +++ b/components/comment/demo/nested.md @@ -11,61 +11,41 @@ Comments can be nested. ```html