mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
feat: 添加 ESLint 配置并优化代码风格,移除未使用的功能
This commit is contained in:
@@ -146,18 +146,6 @@ const handleOverlayClick = () => {
|
||||
close();
|
||||
};
|
||||
|
||||
const pause = () => {
|
||||
// emit('pause', props.download.id);
|
||||
};
|
||||
|
||||
const resume = () => {
|
||||
// emit('resume', props.download.id);
|
||||
};
|
||||
|
||||
const cancel = () => {
|
||||
//emit('cancel', props.download.id);
|
||||
};
|
||||
|
||||
const retry = () => {
|
||||
if (props.download) {
|
||||
emit('retry', props.download);
|
||||
|
||||
@@ -100,18 +100,6 @@ const toggleExpand = () => {
|
||||
isExpanded.value = !isExpanded.value;
|
||||
};
|
||||
|
||||
const pauseDownload = (id: string) => {
|
||||
// emit('pause', id);
|
||||
};
|
||||
|
||||
const resumeDownload = (id: string) => {
|
||||
// emit('resume', id);
|
||||
};
|
||||
|
||||
const cancelDownload = (id: string) => {
|
||||
// emit('cancel', id);
|
||||
};
|
||||
|
||||
const retryDownload = (download: DownloadItem) => {
|
||||
emit('retry', download);
|
||||
};
|
||||
|
||||
@@ -90,6 +90,7 @@ defineProps<{
|
||||
hasSelected: boolean;
|
||||
}>();
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const emit = defineEmits<{
|
||||
(e: 'close'): void;
|
||||
(e: 'refresh'): void;
|
||||
|
||||
Reference in New Issue
Block a user