1 Star 0 Fork 19

纳米科技 / GoEasyDesigner

forked from duolabmeng / GoEasyDesigner 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
LGPL-3.0

GoEasyDesigner 窗口设计师

666 image-20230828083413650 image-20230828084834120

基于 go 语言 使用 wails框架 支持 Window Macos Linux 等系统.

主仓库 https://github.com/duolabmeng6/GoEasyDesigner

镜像仓库 https://gitee.com/duolabmeng666/go-easy-designer

项目进度:

项目处于积极开发阶段 欢迎前端大佬pr

已完成任务:

  • 跨平台兼容性:Windows MacOS Linux

  • 界面设计和功能开发:完成了整体界面布局、功能流程设计、界面绘制、属性修改、组件拖拽、双击组件跳转到对应事件函数等核心功能的开发。

  • 智能代码编辑器:实现了代码编辑框的汉字首字母输入提醒功能,提高了编码效率。

  • goefun库支持:goefun库,允许在Golang中使用中文函数进行开发。

  • 布局容器改进:包括常用布局,弹性布局

  • 已完成组件库:按钮 编辑框 标签 开关 单选框 多选框 常用布局 弹性布局 树形框 菜单 表格 进度条 选择夹

待完成任务:

  • jsefun库支持:计划中,等待开发中。

  • 组件库完善:正在进行中, element-plus 组件的进一步完善。

  • 集成开发环境:计划中,将实现无需繁琐配置,直接开发的环境。

  • 多语言支持:计划中,将支持中文和英文等多种语言。

  • 支持ElectronJS:计划中,将支持ElectronJS作为后端技术。

我们将继续努力,确保项目按计划进行,并提供更多强大的功能和支持。请继续关注我们的进展!

在线体验

感谢朋友提供的服务器,可以愉快的在线体验了

国内地址: https://go.kenhong.com/ 国外地址: https://g.yx24.me

画好界面点保存,会下载2个文件 设计文件.json,辅助代码.js 注意你的浏览器允许下载多个文件的权限

下载本项目的代码 复制 wails-demo 文件夹作为开发项目

wails-demo/frontend/src/窗口/设计文件.json

wails-demo/frontend/src/窗口/辅助代码.js

运行项目 就可以看到你设计好的界面了.

cd wails-demo
wails dev

想要更好的无缝使用体验需要下载客户端程序.

快速上手

请按顺序安装好

视频教程10分钟了入门

视频教程3分钟学会自定义组件封装

1.安装 go 语言开发环境

go语言下载页面 版本任意

安装 wails wails框架文档

国内镜像执行 go env -w GOPROXY=https://goproxy.cn,direct

go install github.com/wailsapp/wails/v2/cmd/wails@latest

安装成功后,运行 wails 命令,有内容输出即为安装成功。

2.安装 node js语言开发环境

node语言下载页面 版本18以上

国内镜像 npm install -g cnpm --registry=http://registry.npmmirror.com

安装vite npm create vite@latest

3.下载本项目

GoEasyDesigner/wails-demo 该目录为设计好的界面最终运行的环境你的代码也将在这里编写

wails 同时调试前端和后端

cd wails-demo
wails dev

仅调试前端

cd wails-demo/frontend
npm run dev

4.下载 GoEasyDesigner

下载最新版本: https://github.com/duolabmeng6/GoEasyDesigner/releases

直接运行即可

设计好的界面数据保存在这里

wails-demo/frontend/src/窗口/设计文件.json

5. webstorm IDE代码跳转插件

想体验双击组件在ide中自动跳转到对应函数 请在webstorm中安装 QtEasyDesigner 插件,在本项目的文件中,

安装后在IDE编辑器中右键看到 配置 QtEasyDesigner

macos填写路径

/Applications/GoEasyDesigner.app/Contents/MacOS/GoEasyDesigner

window填写exe的路径

C:\GoEasyDesigner\GoEasyDesigner.exe

后续使用的话 打开 设计文件.json 在编辑器中右键 打开 QtEasyDesigner 界面就出来了

js代码使用 webstorm ide 绝大部分编写代码都应该在 js中编写,如果js无法实现的再调用go代码 go代码使用 goland IDE 编写 一般情况下代码写在 app.go 中

开发组件请看

运行 GoEasyDesigner

wails 同时调试前端和后端

cd GoEasyDesigner
wails dev

如果调试前端可以这样

cd GoEasyDesigner\frontend
vite 

在ide中调试需要以下配置

构建软件包 changeme

工作目录 /Users/ll/Documents/GitHub/GoEasyDesigner/GoEasyDesigner 改成你的路径

环境变量 CGO_LDFLAGS=-framework UniformTypeIdentifiers 这个macos需要 window不需要

go工具实参 -tags dev -gcflags "all=-N -l"

程序实参(可选) 文件路径=/Users/ll/Documents/GitHub/GoEasyDesigner/wails-demo/frontend/src/窗口/设计文件.json port=8080 这是配合ide插件的port是插件的端口

现在可以在 app.go 中下断点调试了.

wails-demo 为模板项目

保存界面数据到这里

wails-demo/frontend/src/窗口/设计文件.json

运行 就可以看到效果了

cd wails-demo
wails dev

贡献

贡献者列表对于自述文件来说太大了! 所有为这个项目做出贡献的杰出人士在这里 贡献列表 后面我们会制作页面

许可证

本项目采用 GNU Lesser General Public License (LGPL) 版本 3 进行许可。详细信息请参阅许可证文件。

学习交流

QQ群: 927427009

GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

简介

基于 go 语言 使用 wails框架, 支持 window macos linux 等系统. 易语言 展开 收起
LGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/haosyyy/go-easy-designer.git
git@gitee.com:haosyyy/go-easy-designer.git
haosyyy
go-easy-designer
GoEasyDesigner
main

搜索帮助