更新记录
1.0.0(2025-08-17) 下载此版本
1.0.1
平台兼容性
uni-app(4.72)
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | × | × | × | × | × |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
× | × | × | × | × | × | × | × | × | × | × |
piao-docxtemplate
- 下载本模块后,应当首先安装插件依赖:右键插件——>使用命令行窗口打开所在目录——>在打开的终端中运行npm i。
- 如果需要在Electron中使用,应当参照下面的代码,注意方法名称为“saveFile”
import { contextBridge, ipcRenderer } from 'electron'
// 暴露受保护的API给渲染进程 contextBridge.exposeInMainWorld('electronAPI', {
// 示例:文件操作 openFile: () => ipcRenderer.invoke('dialog:openFile'), saveFile: (data) => ipcRenderer.invoke('dialog:saveFile', data),
})
// 移除所有监听器 window.addEventListener('beforeunload', () => { ipcRenderer.removeAllListeners('message') })