更新记录
1.0.0(2025-10-16)
初始版本
平台兼容性
uni-app(4.66)
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
uni-app x(4.66)
Chrome |
Safari |
Android |
Android插件版本 |
iOS |
iOS插件版本 |
鸿蒙 |
微信小程序 |
- |
- |
5.0 |
1.0.0 |
12 |
1.0.0 |
- |
- |
xwq-pdf-view
pdf预览说明文档
组件在页面使用方法
<template>
<view>
<xwq-pdf-view ref="pdfView" :url="pdfUrl" @pageChange="pageChange" :style="{height:`${sysInfo.windowHeight}px`,width:'100%',backgroundColor:'#000000'}"></xwq-pdf-view>
</view>
</template>
<script setup>
const sysInfo=uni.getSystemInfoSync()
const pdfUrl="https://example.com/files/web/plugin/diyizhang.pdf";
const pdfView=ref<XwqPdfViewElement|null>(null);
const pageChange=(arg:UTSJSONObject)=>{
console.log('arg====',arg)
}
</script>
<style>
.print{
position: fixed;
left: 50px;
top: 100px;
}
</style>