uxcore-select2
Advanced tools
Comparing version 0.1.16 to 0.2.0
'use strict'; | ||
exports.__esModule = true; | ||
var _rcSelect = require('rc-select'); | ||
var _rcSelect2 = _interopRequireDefault(_rcSelect); | ||
var _objectAssign = require('object-assign'); | ||
var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -9,5 +21,2 @@ | ||
var RcSelect = require('rc-select'); | ||
var assign = require('object-assign'); | ||
var Select2 = function (_RcSelect) { | ||
@@ -23,6 +32,6 @@ _inherits(Select2, _RcSelect); | ||
return Select2; | ||
}(RcSelect); | ||
}(_rcSelect2["default"]); | ||
Select2.displayName = 'Select2'; | ||
Select2.defaultProps = assign({}, RcSelect.defaultProps, { | ||
Select2.defaultProps = (0, _objectAssign2["default"])({}, _rcSelect2["default"].defaultProps, { | ||
prefixCls: "kuma-select2", | ||
@@ -33,2 +42,3 @@ optionLabelProp: "children", | ||
module.exports = Select2; | ||
exports["default"] = Select2; | ||
module.exports = exports['default']; |
@@ -119,3 +119,3 @@ let Select = require('../src'); | ||
<p>多选:</p> | ||
<Select multiple style={{width:400}} defaultValue={['a10', 'c12']} onChange={me.handleChange.bind(me)}> | ||
<Select multiple style={{width:400}} defaultValue={['a10', 'c12']} onChange={me.handleChange.bind(me)} allowClear={true}> | ||
{children} | ||
@@ -131,15 +131,2 @@ </Select> | ||
</Select> | ||
{/*<p>分组</p> | ||
<Select defaultValue="lucy" | ||
style={{width:200}} | ||
showSearch={false} | ||
onChange={me.handleChange.bind(me)}> | ||
<OptGroup label="Manager"> | ||
<Option value="jack">jack</Option> | ||
<Option value="lucy">lucy</Option> | ||
</OptGroup> | ||
<OptGroup label="Engineer"> | ||
<Option value="yiminghe">yiminghe</Option> | ||
</OptGroup> | ||
</Select>*/} | ||
<p>智能提示</p> | ||
@@ -165,2 +152,9 @@ <Select combobox | ||
</Select> | ||
<p>禁用</p> | ||
<Select defaultValue="lucy" style={{width:200}} disabled={true}> | ||
<Option value="jack">Jack</Option> | ||
<Option value="lucy">Lucy</Option> | ||
<Option value="disabled" disabled>Disabled</Option> | ||
<Option value="yiminghe">yiminghe</Option> | ||
</Select> | ||
</div> | ||
@@ -167,0 +161,0 @@ </div> |
@@ -5,2 +5,6 @@ # History | ||
## 0.2.0 | ||
`CHANGED` upgrade rc-select to ~6.1.0, `label` is removed | ||
## 0.1.15 | ||
@@ -7,0 +11,0 @@ |
{ | ||
"name": "uxcore-select2", | ||
"version": "0.1.16", | ||
"version": "0.2.0", | ||
"description": "select ui component for react", | ||
@@ -56,3 +56,3 @@ "main": "build/index.js", | ||
"object-assign": "^4.0.0", | ||
"rc-select": "~5.7.0" | ||
"rc-select": "~6.1.0" | ||
}, | ||
@@ -59,0 +59,0 @@ "author": "", |
@@ -1,3 +0,3 @@ | ||
let RcSelect = require('rc-select'); | ||
let assign = require('object-assign'); | ||
import RcSelect from 'rc-select'; | ||
import assign from 'object-assign'; | ||
@@ -16,2 +16,2 @@ class Select2 extends RcSelect { | ||
module.exports = Select2; | ||
export default Select2; |
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
145337
75
2655
+ Addedrc-select@6.1.2(transitive)
- Removedrc-select@5.7.0(transitive)
Updatedrc-select@~6.1.0