alert before clean recycle.bin
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import { useFastClean } from "../composables/useFastClean";
|
||||
import type { AlertOptions } from "../types/cleaner";
|
||||
import type { AlertOptions, ConfirmOptions } from "../types/cleaner";
|
||||
import { splitSize, formatItemSize } from "../utils/format";
|
||||
|
||||
const props = defineProps<{
|
||||
showAlert: (options: AlertOptions) => void;
|
||||
requestConfirm: (options: ConfirmOptions) => Promise<boolean>;
|
||||
}>();
|
||||
|
||||
const { state, selectedStats, startScan, startClean, reset } = useFastClean(props.showAlert);
|
||||
const { state, selectedStats, startScan, startClean, reset } = useFastClean(
|
||||
props.showAlert,
|
||||
props.requestConfirm,
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user