Commit c9b621dc authored by beisir's avatar beisir

feat:update

parent ca1e1cac
...@@ -11971,12 +11971,11 @@ ...@@ -11971,12 +11971,11 @@
} }
}, },
"swiper": { "swiper": {
"version": "5.2.0", "version": "4.0.7",
"resolved": "https://registry.npmmirror.com/swiper/download/swiper-5.2.0.tgz?cache=0&sync_timestamp=1632899438741&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fswiper%2Fdownload%2Fswiper-5.2.0.tgz", "resolved": "https://registry.npmmirror.com/swiper/download/swiper-4.0.7.tgz?cache=0&sync_timestamp=1632899438741&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fswiper%2Fdownload%2Fswiper-4.0.7.tgz",
"integrity": "sha1-g0qvYFPTJLy2BXi6ULti9UNC+co=", "integrity": "sha1-iRdcKiPYZiLtqDRHQMJKNwGmsnA=",
"requires": { "requires": {
"dom7": "^2.1.3", "dom7": "^2.0.1"
"ssr-window": "^1.0.1"
} }
}, },
"table": { "table": {
...@@ -12788,9 +12787,24 @@ ...@@ -12788,9 +12787,24 @@
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==" "integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
}, },
"vue-awesome-swiper": { "vue-awesome-swiper": {
"version": "4.1.1", "version": "3.1.3",
"resolved": "https://registry.npm.taobao.org/vue-awesome-swiper/download/vue-awesome-swiper-4.1.1.tgz", "resolved": "https://registry.npm.taobao.org/vue-awesome-swiper/download/vue-awesome-swiper-3.1.3.tgz",
"integrity": "sha1-j3qyIa0AMCHXVrhqphj0KZJJAP4=" "integrity": "sha1-BVALUB/7P+yb9+uZhbz0roNg7Z4=",
"requires": {
"object-assign": "^4.1.1",
"swiper": "^4.0.7"
},
"dependencies": {
"swiper": {
"version": "4.5.1",
"resolved": "https://registry.npmmirror.com/swiper/download/swiper-4.5.1.tgz?cache=0&sync_timestamp=1632899438741&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fswiper%2Fdownload%2Fswiper-4.5.1.tgz",
"integrity": "sha1-7UOZjngM60eGEAecjSP9Ql7KY28=",
"requires": {
"dom7": "^2.1.3",
"ssr-window": "^1.0.1"
}
}
}
}, },
"vue-eslint-parser": { "vue-eslint-parser": {
"version": "7.1.0", "version": "7.1.0",
......
...@@ -22,14 +22,15 @@ ...@@ -22,14 +22,15 @@
</div> </div>
</template> </template>
<script> <script>
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'; import { swiper, swiperSlide } from 'vue-awesome-swiper';
import 'swiper/css/swiper.css'; import 'swiper/dist/css/swiper.css';
import Img2Thumb from '@/filters/img2Thumb.filter'; import Img2Thumb from '@/filters/img2Thumb.filter';
export default { export default {
name: 'AvatorSwiper', name: 'AvatorSwiper',
components: { components: {
Swiper, swiper,
SwiperSlide swiperSlide
}, },
filters: { filters: {
Img2Thumb Img2Thumb
...@@ -45,7 +46,7 @@ export default { ...@@ -45,7 +46,7 @@ export default {
data() { data() {
const vm = this; const vm = this;
const isLoop = vm.avatorData.length < 9 ? false : true; const isLoop = vm.avatorData.length < 9 ? false : true;
const autoplay = isLoop ? { delay: 5000 } : false; const autoplay = isLoop ? { delay: 3000 } : false;
return { return {
timer: null, timer: null,
isLoop, isLoop,
...@@ -57,10 +58,10 @@ export default { ...@@ -57,10 +58,10 @@ export default {
initialSlide: 0, initialSlide: 0,
slidesPerView: 9, slidesPerView: 9,
spaceBetween: 4, spaceBetween: 4,
speed: 600, cssMode: true,
speed: 800,
centeredSlides: true, centeredSlides: true,
centeredSlidesBounds: true, centeredSlidesBounds: true,
// watchSlidesProgress: false,
allowTouchMove: false, allowTouchMove: false,
autoplay, autoplay,
on: { on: {
...@@ -155,14 +156,15 @@ export default { ...@@ -155,14 +156,15 @@ export default {
} }
.ani-left { .ani-left {
transform-origin: center; transform-origin: center;
animation: bigToSamll 0.6s linear; animation: bigToSamll 0.8s linear;
} }
.ani-right { .ani-right {
transform-origin: center; transform-origin: center;
animation: samllToBig 0.6s linear; animation: samllToBig 0.8s linear;
} }
.ani-opt { .ani-opt {
opacity: 0; opacity: 0;
transition: 0.1s linear;
} }
.avator_left, .avator_left,
.avator_right { .avator_right {
......
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
</div> </div>
</template> </template>
<script> <script>
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'; import { swiper, swiperSlide } from 'vue-awesome-swiper';
import 'swiper/css/swiper.css'; import 'swiper/dist/css/swiper.css';
export default { export default {
name: 'GroupSwiper', name: 'GroupSwiper',
components: { components: {
Swiper, swiper,
SwiperSlide swiperSlide
}, },
props: { props: {
bgColor: { bgColor: {
...@@ -58,6 +58,7 @@ export default { ...@@ -58,6 +58,7 @@ export default {
initialSlide: 0, initialSlide: 0,
slidesPerView: 7, slidesPerView: 7,
// spaceBetween: 8, // spaceBetween: 8,
// cssMode: true,
speed: 600, speed: 600,
centeredSlides: true, centeredSlides: true,
centeredSlidesBounds: true, centeredSlidesBounds: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment