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.4 to 0.2.1

30

build/Switch.js

@@ -78,10 +78,10 @@ 'use strict';

Switch.prototype.render = function render() {
var _props = this.props,
checkedChildren = _props.checkedChildren,
unCheckedChildren = _props.unCheckedChildren,
onChangeHandler = _props.onChangeHandler,
size = _props.size,
className = _props.className,
clsPrefix = _props.clsPrefix,
colors = _props.colors;
var _props = this.props;
var checkedChildren = _props.checkedChildren;
var unCheckedChildren = _props.unCheckedChildren;
var onChangeHandler = _props.onChangeHandler;
var size = _props.size;
var className = _props.className;
var clsPrefix = _props.clsPrefix;
var colors = _props.colors;
//获取checked

@@ -102,13 +102,9 @@

return _react2["default"].createElement(
'div',
null,
'span',
{ onClick: this.clickHandler, className: (0, _classnames2["default"])(className, classNames), tabIndex: '0' },
_react2["default"].createElement(
'span',
{ onClick: this.clickHandler, className: (0, _classnames2["default"])(className, classNames), tabIndex: '0' },
_react2["default"].createElement(
'span',
{
className: clsPrefix + '-inner' },
checked ? checkedChildren : unCheckedChildren
)
{
className: clsPrefix + '-inner' },
checked ? checkedChildren : unCheckedChildren
)

@@ -115,0 +111,0 @@ );

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

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

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

@@ -0,0 +0,0 @@ import Switch from '../src';

@@ -0,0 +0,0 @@ ## Switch 开关

{
"name": "bee-switch",
"version": "0.1.4",
"version": "0.2.1",
"description": "switch ui component for react",

@@ -36,4 +36,5 @@ "keywords": [

"dependencies": {
"babel-runtime": "^6.20.0",
"classnames": "^2.2.5",
"tinper-bee-core": "^0.1.3"
"tinper-bee-core": "^0.2.1"
},

@@ -40,0 +41,0 @@ "devDependencies": {

@@ -0,0 +0,0 @@ # bee-switch

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

@@ -59,5 +59,4 @@ import React, { Component,PropTypes } from 'react'

return(
<div>
<span onClick = {this.clickHandler} className={classnames(className,classNames)} tabIndex="0">
<span
<span
className={`${clsPrefix}-inner`}>

@@ -67,3 +66,2 @@ { checked?checkedChildren : unCheckedChildren}

</span>
</div>
)

@@ -74,2 +72,2 @@ }

Switch.defaultProps = defaultProps;
export default Switch;
export default Switch;

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 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

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