# ks.showActionSheet

显示操作菜单。

# showActionSheet(options: ShowActionSheetOptions): Promise<ShowActionSheetResult>

# 参数

参数 类型 必填
options ShowActionSheetOptions

# ShowActionSheetOptions

属性
属性 类型 默认值 必填 说明
itemList string[] 按钮的文字数组,数组长度最大为 6
itemColor string '#000000' 按钮的文字颜色
success (result: ShowActionSheetResult) => void 接口调用成功的回调函数
fail (error: APIError) => void 接口调用失败的回调函数
complete (resultOrError: ShowActionSheetResult | APIError) => void 接口调用结束的回调函数(调用成功、失败都会执行)

# 返回值

# Promise<ShowActionSheetResult>

ShowActionSheetResult
属性
属性 类型 说明
tapIndex number 用户点击的按钮序号,从上到下的顺序,�� 0 开始
Copyright ©2024, All Rights Reserved