src/components/Upload/FileUpload.vue
@@ -6,7 +6,7 @@
});
const props = defineProps({
  downloadTemplate: Function,
  // downloadTemplate: Function,
  showTips: Boolean,
  accept: {
    type: String,
@@ -31,7 +31,7 @@
    default: 1,
  },
});
const emits = defineEmits(["success", "remove"]);
const emits = defineEmits(["success", "remove",  "downloadTemplate"]);
const uploadRef = ref();
const fileList = ref([]);
@@ -75,7 +75,7 @@
      <el-icon class="el-icon--upload"><upload-filled /></el-icon>
      <div class="el-upload__text">
        将文件拖到此处,或
        <em>点击导入数据</em>
        <em>点击上传附件</em>
      </div>
    </div>
    <template #tip>
@@ -85,7 +85,7 @@
          type="primary"
          link
          class="reset-margin"
          @click="props.downloadTemplate()"
          @click="emits('downloadTemplate')"
        >
          <span style="font-size: 12px; font-weight: normal">下载模板</span>
        </el-button>