feat:合同文档列表预览完成Collabora集成

This commit is contained in:
PingChuan
2025-11-21 11:04:14 +08:00
parent c3e4b3837f
commit 7e7648383e
10 changed files with 527 additions and 409 deletions
@@ -86,24 +86,6 @@ export function CollaboraViewer({
title={`Collabora Online - ${config.fileName}`}
sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-modals"
/>
{/* 调试信息(开发环境) */}
{process.env.NODE_ENV === 'development' && (
<div className="mt-2 p-2 bg-gray-100 text-xs rounded">
<div>
<strong>:</strong> {isDocumentLoaded ? '已加载' : '加载中...'}
</div>
<div>
<strong>:</strong> {config.mode === 'edit' ? '编辑' : '只读'}
</div>
<div>
<strong>:</strong> {config.fileName}
</div>
<div>
<strong>:</strong> {userName} ({userId})
</div>
</div>
)}
</div>
);
}