@uiw/react-slider
Advanced tools
Comparing version 4.6.10 to 4.6.11
{ | ||
"name": "@uiw/react-slider", | ||
"version": "4.6.10", | ||
"version": "4.6.11", | ||
"description": "Slider component", | ||
@@ -45,3 +45,3 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.6.10" | ||
"@uiw/utils": "^4.6.11" | ||
}, | ||
@@ -53,6 +53,6 @@ "devDependencies": { | ||
"@types/react-dom": "16.9.8", | ||
"react": "16.13.1", | ||
"react-dom": "16.13.1" | ||
"react": "16.14.0", | ||
"react-dom": "16.14.0" | ||
}, | ||
"gitHead": "dd796bd87132b68aee9dfe1faeb73eccc378bc60" | ||
"gitHead": "6e8bb3c19c9c88e34148ea73926ba228eb2d2e0b" | ||
} |
@@ -114,2 +114,4 @@ Slider 滑块输入条 | ||
label: '年龄', | ||
help: '值必须大于 10', | ||
validator: (value) => value < 10 ? '必填选项!' : null, | ||
children: <Slider /> | ||
@@ -120,2 +122,3 @@ }, | ||
{({ fields, state, canSubmit }) => { | ||
console.log('state:', state) | ||
return ( | ||
@@ -132,2 +135,9 @@ <div> | ||
</Row> | ||
<Row> | ||
<Col> | ||
<pre style={{ padding: 10, marginTop: 10 }}> | ||
{JSON.stringify(state.current, null, 2)} | ||
</pre> | ||
</Col> | ||
</Row> | ||
</div> | ||
@@ -134,0 +144,0 @@ ) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109931
427
Updated@uiw/utils@^4.6.11