Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
fa0c9308
Commit
fa0c9308
authored
Oct 19, 2020
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决j-image-upload图片组件单张图片详情回显空白 #1810
parent
708aa54f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
24 deletions
+35
-24
ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue
+35
-24
No files found.
ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue
View file @
fa0c9308
<
template
>
<
template
>
<a-upload
<div
class=
"img"
>
name=
"file"
<a-upload
listType=
"picture-card"
name=
"file"
:multiple=
"isMultiple"
listType=
"picture-card"
:action=
"uploadAction"
:multiple=
"isMultiple"
:headers=
"headers"
:action=
"uploadAction"
:data=
"
{biz:bizPath}"
:headers=
"headers"
:fileList="fileList"
:data=
"
{biz:bizPath}"
:beforeUpload="beforeUpload"
:fileList="fileList"
:disabled="disabled"
:beforeUpload="beforeUpload"
:isMultiple="isMultiple"
:disabled="disabled"
:showUploadList="isMultiple"
:isMultiple="isMultiple"
@change="handleChange"
:showUploadList="isMultiple"
@preview="handlePreview">
@change="handleChange"
<img
v-if=
"!isMultiple && picUrl"
:src=
"getAvatarView()"
style=
"height:104px;max-width:300px"
/>
@preview="handlePreview"
<div
v-else
>
:class="!isMultiple?'imgupload':''">
<a-icon
:type=
"uploadLoading ? 'loading' : 'plus'"
/>
<img
v-if=
"!isMultiple && picUrl"
:src=
"getAvatarView()"
style=
"height:104px;max-width:300px"
/>
<div
class=
"ant-upload-text"
>
{{
text
}}
</div>
<div
v-else
class=
"iconp"
>
</div>
<a-icon
:type=
"uploadLoading ? 'loading' : 'plus'"
/>
<a-modal
:visible=
"previewVisible"
:footer=
"null"
@
cancel=
"handleCancel()"
>
<div
class=
"ant-upload-text"
>
{{
text
}}
</div>
<img
alt=
"example"
style=
"width: 100%"
:src=
"previewImage"
/>
</div>
</a-modal>
<a-modal
:visible=
"previewVisible"
:footer=
"null"
@
cancel=
"handleCancel()"
>
</a-upload>
<img
alt=
"example"
style=
"width: 100%"
:src=
"previewImage"
/>
</a-modal>
</a-upload>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -206,5 +209,12 @@
...
@@ -206,5 +209,12 @@
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
/* update--begin--autor:lvdandan-----date:20201016------for:j-image-upload图片组件单张图片详情回显空白
* https://github.com/zhangdaiscott/jeecg-boot/issues/1810
* https://github.com/zhangdaiscott/jeecg-boot/issues/1779
*/
/
deep
/
.imgupload
.ant-upload-select
{
display
:
block
}
/
deep
/
.imgupload
.ant-upload.ant-upload-select-picture-card
{
width
:
120px
;
height
:
120px
;}
/
deep
/
.imgupload
.iconp
{
padding
:
32px
;}
/* update--end--autor:lvdandan-----date:20201016------for:j-image-upload图片组件单张图片详情回显空白*/
</
style
>
</
style
>
\ No newline at end of file
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