部分优化

This commit is contained in:
2026-07-07 18:02:55 +08:00
parent b8af01cc69
commit bf5203b081
48 changed files with 3228 additions and 1755 deletions

View File

@@ -5,53 +5,57 @@
padding: 10rpx 20rpx;
box-sizing: border-box;
align-items: center;
background-color: rgba(194, 191, 211, 0.1);
border-radius: 10rpx;
background: rgba(108, 99, 255, 0.06);
border-radius: 14rpx;
border: 2rpx solid transparent;
transition: all 0.25s ease;
}
.create-folder-name input {
box-sizing: border-box;
width: 100%;
font-size: 28rpx;
color: #333;
}
.create-folder-name.has-value {
background-color: #ffffff;
border: 2rpx solid #aaaaff;
box-shadow: 0 0 15rpx #aaaaff;
border-color: #6c63ff;
box-shadow: 0 0 0 4rpx rgba(108, 99, 255, 0.06);
}
/* 新建文件夹弹窗内部样式 */
.new-folder-name {
font-size: 28rpx;
color: #666;
color: #555;
margin-bottom: 12rpx;
}
.nf-path-label {
font-size: 26rpx;
font-size: 24rpx;
color: #999;
margin-top: 24rpx;
margin-bottom: 8rpx;
}
.nf-path-display {
font-size: 28rpx;
font-size: 26rpx;
color: #333;
padding: 12rpx 20rpx;
background: #f5f5f5;
border-radius: 10rpx;
background: #f5f5f8;
border-radius: 12rpx;
word-break: break-all;
}
.nf-path-preview {
font-size: 28rpx;
color: #0073ff;
font-size: 26rpx;
color: #6c63ff;
padding: 12rpx 20rpx;
background: rgba(0, 115, 255, 0.05);
border: 2rpx dashed rgba(0, 115, 255, 0.3);
border-radius: 10rpx;
background: rgba(108, 99, 255, 0.05);
border: 2rpx dashed rgba(108, 99, 255, 0.25);
border-radius: 12rpx;
word-break: break-all;
}
@@ -68,28 +72,35 @@
justify-content: center;
align-items: center;
padding: 24rpx 0;
border-radius: 12rpx;
border-radius: 16rpx;
font-size: 30rpx;
font-weight: 500;
transition: all 0.2s ease;
}
.opt-btn:active {
transform: scale(0.97);
}
.opt-cancel {
background: #f5f5f5;
background: #f0f1f5;
color: #666;
}
.opt-confirm {
background: linear-gradient(135deg, #0073ff, #3ab0ff);
background: linear-gradient(135deg, #6c63ff, #4a45d1);
color: #fff;
box-shadow: 0 4rpx 12rpx rgba(108, 99, 255, 0.25);
}
.workspace-container {
display: flex;
flex-direction: column;
background: rgba(140, 140, 140, 0.1);
background: linear-gradient(180deg, #f5f4f9 0%, #faf9fe 100%);
}
.workspace-text {
color: #0073ff;
color: #6c63ff;
font-weight: bold;
}
@@ -99,9 +110,14 @@
flex-shrink: 0;
flex-direction: column;
align-items: center;
padding: 16rpx 0;
padding: 12rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #ddd;
position: relative;
z-index: 100;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1rpx solid rgba(170, 170, 255, 0.1);
}
.custom-navbar {
@@ -109,7 +125,7 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 10rpx;
padding: 16rpx 10rpx;
box-sizing: border-box;
position: relative;
}
@@ -125,6 +141,9 @@
justify-content: center;
align-items: center;
text-align: center;
font-size: 26rpx;
color: #6c63ff;
font-weight: 500;
}
.navbar-title {
@@ -135,6 +154,9 @@
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 32rpx;
font-weight: 700;
color: #1a1a2e;
}
.navbar-right {
@@ -146,12 +168,12 @@
}
.navbar-right .menu-open {
color: #3ab0ff !important;
color: #6c63ff !important;
font-size: 40rpx !important;
}
.custom-navbar-icon {
color: #0073ff !important;
color: #6c63ff !important;
font-size: 40rpx !important;
}
@@ -165,18 +187,28 @@
display: flex;
flex: 1;
align-items: center;
background: rgba(255, 255, 255, 1);
padding: 16rpx;
background: rgba(255, 255, 255, 0.9);
padding: 14rpx 24rpx;
box-sizing: border-box;
border-radius: 30rpx;
border-radius: 28rpx;
border: 2rpx solid #e8e7f5;
transition: all 0.25s ease;
}
.search-file:focus-within {
border-color: #6c63ff;
box-shadow: 0 0 0 4rpx rgba(108, 99, 255, 0.06);
}
.icon-sousuo {
font-weight: bold;
color: #999;
}
.search-file-input {
margin-left: 20rpx;
margin-left: 16rpx;
font-size: 26rpx;
color: #333;
}
.cancel-search {
@@ -184,7 +216,9 @@
flex-shrink: 0;
padding: 0 0 0 20rpx;
box-sizing: border-box;
color: #0073ff;
color: #6c63ff;
font-size: 28rpx;
font-weight: 500;
}
.workspace-content {
@@ -201,20 +235,30 @@
position: absolute;
top: 100%;
right: 20rpx;
width: 300rpx;
width: 280rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #fff;
border-radius: 30rpx;
z-index: 1;
border-radius: 24rpx;
z-index: 999;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08);
padding: 8rpx 0;
overflow: hidden;
}
.menu-card-item {
width: 100%;
padding: 20rpx;
padding: 22rpx 28rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #333;
transition: all 0.15s ease;
}
.menu-card-item:active {
background: rgba(108, 99, 255, 0.06);
}
.folder-null {
@@ -227,18 +271,20 @@
left: 50%;
top: 30%;
transform: translateX(-50%);
font-size: 32rpx;
font-size: 30rpx;
color: #bbb;
}
.folder-null .iconfont {
font-size: 180rpx;
color: #ddd;
}
.folder-grid {
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 20rpx;
padding: 24rpx;
box-sizing: border-box;
gap: 20rpx;
align-items: start;
@@ -251,51 +297,63 @@
align-items: center;
position: relative;
min-width: 0;
background: rgba(255, 255, 255, 0.7);
border-radius: 24rpx;
padding: 24rpx 8rpx 16rpx;
border: 2rpx solid transparent;
transition: all 0.2s ease;
}
.folder-item.select-folder {
border-radius: 30rpx;
background: rgba(9, 9, 9, 0.1);
border-color: rgba(108, 99, 255, 0.3);
background: rgba(108, 99, 255, 0.04);
}
.folder-item:active {
transform: scale(0.96);
background: rgba(255, 255, 255, 0.95);
}
.folder-item .folder-name {
max-width: 150rpx;
max-width: 160rpx;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
text-align: center;
line-height: 40rpx;
line-height: 44rpx;
min-width: 0;
font-size: 26rpx;
color: #444;
}
.folder-item-style {
font-size: 160rpx !important;
font-weight: 10rpx !important;
color: #3ab0ff !important;
font-size: 110rpx !important;
color: #6c63ff !important;
}
.folder-checkbox {
width: 50rpx;
height: 50rpx;
border: 6rpx solid #fff;
width: 44rpx;
height: 44rpx;
border: 3rpx solid #fff;
border-radius: 50%;
box-shadow: 0 2rpx 3rpx #333;
background: rgba(255, 255, 255, 0.2);
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.12);
background: rgba(255, 255, 255, 0.9);
box-sizing: border-box;
position: absolute;
left: 50%;
top: 30%;
top: 25%;
transform: translate(-50%);
display: flex;
justify-content: center;
align-items: center;
transition: all 0.2s ease;
}
.folder-checkbox.select-folder {
background-color: #0073ff;
background: linear-gradient(135deg, #6c63ff, #4a45d1);
border-color: #6c63ff;
}
.workspace-footer {
@@ -303,16 +361,22 @@
display: flex;
flex-shrink: 0;
justify-content: space-between;
padding: 30rpx;
padding: 24rpx 30rpx;
box-sizing: border-box;
color: #999999;
background: #eeeeee;
color: #888;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-top: 1rpx solid rgba(170, 170, 255, 0.1);
font-size: 26rpx;
transition: all 0.2s ease;
}
.workspace-footer.folder-actions {
color: #0073ff;
color: #6c63ff;
font-weight: 500;
}
.workspace-footer .iconfont {
font-size: 40rpx !important;
}
}

View File

@@ -621,14 +621,14 @@
'.wav': 'icon-wenjianyinpin',
'.flac': 'icon-wenjianyinpin',
'.aac': 'icon-wenjianyinpin',
'.pdf': 'icon-PDF',
'.doc': 'icon-DOC',
'.docx': 'icon-DOC',
'.xls': 'icon-XLS',
'.xlsx': 'icon-XLS',
'.ppt': 'icon-PPT',
'.pptx': 'icon-PPT',
'.txt': 'icon-TXT',
'.pdf': 'icon-PDF1',
'.doc': 'icon-word',
'.docx': 'icon-word',
'.xls': 'icon-execl',
'.xlsx': 'icon-execl',
'.ppt': 'icon-PPT1',
'.pptx': 'icon-PPT1',
'.txt': 'icon-TXT1',
'.md': 'icon-file-markdown-fill',
'.zip': 'icon-wenjianyasuo',
'.rar': 'icon-wenjianyasuo',
@@ -640,11 +640,11 @@
'.vue': 'icon-daimawenjia',
'.html': 'icon-HTML',
'.css': 'icon-CSS',
'.py': 'icon-daimawenjian',
'.java': 'icon-daimawenjian',
'.py': 'icon-daima',
'.java': 'icon-daima',
'.json': 'icon-JSON',
};
return iconMap[ext?.toLowerCase()] || 'icon-qitawenjian';
return iconMap[ext?.toLowerCase()] || 'icon-qitalingyu';
};
const allFoldersData = ref({})