Skip to content

Commit

Permalink
update slider.md
Browse files Browse the repository at this point in the history
示例有误 step、value等属性值不能直接写成字符串,否则会报错,需要用{ }设置属性的值
  • Loading branch information
yazakid authored Apr 16, 2019
1 parent 58af905 commit 30aaf89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/components/forms/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ export default class PageView extends Component {
return (
<View className='components-page'>
<Text>设置 step</Text>
<Slider step='1' value='50'/>
<Slider step={1} value={50}/>
<Text>显示当前 value</Text>
<Slider step='1' value='50' showValue/>
<Slider step={1} value={50 showValue/>
<Text>设置最小/最大值</Text>
<Slider step='1' value='100' showValue min='50' max='200'/>
<Slider step={1} value={100} showValue min={50} max={200}/>
</View>
)
}
Expand Down

0 comments on commit 30aaf89

Please sign in to comment.