当前位置:网站首页>Swiper horizontal rotation grid
Swiper horizontal rotation grid
2022-06-13 02:02:00 【Little four is a Virgo】
it is to be noted that Version of the problem
package.js
"swiper": "^6.3.5",
"vue-awesome-swiper": "^3.1.3",
mai.js
import VueAwesomeSwiper from 'vue-awesome-swiper'
// import style (>= Swiper 6.x)
import 'swiper/swiper-bundle.css'
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)
vue file
<template>
<div class="teacherR">
<swiper :options="swiperOptions">
<swiper-slide v-for="(item, index) in teacherData"
:key="index">
<ul @click="teacherCourseFn(item)">
<p>
<img :src="item.avatar" />
</p>
<div>
<h4>{
{ item.realName }}</h4>
<li>{
{ item.brief }}</li>
<span @click="teacherCourseFn(item)"> See the course </span>
</div>
</ul></swiper-slide>
</swiper>
</div>
</template>
<script>
// import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/swiper-bundle.css";
import { teacherApi } from "@/api/study/resources.js";
export default {
data() {
return {
swiperOptions: {
slidesPerView: 4, // Show the number
direction: "horizontal",
loop: true,
autoplay: true,
delay: 300,
},
};
},
methods: {
},
};
</script>
<style scoped lang="less">
@import "/swiper/swiper-bundle.css";
.swiper-container {
width: 100%;
height: 100%;
}
.swiper-slide {
text-align: center;
font-size: 18px;
background: #fff;
// height: 200px;
/* Center slide text vertically */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
}
</style>

边栏推荐
- Functional translation
- LabVIEW large project development tools to improve quality
- Vscode configuration header file -- Take opencv and its own header file as an example
- Application circuit and understanding of BAT54C as power supply protection
- LeetCode每日一题——890. 查找和替换模式
- In the third quarter, the revenue and net profit increased "against the trend". What did vatti do right?
- Examples of using the chromium base library
- Cmake has no obvious error after compilation, but prompts that pthread cannot be found
- Why is "iFLYTEK Super Brain 2030 plan" more worthy of expectation than "pure" virtual human
- How do you use your own data to achieve your marketing goals?
猜你喜欢

【Unity】打包WebGL项目遇到的问题及解决记录

Server installation jupyterab and remote login configuration

Vscode configuration header file -- Take opencv and its own header file as an example
![[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] (lighting with library function and register respectively)](/img/f7/b2463d8ffe75113d352cae332046db.jpg)
[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] (lighting with library function and register respectively)

General IP address, account and password of mobile IPv6 optical cat login, and mobile optical cat is in bridging mode

What is Google plus large text ads? How to use it?

dfs与bfs解决宝岛探险

STM32F103 IIC OLED program migration complete engineering code

Matplotlib drawing Chinese garbled code

4、 Improvement of warehousing management function
随机推荐
Delphi implements adding a column of serial number to the CXGRID list
[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] GPIO and register
Sensorless / inductive manufacturing of brushless motor drive board based on stm32
华为设备配置虚拟专用网FRR
Gome's ambition of "folding up" app
移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式
记录:如何解决MultipartFile类的transferTo()上传图片报“系统找不到指定的路径“问题【亲测有效】
回顾ITIL各版本历程,找到企业运维发展的关键点
Restrict cell input type and display format in CXGRID control
Combining strings and numbers using ssstream
10 days based on stm32f401ret6 smart lock project practice day 1 (environment construction and new construction)
【Unity】打包WebGL項目遇到的問題及解决記錄
[pytorch FAQ] numpy:dll load failed while importing_ multiarray_ Umath: the specified module could not be found.
Viewing the ambition of Xiaodu technology from intelligent giant screen TV v86
Using atexit to realize automatic destruct of singleton mode
cin,cin. get(),cin. Summary of the use of getline() and getline()
synchronized下的 i+=2 和 i++ i++执行结果居然不一样
QT realizes mind mapping function (II)
[the 4th day of the 10 day smart lock project based on stm32f401ret6] what is interrupt, interrupt service function, system tick timer
JSON and protobuf Any interchange