You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.5 KiB

{"remainingRequest":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/nodejs/codewhy/src/views/home/childComps/HomeSwiper.vue?vue&type=script&lang=js&","dependencies":[{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/src/views/home/childComps/HomeSwiper.vue","mtime":1607936016640},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCB7U3dpcGVyLCBTd2lwZXJJdGVtfSBmcm9tICJAL2NvbXBvbmVudHMvY29tbW9uL3N3aXBlci9pbmRleCIKZXhwb3J0IGRlZmF1bHQgewogIG5hbWU6ICJIb21lU3dpcGVyIiwKICBjb21wb25lbnRzOnsKICAgIFN3aXBlciwKICAgIFN3aXBlckl0ZW0KICB9LAogIHByb3BzOnsKICAgIGJhbm5lcnM6ewogICAgICB0eXBlOkFycmF5LAogICAgICBkZWZhdWx0KCl7CiAgICAgICAgcmV0dXJuW10KICAgICAgfQogICAgfQogIH0sCiAgZGF0YSgpewogICAgcmV0dXJuIHsKICAgICAgaXNMb2FkOmZhbHNlCiAgICB9CiAgfSwKICBtZXRob2RzOnsKICAgIGltYWdlTG9hZCgpewogICAgICBpZighdGhpcy5pc0xvYWQpIHsKICAgICAgICB0aGlzLiRlbWl0KCdzd2lwZXJJbWFnZUxvYWQnKQogICAgICAgIHRoaXMuaXNMb2FkPXRydWUKICAgICAgfQogICAgfQogIH0KfQo="},{"version":3,"sources":["HomeSwiper.vue"],"names":[],"mappings":";;;;;;;;;;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"HomeSwiper.vue","sourceRoot":"src/views/home/childComps","sourcesContent":["<template>\n <swiper>\n <swiperItem v-for=\"item in banners\" :key=\"item.link\">\n <a :href=\"item.link\" >\n <img :src=\"item.image\" alt=\"\" @load=\"imageLoad\">\n </a>\n </swiperItem>\n </swiper>\n</template>\n\n<script>\nimport {Swiper, SwiperItem} from \"@/components/common/swiper/index\"\nexport default {\n name: \"HomeSwiper\",\n components:{\n Swiper,\n SwiperItem\n },\n props:{\n banners:{\n type:Array,\n default(){\n return[]\n }\n }\n },\n data(){\n return {\n isLoad:false\n }\n },\n methods:{\n imageLoad(){\n if(!this.isLoad) {\n this.$emit('swiperImageLoad')\n this.isLoad=true\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n"]}]}