iter: b04 新增独立 pagination 分页器并与 dataTable 页码联动
This commit is contained in:
@@ -379,6 +379,48 @@
|
||||
background: color-mix(in srgb, var(--ua-color-danger) 12%, transparent);
|
||||
}
|
||||
|
||||
/* —— 独立分页器 —— */
|
||||
.ua-pagination {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--ua-space-1);
|
||||
}
|
||||
.ua-page-btn {
|
||||
min-width: 28px;
|
||||
height: 28px;
|
||||
padding: 0 var(--ua-space-2);
|
||||
border: 1px solid var(--ua-color-border);
|
||||
border-radius: var(--ua-radius-sm);
|
||||
background: var(--ua-color-bg);
|
||||
color: var(--ua-color-text);
|
||||
font-size: var(--ua-font-size-md);
|
||||
cursor: pointer;
|
||||
font-variant-numeric: tabular-nums;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
|
||||
}
|
||||
.ua-page-btn:hover:not(:disabled) {
|
||||
border-color: var(--ua-color-accent);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.ua-page-btn:focus-visible {
|
||||
outline: none;
|
||||
border-color: var(--ua-color-accent);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ua-color-accent) 18%, transparent);
|
||||
}
|
||||
.ua-page-btn:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ua-page-btn.ua-active {
|
||||
border-color: var(--ua-color-accent);
|
||||
background: color-mix(in srgb, var(--ua-color-accent) 10%, transparent); /* 选中态低视觉比重 */
|
||||
color: var(--ua-color-text-muted);
|
||||
}
|
||||
.ua-page-gap {
|
||||
color: var(--ua-color-text-muted);
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
/* —— 骨架屏:占位灰块 + 扫光 —— */
|
||||
.ua-skeleton {
|
||||
position: relative;
|
||||
@@ -744,6 +786,7 @@
|
||||
.ua-switch-thumb,
|
||||
.ua-tab,
|
||||
.ua-tabs-indicator,
|
||||
.ua-page-btn,
|
||||
.ua-table tbody tr,
|
||||
.ua-progress-fill,
|
||||
.ua-progress-fill::after,
|
||||
|
||||
Reference in New Issue
Block a user