优化项目结构, 增加表格和文档插件
This commit is contained in:
1 parent
685813b443
commit
057d267e9f
5 files changed
+40
-2
No files matched your search
@@ -20,6 +20,10 @@ function OnAction(control) {
|
||||
alert("关于我们\n\n作者:Jianxin\n\n版本:1.0.0\n\n说明:自动化插件\n\n感谢使用!")
|
||||
}
|
||||
break;
|
||||
case "contactAuthor":
|
||||
{
|
||||
wps.ShowDialog(GetUrlPath() + "/ui/author.html", "联系作者", 400 * window.devicePixelRatio, 400 * window.devicePixelRatio, false)
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "xbotet",
|
||||
"name": "xbot-et",
|
||||
"addonType": "et",
|
||||
"version": "1.0.0",
|
||||
"description": "借助插件实现WPS的自动化操作",
|
||||
|
||||
+4
-1
@@ -3,9 +3,12 @@
|
||||
<tabs>
|
||||
<tab id="wpsAddinTab" label="影刀插件">
|
||||
<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" />
|
||||
<button id="contactAuthor" label="联系作者" onAction="OnAction"
|
||||
getEnabled="OnGetEnabled" getImage="GetImage" visible="true" size="large" />
|
||||
</group>
|
||||
|
||||
</tab>
|
||||
</tabs>
|
||||
</ribbon>
|
||||
|
||||
@@ -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.
Reference in new issue
Block a user