| 12345678910111213141516171819202122232425262728293031323334 |
- <template>
- <el-dialog
- :visible.sync="isShowImageDialog"
- @closed="clearImg"
- >
- <el-carousel indicator-position="outside" height="600px">
- <!-- <el-carousel-item v-for="src in imgs"> -->
- <el-carousel-item>
- <img :src="imgs" style="max-width: 100%;max-height: 100%;display: block; margin: 0 auto;"/>
- </el-carousel-item>
- </el-carousel>
- </el-dialog>
- </template>
-
- <script>
- export default {
- name: 'ImgPreview',
- data() {
- return {
- imgs: '',
- isShowImageDialog: false
- }
- },
- methods: {
- clearImg() {
- this.imgs = null
- }
- }
- }
- </script>
-
- <style scoped>
-
- </style>
|