{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"ceb1d3396226b62e19a4986b2b5c7e541d417df2","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.7-beta.tgz","fileCount":54,"integrity":"sha512-nNi9pQMsAVPLKXOkiIpWpjfFnHxtdVY45JxcQBDVUv3vFWa13UV+VtpIclpf6c1jQ+bpTGecd8uN6E0HOgyvxA==","signatures":[{"sig":"MEUCIEo11xnBPt3D5bIE7S+Ep8Duk693m//I1xpJUGfZMhoVAiEAzr9XnFdljL5cEVFcUaQ5SQAhwtMDf3jxEcdXmztnwtQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHHB/CRA9TVsSAnZWagAAB60QAIWHVHGdEF00lMDHuv8d\nYinA/jucbrqjOkdFmH45ms0lKI4Oo7vEjgljoKnRAxuZH5eJQoNDJI5sU795\nMQZz1giH9ugc61WHeWKBqDbsaxTpt1vowiolsuanDrav9eECPMlX0wRZ2Rl+\nJRi7f3ZUPpkUN73T2tNsRklWA0X2OhOatM0T1xQQdZjqecXubJ4O8jKZeas1\nVmEQQoC88KQIkBOnMKys540R/RCX0a8pKnc4v2wtZLQGL7A04yrywmjqcr6g\n9i475JtN3A2xgNafmqEhYErV0qjWQrV0/jPXTQwL9c+hswNEl7FfbiIDxIM9\nuUWgcDVSFokOI9ahhiWSat1g6/62dp8XP/Z8T/MSmIeIL4ZomrhUWbC/s3BP\nG8TMRx5LuM9hpePmKoZU9+szEhHE9hVaM69y1GKq+0O1ef3PDgAX4sdNrtFO\noic0ZmjRI1lpJ0DHGc36t1j4oOcMDEiWOaaFKs38I2FmlvYhPQT2WbL7LlHk\nIC2kfXKa40ejEyPTezjzIbiFRJXCbDOtCXPjRW6wIGLSb292R1WKhzi8lm2s\nuzHO4GUDiqQNKDB5/n0tH/mPnu94a+grOmudIjbaId0LsHpBwiX273mFKOnt\n0ekbI6Jbs+7rKijDXz10liEkfWuUK2zncU0UjUqOLl9kmcPVcd/JIJ6R5RFN\n2hfZ\r\n=cP4c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"@uni/action-sheet","unpkg":"dist/index.js","author":{"name":"rax"},"module":"es/index.js","readme":"# actionSheet \n\n\n[![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)\n\nDisplays the operation menu.\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/action-sheet --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport showActionSheet from '@uni/action-sheet';\n\nshowActionSheet({\n  itemList: ['A', 'B', 'C'],\n  success (res) {\n    console.log(res.tapIndex)\n  },\n  fail (res) {\n    console.log(res.errMsg)\n  }\n});\n\n// promise\nshowActionSheet({\n  itemList: ['A', 'B', 'C']\n}).then(res => {\n    console.log(res.tapIndex)\n});\n\n```\n\nYou can also import from the big package:\n\n```js\nimport { actionSheet } from '@uni/apis';\n```\n\n## Methods\n\n### `showActionSheet(options)`\n\n#### Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object` |  | ✔️ | - |\n| options.itemList | `Array<string>`  | The text array of the button, with a length limited to 6 | ✔️ | - |\n| options.success | `Function`  | The callback function for a successful API call | ✘ | - |\n| options.fail | `Function`  | The callback function for a failed API call | ✘ | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |\n\n#### Special Arguments\n\n| Property | Type | Description | required | Default | Supported |\n| --- | --- | --- | --- | --- | -- |\n| options.title | `string` | The title of actionsheet | ✘ |  | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" />  |\n| options.alertText | `string`  | The alert text | ✘ |  | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> 2.14.0 |\n| options.itemColor | `string`  | The text color of the button\t | ✘ | #000000 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" /> |\n| options.cancelButtonText | `string`  | The text of cancel button | ✘ | cancel | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> |\n| options.destructiveBtnIndex | `number`  | get more on [ali document](https://opendocs.alipay.com/mini/api/hr092g) | ✘ |  | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> no Dingding |\n| options.badges | `Array<Object>`  | get more on [ali document](https://opendocs.alipay.com/mini/api/hr092g) | ✘ |  | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> no Dingding |\n\n#### Return\n\n| Property | Type | Description |\n| --- | --- | --- |\n| tapIndex | `number` | The sequence number of the button tapped by the user, from top to bottom and starting from 0, The value is -1 when the mask or cancel button is clicked by the user |\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i4/O1CN01yrQhve1aE4Tgjctph_!!6000000003297-0-tps-640-650.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","exports":{".":{"web":"./es/web/index.js","default":"./es/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js"},"./":"./"},"license":"BSD-3-Clause","typings":"types/index.d.ts","_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"homepage":"https://github.com/raxjs/universal-api#readme","repository":{"url":"git+ssh://git@github.com/raxjs/universal-api.git","type":"git"},"_npmVersion":"7.15.1","description":"","directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"sideEffects":false,"_nodeVersion":"16.3.0","dependencies":{"@uni/env":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.en-US.md","_npmOperationalInternal":{"tmp":"tmp/action-sheet_1.0.7-beta_1629253759131_0.14133693443923212","host":"s3://npm-registry-packages"},"_id":"@uni/action-sheet@1.0.7-beta","version":"1.0.7-beta"}