提交 471f9409 编写于 作者: A afc163

chore demo code style

上级 10f1c6ce
......@@ -28,17 +28,18 @@ class IntegerStep extends React.Component {
}
render() {
const { inputValue } = this.state;
return (
<Row>
<Col span={12}>
<Slider min={1} max={20} onChange={this.onChange} value={this.state.inputValue} />
<Slider min={1} max={20} onChange={this.onChange} value={inputValue} />
</Col>
<Col span={4}>
<InputNumber
min={1}
max={20}
style={{ marginLeft: 16 }}
value={this.state.inputValue}
value={inputValue}
onChange={this.onChange}
/>
</Col>
......@@ -59,10 +60,17 @@ class DecimalStep extends React.Component {
}
render() {
const { inputValue } = this.state;
return (
<Row>
<Col span={12}>
<Slider min={0} max={1} onChange={this.onChange} value={this.state.inputValue} step={0.01} />
<Slider
min={0}
max={1}
onChange={this.onChange}
value={inputValue}
step={0.01}
/>
</Col>
<Col span={4}>
<InputNumber
......@@ -70,7 +78,7 @@ class DecimalStep extends React.Component {
max={1}
style={{ marginLeft: 16 }}
step={0.01}
value={this.state.inputValue}
value={inputValue}
onChange={this.onChange}
/>
</Col>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册