<template>
  <el-dialog
    :title="title"
    :visible="visible"
    :append-to-body="true"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    :show-close="false">
    <el-progress :text-inside="true" :stroke-width="26" :percentage="percentage"/>
  </el-dialog>
</template>

<script>
export default {
  name: 'Progressor',
  props: {
    title: { // 对话框标题
      type: String,
      default: '加载中'
    },
    visible: {
      type: Boolean,
      default: false
    }, // 对话框是否显示
    percentage: {
      type: [String, Number],
      default: 0
    } // 进度百分比
  }
}
</script>

<style scoped>

</style>
