云端文件下载
This commit is contained in:
669
pages/CloudDatabase/CloudDatabase.css
Normal file
669
pages/CloudDatabase/CloudDatabase.css
Normal file
@@ -0,0 +1,669 @@
|
||||
|
||||
.cloud-db-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #f5f6fa;
|
||||
}
|
||||
|
||||
.cloud-db-header {
|
||||
flex-shrink: 0;
|
||||
background-color: #ffffff;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.custom-navbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20rpx 30rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.navbar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 160rpx;
|
||||
}
|
||||
|
||||
.custom-navbar-icon {
|
||||
font-size: 44rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a2e;
|
||||
}
|
||||
|
||||
.navbar-right {
|
||||
width: auto;
|
||||
min-width: 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.navbar-before-title {
|
||||
font-size: 26rpx;
|
||||
color: #3b86ff;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
|
||||
.navbar-right-text {
|
||||
font-size: 28rpx;
|
||||
color: #3b86ff;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 菜单 */
|
||||
.menu-open {
|
||||
color: #3b86ff;
|
||||
}
|
||||
|
||||
.menu-card {
|
||||
position: absolute;
|
||||
top: 80rpx;
|
||||
right: 20rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
|
||||
padding: 12rpx 0;
|
||||
z-index: 100;
|
||||
min-width: 200rpx;
|
||||
}
|
||||
|
||||
.menu-card-item {
|
||||
padding: 20rpx 32rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.menu-card-item:active {
|
||||
background: #f5f6fa;
|
||||
}
|
||||
|
||||
.solid-line {
|
||||
height: 1rpx;
|
||||
background: #eee;
|
||||
margin: 4rpx 20rpx;
|
||||
}
|
||||
|
||||
.file-count {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* 分类切换 Tab */
|
||||
.category-tabs {
|
||||
display: flex;
|
||||
padding: 10rpx 30rpx 0;
|
||||
gap: 40rpx;
|
||||
border-bottom: 2rpx solid #eee;
|
||||
}
|
||||
|
||||
.category-tab {
|
||||
font-size: 30rpx;
|
||||
color: #999;
|
||||
padding-bottom: 20rpx;
|
||||
position: relative;
|
||||
font-weight: 500;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.category-tab.active {
|
||||
color: #3b86ff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.category-tab.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 48rpx;
|
||||
height: 6rpx;
|
||||
background: #3b86ff;
|
||||
border-radius: 3rpx;
|
||||
}
|
||||
|
||||
/* 内容区域 */
|
||||
.cloud-db-content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding: 20rpx 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 区块 */
|
||||
.section-block {
|
||||
background: #ffffff;
|
||||
border-radius: 20rpx;
|
||||
padding: 24rpx;
|
||||
margin-bottom: 20rpx;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a2e;
|
||||
}
|
||||
|
||||
.section-title .iconfont {
|
||||
font-size: 36rpx;
|
||||
color: #3b86ff;
|
||||
}
|
||||
|
||||
.section-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
background: rgba(59, 134, 255, 0.08);
|
||||
color: #3b86ff;
|
||||
border-radius: 30rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.section-divider {
|
||||
height: 2rpx;
|
||||
margin: 4rpx 0 20rpx;
|
||||
}
|
||||
|
||||
/* 空状态 */
|
||||
.empty-tip {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 60rpx 0;
|
||||
color: #bbb;
|
||||
font-size: 26rpx;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.empty-tip .iconfont {
|
||||
font-size: 80rpx;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* 文件网格 */
|
||||
.file-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.file-item {
|
||||
width: calc(33.33% - 12rpx);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20rpx 10rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #f8f9fc;
|
||||
border: 2rpx solid transparent;
|
||||
transition: all 0.2s;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.file-item:active {
|
||||
border-color: #3b86ff;
|
||||
background: rgba(59, 134, 255, 0.04);
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 16rpx;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.file-icon.is-directory {
|
||||
background: rgba(255, 170, 0, 0.12);
|
||||
}
|
||||
|
||||
.file-icon.is-directory .iconfont {
|
||||
font-size: 48rpx;
|
||||
color: #ffa500;
|
||||
}
|
||||
|
||||
.file-icon.is-file {
|
||||
background: rgba(59, 134, 255, 0.1);
|
||||
}
|
||||
|
||||
.file-icon.is-file .iconfont {
|
||||
font-size: 44rpx;
|
||||
color: #3b86ff;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
|
||||
.file-meta {
|
||||
display: flex;
|
||||
gap: 8rpx;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.file-type-tag {
|
||||
font-size: 20rpx;
|
||||
color: #999;
|
||||
background: #f0f0f0;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.file-size {
|
||||
font-size: 20rpx;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
/* 数据表列表 */
|
||||
.table-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12rpx;
|
||||
}
|
||||
|
||||
.table-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
border-radius: 14rpx;
|
||||
background: #f8f9fc;
|
||||
border: 2rpx solid transparent;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.table-item:active {
|
||||
border-color: #3b86ff;
|
||||
background: rgba(59, 134, 255, 0.03);
|
||||
}
|
||||
|
||||
.table-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(59, 134, 255, 0.08);
|
||||
border-radius: 14rpx;
|
||||
margin-right: 20rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.table-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.table-name {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a2e;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.table-desc {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.table-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.table-rows {
|
||||
font-size: 22rpx;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
/* 团队管理 */
|
||||
.team-manage-block {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.team-count {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.team-selector {
|
||||
padding: 0 0 20rpx;
|
||||
}
|
||||
|
||||
.team-scroll {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.team-chip {
|
||||
display: inline-block;
|
||||
padding: 12rpx 28rpx;
|
||||
margin-right: 16rpx;
|
||||
border-radius: 30rpx;
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
background: #f0f2f5;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.team-chip.active {
|
||||
color: #fff;
|
||||
background: #3b86ff;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.select-team-tip {
|
||||
padding: 80rpx 0;
|
||||
}
|
||||
|
||||
/* ===== 弹窗样式 ===== */
|
||||
.popup-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.popup-card {
|
||||
width: 600rpx;
|
||||
background: #fff;
|
||||
border-radius: 30rpx;
|
||||
padding: 40rpx 30rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
max-height: 80vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.close-popup-card {
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
right: 20rpx;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.close-popup-card .iconfont {
|
||||
font-size: 40rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a2e;
|
||||
margin-bottom: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.new-folder-name {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.create-folder-name {
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.create-folder-name input {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
padding: 20rpx;
|
||||
box-sizing: border-box;
|
||||
border: 1rpx solid #e0e0e0;
|
||||
border-radius: 16rpx;
|
||||
font-size: 28rpx;
|
||||
background: #f9fafb;
|
||||
}
|
||||
|
||||
.create-folder-name input:focus {
|
||||
border-color: #3b86ff;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.nf-path-label {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.nf-path-display {
|
||||
font-size: 24rpx;
|
||||
color: #3b86ff;
|
||||
background: rgba(59, 134, 255, 0.06);
|
||||
padding: 12rpx 16rpx;
|
||||
border-radius: 10rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.option-wrapper {
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
justify-content: flex-end;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.opt-btn {
|
||||
padding: 16rpx 40rpx;
|
||||
border-radius: 30rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.opt-cancel {
|
||||
color: #999;
|
||||
background: #f0f2f5;
|
||||
}
|
||||
|
||||
.opt-confirm {
|
||||
color: #fff;
|
||||
background: #3b86ff;
|
||||
}
|
||||
|
||||
/* 团队管理弹窗 */
|
||||
.team-manage-body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
max-height: 500rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.member-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10rpx;
|
||||
}
|
||||
|
||||
.member-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 16rpx;
|
||||
border-radius: 14rpx;
|
||||
background: #f8f9fc;
|
||||
}
|
||||
|
||||
.member-avatar {
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
margin-right: 16rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.member-avatar image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.default-avatar {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #ccc;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.member-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.member-name {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.member-label {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
.member-actions {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.member-role {
|
||||
font-size: 22rpx;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.member-role.owner {
|
||||
color: #e6a23c;
|
||||
background: rgba(230, 162, 60, 0.1);
|
||||
}
|
||||
|
||||
.member-role.admin {
|
||||
color: #3b86ff;
|
||||
background: rgba(59, 134, 255, 0.1);
|
||||
}
|
||||
|
||||
.member-actions-right {
|
||||
display: flex;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.member-action-btn {
|
||||
font-size: 20rpx;
|
||||
padding: 8rpx 14rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.set-admin {
|
||||
color: #3b86ff;
|
||||
border: 1rpx solid #3b86ff;
|
||||
}
|
||||
|
||||
.remove-member {
|
||||
color: #f56c6c;
|
||||
border: 1rpx solid #f56c6c;
|
||||
}
|
||||
|
||||
.invite-section {
|
||||
border-top: 1rpx solid #eee;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
|
||||
.invite-input-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.invite-input {
|
||||
flex: 1;
|
||||
height: auto;
|
||||
padding: 18rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
border: 1rpx solid #e0e0e0;
|
||||
border-radius: 30rpx;
|
||||
font-size: 26rpx;
|
||||
background: #f9fafb;
|
||||
}
|
||||
|
||||
.invite-btn {
|
||||
background: #3b86ff;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
padding: 14rpx 32rpx;
|
||||
}
|
||||
|
||||
.folder-null {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 60rpx 0;
|
||||
color: #bbb;
|
||||
font-size: 26rpx;
|
||||
gap: 12rpx;
|
||||
}
|
||||
|
||||
.folder-null .iconfont {
|
||||
font-size: 64rpx;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.text-btn {
|
||||
padding: 8rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
Reference in New Issue
Block a user