1.0.2 • Published 4 years ago

five-start-pralse v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

安装

npm install 

使用

  • 在 需要使用的文件中引入
// 引入组件
import JscyUI from "five-start-pralse"

// 引入样式文件
import  "five-start-pralse/style/fiveStart.css"

// 挂载
Vue.use(JscyUI)
  • 页面中使用
    <Starts
      :startQuantity="5"
      :num="0"
      :size="14"
      @getStartNum="getStartNum"
    />

属性说明

PropertyDeacriptiontypedefault
startQuantity总星数Number5
num默认选中的星星数Number0
size星星的大小Number14
startColor选中时星星的颜色String'#FCC33F'
@getStartNum点击星星触发的事件function默认参数为当前选中星星数