pis类名修改避免污染
This commit is contained in:
parent
b94acfb533
commit
be0a8cc9da
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="content" :class="{ animation: animation }" :style="`transform: translateX(-${currentIndex}00%)`">
|
<div class="slidecontent" :class="{ animation: animation }" :style="`transform: translateX(-${currentIndex}00%)`">
|
||||||
<template v-for="(path, idx) in _paths">
|
<template v-for="(path, idx) in _paths">
|
||||||
<img class="img" :src="idx - currentIndex < 3 ? `${prefix}${path}` : ''" :key="`${path}${idx}`" />
|
<img class="img" :src="idx - currentIndex < 3 ? `${prefix}${path}` : ''" :key="`${path}${idx}`" />
|
||||||
</template>
|
</template>
|
||||||
@ -76,7 +76,7 @@ export default {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
.content {
|
.slidecontent {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
.img {
|
.img {
|
||||||
|
Loading…
Reference in New Issue
Block a user