Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
easyUI
hls-easy-ui
Commits
9cc2e6de
Commit
9cc2e6de
authored
Feb 25, 2021
by
nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片预览原图
parent
082b57f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
showpicture.vue
packages/components/ShowPicture/showpicture.vue
+13
-3
hlsPopup.vue
src/pages/hlsPopup.vue
+8
-11
hlsPopup.js
src/scripts/hlsPopup.js
+0
-1
No files found.
packages/components/ShowPicture/showpicture.vue
View file @
9cc2e6de
...
...
@@ -26,7 +26,7 @@
</swipe>
</div>
<div
v-if=
"imgList.length"
class=
"indicators"
>
{{
startPosition
+
1
}}
/
{{
imgList
.
length
}}
</div>
<div
v-show=
"
imgOriginalUrl && percent!=100
"
class=
"img-origin"
@
click=
"showOriginPic(imgOriginalUrl,startPosition)"
>
<div
v-show=
"
showDownload
"
class=
"img-origin"
@
click=
"showOriginPic(imgOriginalUrl,startPosition)"
>
<div
class=
"word"
>
{{
word
}}
</div>
<div
v-show=
"percent"
:style=
"
{width:percent+'%'}" class="progress"/>
</div>
...
...
@@ -189,7 +189,7 @@
</
style
>
<
script
>
import
{
isFunction
}
from
'../../common/utils'
import
{
isFunction
,
isDef
}
from
'../../common/utils'
import
assign
from
'object-assign'
import
SwipeItem
from
'../Swipe/SwipeItem'
import
Swipe
from
'../Swipe/index'
...
...
@@ -222,8 +222,11 @@ export default {
percent
:
0
,
original
:
'查看原图'
,
word
:
''
,
showDownload
:
false
,
}
},
computed
:
{
},
mounted
()
{
this
.
$el
.
setAttribute
(
'vum-show-picture'
,
''
)
...
...
@@ -246,7 +249,7 @@ export default {
this
.
width
=
_options
.
width
this
.
imgList
=
_options
.
imgList
||
[]
this
.
startPosition
=
_options
.
startPosition
||
0
this
.
percent
=
_options
.
percent
//
this.percent = _options.percent
this
.
imgOriginalUrl
=
_options
.
imgOriginalUrl
this
.
loadSuccess
=
_options
.
loadSuccess
this
.
state
=
1
...
...
@@ -267,6 +270,9 @@ export default {
vm
.
imgOriginalUrl
=
vm
.
imgList
[
vm
.
startPosition
].
imgOriginalUrl
vm
.
percent
=
vm
.
imgList
[
vm
.
startPosition
].
percent
}
if
(
isDef
(
vm
.
imgOriginalUrl
))
{
vm
.
showDownload
=
vm
.
imgOriginalUrl
.
indexOf
(
'blob'
)
===
-
1
}
},
hide
()
{
...
...
@@ -349,6 +355,10 @@ export default {
vm
.
imgOriginalUrl
=
vm
.
imgList
[
index
].
imgOriginalUrl
vm
.
percent
=
vm
.
imgList
[
index
].
percent
vm
.
word
=
vm
.
imgList
[
index
].
word
vm
.
showDownload
=
false
if
(
isDef
(
vm
.
imgOriginalUrl
))
{
vm
.
showDownload
=
vm
.
imgOriginalUrl
.
indexOf
(
'blob'
)
===
-
1
}
},
sharePicture
()
{
...
...
src/pages/hlsPopup.vue
View file @
9cc2e6de
...
...
@@ -298,19 +298,16 @@ export default {
imgList
:
[
{
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
2982604
,
percent
:
0
,
// imgOriginalUrl: 'http://hlsapp.hand-china.com/file/orign.png',
// imgSize: 2982604,
},
{
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
2282604
,
percent
:
0
,
// imgOriginalUrl: 'http://hlsapp.hand-china.com/file/orign.png',
// imgSize: 2282604,
},
{
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
3282604
,
percent
:
0
,
// imgOriginalUrl: 'http://hlsapp.hand-china.com/file/orign.png',
// imgSize: 3282604,
},
],
}
...
...
@@ -458,10 +455,10 @@ export default {
imgOriginalUrl: 'http://hlsapp.hand-china.com/file/orign.png',
imgSize: 2882604, */
imgList
:
vm
.
imgList
,
loadSuccess
:
(
src
)
=>
{
/*
loadSuccess: (src) => {
vm.imgList[src.index]['percent'] = src.percent
vm.imgList[src.index]['imgOriginalUrl'] = src.localUrl
},
},
*/
})
},
selectListMultiple
()
{
...
...
src/scripts/hlsPopup.js
View file @
9cc2e6de
...
...
@@ -252,7 +252,6 @@ export default {
ShowPicturePlugin
.
show
({
imgUrl
:
imgObject
.
imgUrl
,
imgOriginalUrl
:
imgObject
.
imgOriginalUrl
,
percent
:
imgObject
.
imgOriginalUrl
||
0
,
imgSize
:
imgObject
.
imgSize
,
width
:
imgObject
.
width
,
imgList
:
imgObject
.
imgList
||
[],
...
...
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