<template>
  <el-dialog :modelValue="show" width="40%" @close="handleClose">
    <el-upload
      class="upload-demo"
      drag
      action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
      multiple
      :show-file-list="false"
    >
      <div class="flx-center-column">
        <div class="upload-title">拖拽文件到这里或点击上传简历</div>
        <p>简历建议使用 PDF 文件，也支持DOC、DOCX、JPG、PNG 格式</p>
        <span>文件大小不超过20M</span>
        <div class="btn">上传简历</div>
      </div>
    </el-upload>
  </el-dialog>
</template>

<script setup lang="ts">
defineProps({
  show: {
    type: Boolean,
    default: false
  }
})

const emits = defineEmits(['update:show'])

const handleClose = () => {
  emits('update:show', false)
}
</script>

<style lang="scss" scoped>
.upload-title {
  height: 18px;
  font-size: 18px;
  font-weight: 400;
  color: #222222;
  line-height: 18px;
}
p {
  height: 18px;
  font-size: 16px;
  font-weight: 400;
  color: #999999;
  line-height: 18px;
  margin-top: 50px;
}

span {
  height: 18px;
  font-size: 16px;
  font-weight: 400;
  color: #ff3333;
  line-height: 18px;
  margin-top: 16px;
}
.btn {
  width: 152px;
  height: 34px;
  background: linear-gradient(90deg, #177cfa 0%, #177cfa 100%);
  border-radius: 4px;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  line-height: 34px;
  text-align: center;
  margin: 50px 0;
}
</style>
