Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
088f0207
authored
Feb 23, 2021
by
MichaelJier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1. 修复在服务端渲染富文本photoswipe过长的问题
parent
648da4f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
components/modules/menuBox/menuClass/imageText.vue
+10
-0
No files found.
components/modules/menuBox/menuClass/imageText.vue
View file @
088f0207
<
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment