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); + } + } + } }