From a31ad98a9e80195fa7cecad9017d614269b93554 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sun, 8 Sep 2024 16:06:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=B7=A5=E5=85=B7=E7=AE=B1):=20=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E2=80=9C=E4=B8=8B=E8=BD=BD=E7=94=A8=E6=97=B6=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E2=80=9D=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/toolbox-data.js | 10 +- .../Calculation/CalcDownloadTime.vue | 202 +++++++++++++++++- src/views/ToolboxView/ToolboxView.vue | 19 +- 3 files changed, 224 insertions(+), 7 deletions(-) diff --git a/src/assets/js/toolbox-data.js b/src/assets/js/toolbox-data.js index e8e7d13..27d7fe0 100644 --- a/src/assets/js/toolbox-data.js +++ b/src/assets/js/toolbox-data.js @@ -11,7 +11,7 @@ export const toolList = [ { id: 'calculation-tools', title: '计算', - enabled: false, + enabled: true, items: [ { id: 'calc-download-time', @@ -19,10 +19,10 @@ export const toolList = [ title: '下载用时计算', iconClass: 'mdi mdi-calculator-variant-outline', desc: '根据设定的文件大小和下载速度简单计算大约下载完成所需的时间。', - createdAt: '', - updatedAt: '', - version: '0', - enabled: false, + createdAt: '2024-09-08', + updatedAt: '2024-09-08', + version: '1', + enabled: true, }, { id: 'calc-ratio', diff --git a/src/views/ToolboxView/Calculation/CalcDownloadTime.vue b/src/views/ToolboxView/Calculation/CalcDownloadTime.vue index 714cdbc..2bac709 100644 --- a/src/views/ToolboxView/Calculation/CalcDownloadTime.vue +++ b/src/views/ToolboxView/Calculation/CalcDownloadTime.vue @@ -1,9 +1,209 @@ diff --git a/src/views/ToolboxView/ToolboxView.vue b/src/views/ToolboxView/ToolboxView.vue index ae748de..799a83f 100644 --- a/src/views/ToolboxView/ToolboxView.vue +++ b/src/views/ToolboxView/ToolboxView.vue @@ -91,7 +91,7 @@ const routeTitle = computed(() => { return route.meta.title; }); -/** +/** * @description 打开工具 * @param {ToolboxItem} data */ @@ -149,8 +149,25 @@ function handleOpenTool(data) { position: absolute; left: 0; top: 0; + padding: 20px; width: 100%; height: 100%; background-color: #FFF; + + :deep(.tool-detail-page) { + width: 100%; + height: 100%; + overflow-y: auto; + + > .n-card { + &:not(:first-child) { + margin-top: 20px; + } + + .n-card__content { + padding-top: var(--n-padding-top); + } + } + } }