Function
Static Public Summary | ||
public |
ActionSheet(props: Object): * ActionSheet 操作列表 |
|
public |
Alert 警告框 |
|
public |
AlertBody 警告框内容组件 |
|
public |
AlertButton(props: Object): * AlertButton 警告框按钮组件 |
|
public |
AlertFooter(props: Object): * AlertFooter 警告框尾部组件 |
|
public |
AlertHeader(props: Object): * AlertHeader 警告框头部组件 |
|
public |
徽章 |
|
public |
按钮 |
|
public |
表格视图列表项 |
|
public |
表格视图列表项的内容区 |
|
public |
表格视图列表项的内容区中的描述区域 |
|
public |
CellFooter(props: Object): * 表格视图列表项的尾部 |
|
public |
CellHeader(props: Object): * 表格视图列表项的头部 |
|
public |
表格视图 |
|
public |
CellsTitle(props: Object): * 表格视图的标题 |
|
public |
复选框 |
|
public |
Confirm 确认对话框 |
|
public |
Icon(props: *): * |
|
public |
IconLoading(props: *): * |
|
public |
文本输入框 |
|
public |
Mask(props: *): * |
|
public |
导航条 |
|
public |
NavBarItem(props: Object): * 导航条子项 |
|
public |
Page 页面基本结构 |
|
public |
弹窗组件,本身并不包含内容,但是其他弹窗相关的组件都依赖该组件和 |
|
public |
单选框 |
|
public |
Scene 页面切换的动画场景 |
|
public |
搜索栏 |
|
public |
SearchBarFooter(props: Object): * 搜索栏尾部内容 |
|
public |
SearchBarHeader(props: Object): * 搜索栏尾部头部 |
|
public |
分段控件 |
|
public |
步进器 |
|
public |
开关按钮 |
|
public |
标签栏 |
|
public |
TabBarIcon(props: Object): * 标签项图标 |
|
public |
TabBarItem(props: Object): * 标签项 |
|
public |
TabBarLabel(props: Object): * 标签项文案 |
|
public |
多行文本输入框 |
|
public |
createClassNames(prename: *): * |
|
public |
createPortalEl(container: *): * |
|
public |
|
|
public |
generateOptions(max: *, min: *, unit: string): * |
|
public |
getContainer(container: *): * |
|
public |
indexOfOptions(value: *, options: *): * |
|
public |
px2rem(px: *): * |
Static Public
public ActionSheet(props: Object): * source
import ActionSheet from 'react-ios-component/src/components/actionsheet/ActionSheet.js'
ActionSheet 操作列表
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.visible | boolean | 是否显示操作列表 |
|
props.description | number | string | Object | Array | 操作列表头部的描述组件 |
|
props.buttons | Object[] | 操作按钮配置列表 |
|
props.hasCancelButton | boolean |
|
是否有取消按钮 |
props.onCancel | function |
|
点击取消按钮触发的事件 |
props.cancelText | string | string | Object | Array |
|
取消按钮的文案 |
props.close | function | 关闭操作列表的回调(配合 API 调用来使用,一般不用手动传) |
Return:
* |
public Alert(props: Object): * source
import Alert from 'react-ios-component/src/components/alert/Alert.js'
Alert 警告框
Return:
* |
public AlertBody(props: Object): * source
import AlertBody from 'react-ios-component/src/components/alert/AlertBody.js'
AlertBody 警告框内容组件
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public AlertButton(props: Object): * source
import AlertButton from 'react-ios-component/src/components/alert/AlertButton.js'
AlertButton 警告框按钮组件
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public AlertFooter(props: Object): * source
import AlertFooter from 'react-ios-component/src/components/alert/AlertFooter.js'
AlertFooter 警告框尾部组件
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public AlertHeader(props: Object): * source
import AlertHeader from 'react-ios-component/src/components/alert/AlertHeader.js'
AlertHeader 警告框头部组件
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public Badge(props: Object): * source
import Badge from 'react-ios-component/src/components/badge/Badge.js'
徽章
Return:
* |
public Button(props: Object): * source
import Button from 'react-ios-component/src/components/button/Button.js'
按钮
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.component | string |
|
按钮的 |
props.size | string |
|
按钮的大小,默认为正常按钮,设置为 |
props.fill | boolean |
|
是否填充背景色 |
props.disabled | boolean |
|
是否不可用 |
props.color | boolean |
|
按钮文案的颜色,默认为主题颜色 |
Return:
* |
public Cell(props: Object): * source
import Cell from 'react-ios-component/src/components/cell/Cell.js'
表格视图列表项
Return:
* |
public CellBody(props: Object): * source
import CellBody from 'react-ios-component/src/components/cell/CellBody.js'
表格视图列表项的内容区
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public CellDesc(props: Object): * source
import CellDesc from 'react-ios-component/src/components/cell/CellDesc.js'
表格视图列表项的内容区中的描述区域
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public CellFooter(props: Object): * source
import CellFooter from 'react-ios-component/src/components/cell/CellFooter.js'
表格视图列表项的尾部
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public CellHeader(props: Object): * source
import CellHeader from 'react-ios-component/src/components/cell/CellHeader.js'
表格视图列表项的头部
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public Cells(props: Object): * source
import Cells from 'react-ios-component/src/components/cell/Cells.js'
表格视图
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public CellsTitle(props: Object): * source
import CellsTitle from 'react-ios-component/src/components/cell/CellsTitle.js'
表格视图的标题
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public Checkbox(props: Object): * source
import Checkbox from 'react-ios-component/src/components/form/Checkbox.js'
复选框
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public Confirm(props: Object): * source
import Confirm from 'react-ios-component/src/components/alert/Confirm.js'
Confirm 确认对话框
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.visible | boolean | 是否显示确认对话框 |
|
props.title | PropTypes.node | 确认对话框标题 |
|
props.body | PropTypes.node | 确认对话框内容 |
|
props.onConfirm | function |
|
点击确认按钮触发的事件 |
props.onCancel | function |
|
点击取消按钮触发的事件 |
props.confirmText | PropTypes.node |
|
确认按钮的文案 |
props.cancelText | PropTypes.node |
|
取消按钮的文案 |
Return:
* |
public Icon(props: *): * source
import Icon from 'react-ios-component/src/components/icon/Icon.js'
Params:
Name | Type | Attribute | Description |
props | * |
Return:
* |
public IconLoading(props: *): * source
import IconLoading from 'react-ios-component/src/components/icon/IconLoading.js'
Params:
Name | Type | Attribute | Description |
props | * |
Return:
* |
public Input(props: Object): * source
import Input from 'react-ios-component/src/components/form/Input.js'
文本输入框
Return:
* |
public Mask(props: *): * source
import Mask from 'react-ios-component/src/components/mask/Mask.js'
Params:
Name | Type | Attribute | Description |
props | * |
Return:
* |
public NavBar(props: Object): * source
import NavBar from 'react-ios-component/src/components/navbar/Navbar.js'
导航条
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.leftElement | PropTypes.node |
|
导航条左边位置的内容 |
props.centerElement | PropTypes.node |
|
导航条中间位置的内容 |
props.rightElement | PropTypes.node |
|
导航条右边位置的内容 |
Return:
* |
public NavBarItem(props: Object): * source
import NavBarItem from 'react-ios-component/src/components/navbar/NavbarItem.js'
导航条子项
Return:
* |
public Page(props: Object): * source
import Page from 'react-ios-component/src/components/page/Page.js'
Page 页面基本结构
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.hasNavBar | boolean |
|
页面是否有导航栏 ( |
props.hasTabBar | boolean |
|
页面是否有标签栏 ( |
props.duration | number |
|
页面的过场动画时间 |
props.timingFunction | string |
|
页面过场动画的过渡函数 |
Return:
* |
public Popup(props: Object): * source
import Popup from 'react-ios-component/src/components/popup/Popup.js'
弹窗组件,本身并不包含内容,但是其他弹窗相关的组件都依赖该组件和 Portal
组件实现弹窗效果
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.visible | boolean |
|
弹窗是否显示 |
props.close | function |
|
控制弹窗关闭的函数,由 |
props.position | string |
|
弹窗里内容的位置 |
props.duration | number |
|
弹窗的动画持续时间 |
props.timingFunction | string |
|
动画过度函数 |
props.transitionName | string | function |
|
动画过度名称,传给 |
Return:
* |
public Radio(props: Object): * source
import Radio from 'react-ios-component/src/components/form/Radio.js'
单选框
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public Scene(props: Object): * source
import Scene from 'react-ios-component/src/components/page/Scene.js'
Scene 页面切换的动画场景
Return:
* |
public SearchBar(props: Object): * source
import SearchBar from 'react-ios-component/src/components/searchbar/Searchbar.js'
搜索栏
Return:
* |
public SearchBarFooter(props: Object): * source
import SearchBarFooter from 'react-ios-component/src/components/searchbar/SearchBarFooter.js'
搜索栏尾部内容
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public SearchBarHeader(props: Object): * source
import SearchBarHeader from 'react-ios-component/src/components/searchbar/SearchBarHeader.js'
搜索栏尾部头部
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public Segmented(props: Object): * source
import Segmented from 'react-ios-component/src/components/segmented/Segmented.js'
分段控件
Return:
* |
public Stepper(props: Object): * source
import Stepper from 'react-ios-component/src/components/form/Stepper.js'
步进器
Return:
* |
public Switch(props: Object): * source
import Switch from 'react-ios-component/src/components/form/Switch.js'
开关按钮
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
Return:
* |
public TabBar(props: Object): * source
import TabBar from 'react-ios-component/src/components/tabbar/Tabbar.js'
标签栏
Return:
* |
public TabBarIcon(props: Object): * source
import TabBarIcon from 'react-ios-component/src/components/tabbar/TabbarIcon.js'
标签项图标
Return:
* |
public TabBarItem(props: Object): * source
import TabBarItem from 'react-ios-component/src/components/tabbar/TabbarItem.js'
标签项
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.component | string | PropTypes.element | function |
|
标签项的 |
props.icon | string |
|
标签项图标 |
props.badge | string |
|
徽章的文案 |
props.linkColor | string |
|
每个标签栏项的字体颜色 |
props.badgeColor | string |
|
徽章的背景颜色 |
props.activeColor | string |
|
每个标签栏项被激活时的字体颜色,默认为主题颜色 |
props.active | string |
|
标签项是否激活 |
Return:
* |
public TabBarLabel(props: Object): * source
import TabBarLabel from 'react-ios-component/src/components/tabbar/TabbarLabel.js'
标签项文案
Return:
* |
public Textarea(props: Object): * source
import Textarea from 'react-ios-component/src/components/form/Textarea.js'
多行文本输入框
Return:
* |
public createClassNames(prename: *): * source
import {createClassNames} from 'react-ios-component/src/components/util/index.js'
Params:
Name | Type | Attribute | Description |
prename | * |
|
Return:
* |
public createPortalEl(container: *): * source
import {createPortalEl} from 'react-ios-component/src/components/util/dom.js'
Params:
Name | Type | Attribute | Description |
container | * |
Return:
* |
public date2str(date: *): string source
import {date2str} from 'react-ios-component/src/components/util/index.js'
Params:
Name | Type | Attribute | Description |
date | * |
public generateOptions(max: *, min: *, unit: string): * source
import {generateOptions} from 'react-ios-component/src/components/util/index.js'
Params:
Name | Type | Attribute | Description |
max | * | ||
min | * | ||
unit | string |
|
Return:
* |
public getContainer(container: *): * source
import {getContainer} from 'react-ios-component/src/components/util/dom.js'
Params:
Name | Type | Attribute | Description |
container | * |
|
Return:
* |
public indexOfOptions(value: *, options: *): * source
import {indexOfOptions} from 'react-ios-component/src/components/util/index.js'
Params:
Name | Type | Attribute | Description |
value | * | ||
options | * |
Return:
* |
public px2rem(px: *): * source
import {px2rem} from 'react-ios-component/src/components/util/index.js'
Params:
Name | Type | Attribute | Description |
px | * |
Return:
* |