1.1.22 • Published 5 years ago

coral-comment v1.1.22

Weekly downloads
33
License
MIT
Repository
-
Last release
5 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

5 years ago

1.1.21

5 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago