tn-landscape.js.map 15 KB

1
  1. {"version":3,"sources":["webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-landscape/tn-landscape.vue?9add","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-landscape/tn-landscape.vue?b2dc","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-landscape/tn-landscape.vue?bbf7","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-landscape/tn-landscape.vue?6ca8","uni-app:///tuniao-ui/components/tn-landscape/tn-landscape.vue","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-landscape/tn-landscape.vue?7e9c"],"names":["renderjs","component","options","__file","components","render","_vm","this","_h","$createElement","s0","_self","_c","showValue","__get_style","containerStyle","s1","closeBtn","closeBtnStyle","s2","mask","maskStyle","$mp","data","Object","assign","$root","recyclableRender","staticRenderFns","_withStripped","name","props","show","type","default","closeColor","closeSize","closePosition","closeTop","closeRight","closeBottom","closeLeft","maskCloseable","zIndex","computed","style","watch","handler","immediate","methods","close","closeMask"],"mappings":"+IAAA,oIACIA,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,WACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,qDACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eAETC,GADKJ,EAAIK,MAAMC,GACVN,EAAIO,UAAYP,EAAIQ,YAAY,CAACR,EAAIS,iBAAmB,MAC7DC,EACFV,EAAIO,WAAaP,EAAIW,SAAWX,EAAIQ,YAAY,CAACR,EAAIY,gBAAkB,KACrEC,EAAKb,EAAIc,KAAOd,EAAIQ,YAAY,CAACR,EAAIe,YAAc,KACvDf,EAAIgB,IAAIC,KAAOC,OAAOC,OACpB,GACA,CACEC,MAAO,CACLhB,GAAIA,EACJM,GAAIA,EACJG,GAAIA,MAKRQ,GAAmB,EACnBC,EAAkB,GACtBvB,EAAOwB,eAAgB,G,iCCtBvB,yHAAg1B,eAAG,G,yGC2Bn1B,CACAC,oBACAC,OAEAC,MACAC,aACAC,YAGAjB,UACAgB,aACAC,YAGAC,YACAF,YACAC,YAGAE,WACAH,YACAC,WAIAG,eACAJ,YACAC,oBAIAI,UACAL,YACAC,WAIAK,YACAN,YACAC,WAIAM,aACAP,YACAC,WAIAO,WACAR,YACAC,WAGAd,MACAa,aACAC,YAGAQ,eACAT,aACAC,YAGAS,QACAV,YACAC,YAGAU,UACA7B,0BACA,SAEA,OADA8B,0DACA,GAEA3B,yBACA,SA0BA,MAzBA,gCACA,gBACA2B,2BAEA,iBACAA,8BAEA,iCACA,gBACAA,2BAEA,kBACAA,gCAEA,+BACA,mBACAA,iCAGA,iBACAA,iCAEA,kBACAA,yBAEA,GAEAxB,qBACA,SAEA,OADAwB,8DACA,IAGAC,OACAd,MACAe,oBACA,kBAEAC,eAGAzB,gBACA,OACAV,eAGAoC,SAEAC,iBACA,kBACA,qBAGAC,qBACA,oBACA,gBAGA,a,iCClKA,yHAA+jD,eAAG,G","file":"tuniao-ui/components/tn-landscape/tn-landscape.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tn-landscape.vue?vue&type=template&id=02ab2808&scoped=true&\"\nvar renderjs\nimport script from \"./tn-landscape.vue?vue&type=script&lang=js&\"\nexport * from \"./tn-landscape.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tn-landscape.vue?vue&type=style&index=0&id=02ab2808&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 \"02ab2808\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tuniao-ui/components/tn-landscape/tn-landscape.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-landscape.vue?vue&type=template&id=02ab2808&scoped=true&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var s0 = _vm.showValue ? _vm.__get_style([_vm.containerStyle]) : null\n var s1 =\n _vm.showValue && _vm.closeBtn ? _vm.__get_style([_vm.closeBtnStyle]) : null\n var s2 = _vm.mask ? _vm.__get_style([_vm.maskStyle]) : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n s0: s0,\n s1: s1,\n s2: s2,\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-landscape.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-landscape.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"tn-landscape-class tn-landscape\">\r\n <view v-if=\"showValue\" class=\"tn-landscape__container\" :style=\"[containerStyle]\">\r\n <slot></slot>\r\n <view\r\n v-if=\"closeBtn\"\r\n class=\"tn-landscape__icon tn-icon-close-fill\"\r\n :class=\"[{\r\n 'tn-landscape__icon--left-top': closePosition === 'leftTop',\r\n 'tn-landscape__icon--right-top': closePosition === 'rightTop',\r\n 'tn-landscape__icon--bottom': closePosition === 'bottom'\r\n }]\"\r\n :style=\"[closeBtnStyle]\"\r\n @tap=\"close\"\r\n ></view>\r\n </view>\r\n <view\r\n v-if=\"mask\"\r\n class=\"tn-landscape__mask\"\r\n :class=\"[{'tn-landscape__mask--show': showValue}]\"\r\n :style=\"[maskStyle]\"\r\n @tap=\"closeMask\"\r\n ></view>\r\n </view>\n</template>\n\n<script>\r\n export default {\r\n name: 'tn-landscape',\r\n props: {\r\n // 显示\r\n show: {\r\n type: Boolean,\r\n default: false\r\n },\r\n // 显示关闭图标\r\n closeBtn: {\r\n type: Boolean,\r\n default: true\r\n },\r\n // 关闭图标颜色\r\n closeColor: {\r\n type: String,\r\n default: ''\r\n },\r\n // 关闭图标大小,单位rpx\r\n closeSize: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 关闭图标位置\r\n // leftTop -> 左上角 rightTop -> 右上角 bottom -> 底部\r\n closePosition: {\r\n type: String,\r\n default: 'rightTop'\r\n },\r\n // 关闭图标top值,单位rpx\r\n // 当关闭图标在leftTop或者rightTop时生效\r\n closeTop: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 关闭图标right值,单位rpx\r\n // 当关闭图标在RightTop时生效\r\n closeRight: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 关闭图标bottom值,单位rpx\r\n // 当关闭图标在bottom时生效\r\n closeBottom: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 关闭图标left值,单位rpx\r\n // 当关闭图标在leftTop时生效\r\n closeLeft: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 显示遮罩\r\n mask: {\r\n type: Boolean,\r\n default: true\r\n },\r\n // 点击遮罩可以关闭\r\n maskCloseable: {\r\n type: Boolean,\r\n default: true\r\n },\r\n // zIndex\r\n zIndex: {\r\n type: Number,\r\n default: 0\r\n }\r\n },\r\n computed: {\r\n containerStyle() {\r\n let style = {}\r\n style.zIndex = this.zIndex ? this.zIndex : this.$t.zIndex.landsacpe\r\n return style\r\n },\r\n closeBtnStyle() {\r\n let style = {}\r\n if (this.closePosition === 'leftTop') {\r\n if (this.closeTop) {\r\n style.top = this.closeTop + 'rpx'\r\n }\r\n if (this.closeLeft) {\r\n style.left = this.closeLeft + 'rpx'\r\n }\r\n } else if (this.closePosition === 'rightTop') {\r\n if (this.closeTop) {\r\n style.top = this.closeTop + 'rpx'\r\n }\r\n if (this.closeRight) {\r\n style.right = this.closeRight + 'rpx'\r\n }\r\n } else if (this.closePosition === 'bottom') {\r\n if (this.closeBottom) {\r\n style.bottom = this.closeBottom + 'rpx'\r\n }\r\n }\r\n if (this.closeSize) {\r\n style.fontSize = this.closeSize + 'rpx'\r\n }\r\n if (this.closeColor) {\r\n style.color = this.closeColor\r\n }\r\n return style\r\n },\r\n maskStyle() {\r\n let style = {}\r\n style.zIndex = this.zIndex ? this.zIndex - 1 : this.$t.zIndex.landsacpe - 1\r\n return style\r\n }\r\n },\r\n watch: {\r\n show: {\r\n handler(val) {\r\n this.showValue = val\r\n },\r\n immediate: true\r\n }\r\n },\r\n data() {\r\n return {\r\n showValue: false\r\n }\r\n },\r\n methods: {\r\n // 关闭压屏窗\r\n close() {\r\n this.showValue = false\r\n this.$emit('close')\r\n },\r\n // 点击遮罩关闭\r\n closeMask() {\r\n if (!this.maskCloseable) return\r\n this.close()\r\n }\r\n }\r\n }\n</script>\n\n<style lang=\"scss\" scoped>\r\n .tn-landscape {\r\n width: 100%;\r\n overflow: hidden;\r\n \r\n &__container {\r\n max-width: 100%;\r\n position: fixed;\r\n display: inline-flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n }\r\n \r\n &__icon {\r\n position: absolute;\r\n text-align: center;\r\n font-size: 50rpx;\r\n color: #FFFFFF;\r\n \r\n &--left-top {\r\n top: -40rpx;\r\n left: 20rpx;\r\n }\r\n \r\n &--right-top {\r\n top: -40rpx;\r\n right: 40rpx;\r\n }\r\n \r\n &--bottom {\r\n left: 50%;\r\n bottom: -40rpx;\r\n transform: translateX(-50%);\r\n }\r\n }\r\n \r\n &__mask {\r\n position: fixed;\r\n width: 100%;\r\n height: 100%;\r\n background-color: $tn-mask-bg-color;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n left: 0;\r\n opacity: 0;\r\n transform: scale3d(1, 1, 0);\r\n transition: all 0.25s ease-in;\r\n \r\n &--show {\r\n opacity: 1 !important;\r\n transform: scale3d(1, 1, 1);\r\n }\r\n }\r\n }\n</style>\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-landscape.vue?vue&type=style&index=0&id=02ab2808&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-landscape.vue?vue&type=style&index=0&id=02ab2808&lang=scss&scoped=true&\""],"sourceRoot":""}