Giter Club home page Giter Club logo

wechat-miniprogram-rate's Introduction

wechat-miniprogram-rate

微信小程序评分组件🌟

预览图

下载

git clone https://github.com/simsir-lin/wechat-miniprogram-rate.git

使用

  1. 安装
npm install --save wechat-miniprogram-rate
  1. 在你的页面json中添加
{
  "usingComponents": {
    "rate": "wechat-miniprogram-rate"
  }
}
  1. 在wxml中即可使用组件
<rate></rate>

调试开发

  1. 打开微信web开发者工具,'本地小程序项目 - 添加项目',项目目录选择为 miniprogram_dev 目录
  2. 安装依赖 npm install
  3. 构建命令 npm run dev
  4. 更多帮助信息查看帮助文档

注意

  • 小程序基础库版本 2.2.1 或以上、及开发者工具 1.02.1808300 或以上开始
  • 初次引入需先执行开发者工具的 npm 构建,微信官方 npm 文档

Props

name description type default value
value 选中的星星数 Number 0
placeholder 星星占位符 Number 0
allowHalf 是否可半星 Boolean true
disabled 是否禁用选择 Boolean false
length 星星个数 Number 5

events

name description parameters
change 改变了星星 改变的数值

贡献

如果你有好的意见或建议,欢迎给我提issue!

wechat-miniprogram-rate's People

Contributors

simsir-lin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.