pis类名修改避免污染

This commit is contained in:
Yuan 2022-09-28 14:37:52 +08:00
parent b94acfb533
commit be0a8cc9da

View File

@ -1,6 +1,6 @@
<template>
<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">
<img class="img" :src="idx - currentIndex < 3 ? `${prefix}${path}` : ''" :key="`${path}${idx}`" />
</template>
@ -76,7 +76,7 @@ export default {
height: 100%;
overflow: hidden;
position: relative;
.content {
.slidecontent {
height: 100%;
white-space: nowrap;
.img {