yaowanxin
14 小时以前 ec7bdf965d4d7be3483046ece279b4ceea182163
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([]);
@@ -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>