Skip to content

Commit

Permalink
chore: 去除 changeset 版本信息
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKam committed May 26, 2024
1 parent 9d8923c commit cc5c270
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .changeset/soft-garlics-reply.md

This file was deleted.

9 changes: 7 additions & 2 deletions packages/pdf-viewer/demo/DemoDev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* debug: true
*/

import React from 'react';
import React, { useState } from 'react';
import PdfViewer, {
PDFContextPrintPlugin,
PDFOpenFileButtonPlugin,
Expand All @@ -13,8 +13,11 @@ import PdfViewer, {
PDFTooltipPlugin,
usePdfViewerRef,
} from '@orca-fe/pdf-viewer';
import { JsonViewer } from '@orca-fe/pocket';

const Demo1 = () => {
const [data, setData] = useState<any[]>([]);

const pdfViewerRef = usePdfViewerRef();
return (
<div>
Expand All @@ -33,11 +36,13 @@ const Demo1 = () => {
/>
<PdfViewer ref={pdfViewerRef} dropFile pdfJsParams={{ cMapUrl: '/pdfjs-bcmaps/' }} style={{ height: 600 }}>
<PDFOpenFileButtonPlugin />
<PDFPainterPlugin />
<PDFPainterPlugin data={data} onDataChange={setData} />
<PDFTooltipPlugin />
<PDFContextPrintPlugin />
<PDFPageDebugPlugin />
</PdfViewer>
<div>绘图数据:</div>
<JsonViewer value={data} />
</div>
);
};
Expand Down

0 comments on commit cc5c270

Please sign in to comment.