tn-action-sheet.js.map 17 KB

1
  1. {"version":3,"sources":["webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue?0377","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue?614f","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue?53e3","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue?e418","uni-app:///tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue?111b","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue?2d3f"],"names":["name","props","value","type","default","list","tips","text","color","fontSize","borderRadius","maskCloseable","cancelBtn","cancelText","safeAreaInsetBottom","zIndex","computed","tipsStyle","itemStyle","elZIndex","methods","close","popupClose","itemClick"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwI;AACxI;AACmE;AACL;AACsC;;;AAGpG;AAC8M;AAC9M,gBAAgB,qNAAU;AAC1B,EAAE,qFAAM;AACR,EAAE,sGAAM;AACR,EAAE,+GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0GAAU;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,4QAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACvDA;AAAA;AAAA;AAAA;AAAm0B,CAAgB,i0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBCqDv1B;EACAA;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAC;MACAF;MACAC;QACA;MACA;IACA;IACA;IACAE;MACAH;MACAC;QACA;UACAG;UACAC;UACAC;QACA;MACA;IACA;IACA;IACAC;MACAP;MACAC;IACA;IACA;IACAO;MACAR;MACAC;IACA;IACA;IACAQ;MACAT;MACAC;IACA;IACA;IACAS;MACAV;MACAC;IACA;IACA;IACA;IACAU;MACAX;MACAC;IACA;IACA;IACAW;MACAZ;MACAC;IACA;EACA;EACAY;IACA;IACAC;MACA;MACA;MACA;MAEA;IACA;IACA;IACAC;MAAA;MACA;QACA;QACA;QACA;;QAEA;QACA;QAEA;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IACA;IACAC;MACA;MACA;MACA;IACA;IACA;IACAC;MACA;IACA;IACA;IACAC;MACA;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;ACnKA;AAAA;AAAA;AAAA;AAAkjD,CAAgB,w+CAAG,EAAC,C;;;;;;;;;;;ACAtkD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"tuniao-ui/components/tn-action-sheet/tn-action-sheet.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tn-action-sheet.vue?vue&type=template&id=08b2de74&scoped=true&\"\nvar renderjs\nimport script from \"./tn-action-sheet.vue?vue&type=script&lang=js&\"\nexport * from \"./tn-action-sheet.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tn-action-sheet.vue?vue&type=style&index=0&id=08b2de74&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../self software/HBuilderX.3.99.2023122611/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 \"08b2de74\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tuniao-ui/components/tn-action-sheet/tn-action-sheet.vue\"\nexport default component.exports","export * from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-action-sheet.vue?vue&type=template&id=08b2de74&scoped=true&\"","var components\ntry {\n components = {\n tnPopup: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-popup/tn-popup\" */ \"@/tuniao-ui/components/tn-popup/tn-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.value && _vm.tips.text ? _vm.__get_style([_vm.tipsStyle]) : null\n var l0 = _vm.value\n ? _vm.__map(_vm.list, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var s1 = _vm.__get_style([_vm.itemStyle(index)])\n var g0 = _vm.list.length\n return {\n $orig: $orig,\n s1: s1,\n g0: g0,\n }\n })\n : null\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 \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-action-sheet.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-action-sheet.vue?vue&type=script&lang=js&\"","<template>\r\n <view v-if=\"value\" class=\"tn-action-sheet-class tn-action-sheet\">\r\n <tn-popup\r\n v-model=\"value\"\r\n mode=\"bottom\"\r\n length=\"auto\"\r\n :popup=\"false\"\r\n :borderRadius=\"borderRadius\"\r\n :maskCloseable=\"maskCloseable\"\r\n :safeAreaInsetBottom=\"safeAreaInsetBottom\"\r\n :zIndex=\"elZIndex\"\r\n @close=\"close\"\r\n >\r\n <!-- 提示信息 -->\r\n <view\r\n v-if=\"tips.text\"\r\n class=\"tn-action-sheet__tips tn-border-solid-bottom\"\r\n :style=\"[tipsStyle]\"\r\n >\r\n {{tips.text}}\r\n </view>\r\n <!-- 按钮列表 -->\r\n <block v-for=\"(item, index) in list\" :key=\"index\">\r\n <view\r\n class=\"tn-action-sheet__item tn-text-ellipsis\"\r\n :class=\"[ index < list.length - 1 ? 'tn-border-solid-bottom' : '']\"\r\n :style=\"[itemStyle(index)]\"\r\n hover-class=\"tn-hover-class\"\r\n :hover-stay-time=\"150\"\r\n @tap=\"itemClick(index)\"\r\n @touchmove.stop.prevent\r\n >\r\n <text>{{item.text}}</text>\r\n <text v-if=\"item.subText\" class=\"tn-action-sheet__item__subtext tn-text-ellipsis\">{{item.subText}}</text>\r\n </view>\r\n </block>\r\n \r\n <!-- 取消按钮 -->\r\n <block v-if=\"cancelBtn\">\r\n <view class=\"tn-action-sheet__cancel--gab\"></view>\r\n <view\r\n class=\"tn-action-sheet__cancel tn-action-sheet__item\"\r\n hover-class=\"tn-hover-class\"\r\n :hover-stay-time=\"150\"\r\n @tap=\"close\"\r\n >{{cancelText}}</view>\r\n </block>\r\n \r\n </tn-popup>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n name: 'tn-action-sheet',\r\n props: {\r\n // 通过v-model控制弹出和收起\r\n value: {\r\n type: Boolean,\r\n default: false\r\n },\r\n // 按钮文字数组,可以自定义颜色和字体大小\r\n // return [{\r\n // \ttext: '确定',\r\n // subText: '这是一个确定按钮',\r\n // \tcolor: '',\r\n // \tfontSize: '',\r\n // disabled: true\r\n // }]\r\n list: {\r\n type: Array,\r\n default() {\r\n return []\r\n }\r\n },\r\n // 顶部提示文字\r\n tips: {\r\n type: Object,\r\n default() {\r\n return {\r\n text: '',\r\n color: '',\r\n fontSize: 26\r\n }\r\n }\r\n },\r\n // 弹出的顶部圆角值\r\n borderRadius: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 点击遮罩可以关闭\r\n maskCloseable: {\r\n type: Boolean,\r\n default: true\r\n },\r\n // 底部取消按钮\r\n cancelBtn: {\r\n type: Boolean,\r\n default: true\r\n },\r\n // 底部取消按钮的文字\r\n cancelText: {\r\n type: String,\r\n default: '取消'\r\n },\r\n // 开启底部安全区域\r\n // 在iPhoneX机型底部添加一定的内边距\r\n safeAreaInsetBottom: {\r\n type: Boolean,\r\n default: false\r\n },\r\n // z-index值\r\n zIndex: {\r\n type: Number,\r\n default: 0\r\n }\r\n },\r\n computed: {\r\n // 顶部提示样式\r\n tipsStyle() {\r\n let style = {}\r\n if (this.tips.color) style.color = this.tips.color\r\n if (this.tips.fontSize) style.fontSize = this.tips.fontSize + 'rpx'\r\n \r\n return style\r\n },\r\n // 操作项目的样式\r\n itemStyle() {\r\n return (index) => {\r\n let style = {}\r\n if (this.list[index].color) style.color = this.list[index].color\r\n if (this.list[index].fontSize) style.fontSize = this.list[index].fontSize + 'rpx'\r\n \r\n // 选项被禁用的样式\r\n if (this.list[index].disabled) style.color = '#AAAAAA'\r\n \r\n return style\r\n }\r\n },\r\n elZIndex() {\r\n return this.zIndex ? this.zIndex : this.$t.zIndex.popup\r\n }\r\n },\r\n methods: {\r\n // 点击取消按钮\r\n close() {\r\n // 发送input事件,并不会作用于父组件,而是要设置组件内部通过props传递的value参数\r\n this.popupClose();\r\n this.$emit('close');\r\n },\r\n // 关闭弹窗\r\n popupClose() {\r\n this.$emit('input', false)\r\n },\r\n // 点击对应的item\r\n itemClick(index) {\r\n // 如果是禁用项则不进行操作\r\n if (this.list[index].disabled) return\r\n this.$emit('click', index)\r\n this.popupClose()\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n .tn-action-sheet {\r\n &__tips {\r\n font-size: 26rpx;\r\n text-align: center;\r\n padding: 34rpx 0;\r\n line-height: 1;\r\n color: $tn-content-color;\r\n }\r\n \r\n &__item {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 32rpx;\r\n padding: 34rpx 0;\r\n \r\n &__subtext {\r\n font-size: 24rpx;\r\n color: $tn-content-color;\r\n margin-top: 20rpx;\r\n }\r\n }\r\n \r\n &__cancel {\r\n color: $tn-font-color;\r\n \r\n &--gab {\r\n height: 12rpx;\r\n background-color: #eaeaec;\r\n }\r\n }\r\n }\r\n</style>\r\n","import mod from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-action-sheet.vue?vue&type=style&index=0&id=08b2de74&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-action-sheet.vue?vue&type=style&index=0&id=08b2de74&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1732000943961\n var cssReload = require(\"D:/self software/HBuilderX.3.99.2023122611/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":""}