From 347623e4a83aad3ded3a275e10ecba6f9dacae18 Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期五, 11 六月 2021 16:48:23 +0800 Subject: [PATCH] 优化上传文件样式 --- src/components_simple/UploadSingleFile.vue | 8 +++++++- src/components_simple/UploadSingleFileAuto.vue | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components_simple/UploadSingleFile.vue b/src/components_simple/UploadSingleFile.vue index 912e906..e9e2608 100644 --- a/src/components_simple/UploadSingleFile.vue +++ b/src/components_simple/UploadSingleFile.vue @@ -1,5 +1,5 @@ <template> - <div> + <div class="upload_single_file"> <!-- 涓婁紶鏂囦欢缁勪欢(鍗�) --> <el-upload ref="refUploadFile" @@ -112,3 +112,9 @@ } } </script> + +<style> +.upload_single_file .el-upload-list__item-name{ + padding: 5px!important; +} +</style> diff --git a/src/components_simple/UploadSingleFileAuto.vue b/src/components_simple/UploadSingleFileAuto.vue index 52ce8d3..c6d7db8 100644 --- a/src/components_simple/UploadSingleFileAuto.vue +++ b/src/components_simple/UploadSingleFileAuto.vue @@ -1,5 +1,5 @@ <template> - <div> + <div class="upload_single_file_auto"> <!-- accept="video/mp4" --> <el-upload ref="refUploadFile" @@ -177,4 +177,9 @@ .el-upload-list__item{ transition: none; } + +.upload_single_file_auto .el-upload-list__item-name{ + padding: 5px!important; +} + </style> -- Gitblit v1.8.0