Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
e7d85dab
Commit
e7d85dab
authored
Nov 21, 2019
by
Junling Bu
Browse files
feat[litemall-admin]: 在意见反馈和商品评论页面使用el-image组件,可以放大。
parent
9810e07f
Changes
3
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/main.js
View file @
e7d85dab
...
...
@@ -21,8 +21,11 @@ import * as filters from './filters' // global filters
import
permission
from
'
@/directive/permission/index.js
'
// 权限判断指令
import
Print
from
'
@/utils/print
'
// 打印
import
'
viewerjs/dist/viewer.css
'
import
Viewer
from
'
v-viewer
'
Vue
.
use
(
Print
)
Vue
.
use
(
Viewer
)
Vue
.
use
(
Element
,
{
size
:
Cookies
.
get
(
'
size
'
)
||
'
medium
'
// set element-ui default size
...
...
litemall-admin/src/views/goods/comment.vue
View file @
e7d85dab
...
...
@@ -22,7 +22,7 @@
<el-table-column
align=
"center"
label=
"评论图片"
prop=
"picUrls"
>
<template
slot-scope=
"scope"
>
<
img
v-for=
"item in scope.row.picUrls"
:key=
"item"
:src=
"item"
width=
"40"
>
<
el-image
v-for=
"item in scope.row.picUrls"
:key=
"item"
:src=
"item"
:preview-src-list=
"scope.row.picUrls"
:lazy=
"true"
style=
"width: 40px; height: 40px; margin-right: 5px;"
/
>
</
template
>
</el-table-column>
...
...
litemall-admin/src/views/user/feedback.vue
View file @
e7d85dab
...
...
@@ -24,7 +24,7 @@
<el-table-column
align=
"center"
label=
"反馈图片"
prop=
"picUrls"
>
<template
slot-scope=
"scope"
>
<
img
v-for=
"item in scope.row.picUrls"
:key=
"item"
:src=
"item"
width=
"40"
>
<
el-image
v-for=
"item in scope.row.picUrls"
:key=
"item"
:src=
"item"
:preview-src-list=
"scope.row.picUrls"
:lazy=
"true"
style=
"width: 40px; height: 40px; margin-right: 5px;"
/
>
</
template
>
</el-table-column>
...
...
Write
Preview
Supports
Markdown
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