From 1df633dc64b18ec4c9a2fae86188bbe5fc40a3a5 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Wed, 13 Jul 2022 21:09:01 +0800 Subject: [PATCH] wip --- public/build/beike/admin/css/filemanager.css | 47 ++++++ .../beike/admin/css/filemanager/app.scss | 63 ++++++++ .../views/pages/file_manager/index.blade.php | 144 ++++++++++++++---- 3 files changed, 225 insertions(+), 29 deletions(-) diff --git a/public/build/beike/admin/css/filemanager.css b/public/build/beike/admin/css/filemanager.css index 4171b07c..bda06a45 100644 --- a/public/build/beike/admin/css/filemanager.css +++ b/public/build/beike/admin/css/filemanager.css @@ -136,3 +136,50 @@ body.page-filemanager .filemanager-wrap .filemanager-content .content-footer { align-items: center; justify-content: space-between; } +body.page-filemanager .upload-wrap .upload-image { + height: 300px; + overflow-y: auto; +} +body.page-filemanager .upload-wrap .upload-image .list { + background-color: #f4f4f4; + padding: 10px 10px; + border-radius: 4px; +} +body.page-filemanager .upload-wrap .upload-image .list .name { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 8px; +} +body.page-filemanager .upload-wrap .el-progress-bar__outer { + background-color: #ccc; +} +body.page-filemanager .photos-upload { + overflow: hidden; +} +body.page-filemanager .photos-upload .el-upload { + width: 100%; + display: block; +} +body.page-filemanager .photos-upload .el-loading-spinner { + top: 35%; +} +body.page-filemanager .photos-upload .el-upload-dragger { + width: 100%; + height: auto; + background-color: transparent; + transition: all 0.3s ease-in-out; +} +body.page-filemanager .photos-upload .el-upload-dragger:hover { + border-color: #8874d8; +} +body.page-filemanager .photos-upload .el-upload-dragger .el-icon-upload { + margin: 10px 0; +} +body.page-filemanager .photos-upload .el-upload-dragger .el-upload__text { + margin-bottom: 10px; + color: #aaa; +} +body.page-filemanager .photos-upload input[type=file] { + display: none; +} diff --git a/resources/beike/admin/css/filemanager/app.scss b/resources/beike/admin/css/filemanager/app.scss index 440e57de..e69a7d02 100644 --- a/resources/beike/admin/css/filemanager/app.scss +++ b/resources/beike/admin/css/filemanager/app.scss @@ -182,4 +182,67 @@ body.page-filemanager { } } } + + .upload-wrap { + .upload-image { + height: 300px; + overflow-y: auto; + + .list { + background-color: #f4f4f4; + padding: 10px 10px; + border-radius: 4px; + + .name { + display: flex; + align-items: center; // flex-start | center + justify-content: space-between; // flex-end | center | space-between + margin-bottom: 8px; + } + } + } + + .el-progress-bar__outer { + background-color: #ccc; + } + } + + .photos-upload { + overflow: hidden; + + + .el-upload { + width: 100%; + display: block; + } + + .el-loading-spinner { + top: 35%; + } + + .el-upload-dragger { + width: 100%; + height: auto; + // border: 2px dashed #666; + background-color: transparent; + transition: all 0.3s ease-in-out; + + &:hover { + border-color: #8874d8; + } + + .el-icon-upload { + margin: 10px 0; + } + + .el-upload__text { + margin-bottom: 10px; + color: #aaa; + } + } + + input[type="file"] { + display: none; + } + } } \ No newline at end of file diff --git a/resources/beike/admin/views/pages/file_manager/index.blade.php b/resources/beike/admin/views/pages/file_manager/index.blade.php index 80a7089d..f767b654 100644 --- a/resources/beike/admin/views/pages/file_manager/index.blade.php +++ b/resources/beike/admin/views/pages/file_manager/index.blade.php @@ -20,14 +20,18 @@
@{{ node.label }}
@@ -51,25 +55,14 @@
+
下载 删除 重命名
- {{-- 上传文件 --}} -{{-- - 上传文件 - --}} + 上传文件
@@ -94,6 +87,37 @@
选择
+ + + + +
点击上传,或将图片拖到此处
+
+
+
+
@{{ image.name }} @{{ image.percent }}
+
+
+
+