[WIP] Добавил возможность просмотра фото
This commit is contained in:
33
src/components/base/BaseModalShowingPicture.vue
Normal file
33
src/components/base/BaseModalShowingPicture.vue
Normal file
@@ -0,0 +1,33 @@
|
||||
<template lang="pug">
|
||||
base-modal(
|
||||
v-model="value",
|
||||
hide-header,
|
||||
default-padding
|
||||
)
|
||||
.wrapper.flex.relative
|
||||
img.w-full.h-full(:src="picture")
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { v_model } from "@/shared/mixins/v-model";
|
||||
import BaseModal from "@/components/base/BaseModal.vue";
|
||||
|
||||
export default {
|
||||
name: "BaseModalShowingPicture",
|
||||
components: { BaseModal },
|
||||
mixins: [v_model],
|
||||
props: {
|
||||
pictureId: Number,
|
||||
picture: String,
|
||||
listPicture: Array,
|
||||
index: Number,
|
||||
data: Array,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
.wrapper
|
||||
width: 640px
|
||||
height: 785px
|
||||
</style>
|
||||
Reference in New Issue
Block a user