Giter Site home page Giter Site logo

uni-app-sx-rate's Introduction

rate

评分

属性说明

属性名 类型 默认值 说明
value Number 3 星星值,支持.sync修饰符
max Number 5 最大星星数量
disabled Boolean false 是否禁用
animation Boolean true 开启手指滑动时星星的的动画效果
defaultColor String '#ccc' 默认星星颜色,同css的color
activeColor String '#FFB700' 滑选后星星颜色,同css的color
fontSize String 'inherit' 星星大小,同css的fontSize
margin String '' 星星间距, 可以是 1em, 10px等(注意,不支持upx)
--- --- --- ---
@change EventHandle 星星值变化时回调,event=value

Tips

使用的是阿里的iconfont,不是uni-icon

平台差异

测试支持H5,微信小程序;

理论支持其他平台,未测试nvue,

uni-app-sx-rate's People

Contributors

sunxi1997 avatar

Watchers

James Cloos 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.