https://github.com/xlsdg/vue-duoshuo
Vue.js(v2.x+) component wrap for DuoShuo.js
https://github.com/xlsdg/vue-duoshuo
duoshuo duoshuo-component vue vue-duoshuo
Last synced: 8 months ago
JSON representation
Vue.js(v2.x+) component wrap for DuoShuo.js
- Host: GitHub
- URL: https://github.com/xlsdg/vue-duoshuo
- Owner: xlsdg
- License: mit
- Created: 2017-01-05T14:59:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T14:25:47.000Z (over 8 years ago)
- Last Synced: 2025-03-02T03:52:13.788Z (9 months ago)
- Topics: duoshuo, duoshuo-component, vue, vue-duoshuo
- Language: JavaScript
- Size: 28.3 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vue-refactor - vue-duoshuo
README
# vue-duoshuo
> Vue.js(v2.x+) component wrap for DuoShuo.js
## Installation
``` bash
$ npm install --save vue-duoshuo
```
## Usage
``` vue
import DuoShuo from 'vue-duoshuo';
export default {
name: 'view',
components: {
DuoShuo
},
data() {
return {
};
},
methods: {
}
};
.duo-shuo {
}
```
## Properties
* `domain` **[String]**
Required; DuoShuo short_name 多说二级域名
* `thread` **[String]**
Required; 文章在原站点中的 ID 或其他唯一标识
* `image` **[String]**
Optional; 文章图片地址,将用于转发时的附图
* `author` **[String]**
Optional; 作者在本站中的 ID
* `position` **[String]**
Optional; 该页面中评论框的位置,取值 `top` (评论框在顶端显示),`bottom` (评论框在底端显示)
* `limit` **[Number]**
Optional; 单页显示评论数,取值范围: 1~200
* `order` **[String]**
Optional; 排序方式,取值:`asc` (从旧到新),`desc` (从新到旧)
See more [DuoShuo](http://dev.duoshuo.com/docs/5003ecd94cab3e7250000008)
## Development
``` bash
$ git clone https://github.com/xlsdg/vue-duoshuo.git vue-duoshuo
$ cd vue-duoshuo && npm i && npm run dev
```
Then open `http://localhost:8080/` to see the demo.
# License
MIT