u
This commit is contained in:
1 parent
04491e14a3
commit
12fdf320c2
12 files changed
+2493
-824
No files matched your search
@@ -9,6 +9,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 头部样式 */
|
||||
.g3-file-container .header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -19,23 +20,30 @@
|
||||
border-bottom: 1px solid #eef0f2;
|
||||
}
|
||||
|
||||
/* 主要内容区域 */
|
||||
.g3-file-container .main {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding: 4px 0px;
|
||||
|
||||
overflow: auto;
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
align-items: flex-start;
|
||||
align-content: flex-start;
|
||||
|
||||
border-left: 1px solid #eef0f2;
|
||||
border-right: 1px solid #eef0f2;
|
||||
|
||||
/* justify-content: center; */
|
||||
}
|
||||
|
||||
.g3-file-container .main > * {
|
||||
margin: 7px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/* 空状态提示 */
|
||||
.g3-file-container .empty-tip {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
@@ -47,6 +55,7 @@
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* 底部样式 */
|
||||
.g3-file-container .footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -55,7 +64,7 @@
|
||||
padding: 10px 14px;
|
||||
|
||||
background: #fafbfc;
|
||||
border-top: 1px solid #eef0f2;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
.g3-file-container .header,
|
||||
@@ -93,6 +102,7 @@
|
||||
|
||||
.g3-file-container .check-all span {
|
||||
margin-left: 4px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 按钮 */
|
||||
@@ -140,50 +150,81 @@
|
||||
background: #ff4d4f;
|
||||
}
|
||||
|
||||
.g3-file-container .file-item {
|
||||
width: calc(50% - 20px);
|
||||
/* 文件项样式 */
|
||||
.g3-file-container .g3-file-item {
|
||||
width: calc(50% - 26px);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: all 0.18s ease;
|
||||
|
||||
border: 1px solid #eef0f2;
|
||||
border-radius: 6px;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.g3-file-container .file-item:hover {
|
||||
border-color: #d6e4ff;
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
|
||||
transform: translateY(-2px);
|
||||
.g3-file-container .g3-file-item:hover {
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.file-item .file-preview {
|
||||
height: 120px;
|
||||
/* 文件预览 */
|
||||
.g3-file-item .g3-file-preview {
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #fafbfc;
|
||||
}
|
||||
|
||||
.g3-file-item .g3-file-preview .g3-file-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.g3-file-item .g3-file-preview svg {
|
||||
height: 86px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 图片容器样式 */
|
||||
.g3-file-item .g3-file-preview .g3-img-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.file-item .file-preview svg,
|
||||
.file-item .file-preview img {
|
||||
/* 图片错误状态 */
|
||||
.g3-file-item .g3-file-preview .g3-img-container.is-error .g3-img-error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #f0f2f5;
|
||||
}
|
||||
|
||||
.g3-file-item .g3-file-preview .g3-img-container .g3-img-error {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.file-item .file-checkbox {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
.g3-file-item .g3-file-preview .g3-img-container .g3-img-error svg {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.file-item .file-info {
|
||||
padding: 10px 10px 12px;
|
||||
/* 文件信息 */
|
||||
.g3-file-item .g3-file-info {
|
||||
padding: 8px;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
line-height: 1.4;
|
||||
@@ -196,125 +237,129 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.file-item .file-info span {
|
||||
.g3-file-item .g3-file-info span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.file-item .file-info .file-name {
|
||||
.g3-file-item .g3-file-info .g3-file-name {
|
||||
font-size: 13px;
|
||||
color: #1f2937;
|
||||
font-weight: 600;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.file-item .file-actions {
|
||||
/* 文件操作按钮 */
|
||||
.g3-file-item .g3-file-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin-bottom: 8px;
|
||||
margin-right: 8px;
|
||||
|
||||
overflow: hidden;
|
||||
border-top: 1px solid #f0f2f5;
|
||||
}
|
||||
|
||||
.file-item .file-action {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
|
||||
.g3-file-item .g3-file-action {
|
||||
padding: 8px 2px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
border-radius: 6px;
|
||||
|
||||
/* 👇 稍微更明显 */
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
|
||||
margin-left: 6px;
|
||||
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
gap: 4px;
|
||||
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
font-size: 12px;
|
||||
border-right: 1px solid #f0f2f5;
|
||||
}
|
||||
|
||||
/* hover:明显增强 */
|
||||
.file-item .file-action:hover {
|
||||
.g3-file-item .g3-file-action:hover {
|
||||
background-color: #f5f6f8;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.g3-file-item .g3-file-action:active {
|
||||
background: rgba(22, 93, 255, 0.12);
|
||||
color: #165dff;
|
||||
}
|
||||
|
||||
/* active:点击反馈 */
|
||||
.file-item .file-action:active {
|
||||
background: rgba(22, 93, 255, 0.18);
|
||||
transform: scale(0.96);
|
||||
}
|
||||
|
||||
.file-item .file-action.is-disabled {
|
||||
.g3-file-item .g3-file-action.is-disabled {
|
||||
opacity: 0.4;
|
||||
pointer-events: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.g3-download-modal {
|
||||
.g3-file-item .g3-file-action:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.g3-file-item .g3-file-action svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* 复选框样式 */
|
||||
.g3-file-item .g3-file-checkbox {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 9999;
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.g3-download-mask {
|
||||
/* 自定义复选框样式 */
|
||||
.g3-file-item .g3-file-checkbox + .g3-checkbox-label {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.g3-download-box {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
width: 260px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.g3-download-bar {
|
||||
height: 6px;
|
||||
background: #eee;
|
||||
border-radius: 4px;
|
||||
margin-top: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.g3-download-bar-inner {
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background: #4caf50;
|
||||
transition: width 0.2s;
|
||||
}
|
||||
|
||||
/* 文件项选中样式 */
|
||||
.g3-file-container .file-item.file-item-selected {
|
||||
.g3-file-item .g3-file-checkbox:checked + .g3-checkbox-label {
|
||||
background: #165dff;
|
||||
border-color: #165dff;
|
||||
box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
|
||||
background: rgba(22, 93, 255, 0.05);
|
||||
}
|
||||
|
||||
.g3-file-container .file-item.file-item-selected:hover {
|
||||
.g3-file-item .g3-file-checkbox:checked + .g3-checkbox-label::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 5px;
|
||||
width: 4px;
|
||||
height: 8px;
|
||||
border: solid white;
|
||||
border-width: 0 2px 2px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.g3-file-item .g3-file-checkbox:hover + .g3-checkbox-label {
|
||||
border-color: #165dff;
|
||||
box-shadow: 0 6px 18px rgba(22, 93, 255, 0.2);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
|
||||
}
|
||||
|
||||
.g3-file-item .g3-file-checkbox:disabled + .g3-checkbox-label {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 未上传标记 */
|
||||
.file-item .file-pending-badge {
|
||||
.g3-file-item .g3-file-pending-badge {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
background: #ff9800;
|
||||
color: white;
|
||||
font-size: 10px;
|
||||
@@ -322,3 +367,203 @@
|
||||
border-radius: 10px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 浮动删除按钮 */
|
||||
.g3-file-container .g3-file-delete-btn {
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: -8px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: #ebebeb;
|
||||
color: #666;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
z-index: 100;
|
||||
font-size: 12px;
|
||||
border: 1px solid #e8e8e8;
|
||||
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.g3-file-container .g3-file-delete-btn:hover {
|
||||
background: #ff4d4f;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.g3-file-container .g3-file-item .g3-file-delete-btn.is-disabled {
|
||||
opacity: 0.4;
|
||||
pointer-events: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 全局菜单 */
|
||||
.g3-global-menu {
|
||||
position: absolute;
|
||||
z-index: 9999;
|
||||
|
||||
width: 160px;
|
||||
background: #fff;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
|
||||
position: fixed; /* ⭐必须,不然一定会错位 */
|
||||
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.g3-global-menu.is-open {
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* 更多菜单项样式 */
|
||||
.g3-global-menu .g3-action-menu-item {
|
||||
padding: 8px 16px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.g3-global-menu .g3-action-menu-item:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.g3-global-menu .g3-action-menu-item:active {
|
||||
background-color: #e8e8e8;
|
||||
}
|
||||
|
||||
/* Task Dock 样式 */
|
||||
.task-dock {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
width: 320px;
|
||||
background: #ffffff;
|
||||
border: 1px solid #eef0f2;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
z-index: 9999;
|
||||
display: none;
|
||||
animation: slideIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
transform: translateX(100%) translateY(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateX(0) translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.task-dock .dock-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 16px;
|
||||
background: #fafbfc;
|
||||
border-bottom: 1px solid #eef0f2;
|
||||
border-radius: 8px 8px 0 0;
|
||||
}
|
||||
|
||||
.task-dock .dock-header .title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.task-dock .dock-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.task-dock .dock-actions button {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: #666;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.task-dock .dock-actions button:hover {
|
||||
background: #f0f2f5;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.task-dock .dock-body {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.task-dock .progress-line {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.task-dock .task-name {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 4px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.task-dock .task-type {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.task-dock .bar {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: #f0f2f5;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.task-dock .bar .bar-inner {
|
||||
height: 100%;
|
||||
background: #165dff;
|
||||
border-radius: 3px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.task-dock .task-result {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* UI Lock 样式 */
|
||||
.ui-lock {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
z-index: 9998;
|
||||
display: none;
|
||||
}
|
||||
Reference in new issue
Block a user