diff --git a/src/panes/DownloadPane/components/DownloadProgress.vue b/src/panes/DownloadPane/components/DownloadProgress.vue index 46cd8e2..3e42e45 100644 --- a/src/panes/DownloadPane/components/DownloadProgress.vue +++ b/src/panes/DownloadPane/components/DownloadProgress.vue @@ -11,8 +11,9 @@ import { PhFolderOpen, PhFileVideo, PhMagnifyingGlass, + PhWrench, } from '@phosphor-icons/vue' -import { ProgressProps } from 'naive-ui' +import { ProgressProps, useDialog } from 'naive-ui' import UpInfoBadge from '../../../components/UpInfoBadge.vue' import { computed, DeepReadonly, inject } from 'vue' import ColorfulTag from '../../../components/ColorfulTag.vue' @@ -20,6 +21,9 @@ import { searchPaneRefKey } from '../../../injection_keys.ts' import { ProgressData } from '../DownloadPane.vue' import { ensureHttps } from '../../../utils.tsx' import IconButton from '../../../components/IconButton.vue' +import ModifyProgressDialogContent from './ModifyProgressDialogContent.vue' + +const dialog = useDialog() const store = useStore() @@ -128,6 +132,15 @@ function handleSearchClick() { searchPaneRef?.value?.search(`ep${props.p.ep_id}`, 'Cheese') } } + +function handleModifyClick() { + const dialogReactive = dialog.create({ + title: '修改下载内容', + showIcon: false, + draggable: true, + content: () => dialogReactive.destroy()} />, + }) +}