添加轮播跳转和添加v-html前的富文本类名

This commit is contained in:
熊丽君
2021-08-23 18:06:56 +08:00
parent 17aa1285a9
commit 0ee2a12ce0
2 changed files with 9 additions and 8 deletions

View File

@ -6,14 +6,7 @@
<!-- 轮播图 --> <!-- 轮播图 -->
<el-carousel height="345px" trigger="click"> <el-carousel height="345px" trigger="click">
<el-carousel-item v-for="item in bannerList" :key="item.id"> <el-carousel-item v-for="item in bannerList" :key="item.id">
<!-- <router-link
:to="{
path: item.url
}"
target="_blank"
> -->
<img :src="item.pic" alt="" @click="handlePage(item.url)" /> <img :src="item.pic" alt="" @click="handlePage(item.url)" />
<!-- </router-link> -->
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
<!-- 政策解读 --> <!-- 政策解读 -->
@ -477,6 +470,14 @@ export default {
.banner { .banner {
width: 614px; width: 614px;
margin-right: 20px; margin-right: 20px;
.el-carousel {
.el-carousel__item {
img {
width: 100%;
height: 100%;
}
}
}
/deep/.el-carousel__button { /deep/.el-carousel__button {
width: 8px; width: 8px;
height: 8px; height: 8px;

View File

@ -78,7 +78,7 @@
</span> </span>
</div> </div>
<!-- <div v-html="formData.text"></div> --> <!-- <div v-html="formData.text"></div> -->
<div id="text"> <div id="text" class="ql-editor">
<!-- <editor v-model="formData.text" :min-height="192" /> --> <!-- <editor v-model="formData.text" :min-height="192" /> -->
<div v-html="formData.text" /> <div v-html="formData.text" />
</div> </div>