1 line
7.1 KiB
Plaintext
1 line
7.1 KiB
Plaintext
{"version":3,"sources":["webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?aebe","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?ae04","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?bb86","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/components/Navbar/index.vue?b623","uni-app:///components/Navbar/index.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACoE;AACL;AAC4B;;;AAG3F;AAC+L;AAC/L,gBAAgB,sMAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;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;AAA4uB,CAAgB,uvBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;ACWhwB;;;;;;;;;;AAUA,+K;;;;;;;;;;AAIA;AACA;AACA,oCACA,SACA,YADA,EAEA,WAFA,EADA,EAKA;AACA,kBADA,EALA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAPA;;AASA,CAVA;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA,GAFA,MAEA;AACA;AACA;;AAEA,CATA,C","file":"components/Navbar/index.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=6e7b2b6e&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./index.scss?vue&type=style&index=0&id=6e7b2b6e&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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 \"6e7b2b6e\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/Navbar/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=6e7b2b6e&scoped=true&\"","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 \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<view class=\"NavBar\" :style=\"{'height':all}\">\r\n\t\t<view class=\"title\" :style=\"{'paddingTop':capsuleTop+'px',height:capsuleHeight+'px'}\">\r\n\t\t\t{{title}}\r\n\t\t\t<image src='../../static/goBack.png' @click=\"handleTo\"></image>\r\n\t\t</view>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive,\r\n\t\tonMounted,\r\n\t\tnextTick,\r\n\t\twatch,\r\n\t\tcomputed,\r\n\t\tdefineEmits,\r\n\t\tdefineProps\r\n\t} from 'vue';\r\n\timport {\r\n\t\tonLoad,\r\n\t\tonShow\r\n\t} from '@dcloudio/uni-app';\r\n\t// const emits = defineEmits(['@handleToLink'])\r\n\t// 获取父组件值、方法\r\n\tconst props = defineProps({\r\n\t\ttitle: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '',\r\n\t\t},\r\n\t\thandleToLink:{//用于自定义跳转\r\n\t\t\ttype:Function\r\n\t\t}\r\n\t})\r\n\t//设备栏高度\r\n\tlet deviceNavHeight = ref()\r\n\t//胶囊顶部距离头部的距离\r\n\tlet capsuleTop = ref()\r\n\t//胶囊底部距离头部的距离\r\n\tlet capsuleBottom = ref()\r\n\t//导航栏高度\r\n\tlet all = ref()\r\n\t//胶囊高度\r\n\tlet capsuleHeight = ref()\r\n\tonLoad(() => {\r\n\t\tuni.getSystemInfo({\r\n\t\t\tsuccess: (res) => {\r\n\t\t\t\tdeviceNavHeight.value = res.statusBarHeight\r\n\t\t\t\tcapsuleTop.value = uni.getMenuButtonBoundingClientRect().top\r\n\t\t\t\tcapsuleBottom.value = uni.getMenuButtonBoundingClientRect().bottom\r\n\t\t\t\tall.value = (capsuleTop.value + capsuleBottom.value - deviceNavHeight.value) + 'px'\r\n\t\t\t\tcapsuleHeight.value = uni.getMenuButtonBoundingClientRect().height\r\n\t\t\t}\r\n\t\t})\r\n\t})\r\n\r\n\t//头部导航跳转\r\n\tconst handleTo = () => {\r\n\t\t// uni.navigateBack()\r\n\t\tconsole.log(props,'props.handleToLink')\r\n\t\tif(props.handleToLink){\r\n\t\t\tprops.handleToLink()\r\n\t\t}else{\r\n\t\t\tuni.navigateBack()\r\n\t\t}\r\n\t\t\r\n\t}\r\n</script>\r\n\r\n<style src=\"./index.scss\" lang=\"scss\" scoped></style>\n"],"sourceRoot":""} |