1.2.1 • Published 7 years ago

switch-react v1.2.1

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

Use

  • install

npm install --save-dev switch-react css-loader style-loader

  • webpack.config.js

Add loader

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

import VerificationCode from "switch-react"

  • propertys
<Switch
	onName="车架号"
	offName="零件号"
	isOff={_isOff}
	click={() => this.setState({isOff: !_isOff})} />

It is big with parent component

Propertys

PropertyHow
onNameleft name
offNameright name
isOffbool: show or not
clickcircle clicked
1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago