New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dragon-ui

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dragon-ui - npm Package Compare versions

Comparing version 0.0.56 to 0.0.57

2

CHANGELOG.md
# 版本更新日志
## 0.0.57
* 修复Radio触发重复两次onChange事件的bug,支持value为number类型的值

@@ -4,0 +6,0 @@ ## 0.0.56

6

components/Radio/Radio.jsx

@@ -24,3 +24,3 @@

const props = this.props;
const { value, isDisabled, className, children, ...others } = props;
const { value, isDisabled, className, children } = props;
const disabled = 'disabled' in props || isDisabled;

@@ -36,3 +36,3 @@

return (
<label {...others}>
<label>
<span className={cls}>

@@ -73,2 +73,2 @@ <input

export default Radio;
export default Radio;
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import Radio from './Radio';

@@ -23,3 +22,3 @@

render() {
render() {
const props = this.props;

@@ -31,4 +30,3 @@

onChange={(e) => this.onRadioChange(e)}
checked={this.state.value === radio.props.value}>
</Radio>
checked={this.state.value == radio.props.value} />
);

@@ -35,0 +33,0 @@ });

@@ -11,5 +11,2 @@

<div className="App-container">
<div className="siderbar">
</div>
<div className="inner">

@@ -16,0 +13,0 @@ {this.props.children}

@@ -13,4 +13,2 @@ 'use strict';

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -62,4 +60,2 @@

var others = _objectWithoutProperties(props, ['value', 'isDisabled', 'className', 'children']);
var disabled = 'disabled' in props || isDisabled;

@@ -75,3 +71,3 @@

'label',
others,
null,
_react2['default'].createElement(

@@ -78,0 +74,0 @@ 'span',

@@ -23,6 +23,2 @@ 'use strict';

var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _Radio = require('./Radio');

@@ -65,3 +61,3 @@

},
checked: _this.state.value === radio.props.value }));
checked: _this.state.value == radio.props.value }));
});

@@ -68,0 +64,0 @@

{
"name": "dragon-ui",
"version": "0.0.56",
"version": "0.0.57",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "scripts": {

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

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