travel/admin/node_modules/.cache/babel-loader/ff068da0926088c3cfc1f552bbe...

1 line
8.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\components\\Watermark\\Watermark.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\components\\Watermark\\Watermark.vue","mtime":1718864675711},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\babel.config.js","mtime":1718070785981},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMubnVtYmVyLmNvbnN0cnVjdG9yLmpzIjsKLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmV4cG9ydCBkZWZhdWx0IHsKICBwcm9wczogewogICAgd2F0ZXJtYXJrVGV4dDogewogICAgICB0eXBlOiBTdHJpbmcsCiAgICAgIGRlZmF1bHQ6ICfph5HmvrMnCiAgICB9LAogICAgd2F0ZXJtYXJrQ29sb3I6IHsKICAgICA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biBoYW5kbGVSZXNpemUoKSB7CiAgICAgIC8vIOWcqOeql+WPo+Wkp+Wwj+aUueWPmOaXtumHjeaWsOiuoeeul+awtOWNsOaWh+acrOWSjOagt+W8jwogICAgICAvLyDov5nph4zlj6/ku6XmoLnmja7pnIDopoHmt7vliqDpgLvovpHvvIzmr5TlpoLkvb/nlKhuZXh0VGlja+adpeehruS/nURPTeabtOaWsOWQjuWGjeiuoeeulwogICAgfQogIH0KfTs="},{"version":3,"names":["props","watermarkText","type","String","default","watermarkColor","watermarkFontSize","watermarkFontFamily","watermarkRotation","Number","watermarkSpacing","watermarkWidth","watermarkHeight","computed","watermarkTexts","texts","width","window","innerWidth","height","innerHeight","count","Math","ceil","i","push","watermarkStyle","position","pointerEvents","top","concat","random","left","transform","fontSize","color","fontFamily","mounted","addEventListener","handleResize","beforeDestroy","removeEventListener","methods"],"sources":["src/components/Watermark/Watermark.vue"],"sourcesContent":["<template>\n <div v-if=\"watermarkText\" class=\"watermark-container\">\n <div class=\"watermark\" v-for=\"(text, index) in watermarkTexts\" :key=\"index\" :style=\"watermarkStyle\">\n {{ text }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n watermarkText: {\n type: String,\n default: '金澳'\n },\n watermarkColor: {\n type: String,\n default: 'rgba(192, 192, 192, 0.3)'\n },\n watermarkFontSize: {\n type: String,\n default: '24px'\n },\n watermarkFontFamily: {\n type: String,\n default: 'Arial'\n },\n watermarkRotation: {\n type: Number,\n default: -45\n },\n watermarkSpacing: {\n type: Number,\n default: 200\n },\n watermarkWidth: {\n type: Number,\n default: 200\n },\n watermarkHeight: {\n type: Number,\n default: 100\n }\n },\n computed: {\n watermarkTexts() {\n // 根据页面大小动态生成多个水印文本\n const texts = [];\n const width = window.innerWidth;\n const height = window.innerHeight;\n const count = Math.ceil(width * height / (this.watermarkWidth * this.watermarkHeight));\n for (let i = 0; i < count; i++) {\n texts.push(this.watermarkText);\n }\n return texts;\n },\n watermarkStyle() {\n return {\n position: 'fixed',\n pointerEvents: 'none',\n top: `${Math.random() * window.innerHeight}px`,\n left: `${Math.random() * window.innerWidth}px`,\n transform: `rotate(${this.watermarkRotation}deg)`,\n fontSize: this.watermarkFontSize,\n color: this.watermarkColor,\n fontFamily: this.watermarkFontFamily,\n // 可以根据需要添加更多样式\n };\n }\n },\n mounted() {\n window.addEventListener('resize', this.handleResize);\n },\n beforeDestroy() {\n window.removeEventListener('resize', this.handleResize);\n },\n methods: {\n handleResize() {\n // 在窗口大小改变时重新计算水印文本和样式\n // 这里可以根据需要添加逻辑比如使用nextTick来确保DOM更新后再计算\n }\n }\n};\n</script>\n\n<style scoped>\n.watermark-container {\n pointer-events: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 9999; /* 确保水印在内容之上 */\n overflow: hidden;\n pointer-events: none; /* 防止水印影响页面交互 */\n}\n\n.watermark {\n user-select: none; /* 防止水印文本被复制 */\n pointer-events: none; /* 防止水印影响页面交互 */\n}\n</style>\n"],"mappings":";;;;;;;;;;AASA;EACAA,KAAA;IACAC,aAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAC,cAAA;MACAH,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAE,iBAAA;MACAJ,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAG,mBAAA;MACAL,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;IACAI,iBAAA;MACAN,IAAA,EAAAO,MAAA;MACAL,OAAA;IACA;IACAM,gBAAA;MACAR,IAAA,EAAAO,MAAA;MACAL,OAAA;IACA;IACAO,cAAA;MACAT,IAAA,EAAAO,MAAA;MACAL,OAAA;IACA;IACAQ,eAAA;MACAV,IAAA,EAAAO,MAAA;MACAL,OAAA;IACA;EACA;EACAS,QAAA;IACAC,cAAA,WAAAA,eAAA;MACA;MACA,IAAAC,KAAA;MACA,IAAAC,KAAA,GAAAC,MAAA,CAAAC,UAAA;MACA,IAAAC,MAAA,GAAAF,M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