# 低代码平台 **Repository Path**: blueskyliu/low-code-platform ## Basic Information - **Project Name**: 低代码平台 - **Description**: llt-admin 框架基础形成的快速布局 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-11 - **Last Updated**: 2024-01-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 更新记录 * 2022-5-23 1. 优化创建项目对话框 2. 新增打卡资源管理器 3. 修复文本link 无法添加点击事件 * 2022-5-19 优化界面UI 1. 优化项目列表操作 2. 项目编辑 调整为 设计 3. 更新数据配置 4. 添加消息提醒节流 * 2022-5-19 优化用户体验 1. 添加测试数据 2. 添加导入导出功能 3. 处理菜单bug 4. 优化模板数据初始化 5. 模板列表化 * 2022-5-16 1. 添加项目添加表单校验 2. 添加菜单添加表单校验 3. 后台设置 添加模板列表配置 * 2022-5-12 1. 编辑项目 添加校验 没有菜单数据无法添加项目 2. 添加内置项目模板 3. 生成代码-添加是否覆盖原来的代码参数 4. 添加意见反馈地址 * 2022-5-7 1. 处理函数绑定bug 2. 添加对话框容器 ## 后期添加的功能 1. https://mauricius.github.io/vue-draggable-resizable/?path=/story/grid--grid-20x20 2. https://github.com/cameronhimself/vue-drag-drop 3. regedit 获取注册表 ## electron-builder https://github.com/electron-userland/electron-builder 地址 ## 环境 推荐 node v14.19.1 "electron-builder": "^22.14.5", "vue": "^3.2.31", ## 打包配置文档地址 https://www.electron.build/ ## 拖拽文档地址 https://www.itxst.com/vue-draggable/j6vzfv6r.html ## 打包配置 ```json { // electron-builder配置 "productName":"xxxx",//项目名 这也是生成的exe文件的前缀名 "appId": "xxxxx",//包名 "copyright":"xxxx",//版权 信息 "compression": "store", // "store" | "normal"| "maximum" 打包压缩情况(store 相对较快),store 39749kb, maximum 39186kb "directories": { "output": "build" // 输出文件夹 }, "asar": false, // asar打包 "extraResources": { // 拷贝dll等静态文件到指定位置 "from": "./app-update.yml", "to": "./b.txt" , { "from": "node_modules/regedit/vbs", "to": "vbs", "filter": [ "**/*" ] } }, "win": { "icon": "xxx/icon.ico"//图标路径, "extraResources": { // 拷贝dll等静态文件到指定位置(用于某个系统配置) "from": "./app-update.yml", "to": "./b.txt" } }, "nsis": { "oneClick": false, // 一键安装 "guid": "xxxx", //注册表名字,不推荐修改 "perMachine": true, // 是否开启安装时权限限制(此电脑或当前用户) "allowElevation": true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。 "allowToChangeInstallationDirectory": true, // 允许修改安装目录 "installerIcon": "./build/icons/aaa.ico", // 安装图标 "uninstallerIcon": "./build/icons/bbb.ico", //卸载图标 "installerHeaderIcon": "./build/icons/aaa.ico", // 安装时头部图标 "createDesktopShortcut": true, // 创建桌面图标 "createStartMenuShortcut": true, // 创建开始菜单图标 "shortcutName": "xxxx" // 图标名称 } } ``` ## 技术校验第二阶段代码生成 1. 菜单动态创建 2. 数据库表模块开发 3. 数据模型开发 4. 表格字段获取途径调整 5. api接口动态生成 ## 技术校验 1. 文件读写 ok 2. 文件夹复制粘贴 ok 3. 数据渲染模板 ok 4. 设计项目数据库结构 ok 5. 菜单模块数据设计 ok 6. 菜单与内容模块同步渲染 ok 7. 组件完善 ok 8. 数据模型 ok 9. 测试 ok 10. 新增模板容器 ok 11. 新增组件 ok 12. 正式生产 no ## 组件开发流程 1. 新增展示组件 /src/components/layouts 2. 完善参数组件配套元素 /src/components/attribute.vue 3. 新增组件参数数据 /src/template/** 完善所需的html代码模块 4. 新增组件参数数据 /src/javascript/** 完善所需的js代码模块 ## 打包报错 1. 网络问题 ``` • electron-builder version=22.14.13 os=10.0.14393 • loaded configuration file=D:\work\开源\electron-tool\electron-builder.json • packaging platform=win32 arch=x64 electron=17.0.1 appOutDir=dist_electron\win-unpacked ⨯ Get "https://github.com/electron/electron/releases/download/v17.0.1/electron-v17.0.1-win32-x64.zip": dial tcp 20.205.243.166:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. github.com/develar/app-builder/pkg/download.(*Downloader).follow.func1 /Volumes/data/Documents/app-builder/pkg/download/downloader.go:206 github.com/develar/app-builder/pkg/download.(*Downloader).follow /Volumes/data/Documents/app-builder/pkg/download/downloader.go:234 github.com/develar/app-builder/pkg/download.(*Downloader).DownloadNoRetry /Volumes/data/Documents/app-builder/pkg/download/downloader.go:128 github.com/develar/app-builder/pkg/download.(*Downloader).Download /Volumes/data/Documents/app-builder/pkg/download/downloader.go:112 github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).doDownload /Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:192 github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).Download /Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:177 github.com/develar/app-builder/pkg/electron.downloadElectron.func1.1 /Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:73 github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2 /Volumes/data/Documents/app-builder/pkg/util/async.go:68 runtime.goexit /usr/local/Cellar/go/1.16.5/libexec/src/runtime/asm_amd64.s:1371 ⨯ D:\work\开源\electron-tool\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE failedTask=build stackTrace=Error: D:\work\开源\electron-tool\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE at ChildProcess. (D:\work\开源\electron-tool\node_modules\builder-util\src\util.ts:250:14) at Object.onceWrapper (node:events:640:26) at ChildProcess.emit (node:events:520:28) at ChildProcess.cp.emit (D:\work\开源\electron-tool\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ``` >解决方案 >可以单独下载这个包 https://github.com/electron/electron/releases/download/v8.0.0/electron-v8.0.0-darwin-x64.zip, 放到~/Library/Caches/electron/ 目录下