Browse Source

拖拽提醒

duy 2 months ago
parent
commit
8c086a9fd1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/plugins/table-form/hc-form-upload.vue

+ 2 - 2
src/components/plugins/table-form/hc-form-upload.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
     <el-upload
     <el-upload
         v-loading="isLoading"
         v-loading="isLoading"
-        
+        drag
         :accept="accept" :action="action" :class="isFocus ? 'is-focus' : ''"
         :accept="accept" :action="action" :class="isFocus ? 'is-focus' : ''"
         :disabled="isLoading" :headers="getHeader()" :keyname="isKeyName"
         :disabled="isLoading" :headers="getHeader()" :keyname="isKeyName"
         :on-error="formUploadError"
         :on-error="formUploadError"
@@ -10,7 +10,7 @@
         element-loading-text="上传中..." @exceed="formUploadExceed" @success="formUploadSuccess"
         element-loading-text="上传中..." @exceed="formUploadExceed" @success="formUploadSuccess"
     >
     >
         <img v-if="isSrc" :src="isSrc" alt="" class="hc-table-form-img">
         <img v-if="isSrc" :src="isSrc" alt="" class="hc-table-form-img">
-        <div v-else class="hc-table-form-icon">
+        <div v-else class="hc-table-form-icon mt-25">
             点此选择文件并上传
             点此选择文件并上传
         </div>
         </div>
         <div v-if="isSrc" class="hc-table-form-del">
         <div v-if="isSrc" class="hc-table-form-del">