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