dailog.vue
717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<div>
<el-dialog
v-model="show" :title="language==0?'详情':'Details'" :close-on-click-modal="true" width="80%">
<div class="box-Dialog">
<div v-html="content"/>
</div>
</el-dialog>
</div>
</template>
<script setup>
import {ref} from 'vue'
import {useStorage} from "@vueuse/core/index";
const language= useStorage('language',0)
const show=ref(false)
const content=ref()
function open(row){
content.value=row
show.value=true
}
defineExpose({
open
})
</script>
<style lang="scss" scoped>
.box-Dialog{
display: flex;
justify-content: center;
//overflow: hidden;
overflow-x: scroll ;
overflow-y: hidden ;
img{max-width: 100%!important;}
}
</style>