travel/admin/node_modules/.cache/babel-loader/79328b2735a24fe4d9d60224fae...

1 line
8.6 KiB
JSON

{"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\\layout\\components\\Sidebar\\SidebarItem.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\layout\\components\\Sidebar\\SidebarItem.vue","mtime":1718070786026},{"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:aW1wb3J0IF9vYmplY3RTcHJlYWQgZnJvbSAiRDovcGhwc3R1ZHlfcHJvL1dXVy90cmF2ZWwvYWRtaW4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvZXNtL29iamVjdFNwcmVhZDIuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5hcnJheS5maWx0ZXIuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5vYmplY3QudG8tc3RyaW5nLmpzIjsKLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8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ICAgIH0pOwogICAgICAgIHJldHVybiB0cnVlOwogICAgICB9CiAgICAgIHJldHVybiBmYWxzZTsKICAgIH0sCiAgICByZXNvbHZlUGF0aDogZnVuY3Rpb24gcmVzb2x2ZVBhdGgocm91dGVQYXRoKSB7CiAgICAgIGlmIChpc0V4dGVybmFsKHJvdXRlUGF0aCkpIHsKICAgICAgICByZXR1cm4gcm91dGVQYXRoOwogICAgICB9CiAgICAgIGlmIChpc0V4dGVybmFsKHRoaXMuYmFzZVBhdGgpKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuYmFzZVBhdGg7CiAgICAgIH0KICAgICAgcmV0dXJuIHBhdGgucmVzb2x2ZSh0aGlzLmJhc2VQYXRoLCByb3V0ZVBhdGgpOwogICAgfQogIH0KfTs="},{"version":3,"names":["path","isExternal","Item","AppLink","FixiOSBug","name","components","mixins","props","item","type","Object","required","isNest","Boolean","default","basePath","String","data","onlyOneChild","methods","hasOneShowingChild","_this","children","arguments","length","undefined","parent","showingChildren","filter","hidden","_objectSpread","noShowingChildren","resolvePath","routePath","resolve"],"sources":["src/layout/components/Sidebar/SidebarItem.vue"],"sourcesContent":["<template>\r\n <div v-if=\"!item.hidden\">\r\n <template v-if=\"hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow\">\r\n <app-link v-if=\"onlyOneChild.meta\" :to=\"resolvePath(onlyOneChild.path)\">\r\n <el-menu-item :index=\"resolvePath(onlyOneChild.path)\" :class=\"{'submenu-title-noDropdown':!isNest}\">\r\n <item :icon=\"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)\" :title=\"onlyOneChild.meta.title\" />\r\n </el-menu-item>\r\n </app-link>\r\n </template>\r\n\r\n <el-submenu v-else ref=\"subMenu\" :index=\"resolvePath(item.path)\" popper-append-to-body>\r\n <template slot=\"title\">\r\n <item v-if=\"item.meta\" :icon=\"item.meta && item.meta.icon\" :title=\"item.meta.title\" />\r\n </template>\r\n <sidebar-item\r\n v-for=\"child in item.children\"\r\n :key=\"child.path\"\r\n :is-nest=\"true\"\r\n :item=\"child\"\r\n :base-path=\"resolvePath(child.path)\"\r\n class=\"nest-menu\"\r\n />\r\n </el-submenu>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport path from 'path'\r\nimport { isExternal } from '@/utils/validate'\r\nimport Item from './Item'\r\nimport AppLink from './Link'\r\nimport FixiOSBug from './FixiOSBug'\r\n\r\nexport default {\r\n name: 'SidebarItem',\r\n components: { Item, AppLink },\r\n mixins: [FixiOSBug],\r\n props: {\r\n // route object\r\n item: {\r\n type: Object,\r\n required: true\r\n },\r\n isNest: {\r\n type: Boolean,\r\n default: false\r\n },\r\n basePath: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n // To fix https://github.com/PanJiaChen/vue-admin-template/issues/237\r\n // TODO: refactor with render function\r\n this.onlyOneChild = null\r\n return {}\r\n },\r\n methods: {\r\n hasOneShowingChild(children = [], parent) {\r\n const showingChildren = children.filter(item => {\r\n if (item.hidden) {\r\n return false\r\n } else {\r\n // Temp set(will be used if only has one showing child)\r\n this.onlyOneChild = item\r\n return true\r\n }\r\n })\r\n\r\n // When there is only one child router, the child router is displayed by default\r\n if (showingChildren.length === 1) {\r\n return true\r\n }\r\n\r\n // Show parent if there are no child router to display\r\n if (showingChildren.length === 0) {\r\n this.onlyOneChild = { ... parent, path: '', noShowingChildren: true }\r\n return true\r\n }\r\n\r\n return false\r\n },\r\n resolvePath(routePath) {\r\n if (isExternal(routePath)) {\r\n return routePath\r\n }\r\n if (isExternal(this.basePath)) {\r\n return this.basePath\r\n }\r\n return path.resolve(this.basePath, routePath)\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAAA,IAAA;AACA,SAAAC,UAAA;AACA,OAAAC,IAAA;AACA,OAAAC,OAAA;AACA,OAAAC,SAAA;AAEA;EACAC,IAAA;EACAC,UAAA;IAAAJ,IA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