pis类名修改避免污染

This commit is contained in:
Yuan 2022-09-28 14:36:15 +08:00
parent f2e26ac289
commit b94acfb533

View File

@ -1,6 +1,6 @@
<template>
<div class="wrapper">
<div :class="{ content: true, animation: animation }" :style="`transform: translateX(-${currentIndex}00%)`">
<div class="content" :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>