vue项目中操作PDF文件
官方文档参考:https://www.npmjs.com/package/vue-pdf
1.
cnpm install --save vue-pdf
2.components.vue
<template> <pdf src="./static/relativity.pdf"></pdf> </template> <script> import pdf from 'vue-pdf' export default { components: { pdf } }
官方文档参考:https://www.npmjs.com/package/vue-pdf
1.
cnpm install --save vue-pdf
2.components.vue
<template> <pdf src="./static/relativity.pdf"></pdf> </template> <script> import pdf from 'vue-pdf' export default { components: { pdf } }