Увеличить главную картинку начало
This commit is contained in:
1 parent
8f86143710
commit
18e8943d25
2 files changed
+19
-17
No files matched your search
@@ -335,17 +335,7 @@
|
|||||||
class="flex-column "
|
class="flex-column "
|
||||||
>
|
>
|
||||||
<v-card class="pa-4 h-100 flex-column d-flex">
|
<v-card class="pa-4 h-100 flex-column d-flex">
|
||||||
<v-row class="flex-grow-0 justify-space-between">
|
<v-row class="flex-grow-0 justify-end">
|
||||||
<v-col class="py-0 flex-grow-0">
|
|
||||||
<v-btn
|
|
||||||
density="compact"
|
|
||||||
variant="text"
|
|
||||||
icon="mdi-cloud-download"
|
|
||||||
@click="downloadimg(galleryimges.img)"
|
|
||||||
|
|
||||||
/>
|
|
||||||
<my-helper :pretext="galleryimges.img"/>
|
|
||||||
</v-col>
|
|
||||||
<v-col class="pa-0 flex-grow-0">
|
<v-col class="pa-0 flex-grow-0">
|
||||||
<v-btn
|
<v-btn
|
||||||
density="compact"
|
density="compact"
|
||||||
@@ -360,6 +350,7 @@
|
|||||||
<v-row>
|
<v-row>
|
||||||
<v-col class="flex-grow-0 align-self-center">
|
<v-col class="flex-grow-0 align-self-center">
|
||||||
<v-btn
|
<v-btn
|
||||||
|
:disabled="newsFull.gallery.length==1"
|
||||||
density="compact"
|
density="compact"
|
||||||
variant="text"
|
variant="text"
|
||||||
icon="mdi-chevron-left"
|
icon="mdi-chevron-left"
|
||||||
@@ -378,6 +369,7 @@
|
|||||||
<v-row>
|
<v-row>
|
||||||
<v-col class="flex-column d-flex align-end align-self-center">
|
<v-col class="flex-column d-flex align-end align-self-center">
|
||||||
<v-btn
|
<v-btn
|
||||||
|
:disabled="newsFull.gallery.length==1"
|
||||||
density="compact"
|
density="compact"
|
||||||
variant="text"
|
variant="text"
|
||||||
icon="mdi-chevron-right"
|
icon="mdi-chevron-right"
|
||||||
@@ -390,6 +382,7 @@
|
|||||||
<v-row class="flex-grow-1 align-self-center d-flex placeIt">
|
<v-row class="flex-grow-1 align-self-center d-flex placeIt">
|
||||||
<v-col class="pa-0">
|
<v-col class="pa-0">
|
||||||
<v-btn
|
<v-btn
|
||||||
|
|
||||||
density="compact"
|
density="compact"
|
||||||
variant="text"
|
variant="text"
|
||||||
:color="heartIco()?'red':'black'"
|
:color="heartIco()?'red':'black'"
|
||||||
@@ -543,14 +536,23 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const downloadimg = (idimg) => {
|
const downloadimg = (idimg) => {
|
||||||
|
console.log(burl+idimg)
|
||||||
|
const link = document.createElement('a');
|
||||||
|
|
||||||
let link = document.createElement("a")
|
// link.href = burl+idimg
|
||||||
|
// link.setAttribute('download', 'file.jpg'); //or any other extension
|
||||||
|
// document.body.appendChild(link);
|
||||||
|
// link.click();
|
||||||
|
|
||||||
link.href = burl+idimg
|
// let link = document.createElement("a")
|
||||||
link.download ='img.jpeg'
|
|
||||||
link.click()
|
// link.href = burl+idimg
|
||||||
console.log(burl, idimg,'22222222222222222');
|
// link.setAttribute("download", "image.jpeg");
|
||||||
link.remove()
|
// document.body.appendChild(link);
|
||||||
|
// link.download ='img.jpeg'
|
||||||
|
// link.download('img.jpeg')
|
||||||
|
// console.log(burl+idimg,'22222222222222222');
|
||||||
|
// link.remove()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user