fix(short-drama-agent-front): 优化首帧布局与来源复核
This commit is contained in:
1 parent
10e008ca10
commit
3915566994
17 files changed
+733
-223
No files matched your search
@@ -1,8 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
/** 工作区模块标题、说明与右侧操作的统一展示参数。 */
|
||||
/** 工作区模块标题、说明及操作位置的统一展示参数。 */
|
||||
interface Props {
|
||||
/** 模块标题。 */
|
||||
title: string
|
||||
/** 操作放右侧同行或说明下方左侧;默认保持已有页面布局。 */
|
||||
actionsPlacement?: 'right' | 'below'
|
||||
/** 模块说明,可通过 description 插槽补充状态与提示。 */
|
||||
description?: string
|
||||
}
|
||||
@@ -12,16 +14,22 @@ defineProps<Props>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 以下是统一的模块标题与右侧操作模块 -->
|
||||
<!-- 以下是统一的模块标题与可选同行操作模块 -->
|
||||
<header class="workspace-section-heading">
|
||||
<div class="workspace-section-heading-row">
|
||||
<h3 class="text-sm font-semibold">{{ title }}</h3>
|
||||
<div v-if="$slots.actions" class="workspace-section-heading-actions"><slot name="actions" /></div>
|
||||
<div v-if="$slots.actions && actionsPlacement !== 'below'" class="workspace-section-heading-actions">
|
||||
<slot name="actions" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- 以下是标题下方的说明与状态模块 -->
|
||||
<div v-if="description || $slots.description" class="workspace-section-description">
|
||||
<slot name="description">{{ description }}</slot>
|
||||
</div>
|
||||
<!-- 以下是正文左侧的模块操作,与标题及说明共用边界 -->
|
||||
<div v-if="$slots.actions && actionsPlacement === 'below'" class="workspace-section-heading-actions mt-4">
|
||||
<slot name="actions" />
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user