mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
feat(export): show selected count on batch export button
This commit is contained in:
@@ -1145,14 +1145,27 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
&:hover:not(:disabled) {
|
&:hover:not(:disabled) {
|
||||||
background: var(--primary-hover);
|
background: var(--primary-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled {
|
.selection-export-count {
|
||||||
opacity: 0.65;
|
min-width: 18px;
|
||||||
cursor: not-allowed;
|
height: 18px;
|
||||||
|
padding: 0 5px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
color: #fff;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 700;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3984,14 +3984,16 @@ function ExportPage() {
|
|||||||
>
|
>
|
||||||
清空
|
清空
|
||||||
</button>
|
</button>
|
||||||
<button
|
{selectedCount > 0 && (
|
||||||
className="selection-export-btn"
|
<button
|
||||||
type="button"
|
className="selection-export-btn"
|
||||||
onClick={openBatchExport}
|
type="button"
|
||||||
disabled={selectedCount === 0}
|
onClick={openBatchExport}
|
||||||
>
|
>
|
||||||
批量导出
|
<span>批量导出</span>
|
||||||
</button>
|
<span className="selection-export-count">{selectedCount}</span>
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="contacts-list-header">
|
<div className="contacts-list-header">
|
||||||
<span className="contacts-list-header-select">选择</span>
|
<span className="contacts-list-header-select">选择</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user