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
7990eff7
Commit
7990eff7
authored
Mar 31, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JImageUpload组件单张无法预览和删除 #2382
parent
280f8c26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue
+10
-9
No files found.
ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue
View file @
7990eff7
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
:beforeUpload="beforeUpload"
:beforeUpload="beforeUpload"
:disabled="disabled"
:disabled="disabled"
:isMultiple="isMultiple"
:isMultiple="isMultiple"
:showUploadList="isMultiple"
@change="handleChange"
@change="handleChange"
@preview="handlePreview"
@preview="handlePreview"
:class="
!isMultiple?'imgupload':''
">
:class="
[!isMultiple?'imgupload':'', (!isMultiple
&&
picUrl)?'image-upload-single-over':'' ]
">
<div
:style=
"
{'width':(!isMultiple?'104px':'auto'),'height':(!isMultiple?'104px':'auto')}"
>
<div>
<
img
v-if=
"!isMultiple && picUrl"
:src=
"getAvatarView()"
style=
"width:100%;height:100%"
/
>
<
!--
<img
v-if=
"!isMultiple && picUrl"
:src=
"getAvatarView()"
style=
"width:100%;height:100%"
/>
--
>
<div
v-else
class=
"iconp"
>
<div
class=
"iconp"
>
<a-icon
:type=
"uploadLoading ? 'loading' : 'plus'"
/>
<a-icon
:type=
"uploadLoading ? 'loading' : 'plus'"
/>
<div
class=
"ant-upload-text"
>
{{
text
}}
</div>
<div
class=
"ant-upload-text"
>
{{
text
}}
</div>
</div>
</div>
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
path = ''
path = ''
}
}
let arr = [];
let arr = [];
if(!this.isMultiple){
if(!this.isMultiple
&& uploadFiles.length>0
){
arr.push(uploadFiles[uploadFiles.length-1].response.message)
arr.push(uploadFiles[uploadFiles.length-1].response.message)
}else{
}else{
for(let a=0;a<uploadFiles.length;a++){
for(let a=0;a<uploadFiles.length;a++){
...
@@ -231,8 +231,9 @@
...
@@ -231,8 +231,9 @@
* https://github.com/zhangdaiscott/jeecg-boot/issues/1810
* https://github.com/zhangdaiscott/jeecg-boot/issues/1810
* https://github.com/zhangdaiscott/jeecg-boot/issues/1779
* 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
:
20px
;}
/
deep
/
.imgupload
.iconp
{
padding
:
32px
;}
/* update--end--autor:lvdandan-----date:20201016------for:j-image-upload图片组件单张图片详情回显空白*/
/* update--end--autor:lvdandan-----date:20201016------for:j-image-upload图片组件单张图片详情回显空白*/
/
deep
/
.image-upload-single-over
.ant-upload-select
{
display
:
none
}
</
style
>
</
style
>
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