Skip to content

Commit

Permalink
Merge pull request #6 from orca-team/dev_lzh
Browse files Browse the repository at this point in the history
fix: disabled 没有页面是;右键 打印功能
  • Loading branch information
hongzelin authored Dec 8, 2023
2 parents 00be3f2 + 6177da3 commit 12e216f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
.dumi/tmp-test
.dumi/tmp-production
.env.local
.umi

# ide
/.vscode
Expand Down
6 changes: 6 additions & 0 deletions packages/pdf-viewer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/pdf-viewer

## 1.21.1

### Patch Changes

- fix: disabled 没有页面是;右键 打印功能

## 1.21.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/pdf-viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/pdf-viewer",
"version": "1.21.0",
"version": "1.21.1",
"description": "PDF Viewer",
"keywords": [
"react",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const PdfContextPrintPlugin = (props: PdfContextPrintPluginProps) => {
key: 'print',
text: locale.printCurrentFile || '打印当前文件',
icon: <PrinterOutlined />,
disabled: pdfViewer.getPageCount() <= 0,
onClick: async () => {
const data = await pdfViewer.getPDFInstance()?.getData();
if (data) {
Expand Down

1 comment on commit 12e216f

@vercel
Copy link

@vercel vercel bot commented on 12e216f Dec 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.