File was renamed from src/pages/search/components/cardWindow.vue |
| | |
| | | <model-card :data="item.list[0]"></model-card> |
| | | </div> |
| | | <el-carousel v-else height="calc(100% - 50px);" :autoplay="false"> |
| | | <el-carousel-item |
| | | v-for="(subitem, subindex) in item.list" |
| | | :key="subindex" |
| | | height="100%" |
| | | > |
| | | <el-carousel-item v-for="(subitem, subindex) in item.list" :key="subindex" height="100%"> |
| | | <model-card |
| | | :data="subitem" |
| | | :activeName="type" |
| | |
| | | defaultWidth: 600 |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getCenter(); |
| | | window.onresize = () => { |
| | | return (() => { |
| | | this.getCenter(); |
| | | })(); |
| | | }; |
| | | }, |
| | | methods: { |
| | | getCenter() { |
| | | this.center = { |
| | | x: document.documentElement.clientWidth / 2 - 250, |
| | | y: document.documentElement.clientHeight / 2 - 200 |
| | | }; |
| | | }, |
| | | resizeWidth(w) { |
| | | this.defaultWidth = w |
| | | }, |