Sfoglia il codice sorgente

文件上传修改

duy 1 mese fa
parent
commit
4dc368428e
1 ha cambiato i file con 27 aggiunte e 1 eliminazioni
  1. 27 1
      src/components/plugins/table-form/hc-form-upload.vue

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

@@ -1,6 +1,8 @@
 <template>
     <el-upload
-        v-loading="isLoading" :accept="accept" :action="action" :class="isFocus ? 'is-focus' : ''"
+        v-loading="isLoading"
+        
+        :accept="accept" :action="action" :class="isFocus ? 'is-focus' : ''"
         :disabled="isLoading" :headers="getHeader()" :keyname="isKeyName"
         :on-error="formUploadError"
         :on-progress="uploadprogress" :placeholder="placeholder" :show-file-list="false"
@@ -117,6 +119,30 @@ const handleBlur = () => {
         z-index: -1;
         right: 10px;
         width: 10px;
+    }
+
+}
+</style>
+
+<style lang="scss">
+.hc-upload-table-form{
+      border-radius: 3px;
+    transition: box-shadow 0.3s, background-color 0.3s;
+    &.is-focus, &:hover {
+        background-color: #eddac4;
+        box-shadow: 0 0 0 1.5px var(--el-color-primary) inset;
+    }
+    .el-upload-dragger{
+        height:100%;
+        width: 100%;
+        background-color: transparent;
+
+        padding: 10px;
+        text-align: left;
+
+
+
+
     }
 }
 </style>