添加轮播跳转和添加v-html前的富文本类名
This commit is contained in:
@ -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;
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user