mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 18:00:40 +00:00
Move item from gallery fix
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
:action="$t('actions.download')"
|
||||
/>
|
||||
<ToolbarButton
|
||||
v-if="!$isThisLocation(['public'])"
|
||||
source="share"
|
||||
:class="{ 'is-inactive': canShareInView }"
|
||||
:action="$t('actions.share')"
|
||||
@@ -93,6 +92,7 @@ export default {
|
||||
loaded: false,
|
||||
sizeWidth: "",
|
||||
sizeHeight: "",
|
||||
showingFile: "",
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -143,9 +143,16 @@ export default {
|
||||
this.$store.commit("GET_FILEINFO_DETAIL", this.currentFile);
|
||||
this.sliderFile = [];
|
||||
this.filteredFiles();
|
||||
this.$forceUpdate();
|
||||
}
|
||||
}
|
||||
},
|
||||
data(newValue, oldValue) {
|
||||
if (newValue != oldValue) {
|
||||
this.sliderFile = [];
|
||||
this.filteredFiles();
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
imageSizing() {
|
||||
@@ -175,7 +182,7 @@ export default {
|
||||
win.print();
|
||||
},
|
||||
filteredFiles() {
|
||||
this.data.forEach((element) => {
|
||||
this.data.filter((element) => {
|
||||
if (element.type == this.fileInfoDetail.type) {
|
||||
this.sliderFile.push(element);
|
||||
}
|
||||
@@ -339,14 +346,15 @@ export default {
|
||||
overflow: hidden;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: white;
|
||||
.file-wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
.file {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user