docs: optimize slider demo (#22626)

This commit is contained in:
xrkffgg 2020-03-26 15:31:23 +08:00 committed by GitHub
parent d497c11155
commit 7abe924530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -264,7 +264,7 @@ exports[`renders ./components/slider/demo/input-number.md correctly 1`] = `
>
<div
class="ant-input-number"
style="margin-left:16px"
style="margin:0 16px"
>
<div
class="ant-input-number-handler-wrap"
@ -384,7 +384,7 @@ exports[`renders ./components/slider/demo/input-number.md correctly 1`] = `
>
<div
class="ant-input-number"
style="margin-left:16px"
style="margin:0 16px"
>
<div
class="ant-input-number-handler-wrap"

View File

@ -43,7 +43,7 @@ class IntegerStep extends React.Component {
<InputNumber
min={1}
max={20}
style={{ marginLeft: 16 }}
style={{ margin: '0 16px' }}
value={inputValue}
onChange={this.onChange}
/>
@ -84,7 +84,7 @@ class DecimalStep extends React.Component {
<InputNumber
min={0}
max={1}
style={{ marginLeft: 16 }}
style={{ margin: '0 16px' }}
step={0.01}
value={inputValue}
onChange={this.onChange}