npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-zxy-comment-plugins-sample

v1.1.0

Published

vue回复插件

Downloads

4

Readme

miniproject

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

how to use

main.js

import vueZxyCommentPluginsSample from 'vue-zxy-comment-plugins-sample'
Vue.use(vueZxyCommentPluginsSample);

.vue文件里
<z-z-comment :getAllPerson="AllPerson" :key-map="keyMap"
                 :showNumber="2"
                 :comment-datas="commentDatas"
                 :orderBy="'create_time'"
                 :useEmoji="true"
                 @submitComment="submitComment"/>
                 

 title	            String  标题		默认为热门评论                
 showNumber:	    Number 展示数量		默认为2,超出的需展开查看
 keyMap:          {pid: "parent_comment_id",id: "id",isAdmin: "admin_comment"}//可根据自己实际key值设置

submitComment:     function 发布评论回调函数     
AllPerson:          function 属性方法,传入需要@的人员 回调函数 
rank:              string 排序方式 asc升序   desc降序   默认为desc
orderBy:           String  排序字段(时间)		默认为time
useEmoji:          Boolean	是否使用表情		默认为true
withCommentContent:Boolean	是否有评论框		默认为true
commentDatas:      array 后端返回的评论数据 
案例:   commentDatas: [
              {
                id: 1, //评论Id
                admin_comment: 0,//楼主标记   1为楼主 
                avatar: "https://img2.baidu.com/it/u=134769530,4268043097&fm=253&fmt=auto&app=138&f=JPEG?w=533&h=333",//头像
                create_time: "2020-05-31 23:03:55",//创建时间
                nickname: "nickname1",//昵称
                parent_comment_id: null,//父级评论id
                content: "我是评论1",//评论内容
                seleUserInfo:[//@人员信息
                  {userId:102,userLink:"http://www.baidu.com",userName:"王五"},
                ]
              },  
              

Customize configuration

See Configuration Reference.