feat(font): 新增字体设置并统一医护端与患者端文书字体

This commit is contained in:
xy
2026-09-30 08:35:02 +08:00
parent fe8cb01d4d
commit c2984bfd98
18 changed files with 511 additions and 5 deletions
@@ -20,6 +20,7 @@ import type {
} from '@/utils/signing-document'
import DocumentPaper from './DocumentPaper.vue'
import type { DocumentFont } from '../../../../packages/document-fonts'
const props = withDefaults(
defineProps<{
@@ -35,6 +36,7 @@ const props = withDefaults(
activeTab?: string
/** 正文(模板定稿 / 任务固化快照) */
contentHtml: string
documentFont?: DocumentFont | null
data?: SigningDocumentData
interactive?: boolean
signatureActionable?: boolean
@@ -65,6 +67,7 @@ const props = withDefaults(
stacked?: boolean
}>(),
{
documentFont: undefined,
subtitle: '',
badges: () => [],
tabs: undefined,
@@ -164,6 +167,7 @@ defineExpose({ getDocumentElement })
<DocumentPaper
v-if="hasPaper"
ref="paperRef"
:document-font="documentFont"
:content-html="contentHtml"
:data="data"
:interactive="interactive"