1.1.1 • Published 7 years ago

verification-code-react v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

Use

  • install

npm install --save-dev verification-code-react css-loader style-loader

  • webpack.config.js

Add loader

{
    test: /\.css$/,
    loader: 'style-loader!css-loader'//添加对样式表的处理
}
  • import

import VerificationCode from "verification-code-react"

  • propertys
<VerificationCode
	startTime={60}
	holdString="verify"
	autoStart={false}
	restart={this.state.restart}
	callback={() => console.log("callback")} />

It is big with parent component

Propertys

PropertyHow
startTimehow long time
holdStringwaiting for show
autoStartrender over begin or not
restartif u need, restart it, is optional
callbackwhen countdown over do it

warning

restart: remember set it false if u have made it be true

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.9.8

7 years ago

0.2.1

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago