{"_id":"@uni/action-sheet","_rev":"14-c5d937ece601e3a12760684142f9eb19","name":"@uni/action-sheet","dist-tags":{"beta":"1.0.7-beta","latest":"1.0.8"},"versions":{"1.0.0-beta":{"name":"@uni/action-sheet","version":"1.0.0-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@unishowActionSheet.svg)](https://www.npmjs.com/package/@unishowActionSheet)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.0-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-oFoon+ou54wQOJ/xLUO7UjxXK3DkAO4EmZIafCth+pJVYMt3dHtbFdK5Tx9Demy/FwLOPVtQfjCRu7tkuow2Pg==","shasum":"07e1bd85fae0711f771e13c2916187683d7f2531","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.0-beta.tgz","fileCount":25,"unpackedSize":198105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOLw4CRA9TVsSAnZWagAAF5MP/0cbCSIs9MkTQVJ0wL7o\nuzsxAiRACgzy0ICC/M/dTlfOcPTyGauCKqiGrBMPBOkILrXWh6UyOndz1e6p\ndMGNoa1splu1xnC1wng0KhdOLnLWudMCyeMISzn3XlPV3aQOdletOiaz70uH\ne8rAosWzTB0ipk6z8xJJk3Wmltu4yIgMi/byhkJu6NAF1rClGFtebwZhr45l\nYiqt81WWHQo/MWC8tmhKkW0DDs2JJnh0kpLN0fxOZprtbmFW3PnddphPsAsZ\n1iFOpChDXyDmsfKKiyRnJgslpn9frJSIAKPmu24wuyccQuqXcmou7sNnQ1XQ\nsmwjrd4JTHZ60JW3u/1Fsqm823MXUj0SKRtXatcjsaJe3gevB2lJ/VF6LvM1\n5fOLaoDOjFqnMC2qTeOkVpX4jkYJ2fXjVcWwYYvd5hTa7WVWq3i/6GS3qcG0\nVDUuxuB4alZKAIZOD1aI2qlYmGtcOKrUjgIyn/PTriVSW3tx6fJeyartWVtq\nDXOW6m9FEPnYFu/S17u1RKAQtr6Ay4TT56La24SUxGhjThNETBSXBrpK17SN\nXdZo9DTI1w4gbWdJHRFrVzZCzWLnqqPwKx3GW+BcQ4Le9vnj16MXIYFwOFA1\nLxaKP9JNFD685Sfuitsm1Ht/LvZYBBDEnyyY6q6RgiAyvFLdPZLpkUikNt+Z\nWIAX\r\n=pNC9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIhOqSplZX+QsxLC6p9YL7YrRFNiI3RNSLD89nk3QvtAiB3TEG1QfQWeY4rYSvZiDTHQ1VyHY9KMy93XP4u7x87Yg=="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.0-beta_1614330935623_0.45111842881844044"},"_hasShrinkwrap":false},"1.0.0-beta1":{"name":"@uni/action-sheet","version":"1.0.0-beta1","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# actionSheet \n\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\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;\">\n\n## Supported\n\n<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\">\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\"> |\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=\"200\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.0-beta1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-bYjC8kOEYo4ALbRv6CUX3uxvp8DoAdi92QQNLybmDgHXnCmFImZb323r8XN3PfuoVC+8FLvPfR25RYsuxY+Wvg==","shasum":"9591a9901afe35a9fcd35778b8fc45242b816640","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.0-beta1.tgz","fileCount":25,"unpackedSize":197310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOPBHCRA9TVsSAnZWagAAH3kP/iCRtSOmDRAHSGHMeadQ\nlBngROkDG6Z4KgXCcyEl0bN2WI6ORcse/wng+jLbnkphLvvXsdRLCfsCHqfO\nU5rbH+Wo3gWKiNLbxOPWVoQKy4du4fKzrd1G29/1Ph27QP3ZA77dffi5P3Ux\njzuh+lTCgsKv9BiO93r2oKoOrqTphIIaYJGSCiThw5aHzTK4Av/FsixqlNqu\ngXWxPp7ZgwfmLJcBJUiIUQu9YKP3EtGqf4fatwymNg/Q7jbmysxE4S2ZWCiY\n2KJSyIzbt1/YGm2L3H/cwyb/449QqqbO+M+gEwrPdHSkWJ77BblpIDPeE6v6\npjzh633bu3iZ5SbuiT4FZ9C52TFbWFZlc1VbcRUqq1d+48/5Nj3B5UQcvPKt\njptY0yVIHWDJyj7g2Pgw/m6VjqGq+onR+H7+pPciV4KEcib61qhBamy66StW\nqyomqQj6yDzImhYl4OQG+M0JRmk+BqHIQGxrvEbD5s36hmZitWLUg24vVDZx\n7AOsE9Sq6ChNg1uw14VWg4ijCLmBmEhUeeA2uKGBQcvbS9AqKozq2k0+BjNv\nyvaYiE9bYUhQg9n6WZg7ioz4AB4oQvyTSoHTs9hATL0BR6bQALSVQO6aTwza\n1ihcYXTCopqAcAhFjizqL/LUV5JH3/J6l96HEIWhqang7Mzr3ueiL3ah9pgs\npEGo\r\n=qZxD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyVh1V6dZPB3SnFRlWhtmlbdshJTbWKnExyuqmjHTcKAIgZJnKUuVSx8a1pNwyxKhFBFbUNDlyrfz+bxReNsJdRPo="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.0-beta1_1614344263501_0.5893482370279939"},"_hasShrinkwrap":false},"1.0.0":{"name":"@uni/action-sheet","version":"1.0.0","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9npobUH5W+o1PqycVqqH9Ebaicw/wpInlcPLp2n11t6kj4ru+ut5j/sTHUitZ7uD8Fc2fC+S/BdqIAgyKM+34Q==","shasum":"2706f79d666d255005a12e30747724c951bf9ace","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.0.tgz","fileCount":25,"unpackedSize":197519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQM4DCRA9TVsSAnZWagAATEwP/0upy8giyVgzC7NgUEOi\nldSD8uSCZOqbr1U/JIL2ny3njJcmMZCUocrKxz6mpMrWBh8ZoAkM15WJVBrv\nHlU/kRC256xJrAt/waZ/QmLIDqhJXBAq2HRiC2zq2uoZyWplpcWKrXmpfZMJ\nRAdLfbNAolCw2HzFocaGcN53/EQcHta9o/D0EsUFHWfP/KqlY9uYnSl3cn7m\n8bg+TSzHLejgECVjs0j3wHwBTQLnAnk1BD2+ZYNwiNNDlwWvFjODfTDJKZdX\nhmZeicPevckCzpA9AO/IWd9hm2XFAmjWuc753MLRN3r53HTl4qDn0peN+Koz\n5R6xF9qMQr/4M2xz5fccjqmohuNaXdm4ypn/aqF2DP/GHMcWkj8hi/1090/E\nngMv+ihQHIvIkd2nugZYs0hnZesBgPq04RavDHWl6eazCv/g71iVY5t90HkM\naYY1N/OyZcADIox+8sEe7irOx4Z0icLu3Z34u8STO1RgjhDHyc4rbwO+ZhMu\nI91s8AQFK30bNIHOgqdUrlFZbPu6vZlrmzTb2KrVQNLO87EMZPq17/DBjFyj\njVsEfqoOlyy+aNmvpF0q3z2WFa2XfOxljRdkiIQLSxEGsF6CV5c1LaGwyDJs\niG7fkHUyiGNrE2J1P0mSckkOxfN+xKIlRwt2rEOg7Dg3BloKv6/AGoa+C6kg\nsdx9\r\n=UJ22\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjiZ349FEgeaWJI+iYnYFVINAFocI2HMpMl5tiErOxQAiAknpKppm/2uIB8K3CDygW1kfyFICiGtUgkupIfUjGtCQ=="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.0_1614859778459_0.3254293279393019"},"_hasShrinkwrap":false},"1.0.1":{"name":"@uni/action-sheet","version":"1.0.1","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","dependencies":{"@uni/env":"^1.0.0","@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.1","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-frdIsltjmZI6+NQ8/F+vBji3X4L9cQ4hvQQigTCUt7r7McZRxrmicfudgzJXYp1q9J0dCmrtKqwdehFyLjCu6Q==","shasum":"f7d2bf05d3b652c1f448a6162ecd24c0ed81ae5d","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.1.tgz","fileCount":25,"unpackedSize":198743,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS1bcCRA9TVsSAnZWagAAMOwP/imQKKTaQePQkz0DMpBR\nGpYGVxOirwIk6zs9mf4pqoShLchrXihMuCihWptbp1f9vkRxzTE3S06cmMQM\nbiks6G383KX3+oF/P33DGsJdJN1+Jym6ahuJnBN6fKc+3XsM0WrfRRjAL+SC\nnH997K5ONfssmQVq12xbL4EKyMka1IBGC9AlQsl2dmK6bHzXj2C1UiRn99jS\nWOP0o4CxFEH0BhWtyUVHO4sdBOJZkMtIS9/9H0yMY193q80APE2BvswXtPoG\nusRw5jfzCq73Bmq7qjk7Jkk60Im7XFrGm5PtYR+fc3sYVojcogYUpBazQPrY\n82RTh5anIUlYUzLFK8oIkxXL/e78dStgm1Xrhm+gd3F4ibG5HN8Sj4Zj0don\nDi8oAXV65xvJSdl5kd3tskk1aVAkoj7OXhaekj6fpFv/Rps3Oyy/dhuNQsSV\nO81cFDKvDxk1TtKFsGa6W3SGqpK7c6cilZRVILSt9dBRoaEmlJwPn3ZiEgYb\nZTcNt/UcCVF3r1O8Gi1+WcvGAn7RdLx/EMKZFjTFyOAkrT65B/1d8IjLvjKj\nQ86AofuirqKZqWJ/kF9mk09hl5+USJ07nReoVyM6WS+M8bTNfMQPYMjEhAq+\noazogZCHbZJ7S5vXLEWHJhnP382VNiMm9edN8T/nMxtwYTCCxzG/Yv04PVoj\nXnn6\r\n=spDs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfwuRbxex7OLyneqlKYQBtUiBiT2pkv5GPFj2EpAqQmAiEAx5JLI7jSngpz3siB9eD4UeNKmmbAIMSx6ZHCvgjlEHg="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.1_1615550172226_0.9550334309272177"},"_hasShrinkwrap":false},"1.0.2":{"name":"@uni/action-sheet","version":"1.0.2","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"dependencies":{"@uni/env":"^1.0.0","@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.2","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-ths7IdSc39b5ZFxyyHsmaWtMQj77kU/IrtDeZC/fGlJmsG3FOJlzna5o5bBqpRcycJED771KUmB3cC4QHQslsQ==","shasum":"01785b4323fd23615e65065ff79d305c9e6cef41","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.2.tgz","fileCount":35,"unpackedSize":36866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdpsnCRA9TVsSAnZWagAAsdUP/iNHrcn6hL+U/RhC15a3\nVQTE9e9CwXJhY15k+Tk83qXHe2Z27cp/wL8nrFXI1sm925VXJU308cPBXAwp\n0sPDiIrTNLOdZzatX0djqLMX46cGdQ1oBxPmOKsPk75tlZVb3i2LdmtPQhtD\nwvtd5OG5GxGSxJScIWMWJ5IgLYuE9cXYu2+nFpomSYfYaich2Gw2DA5PXWsa\nHE93Y7gDCGQy2IBMsbe+FW3ocQN4JRqmQ57W8IyAaXNmEU9tqqlt+UedSDUg\nDS5DW6dmIP3sSChDYT2NVlBHyiqNJjjCGmk8niZhUIf0wb/BnCIpDcZEpzBq\nhtpJmY8Ews8eaUdat8QeMYJZfh1C1CqqpEo7g2Rk/xz/em1V4k5RTJuFW5Xi\nZFmEdgIy6P95foNasjprjLV00VgGoWAXMmK+GGtNAjwVw+DAfYIQWLIFZmf9\njATQn+SXu8G48PEhJILsxGA7NkyUNgix95MfVzJkRPtkyw9QYo8tEjBD4sLv\nDvbQ3dO+Zfgi7Ngua1vyI0VKvOGwBBn2oaCFVeEhbMvSC/Y1AoUWYDt11Agj\nAs9Z3A1M9WBr2y+/kBOYiAjiQsRpYPvLYsnjXtEZsvI6HjRnwnk/gDU48L47\nQJA3RSKqCxJA6mys6Nt1PeDcdS2+cDjQbPK0NcjxiT9cnlUZ6sp7kegCLrIh\n/n0t\r\n=Qe9k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2lOichEvY1sR0GAbWpUGOiir1b3htjAJmcHbVxL9GrAiEAhIdI8qyzH1+kb9gNRxLvtEIqTFXNLolZ/9Vl73cgzFg="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.2_1618385703112_0.9115108547787325"},"_hasShrinkwrap":false},"1.0.3":{"name":"@uni/action-sheet","version":"1.0.3","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.3","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-8zcNTzyxbRDkFScvMXoaGmdFDb8JHr8qZJimGuOvtP8AyV/YgX599E5ykKWMw9acG2wcWoX3U9lwsJ37H82GHg==","shasum":"a421f8bd9cd0a25ea536dfb20154ffc53075842a","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.3.tgz","fileCount":40,"unpackedSize":59763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggSugCRA9TVsSAnZWagAAJ08P/1BK1rd6UUEteisY/AqY\npedZFqshGMyajPJWBwmo6T7b6IhGd2WvDX99kmFZh4Bpk4EM7+fPySJ2b+aR\nQ5drGPSqg5EnVSPR7Ssm1Vh8XaKf80a7YwrzHzTP8t9FOUCbO2wh+kgHg3Uc\nQhk2wQLpR7Lpv+2+Bu5Kr3DV6Oxp7Nnrvbj+AwwenhX7BOK8S5pI40mhj5HK\nFTBjatjMgfodvvZ2BWmKP4Ghj3VZdI0IB0tAvQPT+bFtxUBKLJhEJECLPatT\nJHYWGshjiIOPcJi1wH/8M9K3qqmODXD6SNzT6lhjj7hNV2AkYEUfLjNEk5qr\n9+nwxnFj43s+Oh6QjGfWP2hn0pbtOwSYNB4iOC08Y4fmwN8gqOHT6ufFg+rA\nbpL+PMuNlDdtAhOOnCiQn83guhR9GEhx/PT+Wzxq1LTrxUprSZA3D0MZkS9t\nZbiHsv1BAeSOIFA2ooe2cXLUR0A4jXyOmRqiNQTstAG0f9YoNpnDYqEWoYOe\n4ersns6isR66bs8FqWKJsp7jRUS0+5+REip4ATrWTIquvrSkgQYycdu0QU0T\n5QPqudQojr//pDDp1kMaiboOhmJnLqONbaNAfoJlFYCxo+pbiZY8QfwzS2O4\nwEbTzrHmutpxdF+4vliiungyySIxP9W9TOYCl1S0gw4ubfsqxIpN5FFWt4Us\nuuKh\r\n=JXPW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFaSUJswxT5WSc2EEGJfO3g8M4kEL6ch0GbMP+Psov5RAiA+265cAAvhr31x7LFu0O0yNQVieqJNtp0GIuHFaXKqEw=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.3_1619078048089_0.5915885262938454"},"_hasShrinkwrap":false},"1.0.4-beta":{"name":"@uni/action-sheet","version":"1.0.4-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# actionSheet \n\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\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;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-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\">\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\"> |\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=\"200\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.4-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-mp9IufI9E/2FJdcUDYN/dKND5nWDP1VMGNm+nQpevlRjDng3NYk3TdgMdRn96UX94LQVxvAdm645PVUPGdTL1A==","shasum":"09a17528c94451500d026c91025d4df44ff8dd31","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.4-beta.tgz","fileCount":40,"unpackedSize":62576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpMQwCRA9TVsSAnZWagAA/18P/2mAgxf89dCKPh9aW9Jl\n2raAD9AyVq7dMBxq0Sv6q9AjXWDSceNFiZXb0jWVVCU6pJtsayO0JGo2Y8om\n9G289AQjS2K03vQxwZx0/wFGLIncB/YtVm0Yl6wkhZkASKw8QEY04Qs885xB\n6WNlfxGvznFF8s+kcl65f6CT+BMbo3zZsEli5f+GjxMjmj9wYebrZFgkCEtA\nc52+LE4gJ5O7UGw3QQXOYIySvbbR+CP6FLw0QZyr/IxUbVvjOSpUy9NuF8+M\nULBKbWwDZBaGPZgvlDNWpl8N4IWvgX9ycWXbaWTBNDmNff8pKHpkXdwkWect\nkJ6SPthbnZIA/h3EyJlvUCJ+DOyyQoZWoHh1C4A9O08j2hLttaVVBbmqp1/I\nslvfV4NtI82BbLUIOhaTrZ1SvrEwD+qoScfS7iOQAc+cIBI8gyGt/DA7q8pK\n0I998iklk03cR7Qk4Bh+8XeBwELTh3uXtcWtucp5eym6TD4wsc0WapR1sNFJ\n+j0eFTDdBr+OSJT7gJS+GjOeJvswOr/yioJuuWfRxtaRKnpquscn2khunI6T\nwr2GMM0Eov70TYCpbUP4Vb1JEYZ49Az5abR+kUxf1WVanW1htbCM/1dXiDrR\ntTXqwSCqr2WUVzAn6QGyNqKACB4nEf9L5bwHnuXQ7qKqjAgtR9bYu7186emk\njwqS\r\n=tfBh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA2HtF2oqdv4WV27+dAol2f0fF/Puii77L9tovQcFDX4AiAgjhTjZnrCh6kM7EuduTP9m8BDeIZkuG+IPGCb8WcWcw=="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.4-beta_1621410863567_0.5570213368844554"},"_hasShrinkwrap":false},"1.0.4":{"name":"@uni/action-sheet","version":"1.0.4","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.4","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Wguqu1s6FnuKCbwJcm2PnbLXXbRLOaXL64krUhfqY8m1gohDUckc9Ro+ug1a+aKZsuuzOZ35pihUxvQ5UTcI9A==","shasum":"6e620b46ef3de8ddfd9b1863a2d0920042f1bbf3","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.4.tgz","fileCount":40,"unpackedSize":62571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrLjdCRA9TVsSAnZWagAAqDIP/1d6RoOd6p9RXWLgza9R\nM0x2ilYZK7tj2Cf8US6ijDK9nVHs/NeqEleKJRXaFiA2RTO1dQshuegwP7JX\npT1tQdKrUCY81yTw9W6ckcoVip+aaAEb3JMzdEsBw4QYebmtltEi8mKLpQ2d\nC7/jfwJ0M0C1iyXcUvwZ5XP/ttVHVRYpZg0RkCzXjO32dGuahlnnnmEY2x1h\nCf494uBTDRENgbVy3Ai28mn0WwQjIA5dXeucRuXr2bRZmL+EW10+TRkLTV/Y\nQPGheehNASyaCBfmWIOowpFLDEsfZlF3mP5oUvIkcp327mwvOfMjbrMPaLIp\ndN8eL2HrNwVyIGD0CwCYf/m3uj9ux1xMAIg+xYKLwCucYD5Ld/rkHhhWoHu0\nfpDEOj2vpp/tkdCrMnW5wYYDxFJXiOeRI6Jy4SGJgex+mEHzwVyoGkrJccWn\nJAe9bBghgRifHq+i8Il0iGmS1+skfxhM2qZTUKFpN397Rjb1zry9NWrQFm5E\niUyjuQTTfctpWfuxPBtZRrIsiQhQzGNXRtNYfFFOlf1stDq78QmwspfaADb3\nf10TCQmF/xtADxYtiO/ca0RR7gmAMOP4BFuK4js/s92ii17dgZhXrmO8jPaO\nHdW/3jXGPyW8SQPtBbvCokt0uMirAIJa5mCDM0k269aEVIyz4V2s2mgUSXfz\nLNSb\r\n=r1NR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmnmuBFE2vYoZTWzckXc/lf9eZ2Xc+geLGP8PfDNI3rQIhALsVIWy+9jLLl4LWZpF4MRDVucuVnsqLizRsn3zBT/QD"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.4_1621932253103_0.9455900526293703"},"_hasShrinkwrap":false},"1.0.5":{"name":"@uni/action-sheet","version":"1.0.5","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.5","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-hgA/Ww5YZFn85KEs0xof/G78opjcY5lihdpjk9g9nT0e1MUfwag5HD6ZkEcF7Ib3eJfzt3820ToOcKWy4T7PpQ==","shasum":"2077da1de6cc99ca1731c960640deee12eeadb3f","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.5.tgz","fileCount":48,"unpackedSize":88410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5BXkCRA9TVsSAnZWagAAyHcP/1J/2jHzBRDY/lI8hERu\nH0qcpvMTCr9p4QFQjZY/E8+4oz2uBSoSFvkaok8NTBXi0uq6C7OFqIz/WIQI\n24fQ7ofJ2NzJP+/D+NKK/0yuHVkqvpUK/dtE6DMgOV9N6yp1q+DciRmLXHoi\n1MbhmXGj2DMcQmHPnaCUdbIINW1tKKKpztKtONQklWoAUZiRimi5vU/0mgp3\nOV4ABsW7haK0FdknqljWpd0Vt94gaW1moyJ6CwIHKjPJevbMvvs7aPDaWxAy\nfzRWEIarb4YmD6X/qYzA7rFKa9VhfZ9VDQkLHNrfcn2t3T3o46uzL52GiQ6E\n4Kq/IZeNCDbGKWnkbWy0X4EsCe7m+SUbMFXYVKijd/5IgvSryX7n3C0gNNWe\n8l2LH4Typ/YKBp0FHmuqpA4JzefSlIEIQHkFBecNa482hloZuQBE8Etgxdgl\nu7CDO15E7X/YNByrk18UwspC1Yph5ugYVFozQ/jaDjwcJFgt/DxQvw08b1ou\n6hSGbiTwp8/n/1vMqpdRutIJMUifujl6cjusql9u09nHRJaQRHL/WPVNgCbq\n3acxi1O8yGDT65OYPFniba/bNojTrwb5NSSrSJTUxks6x0JB+g16ejgVs2Rf\nHBHaIJ+wDSBVl57iDbjA5+FiIwc8XfdPcwl4pWCDUpVE1yLeQSQ4/cRaldO0\nqkbN\r\n=MQ6Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDntXhF0FI7PUocaqx4Yqjv2N5G2aOnaHV+xz/mR4QA1wIhAMywjN0U/KGV5ftj+SU605QV6JFHYViF3JQp5bjbtAIx"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.5_1625560548540_0.19221434171340346"},"_hasShrinkwrap":false},"1.0.6":{"name":"@uni/action-sheet","version":"1.0.6","description":"[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis) [![npm](https://img.shields.io/npm/v/@uni/action-sheet.svg)](https://www.npmjs.com/package/@uni/action-sheet)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.6","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-BsUurdOgxqbbWDVyDPm8SN43UGC90yISRTPLeG63c/zoxdUL850NZn5QsOmce3FJq2zYCgc7b6qfITmfwUz1Hw==","shasum":"354831d9b597d92a9cca6d92ee1ed1bf24096e84","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.6.tgz","fileCount":54,"unpackedSize":95285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFLmfCRA9TVsSAnZWagAARJ8P/RBVX17eiF9ukuot9KHT\nhjT4n9bTSVJqihQQc47yF6/xoGNt54/L9mhm1NS/0U1N+PF1I0YQ8/fmQcn0\nSYsxdJCvzDnlW7QMfv4Pfw0QO51zZm0Uds0/RFCxgkDPlBCsEYMauI+tinT8\n7v2y3MHKlcMM9kdV3/hW1O2aZCL7XmpyXi5ias+rPsx/pT5KeZD3h55ZdFOm\nWbM1wJdiQJGNFb8rOmlnSJBz7OSde+xFFwvpFr4OAn/2R4p8Zf0+14wIA4iu\nlhkkOW66R+OC93SRIXooEpA0NFf1q0gk24UOFVAosxhIXzdNPlVUCzxibKr8\n1xpE3Jd3bfcOPPjry5bvmiE3Qf10NCB4YxK5X94jVmwrqhBKKBYIXST+prsE\ncvObOrij2PnymY1Fd7+tODKNcDQLl96NXl6TZsqVLG5J1KAWzkfoggeRLg/e\n2Xq+X3GhK2ySqPbp8jq4SC7Ype/fIIVwP4fuqz9Cbyyk5hFA5nRO3KVvK0KR\nxQ2qlG4QSF4VppL7/XrGnt/aRzbClwUfzzOWTM6JUijPIsLLU8sbEiyAZxa/\nKDz5t0a1O84BP6dpjXasjUZqrt5b5SxXm4kPFb9BcEtg8M9aulQbNDfCmRSY\nYD5cA7yu8UVnfKDypaPzVZIRX1FFDjIql/sjelq9MjsBCxMazRiHkNb8OTVI\nZGaa\r\n=Wrih\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6KYPI3Fo2CwUyZzWFKdduB9q8FQ5tlIYgsk3pk+PiXAiA/eE8IHWTlFhOWOVdP+hQNmsHBYHId4mtgpJ24Q0oatw=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.6_1628748191562_0.5838114675784898"},"_hasShrinkwrap":false},"1.0.7-beta":{"name":"@uni/action-sheet","version":"1.0.7-beta","description":"","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./":"./"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"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","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.7-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-nNi9pQMsAVPLKXOkiIpWpjfFnHxtdVY45JxcQBDVUv3vFWa13UV+VtpIclpf6c1jQ+bpTGecd8uN6E0HOgyvxA==","shasum":"ceb1d3396226b62e19a4986b2b5c7e541d417df2","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.7-beta.tgz","fileCount":54,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEo11xnBPt3D5bIE7S+Ep8Duk693m//I1xpJUGfZMhoVAiEAzr9XnFdljL5cEVFcUaQ5SQAhwtMDf3jxEcdXmztnwtQ="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.7-beta_1629253759131_0.14133693443923212"},"_hasShrinkwrap":false},"1.0.7":{"name":"@uni/action-sheet","version":"1.0.7","description":"","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./lib/":"./lib/","./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.7","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-fW0tzwJitzfWbQ388NJCq5RAT2nNV39vUfjW/3z3ZSUu+gWg7OOIM05ttn0MOcN0WTxPu/yaYWkci5KEUnKXRA==","shasum":"0d24effbac3878e5eea7f00bce56642a59cdd325","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.7.tgz","fileCount":54,"unpackedSize":98977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHK9MCRA9TVsSAnZWagAAehoP/ianhJG2Pv26rKkKJiIK\nm7/3eb5cOHmjJU+gZHsQiKBmimp+v7kgMOjZnUkYo+yMvkah6NIuX8esLpKQ\nIYjUlZRKPxLrxG6pKgG50r1K6p+AntNnfnqOxxYnmXEt/b0hXqM0DpNOZZH2\n9RKdDe/eJu60yK7hMHrcTC+2LSK1tYHJBslO1RUawsOQcjdANHj74oIv+EYi\nxTvb1hLb5s06/VrnAos2icIM9QBF5GqFiSmZBq+/vyoLrVXXQInwLbWNFZyJ\n1PFkfmxtm3ady0UWYd4UC2BDp12dssc25I2QVkpf/O26GqQeEKTYju0Im0+h\nYmMTv2tWru18QyZO/sI3Lk8JahO5gJ3r7EGE2dLyEFz6RxI55BNcqE9JraUO\n+uM8hvFJmTNSW4L52IRMM9XiZz1CIZSiU00O9uT8mn0hke+aoSu5jwXMqASd\n1vadx5AfUEuFucMTpfV/JLskcvdQJZeWUQ/vCGlyRRxnDWYQ+JjPy2HR0fke\nk2pMOIrTVuY8YJlOdjkarumYDzbcwwg/LHSKDdLWSgOkDLgR7KkoOyAzPmqk\neutTT4343E5/t/1lrfzzaxafsmemMSHbIs0gV1ZHXiAWG0LT6Y8BzmbLGqip\nnBT9NEZohOkUnQaEgvdCxTC71jPGewDqHgoIF5CJRCXHwaX/7Lw7U4CAmXTj\n7CSZ\r\n=imK4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPl7mjIiAWzbu7LTeiTwkb67JhFXUZuEYc6Hpl6IS2zgIgWqL5Gxxm/PGyOLP9b17Pj6yeebZNdL0H7EfHlUMpo6Q="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.7_1629269836027_0.1143019280486246"},"_hasShrinkwrap":false},"1.0.8":{"name":"@uni/action-sheet","version":"1.0.8","description":"","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":{"require":"./lib/index.js","import":"./es/index.js","default":"./es/index.js"}},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/action-sheet@1.0.8","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-3L+ZHK6qYv/3w/ODGZugfbTYc8vT+lkxt/XAl5WRpiFCukjwP5yxRp+feE1SEHdprJXUlHBYTT/Tp0JfRIELJQ==","shasum":"61fd2b5ddf2349db6d835861f71b8d8d1590273e","tarball":"https://registry.npmjs.org/@uni/action-sheet/-/action-sheet-1.0.8.tgz","fileCount":58,"unpackedSize":184666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDa8T+Up/ERg3yt/ifSd/qiLzbqCQHwliwI1kNaEJq5HgIhAIXNAq+Kpda60VlbqFDtW6/wcyXSr0DCQYsDj2SasHCC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSLcOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqLhAAgfssTjYSUhpB4idjK5nGaPYFTxBEAlELGjbtEAEztloIdOP0\r\nqFWuRt9pQOIs1jTx01Z9CtxG5rdEQ72VwFK/8z358pfAcpeK4FRBQDY1zQ7x\r\njsxuZlOB9iOnUfOKLEbn9KnjCOeL9PtKyEO4oj1j0s+Y+9SCZdcDtVCw1Fya\r\ndpIVKyHqD1QNSnl4NWAymTNnHE9SRQjvY1yQLlXu6nVm1kgOLL4pjtLL53j6\r\nakkJrfXoM+xWIpFLatvJ8zNSwcmKVY3n/vWgkGlpendlJ4bDZ1Ux0Mcu7dOq\r\nhqnB+TqqFUe0spigQEFZyBbskUt5fptL1UtwTAinyTJextUInCUSy/KTNU9b\r\nvWSTKEqDrjjJMDFHC9gdaLbW8BPcIcGSaBUVGHf4eD+lAoeYhO4reo4tQ6rO\r\n/nsAmn2bfFChKe5uKSvlv6/mBesyw95qwxyV6PzI0NsvWLxMrVYNQQx3yaag\r\npr08iUSmGVPcwvbjlFSpp4eOvXU/JG7p+KLrBIG0aYXUUx8hQUDQnaCp2h+B\r\n3HMpiHYhIrmkibQMsWA8dPxR0L/HgdyNM8twObX9cO9DPkl0pBG5Ydepdw/O\r\nPgxMHU9YbfrMwXfo4j5baAjY8GWDh3ofq68Y5aYr6l3MBGPnAMNR3QIoW6EE\r\nVlMMXnNN9UVGAKAfBS44+koXGC28HpA0zKI=\r\n=alx7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"gh@ian7.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/action-sheet_1.0.8_1682487054477_0.2812970134674202"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-26T09:15:35.273Z","1.0.0-beta":"2021-02-26T09:15:36.085Z","modified":"2023-04-26T05:30:54.823Z","1.0.0-beta1":"2021-02-26T12:57:43.643Z","1.0.0":"2021-03-04T12:09:39.011Z","1.0.1":"2021-03-12T11:56:12.411Z","1.0.2":"2021-04-14T07:35:03.240Z","1.0.3":"2021-04-22T07:54:08.208Z","1.0.4-beta":"2021-05-19T07:54:23.762Z","1.0.4":"2021-05-25T08:44:13.228Z","1.0.5":"2021-07-06T08:35:48.647Z","1.0.6":"2021-08-12T06:03:11.712Z","1.0.7-beta":"2021-08-18T02:29:19.263Z","1.0.7":"2021-08-18T06:57:16.442Z","1.0.8":"2023-04-26T05:30:54.682Z"},"maintainers":[{"name":"bunko","email":"gh@ian7.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"homepage":"https://github.com/raxjs/universal-api#readme","repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"license":"BSD-3-Clause","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';\nactionSheet({\n  itemList: ['A', 'B', 'C']\n}).then(res => {\n  console.log(res.tapIndex)\n});\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","readmeFilename":"README.en-US.md"}