添加轮播跳转和添加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-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)" />
<!-- </router-link> -->
</el-carousel-item>
</el-carousel>
<!-- 政策解读 -->
@ -477,6 +470,14 @@ export default {
.banner {
width: 614px;
margin-right: 20px;
.el-carousel {
.el-carousel__item {
img {
width: 100%;
height: 100%;
}
}
}
/deep/.el-carousel__button {
width: 8px;
height: 8px;

View File

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