|
@@ -1,68 +1,80 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="upload-file flex1">
|
|
|
|
|
- <el-upload
|
|
|
|
|
- ref="fileUploadRef"
|
|
|
|
|
- multiple
|
|
|
|
|
- :action="uploadFileUrl"
|
|
|
|
|
- :before-upload="handleBeforeUpload"
|
|
|
|
|
- :file-list="fileList"
|
|
|
|
|
- :limit="limit"
|
|
|
|
|
- :on-error="handleUploadError"
|
|
|
|
|
- :on-exceed="handleExceed"
|
|
|
|
|
- :on-success="handleUploadSuccess"
|
|
|
|
|
- :show-file-list="false"
|
|
|
|
|
- :headers="headers"
|
|
|
|
|
- class="upload-file-uploader"
|
|
|
|
|
- >
|
|
|
|
|
- <!-- 上传按钮 -->
|
|
|
|
|
- <el-button type="primary">选取文件</el-button>
|
|
|
|
|
- </el-upload>
|
|
|
|
|
- <!-- 上传提示 -->
|
|
|
|
|
- <div v-if="showTip" class="el-upload__tip">
|
|
|
|
|
- 请上传
|
|
|
|
|
- <template v-if="fileSize">
|
|
|
|
|
- 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="fileType">
|
|
|
|
|
- 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b>
|
|
|
|
|
- </template>
|
|
|
|
|
- 的文件
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- 文件列表 -->
|
|
|
|
|
- <transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
|
|
|
|
|
- <li v-for="(file, index) in fileList" :key="file.uid" class="el-upload-list__item ele-upload-list__item-content pd-8">
|
|
|
|
|
- <el-link :href="`${file.url}`" :underline="false" target="_blank">
|
|
|
|
|
- <span class="el-icon-document"> {{ getFileName(file.name) }} </span>
|
|
|
|
|
- </el-link>
|
|
|
|
|
- <div class="ele-upload-list__item-content-action">
|
|
|
|
|
- <el-button type="danger" link @click="handleDelete(index)">删除</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </li>
|
|
|
|
|
|
|
+ <transition-group class="upload-file-list flex1 ov-hd" :class="{ white }" name="el-fade-in-linear" tag="div">
|
|
|
|
|
+ <el-upload v-if="fileList.length < limit || loading" :multiple="multiple" :action="uploadFileUrl" :before-upload="handleBeforeUpload" :file-list="fileList" :limit="limit" :on-error="handleUploadError" :on-exceed="handleExceed" :on-success="handleUploadSuccess" :show-file-list="false" :headers="headers" :accept="fileType.map(item => '.'+ item).toString()" class="upload-file-uploader" ref="fileUploadRef" :on-progress="handleOnProgress">
|
|
|
|
|
+ <!-- 上传按钮 -->
|
|
|
|
|
+ <!-- <div class="btn-file f-14 c-666">上传</div> -->
|
|
|
|
|
+ <el-button class="h-plain mb10" type="primary" plain>
|
|
|
|
|
+ <el-icon><Upload /></el-icon>
|
|
|
|
|
+ {{ btnText }}
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+ <el-row :gutter="60">
|
|
|
|
|
+ <el-col :span="span" v-for="(file, index) in fileList" :key="index">
|
|
|
|
|
+ <div class="upload-list-img d-flex a-c" :class="{ mt10: index }">
|
|
|
|
|
+ <template v-if="file.url">
|
|
|
|
|
+ <a v-if="['png', 'jpg', 'jpeg', 'bmp'].includes(fileExt(file.name))" class="flex1 right-wrap ov-hd" @click="show2 = true; lookIndex = index">
|
|
|
|
|
+ <el-tooltip class="box-item" effect="dark" :content="file.name" placement="top">
|
|
|
|
|
+ <div class="item-text sv-1 flex1">{{ file.name }}</div>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ <a v-else class="flex1 right-wrap ov-hd" :href="`${file.url}`" :underline="false" target="_blank">
|
|
|
|
|
+ <el-tooltip class="box-item" effect="dark" :content="file.name" placement="top">
|
|
|
|
|
+ <div class="item-text sv-1 flex1">{{ file.name }}</div>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <div v-else class="flex1 right-wrap ov-hd p-rtv">
|
|
|
|
|
+ <el-tooltip class="box-item" effect="dark" :content="file.name" placement="top">
|
|
|
|
|
+ <div class="item-text sv-1">{{ file.name }}</div>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+ <div class="progress" :style="{ width: file.percentage + '%' }"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="delete-item d-flex a-c j-c" @click="handleDelete(index)">
|
|
|
|
|
+ <el-icon color="#FF3A3A" :size="20"><Close /></el-icon>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col v-if="isShowTip" :span="span">
|
|
|
|
|
+ <div class="c-999 f-12" style="line-height: 1.6;padding-top: 10px;">
|
|
|
|
|
+ {{ tipText }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
</transition-group>
|
|
</transition-group>
|
|
|
- </div>
|
|
|
|
|
|
|
+ <ImageViewer v-model:show="show2" :imgs="fileList.map((item: any) => item.url)" :index="lookIndex"></ImageViewer>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
|
|
+import { listByIds, delOss } from '@/api/system/oss';
|
|
|
import { propTypes } from '@/utils/propTypes';
|
|
import { propTypes } from '@/utils/propTypes';
|
|
|
-import { delOss, listByIds } from '@/api/system/oss/index';
|
|
|
|
|
import { globalHeaders } from '@/utils/request';
|
|
import { globalHeaders } from '@/utils/request';
|
|
|
|
|
+import { fileExt } from '@/utils/ruoyi';
|
|
|
|
|
+import { ImageViewer } from '@/views/models';
|
|
|
|
|
+
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
- modelValue: {
|
|
|
|
|
- type: [String, Object, Array],
|
|
|
|
|
- default: () => []
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ modelValue: [String, Object, Array],
|
|
|
// 数量限制
|
|
// 数量限制
|
|
|
- limit: propTypes.number.def(5),
|
|
|
|
|
|
|
+ limit: propTypes.number.def(1),
|
|
|
// 大小限制(MB)
|
|
// 大小限制(MB)
|
|
|
fileSize: propTypes.number.def(5),
|
|
fileSize: propTypes.number.def(5),
|
|
|
- // 文件类型, 例如['png', 'jpg', 'jpeg']
|
|
|
|
|
|
|
+ // 文件类型, 例如['png', 'jpg', 'jpeg', 'bmp']
|
|
|
fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']),
|
|
fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']),
|
|
|
// 是否显示提示
|
|
// 是否显示提示
|
|
|
- isShowTip: propTypes.bool.def(true)
|
|
|
|
|
|
|
+ isShowTip: propTypes.bool.def(true),
|
|
|
|
|
+ tipText: propTypes.string.def(''),
|
|
|
|
|
+ span: propTypes.number.def(24),
|
|
|
|
|
+ isObject: propTypes.bool.def(false),
|
|
|
|
|
+ multiple: propTypes.bool.def(true),
|
|
|
|
|
+ white: propTypes.bool.def(false),
|
|
|
|
|
+ // 上传数据格式
|
|
|
|
|
+ format: propTypes.string.def('id'),
|
|
|
|
|
+ btnText: propTypes.string.def('上传文件')
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+const loading = ref(false);
|
|
|
|
|
+const lookIndex = ref(0);
|
|
|
|
|
+const show2 = ref(false);
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
-const emit = defineEmits(['update:modelValue']);
|
|
|
|
|
|
|
+const emit = defineEmits(['update:modelValue', 'change']);
|
|
|
const number = ref(0);
|
|
const number = ref(0);
|
|
|
const uploadList = ref<any[]>([]);
|
|
const uploadList = ref<any[]>([]);
|
|
|
|
|
|
|
@@ -74,36 +86,35 @@ const fileList = ref<any[]>([]);
|
|
|
const showTip = computed(() => props.isShowTip && (props.fileType || props.fileSize));
|
|
const showTip = computed(() => props.isShowTip && (props.fileType || props.fileSize));
|
|
|
|
|
|
|
|
const fileUploadRef = ref<ElUploadInstance>();
|
|
const fileUploadRef = ref<ElUploadInstance>();
|
|
|
-
|
|
|
|
|
|
|
+const progressList = ref<any>([]);
|
|
|
watch(
|
|
watch(
|
|
|
() => props.modelValue,
|
|
() => props.modelValue,
|
|
|
async (val) => {
|
|
async (val) => {
|
|
|
- if (val) {
|
|
|
|
|
- let temp = 1;
|
|
|
|
|
- // 首先将值转为数组
|
|
|
|
|
- let list: any[] = [];
|
|
|
|
|
- if (Array.isArray(val)) {
|
|
|
|
|
- list = val;
|
|
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ let temp = 1;
|
|
|
|
|
+ // 首先将值转为数组
|
|
|
|
|
+ let list = [];
|
|
|
|
|
+ if (props.format === 'array' && Array.isArray(val)) {
|
|
|
|
|
+ list = val;
|
|
|
|
|
+ } else if (props.format === 'object' || props.isObject) {
|
|
|
|
|
+ list = [val];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ const res = await listByIds(val as string);
|
|
|
|
|
+ list = res.data.map((oss) => {
|
|
|
|
|
+ const data = { name: oss.originalName, url: oss.url, ossId: oss.ossId };
|
|
|
|
|
+ return data;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ // 然后将数组转为对象数组
|
|
|
|
|
+ fileList.value = list.map((item) => {
|
|
|
|
|
+ item = { name: item.fileName ? item.fileName : item.name, url: item.url, fileSize: item.fileSize, fileType: item.fileType };
|
|
|
|
|
+ item.uid = item.uid || new Date().getTime() + temp++;
|
|
|
|
|
+ return item;
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
- const res = await listByIds(val);
|
|
|
|
|
- list = res.data.map((oss) => {
|
|
|
|
|
- return {
|
|
|
|
|
- name: oss.originalName,
|
|
|
|
|
- url: oss.url,
|
|
|
|
|
- ossId: oss.ossId
|
|
|
|
|
- };
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ fileList.value = [];
|
|
|
|
|
+ return [];
|
|
|
}
|
|
}
|
|
|
- // 然后将数组转为对象数组
|
|
|
|
|
- fileList.value = list.map((item) => {
|
|
|
|
|
- item = { name: item.name, url: item.url, ossId: item.ossId };
|
|
|
|
|
- item.uid = item.uid || new Date().getTime() + temp++;
|
|
|
|
|
- return item;
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- fileList.value = [];
|
|
|
|
|
- return [];
|
|
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
{ deep: true, immediate: true }
|
|
{ deep: true, immediate: true }
|
|
|
);
|
|
);
|
|
@@ -112,28 +123,25 @@ watch(
|
|
|
const handleBeforeUpload = (file: any) => {
|
|
const handleBeforeUpload = (file: any) => {
|
|
|
// 校检文件类型
|
|
// 校检文件类型
|
|
|
if (props.fileType.length) {
|
|
if (props.fileType.length) {
|
|
|
- const fileName = file.name.split('.');
|
|
|
|
|
- const fileExt = fileName[fileName.length - 1];
|
|
|
|
|
- const isTypeOk = props.fileType.indexOf(fileExt) >= 0;
|
|
|
|
|
- if (!isTypeOk) {
|
|
|
|
|
- proxy?.$modal.msgError(`文件格式不正确, 请上传${props.fileType.join('/')}格式文件!`);
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- // 校检文件名是否包含特殊字符
|
|
|
|
|
- if (file.name.includes(',')) {
|
|
|
|
|
- proxy?.$modal.msgError('文件名不正确,不能包含英文逗号!');
|
|
|
|
|
- return false;
|
|
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+ const fileName = file.name.split('.');
|
|
|
|
|
+ const fileExt = fileName[fileName.length - 1];
|
|
|
|
|
+ const isTypeOk = props.fileType.indexOf(fileExt) >= 0;
|
|
|
|
|
+ if (!isTypeOk) {
|
|
|
|
|
+ proxy?.$modal.msgError(`文件格式不正确, 请上传${props.fileType.join('/')}格式文件!`);
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
// 校检文件大小
|
|
// 校检文件大小
|
|
|
if (props.fileSize) {
|
|
if (props.fileSize) {
|
|
|
- const isLt = file.size / 1024 / 1024 < props.fileSize;
|
|
|
|
|
- if (!isLt) {
|
|
|
|
|
- proxy?.$modal.msgError(`上传文件大小不能超过 ${props.fileSize} MB!`);
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ const isLt = file.size / 1024 / 1024 < props.fileSize;
|
|
|
|
|
+ if (!isLt) {
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+ proxy?.$modal.msgError(`上传文件大小不能超过 ${props.fileSize} MB!`);
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- proxy?.$modal.loading('正在上传文件,请稍候...');
|
|
|
|
|
number.value++;
|
|
number.value++;
|
|
|
return true;
|
|
return true;
|
|
|
};
|
|
};
|
|
@@ -145,53 +153,74 @@ const handleExceed = () => {
|
|
|
|
|
|
|
|
// 上传失败
|
|
// 上传失败
|
|
|
const handleUploadError = () => {
|
|
const handleUploadError = () => {
|
|
|
|
|
+ loading.value = false;
|
|
|
proxy?.$modal.msgError('上传文件失败');
|
|
proxy?.$modal.msgError('上传文件失败');
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 上传成功回调
|
|
// 上传成功回调
|
|
|
const handleUploadSuccess = (res: any, file: UploadFile) => {
|
|
const handleUploadSuccess = (res: any, file: UploadFile) => {
|
|
|
|
|
+ loading.value = false;
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
- uploadList.value.push({
|
|
|
|
|
- name: res.data.fileName,
|
|
|
|
|
- url: res.data.url,
|
|
|
|
|
- ossId: res.data.ossId
|
|
|
|
|
- });
|
|
|
|
|
- uploadedSuccessfully();
|
|
|
|
|
|
|
+ uploadList.value.push({
|
|
|
|
|
+ name: res.data.fileName,
|
|
|
|
|
+ url: res.data.url,
|
|
|
|
|
+ ossId: res.data.ossId,
|
|
|
|
|
+ fileSize: file?.raw.size,
|
|
|
|
|
+ fileType: file?.raw.type
|
|
|
|
|
+ });
|
|
|
|
|
+ uploadedSuccessfully();
|
|
|
} else {
|
|
} else {
|
|
|
- number.value--;
|
|
|
|
|
- proxy?.$modal.closeLoading();
|
|
|
|
|
- proxy?.$modal.msgError(res.msg);
|
|
|
|
|
- fileUploadRef.value?.handleRemove(file);
|
|
|
|
|
- uploadedSuccessfully();
|
|
|
|
|
|
|
+ number.value--;
|
|
|
|
|
+ proxy?.$modal.msgError(res.msg);
|
|
|
|
|
+ fileUploadRef.value?.handleRemove(file);
|
|
|
|
|
+ uploadedSuccessfully();
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-// 删除文件
|
|
|
|
|
-const handleDelete = (index: number) => {
|
|
|
|
|
- let ossId = fileList.value[index].ossId;
|
|
|
|
|
- delOss(ossId);
|
|
|
|
|
- fileList.value.splice(index, 1);
|
|
|
|
|
- emit('update:modelValue', listToString(fileList.value));
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
// 上传结束处理
|
|
// 上传结束处理
|
|
|
const uploadedSuccessfully = () => {
|
|
const uploadedSuccessfully = () => {
|
|
|
if (number.value > 0 && uploadList.value.length === number.value) {
|
|
if (number.value > 0 && uploadList.value.length === number.value) {
|
|
|
- fileList.value = fileList.value.filter((f) => f.url !== undefined).concat(uploadList.value);
|
|
|
|
|
- uploadList.value = [];
|
|
|
|
|
- number.value = 0;
|
|
|
|
|
- emit('update:modelValue', listToString(fileList.value));
|
|
|
|
|
- proxy?.$modal.closeLoading();
|
|
|
|
|
|
|
+ fileList.value = fileList.value.filter((f) => f.url !== undefined).concat(uploadList.value);
|
|
|
|
|
+ uploadList.value = [];
|
|
|
|
|
+ number.value = 0;
|
|
|
|
|
+ const valuef = fileList.value.map(({ name, url, fileType, fileSize, ossId }) => ({ fileName: name, url, fileSize, fileType, ossId }));
|
|
|
|
|
+ if (props.format === 'id') {
|
|
|
|
|
+ emit('change', listToString(valuef));
|
|
|
|
|
+ emit('update:modelValue', listToString(valuef));
|
|
|
|
|
+ } else if (props.isObject || props.format === 'object') {
|
|
|
|
|
+ emit('change', valuef[0])
|
|
|
|
|
+ emit('update:modelValue', valuef[0]);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ emit('change', valuef)
|
|
|
|
|
+ emit('update:modelValue', valuef);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
|
|
+const handleOnProgress = (event: any, file: any, list: any) => {
|
|
|
|
|
+ const progress = Math.round((event.loaded / event.total) * 100);
|
|
|
|
|
+ fileList.value = [...list];
|
|
|
|
|
+};
|
|
|
|
|
+// 删除文件
|
|
|
|
|
+const handleDelete = (index: number) => {
|
|
|
|
|
+ fileUploadRef.value?.abort(fileList.value[index]);
|
|
|
|
|
+ fileList.value.splice(index, 1);
|
|
|
|
|
+ const valuef = fileList.value.map(({ name, url, fileType, fileSize }) => ({ fileName: name, url, fileSize, fileType }));
|
|
|
|
|
+ if (props.isObject) {
|
|
|
|
|
+ emit('change', null)
|
|
|
|
|
+ emit('update:modelValue', null);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ emit('change', valuef)
|
|
|
|
|
+ emit('update:modelValue', valuef);
|
|
|
|
|
+ }
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+};
|
|
|
// 获取文件名称
|
|
// 获取文件名称
|
|
|
const getFileName = (name: string) => {
|
|
const getFileName = (name: string) => {
|
|
|
// 如果是url那么取最后的名字 如果不是直接返回
|
|
// 如果是url那么取最后的名字 如果不是直接返回
|
|
|
if (name.lastIndexOf('/') > -1) {
|
|
if (name.lastIndexOf('/') > -1) {
|
|
|
- return name.slice(name.lastIndexOf('/') + 1);
|
|
|
|
|
|
|
+ return name.slice(name.lastIndexOf('/') + 1);
|
|
|
} else {
|
|
} else {
|
|
|
- return name;
|
|
|
|
|
|
|
+ return name;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -200,34 +229,60 @@ const listToString = (list: any[], separator?: string) => {
|
|
|
let strs = '';
|
|
let strs = '';
|
|
|
separator = separator || ',';
|
|
separator = separator || ',';
|
|
|
list.forEach((item) => {
|
|
list.forEach((item) => {
|
|
|
- if (item.ossId) {
|
|
|
|
|
- strs += item.ossId + separator;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (item.ossId) {
|
|
|
|
|
+ strs += item.ossId + separator;
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
return strs != '' ? strs.substring(0, strs.length - 1) : '';
|
|
return strs != '' ? strs.substring(0, strs.length - 1) : '';
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
-.upload-file-uploader {
|
|
|
|
|
- margin-bottom: 5px;
|
|
|
|
|
|
|
+.btn-file {
|
|
|
|
|
+ width: 90px;
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ line-height: 40px;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ color: #666;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ background-color: #f7f7f7;
|
|
|
}
|
|
}
|
|
|
|
|
+.upload-list-img {
|
|
|
|
|
+ background-color: #f7f7f7;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
|
|
|
-.upload-file-list .el-upload-list__item {
|
|
|
|
|
- border: 1px solid #e4e7ed;
|
|
|
|
|
- line-height: 2;
|
|
|
|
|
- margin-bottom: 10px;
|
|
|
|
|
- position: relative;
|
|
|
|
|
|
|
+ &.mt10 {
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-.upload-file-list .ele-upload-list__item-content {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: space-between;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- color: inherit;
|
|
|
|
|
|
|
+.right-item {
|
|
|
|
|
+ padding: 10px 16px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ color: var(--el-color-primary);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-.ele-upload-list__item-content-action .el-link {
|
|
|
|
|
- margin-right: 10px;
|
|
|
|
|
|
|
+.delete-item {
|
|
|
|
|
+ width: 40px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+}
|
|
|
|
|
+.upload-file-list.white {
|
|
|
|
|
+ .btn-file {
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+ .upload-list-img {
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+.right-wrap {
|
|
|
|
|
+ padding: 6px 10px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+}
|
|
|
|
|
+.progress {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ height: 1px;
|
|
|
|
|
+ background-color: var(--el-color-primary);
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|