diff --git a/src/views/project/detail.vue b/src/views/project/detail.vue index 3a7fd1c..d142ae8 100644 --- a/src/views/project/detail.vue +++ b/src/views/project/detail.vue @@ -39,6 +39,19 @@ const projectId = ref(route.params.id as string); const loading = ref(false); const ganttLoading = ref(false); +// 边距设置 +const marginSettings = ref({ + top: 16, + right: 80, + bottom: 16, + left: 16 +}); + +// 计算边距样式 +const marginStyle = computed(() => ({ + padding: `${marginSettings.value.top}px ${marginSettings.value.right}px ${marginSettings.value.bottom}px ${marginSettings.value.left}px` +})); + // 项目详情数据 const projectDetail = ref(null); @@ -407,7 +420,62 @@ onMounted(() => {