Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bee-switch

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-switch - npm Package Compare versions

Comparing version 0.1.2 to 0.1.4

4

demo/index-demo-base.js

@@ -10,5 +10,5 @@

const CARET = <i className="uf uf-chevronarrowdown"></i>;
const CARET = <i className="uf uf-arrow-down"></i>;
const CARETUP = <i className="uf uf-chevronarrowup"></i>;
const CARETUP = <i className="uf uf-arrow-up"></i>;

@@ -15,0 +15,0 @@

@@ -10,5 +10,5 @@

const CARET = <i className="uf uf-chevronarrowdown"></i>;
const CARET = <i className="uf uf-arrow-down"></i>;
const CARETUP = <i className="uf uf-chevronarrowup"></i>;
const CARETUP = <i className="uf uf-arrow-up"></i>;

@@ -92,3 +92,3 @@

}
var DemoArray = [{"example":<Demo1 />,"title":" 默认开关","code":"/**\n *\n * @title 默认开关\n * @description \n *\n */\n\nclass Demo1 extends Component {\n render () {\n return (\n <Switch />\n )\n }\n}\n","desc":" "},{"example":<Demo2 />,"title":" 不同大小的开关","code":"/**\n *\n * @title 不同大小的开关\n * @description 通过`size`属性控制开关的大小\n *\n */\n\nclass Demo2 extends Component {\n\n render () {\n return (\n <Row>\n <Col sm={2}>\n <Switch checked={true} size='sm' />\n </Col>\n <Col sm={2}>\n <Switch checked={true} />\n </Col>\n <Col sm={2}>\n <Switch checked={true} size='lg' />\n </Col>\n </Row>\n )\n }\n}\n","desc":" 通过`size`属性控制开关的大小"},{"example":<Demo3 />,"title":" 事件开关","code":"/**\n *\n * @title 事件开关\n * @description 点击开关触发事件\n *\n */\n\nclass Demo3 extends Component {\n constructor(props){\n super(props);\n this.state = {\n switch : \"\"\n };\n this.changeHandle = this.changeHandle.bind(this);\n }\n changeHandle(e){\n\t\tthis.setState({\n switch: `${e}`\n })\n\t}\n\n render () {\n return (\n <Row>\n <Col sm={2}>\n <Switch onChangeHandler = {this.changeHandle} checkedChildren={'开'} unCheckedChildren={'关'} />\n </Col>\n <Col sm={2}>\n <Switch checked={true} onChangeHandler = {this.changeHandle} checkedChildren={'on'} unCheckedChildren={'off'} />\n </Col>\n <Col sm={2}>\n <span>{ this.state.switch }</span>\n </Col>\n </Row>\n )\n }\n}\n","desc":" 点击开关触发事件"}]
var DemoArray = [{"example":<Demo1 />,"title":" 默认开关","code":"/**\r\n *\r\n * @title 默认开关\r\n * @description \r\n *\r\n */\r\n\r\nclass Demo1 extends Component {\r\n render () {\r\n return (\r\n <Switch />\r\n )\r\n }\r\n}\r\n","desc":" "},{"example":<Demo2 />,"title":" 不同大小的开关","code":"/**\r\n *\r\n * @title 不同大小的开关\r\n * @description 通过`size`属性控制开关的大小\r\n *\r\n */\r\n\r\nclass Demo2 extends Component {\r\n\r\n render () {\r\n return (\r\n <Row>\r\n <Col sm={2}>\r\n <Switch checked={true} size='sm' />\r\n </Col>\r\n <Col sm={2}>\r\n <Switch checked={true} />\r\n </Col>\r\n <Col sm={2}>\r\n <Switch checked={true} size='lg' />\r\n </Col>\r\n </Row>\r\n )\r\n }\r\n}\r\n","desc":" 通过`size`属性控制开关的大小"},{"example":<Demo3 />,"title":" 事件开关","code":"/**\r\n *\r\n * @title 事件开关\r\n * @description 点击开关触发事件\r\n *\r\n */\r\n\r\nclass Demo3 extends Component {\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n switch : \"\"\r\n };\r\n this.changeHandle = this.changeHandle.bind(this);\r\n }\r\n changeHandle(e){\r\n\t\tthis.setState({\r\n switch: `${e}`\r\n })\r\n\t}\r\n\r\n render () {\r\n return (\r\n <Row>\r\n <Col sm={2}>\r\n <Switch onChangeHandler = {this.changeHandle} checkedChildren={'开'} unCheckedChildren={'关'} />\r\n </Col>\r\n <Col sm={2}>\r\n <Switch checked={true} onChangeHandler = {this.changeHandle} checkedChildren={'on'} unCheckedChildren={'off'} />\r\n </Col>\r\n <Col sm={2}>\r\n <span>{ this.state.switch }</span>\r\n </Col>\r\n </Row>\r\n )\r\n }\r\n}\r\n","desc":" 点击开关触发事件"}]

@@ -95,0 +95,0 @@

{
"name": "bee-switch",
"version": "0.1.2",
"description": "switch ui component for react",
"keywords": [
"react",
"react-component",
"react-switch",
"iuap-design",
"neoui-react",
"switch"
],
"engines": {
"node": ">=4.0.0"
},
"homepage": "https://github.com/tinper-bee/switch",
"author": "",
"repository": "http://github.com/tinper-bee/switch",
"bugs": "https://github.com/tinper-bee/switch/issues",
"license": "MIT",
"main": "./build/index",
"config": {
"port": 8000
},
"scripts": {
"dev": "bee-tools run start",
"build": "bee-tools run build",
"lint": "bee-tools run lint",
"test": "bee-tools run test",
"chrome": "bee-tools run chrome",
"browsers": "bee-tools run browsers",
"pub": "bee-tools run pub",
"coveralls": "bee-tools run coverage"
},
"dependencies": {
"classnames": "^2.2.5",
"tinper-bee-core": "0.0.12"
},
"devDependencies": {
"bee-button": "^0.1.10",
"bee-layout": "^0.1.6",
"bee-panel": "0.0.6",
"chai": "^3.5.0",
"console-polyfill": "~0.2.1",
"enzyme": "^2.4.1",
"es5-shim": "~4.1.10",
"react": "~0.14.0",
"react-addons-test-utils": "15.3.2",
"react-dom": "~0.14.0"
}
}
"name": "bee-switch",
"version": "0.1.4",
"description": "switch ui component for react",
"keywords": [
"react",
"react-component",
"react-switch",
"iuap-design",
"neoui-react",
"switch"
],
"engines": {
"node": ">=4.0.0"
},
"homepage": "https://github.com/tinper-bee/switch",
"author": "",
"repository": "http://github.com/tinper-bee/switch",
"bugs": "https://github.com/tinper-bee/switch/issues",
"license": "MIT",
"main": "./build/index",
"config": {
"port": 8000
},
"scripts": {
"dev": "bee-tools run start",
"build": "bee-tools run build",
"lint": "bee-tools run lint",
"test": "bee-tools run test",
"chrome": "bee-tools run chrome",
"browsers": "bee-tools run browsers",
"pub": "bee-tools run pub",
"coveralls": "bee-tools run coverage"
},
"dependencies": {
"classnames": "^2.2.5",
"tinper-bee-core": "^0.1.3"
},
"devDependencies": {
"bee-button": "latest",
"bee-layout": "latest",
"bee-panel": "latest",
"chai": "^3.5.0",
"console-polyfill": "~0.2.1",
"enzyme": "^2.4.1",
"es5-shim": "~4.1.10",
"react": "15.3.2",
"react-addons-test-utils": "15.3.2",
"react-dom": "15.3.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc