feat(short-drama-agent-front): 接入人工动作修订与视频版本权限

This commit is contained in:
GJ committed 2026-10-14 13:44:02 +08:00
1 parent 7a60db3ced
commit fa76165960
38 files changed
+2003 -158

No files matched your search

@@ -0,0 +1,27 @@
<script setup lang="ts">
import { NButton } from 'naive-ui'
import { RefreshCw } from '@lucide/vue'
/** 工作区刷新按钮统一沿用默认按钮尺寸、背景与图标间距。 */
interface Props {
/** 刷新操作名称。 */
label?: string
/** 是否正在读取最新数据。 */
loading?: boolean
/** 是否暂时禁止刷新。 */
disabled?: boolean
}
/** 刷新仅改变读取状态,调用方负责真实接口请求。 */
withDefaults(defineProps<Props>(), { label: '刷新', loading: false, disabled: false })
/** 用户明确点击刷新时通知调用方。 */
const emit = defineEmits<{ refresh: [] }>()
</script>
<template>
<!-- 以下是统一的手动刷新按钮模块 -->
<NButton :loading="loading" :disabled="disabled" @click="emit('refresh')">
<template #icon><RefreshCw :size="13" aria-hidden="true" /></template>
{{ label }}
</NButton>
</template>
@@ -0,0 +1,39 @@
<script setup lang="ts">
/** 工作区模块标题、说明与右侧操作的统一展示参数。 */
interface Props {
/** 模块标题。 */
title: string
/** 模块说明,可通过 description 插槽补充状态与提示。 */
description?: string
}
/** 标题与说明由业务模块提供,操作通过插槽复用统一对齐方式。 */
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>
<!-- 以下是标题下方的说明与状态模块 -->
<div v-if="description || $slots.description" class="workspace-section-description">
<slot name="description">{{ description }}</slot>
</div>
</header>
</template>
<style>
@reference "../../styles/styles.css";
.workspace-section-heading-row {
@apply flex min-w-0 flex-wrap items-center justify-between gap-3;
}
.workspace-section-heading-actions {
@apply flex shrink-0 flex-wrap items-center gap-3;
}
.workspace-section-description {
@apply mt-2 text-xs leading-6 text-muted;
}
</style>
+2
View File
@@ -9,3 +9,5 @@ export { default as AssetOpenLink } from './AssetOpenLink.vue'
export { default as RevealImage } from './RevealImage.vue'
export { default as DirectoryItem } from './DirectoryItem.vue'
export { default as WorkspaceTools } from './WorkspaceTools.vue'
export { default as WorkspaceSectionHeading } from './WorkspaceSectionHeading.vue'
export { default as WorkspaceRefreshButton } from './WorkspaceRefreshButton.vue'