feat: 支持忽略更新

This commit is contained in:
cc
2026-02-01 20:50:01 +08:00
committed by xuncha
parent cb37f534ac
commit 123a088a39
9 changed files with 96 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ interface UpdateDialogProps {
updateInfo: UpdateInfo | null
onClose: () => void
onUpdate: () => void
onIgnore?: () => void
isDownloading: boolean
progress: number | {
percent: number
@@ -27,6 +28,7 @@ const UpdateDialog: React.FC<UpdateDialogProps> = ({
updateInfo,
onClose,
onUpdate,
onIgnore,
isDownloading,
progress
}) => {
@@ -118,6 +120,11 @@ const UpdateDialog: React.FC<UpdateDialogProps> = ({
</div>
) : (
<div className="actions">
{onIgnore && (
<button className="btn-ignore" onClick={onIgnore}>
</button>
)}
<button className="btn-update" onClick={onUpdate}>
</button>