feat: 支持 CellData 文件夹上传处理

This commit is contained in:
2026-06-25 04:43:04 +08:00
parent c36dd21838
commit 9349c549e9
5 changed files with 470 additions and 30 deletions
+69 -9
View File
@@ -497,6 +497,21 @@ select {
transition: all var(--td-transition);
}
.upload-card-label {
position: absolute;
top: 12px;
left: 16px;
color: var(--td-text-color-primary);
font-size: 13px;
font-weight: 600;
}
.upload-help-button {
position: absolute;
top: 10px;
right: 10px;
}
.upload-zone:hover,
.upload-zone.dragover {
background: var(--td-brand-color-light);
@@ -559,35 +574,80 @@ select {
display: inline-flex;
}
.cell-data-card {
.cell-data-upload-zone {
display: flex;
position: relative;
align-items: center;
justify-content: space-between;
gap: 16px;
justify-content: center;
flex-direction: column;
gap: 10px;
margin-top: 16px;
padding: 16px 18px;
padding: 24px 18px;
text-align: center;
background: var(--td-bg-color-container);
border: 1px solid var(--td-border-color-light);
border: 1px dashed var(--td-border-color);
border-radius: var(--td-radius-large);
cursor: pointer;
transition: all var(--td-transition);
}
.cell-data-card h3,
.cell-data-card p {
.cell-data-upload-zone:hover,
.cell-data-upload-zone.dragover {
background: var(--td-brand-color-light);
border-color: var(--td-brand-color);
}
.cell-data-upload-zone.disabled {
cursor: not-allowed;
opacity: 0.72;
}
.cell-data-upload-text h3,
.cell-data-upload-text p {
margin: 0;
}
.cell-data-card h3 {
.cell-data-upload-text h3 {
color: var(--td-text-color-primary);
font-size: 15px;
font-weight: 600;
}
.cell-data-card p {
.cell-data-upload-text p {
margin-top: 4px;
color: var(--td-text-color-secondary);
font-size: 13px;
}
.cell-data-help-scroll {
max-height: 360px;
}
.cell-data-help-section {
display: grid;
gap: 6px;
padding-bottom: 14px;
}
.cell-data-help-section + .cell-data-help-section {
padding-top: 12px;
border-top: 1px solid var(--td-border-color-light);
}
.cell-data-help-section h4,
.cell-data-help-section p {
margin: 0;
}
.cell-data-help-section code {
display: block;
overflow-x: auto;
padding: 6px 8px;
color: var(--td-text-color-primary);
background: var(--td-bg-color-secondarycontainer);
border-radius: var(--td-radius-small);
}
.license-dialog-body {
display: flex;
flex-direction: column;