This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Fixed IE11 issues with uploader
pull/170/head
Michael Olund
5 years ago
parent
accf99109d
commit
ddc1e42cf3
3 changed files
with
15 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
vue/src/components/Uploader/Image.vue
+1
-1
vue/src/components/Uploader/ModalPreview.vue
+13
-0
vue/src/components/Uploader/Uploader.vue
+ 1
- 2
vue/src/components/Uploader/Image.vue
View File
@ -101,8 +101,7 @@ export default {
&
:
:
after
{
font
-
family
:
FontAwesome
;
content
:
"\f06e"
;
position
:
absolute
;
left
:
58
px
;
margin
:
auto
;
font
-
size
:
43
px
;
color
:
transparent
;
}
+ 1
- 1
vue/src/components/Uploader/ModalPreview.vue
View File
@ -1,6 +1,6 @@
<
template
>
<
modal
v-model
="showModal" class="image-preview-modal" ref="modal" :footer="false" @hide="$emit('close')"
>
<
img
v-if
="file.objectURL && !file.error && file.type !== 'application/pdf'" :src="file.objectURL" :style="modalImageStyle
" :data-rotate="rotateVal
"
>
<
img
v-if
="file.objectURL && !file.error && file.type !== 'application/pdf'" :src="file.objectURL"
:style
="modalImageStyle"
>
<
/
modal
>
<
/
template
>
+ 13
- 0
vue/src/components/Uploader/Uploader.vue
View File
@ -392,3 +392,16 @@ export default {
}
}
<
/
style
>
<
style
type
=
"css"
>
/* override vue-upload-component styles for IE11 issues */
.
file
-
uploads
-
html5
input
[
type
=
file
]
{
height
:
0
!
important
;
padding
:
0
!
important
;
border
:
none
!
important
;
}
.
file
-
uploads
-
html5
label
{
display
:
inline
;
}
<
/
style
>
Write
Preview
Loading…
Cancel
Save