多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#### `actionsheet操作表` [预览](https://aui-js.github.io/aui/pages/api/plugs/actionsheet.html) </br> 参数 | 类型 | 描述 | 默认值 | 必选 ---- | ----- | ------ | ----- | ---- warp | string | 父容器元素 | 'body' | 否 items | arr | 菜单列表[{name: "", color: "", fontSize: "", textAlign: ""}] | [] | 否 mask | boolean | 是否显示遮罩蒙版 | true | 否 touchClose | boolean | 触摸遮罩是否关闭模态弹窗 | true | 否 cancle | string | 取消按钮 | '' | 否 location | string | 位置 </br>bottom:位于底部,从底部弹出显示</br>middle:位于页面中心位置 | 'bottom' | 否 theme | number | 主题样式(1: 非全屏宽度; 2: 全屏宽度) | 1 | 否 ````html <link rel="stylesheet" type="text/css" href="https://aui-js.github.io/aui/static/css/aui.min.css"/> <script type="text/javascript" src="https://aui-js.github.io/aui/static/js/aui.min.js"></script> ```` > 示例: ````javascript aui.actionSheet({ title: '上传图片', mask: true, touchClose: true, items: [{ name: "从相册选择", },{ name: "拍照" }], cancle: "取消", theme: 1, location: "bottom" },function(ret){ console.log(ret.index); }); ````