# Interface: ShowActionSheetParams ‹Err

ShowActionSheetParamsErr›()

# Type parameters:

Err: MogsRes

# Type parameters

Err: MogsRes

# Properties

# Optional itemColor

itemColor? : string

按钮的文字颜色

default '#000000'

Returns: string


# itemList

itemList: string[]

按钮的文字数组,数组长度最大为 6

Returns: string[]

# Methods

# Optional complete

complete(res: ShowActionSheetRes | Err): void

Inherited from MogsParams.complete

接口调用结束的回调函数(调用成功、失败都会执行)

# 参数:

属性 类型
res ShowActionSheetRes | Err

# 返回值:

void


# Optional fail

fail(err: Err): void

Inherited from MogsParams.fail

接口调用失败的回调函数

# 参数:

属性 类型
err Err

# 返回值:

void


# Optional success

success(res: ShowActionSheetRes): void

Inherited from MogsParams.success

接口调用成功的回调函数

# 参数:

属性 类型
res ShowActionSheetRes

ShowActionSheetRes

属性 类型 描述
errMsg string API 调用成功/失败的消息
tapIndex number 用户点击的按钮序号,从上到下的顺序,从0开始

# 返回值:

void