1.2.9 • Published 10 months ago

perfree-comment v1.2.9

Weekly downloads
1
License
MIT
Repository
github
Last release
10 months ago

perfree-comment

PerfreeBlog新版评论组件,可在PerfreeBlog任意主题中使用

使用方式

使用方式分为两种,根据自己主题的开发方式进行选择 1. 下载引入, 下载releases中的发布包 https://github.com/perfree/perfree-comment/releases, 之后在代码中引入css和js

<link rel="stylesheet" href="./perfree-comment.css">
<script src="./perfree-comment.js"></script>

然后按照以下方式使用

<perfree-comment article-id="32" show-comment-list="true"></perfree-comment>
  1. 安装引入
npm i perfree-comment

这里以vue+vite为例,修改vite.config.js中plugins/vue,表明perfree-comment为自定义标签

 plugins: [
      vue({
        template: {
          compilerOptions: {
            isCustomElement: tag => tag === 'perfree-comment'
          }
        }
      }),
]

之后在需要使用的组件中引入

import "perfree-comment/dist/perfree-comment.css";
import "perfree-comment/dist/perfree-comment.js";

然后按照以下方式使用

<perfree-comment article-id="32" show-comment-list="true"></perfree-comment>

参数说明

  • article-id : 文章id
  • show-comment-list : 是否展示评论列表

预览图

截图

1.2.0

10 months ago

1.2.8

10 months ago

1.1.8

10 months ago

1.2.6

10 months ago

1.2.5

10 months ago

1.1.6

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.9

10 months ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

7 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.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago