Commit 088f0207 by MichaelJier

fix

1. 修复在服务端渲染富文本photoswipe过长的问题
parent 648da4f0
<template>
<div class="imageText ql-container ql-snow">
<div class="ql-editor" v-html="menuInfo" @click="getpreview($event)"></div>
<span v-if="showImg">
<div v-for="(item, index) in imageArr" :key="index" :data-index="item" v-show="false" ref="showImg">
<img v-photoswipe="{ group: 'imageText' }" :src="item"/>
</div>
</span>
</div>
</template>
......@@ -16,6 +18,14 @@ export default {
props: {
menuInfo: {}
},
data() {
return {
showImg: false
}
},
mounted() {
this.showImg = true
},
computed: {
imageArr() {
if (!this.menuInfo) return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment