Files
short-drama-agent-front/src/components/ui/RawDataDetails.vue
T

24 lines
807 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { NCollapse, NCollapseItem } from 'naive-ui'
/** 原始诊断与生成参数仅供高级核对,默认收起,不替代普通用户的中文摘要。 */
withDefaults(
defineProps<{
/** 原始数据保持不变,便于核对技术问题。 */
value: unknown
/** 中文高级入口名称。 */
title?: string
}>(),
{ title: '高级详情(原始数据)' }
)
</script>
<template>
<!-- 以下是默认收起的高级数据模块,统一使用 Naive 折叠组件 -->
<NCollapse class="mt-3"
><NCollapseItem name="raw-data" :title="title">
<pre class="whitespace-pre-wrap break-words text-xs leading-6">{{ JSON.stringify(value, null, 2) }}</pre>
</NCollapseItem></NCollapse
>
</template>