优化项目结构, 增加表格和文档插件

This commit is contained in:
jianxin committed 2025-04-01 15:09:10 +08:00
1 parent 6ba9ed637b
commit 0d6e543a6f
2 files changed
+104

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
const wpsInstance = {
app: wps.EtApplication().Application,
// 获取全部 sheet 页
getSheets: () => {
const activeWorkbook = wpsInstance.app.ActiveWorkbook;
for (let i = 1; i <= activeWorkbook.Worksheets.Count; i++) {
alert(activeWorkbook.Worksheets.Item(i).Name)
}
}
}
return wpsInstance;