1.1.14 • Published 3 years ago

kk-slider-unlock v1.1.14

Weekly downloads
12
License
ISC
Repository
-
Last release
3 years ago

#KKSliderUnlock KKSliderUnlock是一个React滑动解锁的组件,封装的比较简单,后续会慢慢进行改进。

安装方法:

npm install kk-slider-unlock
or
yarn add kk-slider-unlock

使用:

import React, {Component} from 'react'
import { KKSliderUnlock } from 'kk-slider-unlock'

class Demo extends Component {
  
  sliderSuccess = () => {
    console.log('success')
  }
  render() {
    return (
      <KKSliderUnlock sliderSuccess={this.sliderSuccess} backColor="#7ac23d" sliderWidth={300} />
    )
  }
}

解锁成功后会执行sliderSuccess这个方法。

另外两个属性

backColor:string // 主题色

sliderWidth:number // 宽度

Demo

*该组件依赖lodash和react

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.10

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago