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
13 KiB

{"version":3,"sources":["webpack:///G:/web/中龙小程序/zhonglmini/components/uni-popup/uni-popup.vue?7825","webpack:///G:/web/中龙小程序/zhonglmini/components/uni-popup/uni-popup.vue?433e","webpack:///G:/web/中龙小程序/zhonglmini/components/uni-popup/uni-popup.vue?3b6a","webpack:///G:/web/中龙小程序/zhonglmini/components/uni-popup/uni-popup.vue?6fc1","uni-app:///components/uni-popup/uni-popup.vue","webpack:///G:/web/中龙小程序/zhonglmini/components/uni-popup/uni-popup.vue?c3b5","webpack:///G:/web/中龙小程序/zhonglmini/components/uni-popup/uni-popup.vue?24b0"],"names":["name","props","animation","type","default","custom","maskClick","show","data","ani","showPopup","watch","created","methods","clear","open","setTimeout","close"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;AACc;;;AAGtE;AACqL;AACrL,gBAAgB,0LAAU;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;AAAmrB,CAAgB,orBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCsBvsB;EACAA;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACAD;MACAA;MACAC;IACA;IACA;IACAC;MACAF;MACAC;IACA;IACA;IACAE;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;EACA;EACAI;IACA;MACAC;MACAC;IACA;EACA;EACAC;IACAJ;MACA;QACA;MACA;QACA;MACA;IACA;EACA;EACAK;EACAC;IACAC;IACAC;MAAA;MACA;QACAR;MACA;MACA;MACA;QACAS;UACA;QACA;MACA;IACA;IACAC;MAAA;MACA;MACA;QACAV;MACA;MACA;MACA;QACAS;UACA;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;AC5FA;AAAA;AAAA;AAAA;AAA8xC,CAAgB,utCAAG,EAAC,C;;;;;;;;;;;ACAlzC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/uni-popup/uni-popup.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-popup.vue?vue&type=template&id=7da806a4&\"\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 \"!F:\\\\软件\\\\HBuilder X\\\\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/uni-popup.vue\"\nexport default component.exports","export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-popup.vue?vue&type=template&id=7da806a4&\"","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 \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 <view\r\n v-if=\"showPopup\"\r\n class=\"uni-popup\">\r\n <view\r\n :class=\"[ani, animation ? 'ani' : '', !custom ? 'uni-custom' : '']\"\r\n class=\"uni-popup__mask\"\r\n @click=\"close(true)\" />\r\n <view\r\n :class=\"[type, ani, animation ? 'ani' : '', !custom ? 'uni-custom' : '']\"\r\n class=\"uni-popup__wrapper\"\r\n @click=\"close(true)\">\r\n <view\r\n class=\"uni-popup__wrapper-box\"\r\n @click.stop=\"clear\">\r\n <slot />\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'UniPopup',\r\n props: {\r\n // 开启动画\r\n animation: {\r\n type: Boolean,\r\n default: true\r\n },\r\n // 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层\r\n type: {\r\n type: String,\r\n default: 'center'\r\n },\r\n // 是否开启自定义\r\n custom: {\r\n type: Boolean,\r\n default: false\r\n },\r\n // maskClick\r\n maskClick: {\r\n type: Boolean,\r\n default: true\r\n },\r\n show: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data () {\r\n return {\r\n ani: '',\r\n showPopup: false\r\n }\r\n },\r\n watch: {\r\n show (newValue) {\r\n if (newValue) {\r\n this.open()\r\n } else {\r\n this.close()\r\n }\r\n }\r\n },\r\n created () {},\r\n methods: {\r\n clear () {},\r\n open () {\r\n this.$emit('change', {\r\n show: true\r\n })\r\n this.showPopup = true\r\n this.$nextTick(() => {\r\n setTimeout(() => {\r\n this.ani = 'uni-' + this.type\r\n }, 30)\r\n })\r\n },\r\n close (type) {\r\n if (!this.maskClick && type) return\r\n this.$emit('change', {\r\n show: false\r\n })\r\n this.ani = ''\r\n this.$nextTick(() => {\r\n setTimeout(() => {\r\n this.showPopup = false\r\n }, 300)\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"scss\">\r\n.uni-popup {\r\n position: fixed;\r\n /* #ifdef H5 */\r\n top: 0px;\r\n // top: 50px;\r\n /* #endif */\r\n /* #ifndef H5 */\r\n top: 0px;\r\n /* #endif */\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n z-index: 998;\r\n overflow: hidden;\r\n\r\n &__mask {\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n z-index: 998;\r\n background: rgba(0, 0, 0, 0.4);\r\n opacity: 0;\r\n\r\n &.ani {\r\n transition: all 0.3s;\r\n }\r\n\r\n &.uni-top,\r\n &.uni-bottom,\r\n &.uni-center {\r\n opacity: 1;\r\n }\r\n }\r\n\r\n &__wrapper {\r\n position: absolute;\r\n z-index: 999;\r\n box-sizing: border-box;\r\n\r\n &.ani {\r\n transition: all 0.3s;\r\n }\r\n\r\n &.top {\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n transform: translateY(-100%);\r\n }\r\n\r\n &.bottom {\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n transform: translateY(100%);\r\n }\r\n\r\n &.center {\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n transform: scale(1.2);\r\n opacity: 0;\r\n }\r\n\r\n &-box {\r\n position: relative;\r\n box-sizing: border-box;\r\n }\r\n\r\n &.uni-custom {\r\n & .uni-popup__wrapper-box {\r\n padding: 30upx;\r\n background: #fff;\r\n }\r\n\r\n &.center {\r\n & .uni-popup__wrapper-box {\r\n position: relative;\r\n max-width: 80%;\r\n max-height: 80%;\r\n overflow-y: scroll;\r\n }\r\n }\r\n\r\n &.top,\r\n &.bottom {\r\n & .uni-popup__wrapper-box {\r\n width: 100%;\r\n max-height: 500px;\r\n overflow-y: scroll;\r\n }\r\n }\r\n }\r\n\r\n &.uni-top,\r\n &.uni-bottom {\r\n transform: translateY(0);\r\n }\r\n\r\n &.uni-center {\r\n transform: scale(1);\r\n opacity: 1;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 // 1720092621396\n var cssReload = require(\"F:/软件/HBuilder X/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":""}