You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
14 KiB
1 lines
14 KiB
{"version":3,"sources":["webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/uni-popup.vue?89f5","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/uni-popup.vue?7efc","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/uni-popup.vue?1d3d","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/uni-popup.vue?74b8","uni-app:///components/uni-popup.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/uni-popup.vue?5714","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/uni-popup.vue?74dc"],"names":["name","props","animation","type","default","custom","maskClick","show","top","left","zIndex","data","ani","showPopup","watch","created","methods","clear","open","setTimeout","close"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;AACc;;;AAGtE;AACuM;AACvM,gBAAgB,iNAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA0xB,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBCc9yB;EACAA;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACAD;MACAA;MACAC;IACA;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;IACAM;MACAP;MACAC;QACA;MACA;IACA;EACA;EACAO;IACA;MACAC;MACAC;IACA;EACA;EACAC;IACAP;MACA;QACA;MACA;QACA;MACA;IACA;EACA;EACAQ;EACAC;IACAC;MACA;QACAV;MACA;IACA;IACAW;MAAA;MACA;QACAX;MACA;MACA;MACA;QACAY;UACA;QACA;MACA;IACA;IACAC;MAAA;MACA;MACA;QACAb;MACA;MACA;MACA;QACAY;UACA;QACA;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;ACrGA;AAAA;AAAA;AAAA;AAAq9C,CAAgB,s6CAAG,EAAC,C;;;;;;;;;;;ACAz+C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/uni-popup.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-popup.vue?vue&type=template&id=db6fc938&\"\nvar renderjs\nimport script from \"./uni-popup.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-popup.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uni-popup.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Downloads/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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-popup.vue\"\nexport default component.exports","export * from \"-!../../../../Downloads/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!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=template&id=db6fc938&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view v-if=\"showPopup\" class=\"uni-popup\" :style=\"{top: top,zIndex: zIndex}\">\r\n\t\t<view @click=\"close(true)\" :class=\"[ani, animation ? 'ani' : '', !custom ? 'uni-custom' : '']\"\r\n\t\t\tclass=\"uni-popup__mask\" :style=\"{zIndex: zIndex}\" />\r\n\t\t<view @click=\"close(true)\" :class=\"[type, ani, animation ? 'ani' : '', !custom ? 'uni-custom' : '']\"\r\n\t\t\tclass=\"uni-popup__wrapper\" :style=\"{zIndex: zIndex+1,left: type!='center'?left:''}\">\r\n\t\t\t<view class=\"uni-popup__wrapper-box\" @click.stop=\"clear\">\r\n\t\t\t\t<slot />\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tname: 'UniPopup',\r\n\t\tprops: {\r\n\t\t\t// 开启动画\r\n\t\t\tanimation: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层\r\n\t\t\ttype: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'center'\r\n\t\t\t},\r\n\t\t\t// 是否开启自定义\r\n\t\t\tcustom: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tmaskClick: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tshow: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\ttop: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '0rpx'\r\n\t\t\t},\r\n\t\t\tleft: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '0rpx'\r\n\t\t\t},\r\n\t\t\tzIndex: {\r\n\t\t\t\ttype: [Number],\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn 998\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tani: '',\r\n\t\t\t\tshowPopup: false\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tshow(newValue) {\r\n\t\t\t\tif (newValue) {\r\n\t\t\t\t\tthis.open()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.close()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {},\r\n\t\tmethods: {\r\n\t\t\tclear() {\r\n\t\t\t\tthis.$emit('clear', {\r\n\t\t\t\t\tshow: false\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\topen() {\r\n\t\t\t\tthis.$emit('change', {\r\n\t\t\t\t\tshow: true\r\n\t\t\t\t})\r\n\t\t\t\tthis.showPopup = true\r\n\t\t\t\tthis.$nextTick(() => {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.ani = 'uni-' + this.type\r\n\t\t\t\t\t}, 30)\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tclose(type) {\r\n\t\t\t\tif (!this.maskClick && type) return\r\n\t\t\t\tthis.$emit('change', {\r\n\t\t\t\t\tshow: false\r\n\t\t\t\t})\r\n\t\t\t\tthis.ani = ''\r\n\t\t\t\tthis.$nextTick(() => {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.showPopup = false\r\n\t\t\t\t\t}, 300)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\">\r\n\t@charset \"UTF-8\";\r\n\r\n\t.uni-popup {\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t\ttop: 0;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\toverflow: hidden\r\n\t}\r\n\r\n\t.uni-popup__mask {\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\tbottom: 0;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\tbackground: rgba(0, 0, 0, .4);\r\n\t\topacity: 0\r\n\t}\r\n\r\n\t.uni-popup__mask.ani {\r\n\t\ttransition: all .3s\r\n\t}\r\n\r\n\t.uni-popup__mask.uni-bottom,\r\n\t.uni-popup__mask.uni-center,\r\n\t.uni-popup__mask.uni-top {\r\n\t\topacity: 1\r\n\t}\r\n\r\n\t.uni-popup__wrapper {\r\n\t\tposition: absolute;\r\n\t\tbox-sizing: border-box\r\n\t}\r\n\r\n\t.uni-popup__wrapper.ani {\r\n\t\ttransition: all .3s\r\n\t}\r\n\r\n\t.uni-popup__wrapper.top {\r\n\t\ttop: 0;\r\n\t\twidth: 100%;\r\n\t\ttransform: translateY(-100%)\r\n\t}\r\n\r\n\t.uni-popup__wrapper.bottom {\r\n\t\tbottom: 0;\r\n\t\twidth: 100%;\r\n\t\ttransform: translateY(100%)\r\n\t}\r\n\r\n\t.uni-popup__wrapper.center {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\ttransform: scale(1.2);\r\n\t\topacity: 0\r\n\t}\r\n\r\n\t.uni-popup__wrapper-box {\r\n\t\tposition: relative;\r\n\t\tbox-sizing: border-box\r\n\t}\r\n\r\n\t.uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {\r\n\t\t/* padding: 30upx; */\r\n\t\t// background: #fff\r\n\t}\r\n\r\n\t.uni-popup__wrapper.uni-custom.center .uni-popup__wrapper-box {\r\n\t\tposition: relative;\r\n\t\t/* \t\tmax-width: 80%;\r\n\t\tmax-height: 80%; */\r\n\t\toverflow-y: scroll;\r\n\t\tborder-radius: 25rpx;\r\n\t}\r\n\r\n\t.uni-popup__wrapper.uni-custom.bottom .uni-popup__wrapper-box {\r\n\t\twidth: 100%;\r\n\t\t// max-height: 500px;\r\n\t\toverflow-y: scroll;\r\n\t\tborder-radius: 25rpx 25rpx 0 0;\r\n\t}\r\n\r\n\t.uni-popup__wrapper.uni-custom.top .uni-popup__wrapper-box {\r\n\t\twidth: 100%;\r\n\t\t// max-height: 500px;\r\n\t\toverflow-y: scroll;\r\n\t\tborder-radius: 0 0 25rpx 25rpx;\r\n\t}\r\n\r\n\t.uni-popup__wrapper.uni-bottom,\r\n\t.uni-popup__wrapper.uni-top {\r\n\t\ttransform: translateY(0)\r\n\t}\r\n\r\n\t.uni-popup__wrapper.uni-center {\r\n\t\ttransform: scale(1);\r\n\t\topacity: 1\r\n\t}\r\n</style>","import mod from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Downloads/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!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Downloads/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!../../../../Downloads/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!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Downloads/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!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Downloads/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!../../../../Downloads/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!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725332661639\n var cssReload = require(\"C:/Users/Administrator/Downloads/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":""} |