1.1.22 • Published 6 years ago

coral-comment v1.1.22

Weekly downloads
33
License
MIT
Repository
-
Last release
6 years ago

安装

tnpm install --save @tencent/coral-comment

使用

方法一: 直接引用

import {CircleComment} from '@tencent/coral-comment';
import '@tencent/coral-comment/css/index.css';

方法二: 按需加载(推荐)

  • 安装babel-plugin-import

      npm i --save-dev babel-plugin-import
  • 在.babelrc中配置

      ['import', {libraryName: '@tencent/coral-comment', "libraryDirectory": "lib", "style": true}]

    参数说明:

    • "style": true //引入less文件

    • "style": "css" //引入css文件

      使用less文件时可以自定义主题, 具体可以参考ant design的主题设置

组件

CircleComment

CoralComment

HeadComponent: 头像组件

UserinfoComponent: 用户信息

ContentComponent: 评论内容信息

CommentinfoComponent: 评论信息(点赞数, 回复数等)

ReplyComponent: 回复信息

PictureComponent: 图片信息

1.1.22

6 years ago

1.1.21

6 years ago

1.1.20

6 years ago

1.1.19

6 years ago

1.1.18

6 years ago

1.1.17

6 years ago

1.1.16

6 years ago

1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago