mCloud Design Mobile

mCloud Design Mobile

  • Docs
  • API
  • Help
  • Blog

›Component

Component

  • Button
  • SegmentedControl
  • SearchBar
  • Radio
  • Checkbox
  • Badge
  • Marquee
  • Switch
  • InputItem
  • NoticeBar
  • Textarea
  • List
  • Card
  • Picker
  • Label
  • EmptyView
  • Stepper
  • Tabs
  • DatePicker
  • Modal
  • Avatar
  • ActionSheet
  • ShareSheet

First Category

  • Button
  • Fifth Document

Stepper

加减操作

Basic Example:

import { StyleSheet } from 'react-native'
import { Stepper } from 'mCloud-mobile';

export default () => {
    return (
        <View style={styles.warp}>
              <Stepper
                        max={200}
                        min={0}
                        unit="米"
                        step={2}
                        defaultValue={60}
                        onChange={(e) => {}}
                    />
        </View>
    )
}

const styles = StyleSheet.create({
    warp: {
        flex: 1,
        backgroundColor: '#E6E6E6',
    }
})


Stepper Props

属性说明类型默认值
min最小值number0
max最大值number100
step每次操作加减数number1
defaultValue默认值number50
value当前值number无
unit文字后面的单位String无
onChangechange事件触发的回调函数(e: Object): e.value无
← EmptyViewTabs →
  • Basic Example:
  • Stepper Props
mCloud Design Mobile
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2019 Your Name or Your Company Name