u-action-sheet.js.map
17.4 KB
{"version":3,"sources":["webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-action-sheet/u-action-sheet.vue?1c62","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-action-sheet/u-action-sheet.vue?642f","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-action-sheet/u-action-sheet.vue?3dfd","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-action-sheet/u-action-sheet.vue?0991","uni-app:///uview-ui/components/u-action-sheet/u-action-sheet.vue","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-action-sheet/u-action-sheet.vue?f34b","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-action-sheet/u-action-sheet.vue?b8a0"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuI;AACvI;AACkE;AACL;AACsC;;;AAGnG;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,qGAAM;AACR,EAAE,8GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,8MAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACvDA;AAAA;AAAA;AAAA;AAA02B,CAAgB,4yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2B93B;;;;;;;;;;;;;;;;;AAiBA;AACA,wBADA;AAEA;AACA;AACA;AACA,mBADA;AAEA,mBAFA,EAFA;;AAMA;AACA;AACA,iBADA;AAEA,aAFA,sBAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAVA,EAPA;;AAmBA;AACA;AACA,kBADA;AAEA,aAFA,sBAEA;AACA;AACA,kBADA;AAEA,mBAFA;AAGA,wBAHA;;AAKA,OARA,EApBA;;AA8BA;AACA;AACA,mBADA;AAEA,mBAFA,EA/BA;;AAmCA;AACA;AACA,mBADA;AAEA,oBAFA,EApCA;;AAwCA;AACA;AACA,mBADA;AAEA,oBAFA,EAzCA;;AA6CA;AACA;AACA,4BADA;AAEA,gBAFA,EA9CA;;AAkDA;AACA;AACA,4BADA;AAEA,gBAFA,EAnDA;;AAuDA;AACA;AACA,kBADA;AAEA,mBAFA,EAxDA,EAFA;;;AA+DA;AACA;AACA,aAFA,uBAEA;AACA;AACA;AACA;AACA;AACA,KAPA;AAQA;AACA,aATA,uBASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAPA;AAQA,KAlBA;AAmBA,WAnBA,qBAmBA;AACA;AACA;AACA,KAtBA,EA/DA;;AAuFA;AACA;AACA,SAFA,mBAEA;AACA;AACA;AACA;AACA;AACA,KAPA;AAQA;AACA,cATA,wBASA;AACA;AACA,KAXA;AAYA;AACA,aAbA,qBAaA,KAbA,EAaA;AACA;AACA;AACA;AACA;AACA,KAlBA,EAvFA,E;;;;;;;;;;;;AC5CA;AAAA;AAAA;AAAA;AAAmlD,CAAgB,85CAAG,EAAC,C;;;;;;;;;;;ACAvmD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uview-ui/components/u-action-sheet/u-action-sheet.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-action-sheet.vue?vue&type=template&id=6f495b00&scoped=true&\"\nvar renderjs\nimport script from \"./u-action-sheet.vue?vue&type=script&lang=js&\"\nexport * from \"./u-action-sheet.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-action-sheet.vue?vue&type=style&index=0&id=6f495b00&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6f495b00\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"uview-ui/components/u-action-sheet/u-action-sheet.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-action-sheet.vue?vue&type=template&id=6f495b00&scoped=true&\"","var components\ntry {\n components = {\n uPopup: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-popup/u-popup\" */ \"@/uview-ui/components/u-popup/u-popup.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var s0 = _vm.tips.text ? _vm.__get_style([_vm.tipsStyle]) : null\n\n var l0 = _vm.__map(_vm.list, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var s1 = _vm.__get_style([_vm.itemStyle(index)])\n\n return {\n $orig: $orig,\n s1: s1\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n s0: s0,\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-action-sheet.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-action-sheet.vue?vue&type=script&lang=js&\"","<template>\n\t<u-popup mode=\"bottom\" :border-radius=\"borderRadius\" :popup=\"false\" v-model=\"value\" :maskCloseAble=\"maskCloseAble\"\n\t length=\"auto\" :safeAreaInsetBottom=\"safeAreaInsetBottom\" @close=\"popupClose\" :z-index=\"uZIndex\">\n\t\t<view class=\"u-tips u-border-bottom\" v-if=\"tips.text\" :style=\"[tipsStyle]\">\n\t\t\t{{tips.text}}\n\t\t</view>\n\t\t<block v-for=\"(item, index) in list\" :key=\"index\">\n\t\t\t<view \n\t\t\t\t@touchmove.stop.prevent \n\t\t\t\t@tap=\"itemClick(index)\" \n\t\t\t\t:style=\"[itemStyle(index)]\" \n\t\t\t\tclass=\"u-action-sheet-item u-line-1\" \n\t\t\t\t:class=\"[index < list.length - 1 ? 'u-border-bottom' : '']\"\n\t\t\t\t:hover-stay-time=\"150\"\n\t\t\t>\n\t\t\t\t<text>{{item.text}}</text>\n\t\t\t\t<text class=\"u-action-sheet-item__subtext u-line-1\" v-if=\"item.subText\">{{item.subText}}</text>\n\t\t\t</view>\n\t\t</block>\n\t\t<view class=\"u-gab\" v-if=\"cancelBtn\">\n\t\t</view>\n\t\t<view @touchmove.stop.prevent class=\"u-actionsheet-cancel u-action-sheet-item\" hover-class=\"u-hover-class\"\n\t\t :hover-stay-time=\"150\" v-if=\"cancelBtn\" @tap=\"close\">{{cancelText}}</view>\n\t</u-popup>\n</template>\n\n<script>\n\t/**\n\t * actionSheet 操作菜单\n\t * @description 本组件用于从底部弹出一个操作菜单,供用户选择并返回结果。本组件功能类似于uni的uni.showActionSheetAPI,配置更加灵活,所有平台都表现一致。\n\t * @tutorial https://www.uviewui.com/components/actionSheet.html\n\t * @property {Array<Object>} list 按钮的文字数组,见官方文档示例\n\t * @property {Object} tips 顶部的提示文字,见官方文档示例\n\t * @property {String} cancel-text 取消按钮的提示文字\n\t * @property {Boolean} cancel-btn 是否显示底部的取消按钮(默认true)\n\t * @property {Number String} border-radius 弹出部分顶部左右的圆角值,单位rpx(默认0)\n\t * @property {Boolean} mask-close-able 点击遮罩是否可以关闭(默认true)\n\t * @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false)\n\t * @property {Number String} z-index z-index值(默认1075)\n\t * @property {String} cancel-text 取消按钮的提示文字\n\t * @event {Function} click 点击ActionSheet列表项时触发\n\t * @event {Function} close 点击取消按钮时触发\n\t * @example <u-action-sheet :list=\"list\" @click=\"click\" v-model=\"show\"></u-action-sheet>\n\t */\n\texport default {\n\t\tname: \"u-action-sheet\",\n\t\tprops: {\n\t\t\t// 点击遮罩是否可以关闭actionsheet\n\t\t\tmaskCloseAble: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: true\n\t\t\t},\n\t\t\t// 按钮的文字数组,可以自定义颜色和字体大小,字体单位为rpx\n\t\t\tlist: {\n\t\t\t\ttype: Array,\n\t\t\t\tdefault () {\n\t\t\t\t\t// 如下\n\t\t\t\t\t// return [{\n\t\t\t\t\t// \ttext: '确定',\n\t\t\t\t\t// \tcolor: '',\n\t\t\t\t\t// \tfontSize: ''\n\t\t\t\t\t// }]\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 顶部的提示文字\n\t\t\ttips: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault () {\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttext: '',\n\t\t\t\t\t\tcolor: '',\n\t\t\t\t\t\tfontSize: '26'\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 底部的取消按钮\n\t\t\tcancelBtn: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: true\n\t\t\t},\n\t\t\t// 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距\n\t\t\tsafeAreaInsetBottom: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\t// 通过双向绑定控制组件的弹出与收起\n\t\t\tvalue: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\t// 弹出的顶部圆角值\n\t\t\tborderRadius: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 0\n\t\t\t},\n\t\t\t// 弹出的z-index值\n\t\t\tzIndex: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 0\n\t\t\t},\n\t\t\t// 取消按钮的文字提示\n\t\t\tcancelText: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '取消'\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 顶部提示的样式\n\t\t\ttipsStyle() {\n\t\t\t\tlet style = {};\n\t\t\t\tif (this.tips.color) style.color = this.tips.color;\n\t\t\t\tif (this.tips.fontSize) style.fontSize = this.tips.fontSize + 'rpx';\n\t\t\t\treturn style;\n\t\t\t},\n\t\t\t// 操作项目的样式\n\t\t\titemStyle() {\n\t\t\t\treturn (index) => {\n\t\t\t\t\tlet style = {};\n\t\t\t\t\tif (this.list[index].color) style.color = this.list[index].color;\n\t\t\t\t\tif (this.list[index].fontSize) style.fontSize = this.list[index].fontSize + 'rpx';\n\t\t\t\t\t// 选项被禁用的样式\n\t\t\t\t\tif (this.list[index].disabled) style.color = '#c0c4cc';\n\t\t\t\t\treturn style;\n\t\t\t\t}\n\t\t\t},\n\t\t\tuZIndex() {\n\t\t\t\t// 如果用户有传递z-index值,优先使用\n\t\t\t\treturn this.zIndex ? this.zIndex : this.$u.zIndex.popup;\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 点击取消按钮\n\t\t\tclose() {\n\t\t\t\t// 发送input事件,并不会作用于父组件,而是要设置组件内部通过props传递的value参数\n\t\t\t\t// 这是一个vue发送事件的特殊用法\n\t\t\t\tthis.popupClose();\n\t\t\t\tthis.$emit('close');\n\t\t\t},\n\t\t\t// 弹窗关闭\n\t\t\tpopupClose() {\n\t\t\t\tthis.$emit('input', false);\n\t\t\t},\n\t\t\t// 点击某一个item\n\t\t\titemClick(index) {\n\t\t\t\t// disabled的项禁止点击\n\t\t\t\tif(this.list[index].disabled) return;\n\t\t\t\tthis.$emit('click', index);\n\t\t\t\tthis.$emit('input', false);\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import \"../../libs/css/style.components.scss\";\n\n\t.u-tips {\n\t\tfont-size: 26rpx;\n\t\ttext-align: center;\n\t\tpadding: 34rpx 0;\n\t\tline-height: 1;\n\t\tcolor: $u-tips-color;\n\t}\n\n\t.u-action-sheet-item {\n\t\t@include vue-flex;;\n\t\tline-height: 1;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tfont-size: 32rpx;\n\t\tpadding: 34rpx 0;\n\t\tflex-direction: column;\n\t}\n\t\n\t.u-action-sheet-item__subtext {\n\t\tfont-size: 24rpx;\n\t\tcolor: $u-tips-color;\n\t\tmargin-top: 20rpx;\n\t}\n\n\t.u-gab {\n\t\theight: 12rpx;\n\t\tbackground-color: rgb(234, 234, 236);\n\t}\n\n\t.u-actionsheet-cancel {\n\t\tcolor: $u-main-color;\n\t}\n</style>\n","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-action-sheet.vue?vue&type=style&index=0&id=6f495b00&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-action-sheet.vue?vue&type=style&index=0&id=6f495b00&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1700461802243\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}