{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\tabbar\\TabBarItem.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\tabbar\\TabBarItem.vue","mtime":1667327529700},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nexport default {\r\n name: \"TabBarItem\",\r\n props:{\r\n link: String,\r\n activeColor:{\r\n type: String,\r\n }\r\n },\r\n data(){\r\n return{\r\n }\r\n },\r\n computed:{\r\n isActive(){\r\n // 当前活跃路由路径跟传过来的是否一致\r\n // 一致返回true\r\n return this.$route.path.includes(this.link);\r\n },\r\n activeStyle(){\r\n return this.isActive ? {color: this.activeColor} : {};\r\n }\r\n },\r\n methods:{\r\n itemClick(){\r\n // 当前活跃路由路径跟传过来的不一致时才进行路由跳转\r\n if(this.$route.path != this.link){\r\n this.$router.push(this.link);\r\n }\r\n }\r\n }\r\n}\r\n",null]}