1.0.1 • Published 4 years ago

vue-progress-btn v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

vue-progress-btn

基于vue的点击进度条

Build Setup

install

npm install vue-progress-btn --save

or yarn add vue-progress-btn

使用组件必须传递的参数 options

参数字段类型默认值
进度条的宽度widthnumber500
进度条的宽度heightnumber10
进度条点击按钮宽度btnWidthnumber16
进度条点击按钮高度btnHeightnumber16
默认选中的进度selectedstring
进度条的背景色backgroundstring#e1e1e1
进度条选中的颜色btnColorstring#60baff
进度条是否点击disabledbooleanfalse
进度条文本内容arrOptionarray1, 8, 3, 4, 5, 6

组件的事件

事件名称说明回调参数
btnBar获取当前点击进度条的信息$event
 objOption: {
        width: 500,
        height: 10,
        selected: 4,
        btnWidth: 16,
        btnHeight: 16,
        background: '#e1e1e1',
        btnColor: '#60baff',
        disabled: false,
        arrOption: [1, 8, 3, 4, 5, 6],
      },
# 组件的使用方法
  <vue-progress-bar :option="objOption" @btnBar="handleBtnBar"></vue-progress-bar>



# js 接受的信息判断
methods:{
  handleBtnBar($event){
    //$event....
  }
}
1.0.1

4 years ago

1.0.0

4 years ago