update
This commit is contained in:
		
							
								
								
									
										312
									
								
								web/src/apps/muse/base/table/table.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										312
									
								
								web/src/apps/muse/base/table/table.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,312 @@
 | 
			
		||||
/* 表格容器 */
 | 
			
		||||
.table-container {
 | 
			
		||||
  background: #fff;
 | 
			
		||||
  border-radius: 8px;
 | 
			
		||||
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 | 
			
		||||
  overflow: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 工具栏 */
 | 
			
		||||
.table-toolbar {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  justify-content: space-between;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  padding: 16px;
 | 
			
		||||
  background: #f5f5f5;
 | 
			
		||||
  border-bottom: 1px solid #e8e8e8;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.selected-info {
 | 
			
		||||
  color: #666;
 | 
			
		||||
  font-size: 14px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.bulk-actions {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  gap: 8px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 表格主体 */
 | 
			
		||||
.table-wrapper {
 | 
			
		||||
  overflow-x: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.data-table {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  border-collapse: collapse;
 | 
			
		||||
  font-size: 14px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.data-table th,
 | 
			
		||||
.data-table td {
 | 
			
		||||
  padding: 12px 16px;
 | 
			
		||||
  text-align: left;
 | 
			
		||||
  border-bottom: 1px solid #e8e8e8;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.data-table th {
 | 
			
		||||
  background: #fafafa;
 | 
			
		||||
  font-weight: 600;
 | 
			
		||||
  color: #333;
 | 
			
		||||
  position: sticky;
 | 
			
		||||
  top: 0;
 | 
			
		||||
  z-index: 10;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.data-table tbody tr:hover {
 | 
			
		||||
  background: #f5f5f5;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 表头 */
 | 
			
		||||
.table-header {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  justify-content: space-between;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sortable {
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
  user-select: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sort-indicators {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-direction: column;
 | 
			
		||||
  margin-left: 8px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sort-arrow {
 | 
			
		||||
  font-size: 10px;
 | 
			
		||||
  line-height: 1;
 | 
			
		||||
  color: #ccc;
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
  transition: color 0.2s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sort-arrow.active {
 | 
			
		||||
  color: #1890ff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sort-up {
 | 
			
		||||
  margin-bottom: 2px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 选择列 */
 | 
			
		||||
.selection-column {
 | 
			
		||||
  width: 48px;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.selection-column input[type="checkbox"] {
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 操作列 */
 | 
			
		||||
.actions-column {
 | 
			
		||||
  width: 200px;
 | 
			
		||||
  text-align: right;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.action-buttons {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  gap: 8px;
 | 
			
		||||
  justify-content: flex-end;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 按钮样式 */
 | 
			
		||||
.btn {
 | 
			
		||||
  display: inline-flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  gap: 4px;
 | 
			
		||||
  padding: 6px 12px;
 | 
			
		||||
  border: 1px solid #d9d9d9;
 | 
			
		||||
  border-radius: 4px;
 | 
			
		||||
  background: #fff;
 | 
			
		||||
  color: #333;
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
  transition: all 0.2s;
 | 
			
		||||
  text-decoration: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn:hover {
 | 
			
		||||
  border-color: #40a9ff;
 | 
			
		||||
  color: #40a9ff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn:disabled {
 | 
			
		||||
  opacity: 0.5;
 | 
			
		||||
  cursor: not-allowed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-primary {
 | 
			
		||||
  background: #1890ff;
 | 
			
		||||
  border-color: #1890ff;
 | 
			
		||||
  color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-primary:hover:not(:disabled) {
 | 
			
		||||
  background: #40a9ff;
 | 
			
		||||
  border-color: #40a9ff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-danger {
 | 
			
		||||
  background: #ff4d4f;
 | 
			
		||||
  border-color: #ff4d4f;
 | 
			
		||||
  color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-danger:hover:not(:disabled) {
 | 
			
		||||
  background: #ff7875;
 | 
			
		||||
  border-color: #ff7875;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-icon {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 空状态 */
 | 
			
		||||
.empty-state {
 | 
			
		||||
  text-align: center;
 | 
			
		||||
  padding: 64px 16px;
 | 
			
		||||
  color: #999;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.empty-icon {
 | 
			
		||||
  font-size: 48px;
 | 
			
		||||
  margin-bottom: 16px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 加载状态 */
 | 
			
		||||
.table-loading {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-direction: column;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  justify-content: center;
 | 
			
		||||
  padding: 64px 16px;
 | 
			
		||||
  color: #666;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.loading-spinner {
 | 
			
		||||
  width: 32px;
 | 
			
		||||
  height: 32px;
 | 
			
		||||
  border: 3px solid #f0f0f0;
 | 
			
		||||
  border-top: 3px solid #1890ff;
 | 
			
		||||
  border-radius: 50%;
 | 
			
		||||
  animation: spin 1s linear infinite;
 | 
			
		||||
  margin-bottom: 16px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@keyframes spin {
 | 
			
		||||
  0% { transform: rotate(0deg); }
 | 
			
		||||
  100% { transform: rotate(360deg); }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 分页 */
 | 
			
		||||
.pagination-wrapper {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  justify-content: space-between;
 | 
			
		||||
  padding: 16px;
 | 
			
		||||
  border-top: 1px solid #e8e8e8;
 | 
			
		||||
  background: #fafafa;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pagination-info {
 | 
			
		||||
  color: #666;
 | 
			
		||||
  font-size: 14px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pagination-controls {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  gap: 8px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.page-numbers {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  gap: 4px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.page-btn {
 | 
			
		||||
  min-width: 32px;
 | 
			
		||||
  height: 32px;
 | 
			
		||||
  padding: 0 8px;
 | 
			
		||||
  border: 1px solid #d9d9d9;
 | 
			
		||||
  background: #fff;
 | 
			
		||||
  color: #333;
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
  transition: all 0.2s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.page-btn:hover {
 | 
			
		||||
  border-color: #40a9ff;
 | 
			
		||||
  color: #40a9ff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.page-btn.active {
 | 
			
		||||
  background: #1890ff;
 | 
			
		||||
  border-color: #1890ff;
 | 
			
		||||
  color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.page-ellipsis {
 | 
			
		||||
  padding: 0 8px;
 | 
			
		||||
  color: #999;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.page-size-selector {
 | 
			
		||||
  margin-left: 16px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.page-size-selector select {
 | 
			
		||||
  padding: 4px 8px;
 | 
			
		||||
  border: 1px solid #d9d9d9;
 | 
			
		||||
  border-radius: 4px;
 | 
			
		||||
  background: #fff;
 | 
			
		||||
  color: #333;
 | 
			
		||||
  font-size: 14px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 响应式 */
 | 
			
		||||
@media (max-width: 768px) {
 | 
			
		||||
  .table-toolbar {
 | 
			
		||||
    flex-direction: column;
 | 
			
		||||
    gap: 12px;
 | 
			
		||||
    align-items: stretch;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .bulk-actions {
 | 
			
		||||
    justify-content: flex-end;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .pagination-wrapper {
 | 
			
		||||
    flex-direction: column;
 | 
			
		||||
    gap: 12px;
 | 
			
		||||
    align-items: stretch;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .pagination-controls {
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .page-size-selector {
 | 
			
		||||
    margin-left: 0;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .action-buttons {
 | 
			
		||||
    flex-direction: column;
 | 
			
		||||
    gap: 4px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .actions-column {
 | 
			
		||||
    width: 120px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .btn {
 | 
			
		||||
    font-size: 11px;
 | 
			
		||||
    padding: 4px 8px;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user