update upload
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <el-popover placement="right" :title="title" width="300" trigger="hover" class="mt-2">
 | 
			
		||||
  <el-popover placement="right" :title="title" width="300" trigger="hover" class="">
 | 
			
		||||
    <!-- <div slot="content"> -->
 | 
			
		||||
    <ul style="max-height: 100px; overflow-y: auto" class="filelist">
 | 
			
		||||
      <li v-for="(file, index) in filteredList" :key="index">
 | 
			
		||||
@@ -30,10 +30,8 @@
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <!-- </div> -->
 | 
			
		||||
    <el-button v-if="label" type="text" slot="reference" class="">{{ label }}</el-button>
 | 
			
		||||
    <el-button v-else type="text" slot="reference" class="el-icon-folder-opened" style="margin-left: 16px; width: 32px; height: 32px">
 | 
			
		||||
      已上传文件</el-button
 | 
			
		||||
    >
 | 
			
		||||
    <div v-if="label" slot="reference" class="">{{ label }}</div>
 | 
			
		||||
    <div v-else slot="reference" class="el-icon-folder-opened" style="margin-left: 24px; cursor: pointer;"> 已上传文件</div>
 | 
			
		||||
  </el-popover>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div>
 | 
			
		||||
  <div class="" style="position: relative;">
 | 
			
		||||
    <el-upload
 | 
			
		||||
      :disabled="disabled"
 | 
			
		||||
      name="files"
 | 
			
		||||
@@ -19,8 +19,8 @@
 | 
			
		||||
        </transition>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
			<FileList :file-list="fileList" />
 | 
			
		||||
    </el-upload>
 | 
			
		||||
    <FileList :file-list="fileList" style="display: inline-block; position: absolute; top: 0; left: 72px;" />
 | 
			
		||||
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user