mirror of
https://github.com/wassname/slider.git
synced 2026-09-10 12:38:09 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53aa61faf2 | ||
|
|
9655483bf5 | ||
|
|
faa4f384a3 |
+6
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rc-slider",
|
"name": "rc-slider",
|
||||||
"version": "5.2.0",
|
"version": "5.3.0",
|
||||||
"description": "slider ui component for react",
|
"description": "slider ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
@@ -19,10 +19,14 @@
|
|||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"assets/*.css",
|
"assets/*.css",
|
||||||
"lib"
|
"lib",
|
||||||
|
"dist"
|
||||||
],
|
],
|
||||||
"licenses": "MIT",
|
"licenses": "MIT",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
|
"entry": {
|
||||||
|
"rc-slider": ["./src/index.js", "./assets/index.less"]
|
||||||
|
},
|
||||||
"style": "./assets/index.css",
|
"style": "./assets/index.css",
|
||||||
"config": {
|
"config": {
|
||||||
"port": 8005
|
"port": 8005
|
||||||
|
|||||||
+1
-1
@@ -101,7 +101,7 @@ class Slider extends React.Component {
|
|||||||
const isNotControlled = !('value' in props);
|
const isNotControlled = !('value' in props);
|
||||||
if (isNotControlled) {
|
if (isNotControlled) {
|
||||||
this.setState(state);
|
this.setState(state);
|
||||||
} else if (state.handle) {
|
} else if (state.handle !== undefined) {
|
||||||
this.setState({ handle: state.handle });
|
this.setState({ handle: state.handle });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user