From ff8a0814c5e101fc0fa41f43054f80d3fa9cf080 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期一, 13 十一月 2023 17:04:43 +0800 Subject: [PATCH] fix: 修复类型标记错误 --- src/views/dashboard/components/ProcessInfo.vue | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/dashboard/components/ProcessInfo.vue b/src/views/dashboard/components/ProcessInfo.vue index 859f890..b107f93 100644 --- a/src/views/dashboard/components/ProcessInfo.vue +++ b/src/views/dashboard/components/ProcessInfo.vue @@ -29,7 +29,7 @@ import type { Task } from '@/api/task' const props = defineProps<{ craftModel: CraftModel - activeArr: Array + activeArr: string[] task?: Task }>() const { craftModel, task, activeArr } = toRefs(props) @@ -49,9 +49,10 @@ for (let i in activeArr.value) { if (activeArr.value[i] == craftModel.value.number) { loading.value = true - break + return true } } + loading.value = false } function onDetailClick() { emit('detail', craftModel.value) @@ -73,9 +74,9 @@ font-weight: 600; } .process-info { - width: calc(50% - 35px); + width: calc(50% - 10px); height: 140px; - padding: 23px 10px 10px; + padding: 23px 5px 10px 10px; background: $status-done; border-radius: 8px; //float: left; @@ -85,7 +86,7 @@ margin-bottom: 30px; &:nth-of-type(odd) { - margin-right: 30px; + margin-right: 20px; } .item-l-bng { @@ -146,7 +147,7 @@ .btn { width: 100px; position: absolute; - right: 10px; + right: 5px; bottom: 10px; .el-button--primary { background: $status-running; -- Gitblit v1.8.0