<template>
  <el-dialog
    title="提示"
    :visible.sync="dialogVisible"
    width="33%"
    :before-close="handleClose"
  >
    <el-form>
      <el-form-item label="分类名称：" required="">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="文件名称：" required="">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="上传文件：" required="">
        <div style="padding-left:94px">
          <el-upload
          class="upload-demo"
          action="https://jsonplaceholder.typicode.com/posts/"
          :on-preview="handlePreview"
          :on-remove="handleRemove"
          :before-remove="beforeRemove"
          multiple
          :limit="3"
          :on-exceed="handleExceed"
          :file-list="fileList"
        >
          <el-button size="small" type="primary">点击上传</el-button>
          <div slot="tip" class="el-upload__tip">
            仅支持pdf文件
          </div>
        </el-upload>
        </div>
      </el-form-item>
      <el-form-item required>
        <label solt="label" class="status"
          ><span style="letter-spacing: 14px">状态</span>：</label
        >
        <el-radio-group v-model="radio">
          <el-radio :label="3">启用</el-radio>
          <el-radio :label="6">禁用</el-radio>
        </el-radio-group>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="dialogVisible = false">取 消</el-button>
      <el-button
        size="small"
        style="margin-left: 60px"
        type="primary"
        @click="dialogVisible = false"
        >确 定</el-button
      >
    </span>
  </el-dialog>
</template>
<script>
export default {
  data() {
    return {
      dialogVisible: false,
      radio:''
    }
  },
  methods: {
    handleClose() {
      this.dialogVisible = false
    },
    openClose() {
      this.dialogVisible = true
    }
  }
}
</script>
<style lang="less" scoped>
.status {
  padding: 0 12px 0 0;
}
.status::before {
  content: '*';
  color: #f56c6c;
  margin-right: 4px;
}
</style>