EdActionSheet

有遮罩的选择器

ActionSheet(默认模式,单选按钮)

<EdActionSheet
    list={state.actionDirect}
    visible={state.isShowActionSheet}
    getValue={this.getDirectValue}
    hide={this.showActionSheet}
/>

ActionSheet(单选列表格式)

<EdActionSheet
    list={state.actionDirect2}
    visible={state.isShowActionSheet2}
    getValue={this.getDirectValue2}
    hide={this.showActionSheet2}
    type="singleSelect"
    title="请选择产品"
/>

props

参数

类型

可选值

默认值

说明

visible

boolean

false

是否显示选择器

type

string

singleSelect、checkSelect

可以根据参数选择不同类型的选择器

list

Array

[ { id: '买入', name: '买入' }, { id: '卖出', name: '卖出' }, ]

传递值用来生产在组件中使用的列表

title

string

标题

Title

type类型为singleSelect、checkSelect的标题

事件名称

说明

回调参数

getValu

选择器选中后触发的事件

选中后的值

hide

关闭选择器的事件

关闭选择器

Last updated

Was this helpful?