DingRui12138 / vue-pdf-viewer

MIT License
18 stars 11 forks source link

能否支持工具栏扩展按钮以及自定义重写现有的按钮方法? #8

Open Alex37882388 opened 2 years ago

Alex37882388 commented 2 years ago

您好,有时间需要在打印之前做点什么,希望可以修改打印按钮的行为,或者增加自定义按钮做某些事情? 但是我clone源码之后没跑起来,两个疑问:环境要求node版本是多少?能用pnpm代替yarn吗? PS: 我目前用的 node: 14.15.0

感谢大佬的贡献!

Alex37882388 commented 2 years ago

我切换了 node为16.16.0,npm版本是8.11.0,执行npm i 也报错如下: npm WARN config global --global, --local are deprecated. Use --location=global instead. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: pdf-viewer-vue@0.2.8 npm ERR! Found: webpack@5.60.0 npm ERR! node_modules/webpack npm ERR! dev webpack@"5" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^4.0.0" from uglifyjs-webpack-plugin@2.2.0 npm ERR! node_modules/uglifyjs-webpack-plugin npm ERR! dev uglifyjs-webpack-plugin@"^2.2.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\topnet\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\topnet\AppData\Local\npm-cache_logs\2022-10-20T05_21_46_929Z-debug-0.log