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

This commit is contained in:
jianxin committed 2025-04-01 16:51:24 +08:00
1 parent 685813b443
commit 057d267e9f
5 files changed
+40 -2

No files matched your search

+4
View File
@@ -20,6 +20,10 @@ function OnAction(control) {
alert("关于我们\n\n作者:Jianxin\n\n版本:1.0.0\n\n说明:自动化插件\n\n感谢使用!") alert("关于我们\n\n作者:Jianxin\n\n版本:1.0.0\n\n说明:自动化插件\n\n感谢使用!")
} }
break; break;
case "contactAuthor":
{
wps.ShowDialog(GetUrlPath() + "/ui/author.html", "联系作者", 400 * window.devicePixelRatio, 400 * window.devicePixelRatio, false)
}
default: default:
break break
} }
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"name": "xbotet", "name": "xbot-et",
"addonType": "et", "addonType": "et",
"version": "1.0.0", "version": "1.0.0",
"description": "借助插件实现WPS的自动化操作", "description": "借助插件实现WPS的自动化操作",
+4 -1
View File
@@ -3,9 +3,12 @@
<tabs> <tabs>
<tab id="wpsAddinTab" label="影刀插件"> <tab id="wpsAddinTab" label="影刀插件">
<group id="btnDemoGroup" label="group1"> <group id="btnDemoGroup" label="group1">
<button id="btnShowAbout" label="关于" onAction="OnAction" getImage="GetImage" <button id="btnShowAbout" label="关于插件" onAction="OnAction" getImage="GetImage"
visible="true" size="large" /> visible="true" size="large" />
<button id="contactAuthor" label="联系作者" onAction="OnAction"
getEnabled="OnGetEnabled" getImage="GetImage" visible="true" size="large" />
</group> </group>
</tab> </tab>
</tabs> </tabs>
</ribbon> </ribbon>
+31
View File
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div class="container">
<img class="authImg" src="https://won-link.oss-cn-hangzhou.aliyuncs.com/halo/AuthorWx.png">
</div>
</body>
<style>
.container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.authImg {
width: 80%;
height: 80%;
position: relative;
margin: 10px;
}
</style>
</html>
Binary file not shown.