1.0.5 • Published 5 years ago

miniprogram-custom-comment v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

miniprogram-custom-comment

小程序自定义组件-评论模块:

  • 简单的小程序评论组件
  • 代码结构有待优化

属性

属性名称类型默认必填说明
commentDataObject评论数据
bottomInt0设置距离底部高度
bindAuthCommentElementPosition绑定输入法提交事件
bindAuthCommentButtonElementPosition绑定按钮提交事件
bindClearCommentElementPosition清空输入框

commentData 属性

属性名称类型默认必填说明
titleString评论区标题
placeholderString输入框默认值
commentTextString按钮文本
commentArrArray评论列表

commentArr 属性

属性名称类型默认必填说明
nickNameString用户昵称
nameString当不为空时会标注(企业微信),用来区分微信普通用户和企业用户
avatarUrlString/images/user.png头像地址
contentString内容不能少于6个字
lastTimeString发布时间

使用方法

  • 安装依赖:
npm i miniprogram-custom-comment
  • page.json 中添加配置
{
  "usingComponents": {
    "comment": "miniprogram-custom-comment"
  }
}
  • page.wxml 中添加组件
<comment placeholder="" comment-data="[]" bottom="0" bindAuthComment="{{事件}}" bindAuthCommentButton="{{事件}}" bindClearComment="{{事件}}"></comment>

反馈建议

E-mail: admin@qzwu.com

@ License

MIT License

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