feat(font): 新增字体设置并统一医护端与患者端文书字体
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user