title | string | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 菜单标题 |
alertText | string | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 警示文案(仅微信小程序真机有效) |
itemList | Array<string> | 是 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 按钮的文字数组 |
itemColor | string.ColorString | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 按钮的文字颜色,字符串格式 |
popover | Popover | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 大屏设备弹出原生选择按钮框的指示区域,默认居中显示 |
名称 | 类型 | 必备 | 默认值 | 兼容性 | 描述 | top | number | 是 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 指示区域坐标,使用原生 navigationBar 时一般需要加上 navigationBar 的高度 | left | number | 是 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 指示区域坐标 | width | number | 是 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 指示区域宽度 | height | number | 是 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 指示区域高度 |
|
titleColor | string.ColorString | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
iOS uni-app x UTS 插件
|
HarmonyOS
| 4.51 | x | 4.51 | 4.51 | 4.51 | 4.61 |
| 菜单标题文字颜色,字符串格式 |
cancelText | string | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
iOS uni-app x UTS 插件
|
HarmonyOS
| 4.51 | x | 4.51 | 4.51 | 4.51 | 4.61 |
| 取消按钮的文字,默认为"取消" |
cancelColor | string.ColorString | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
iOS uni-app x UTS 插件
|
HarmonyOS
| 4.51 | x | 4.51 | 4.51 | 4.51 | 4.61 |
| 取消按钮的文字颜色,字符串格式 |
backgroundColor | string.ColorString | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
iOS uni-app x UTS 插件
|
HarmonyOS
| 4.51 | x | 4.51 | 4.51 | 4.51 | 4.61 |
| 弹框背景颜色 |
success | (result: ShowActionSheetSuccess) => void | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 接口调用成功的回调函数 |
fail | (result: ShowActionSheetFail) => void | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 接口调用失败的回调函数 |
complete | (result: any) => void | 否 | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| - | - | - | - | - |
| 接口调用结束的回调函数(调用成功、失败都会执行) |