<template>
  <el-dialog title="标签预览" :visible.sync="visable" width="70%">
    <div>
      <img v-for="item in list" :key="Math.random()" :src="item">
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visable = false">取 消</el-button>
      <el-button type="primary" @click="visable = false">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>

export default {
  props: {
    list: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      visable: false
    }
  }
}
</script>
