You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
bqy_fe 5f99924474 chore: update deps 4 years ago
.github/workflows chore: update deps 4 years ago
.husky fix: monaco run error with production 4 years ago
.vscode style: code style 4 years ago
preview perf: dragable components 4 years ago
public chore: add gitee repository url 4 years ago
src chore: update deps 4 years ago
.cz-config.js first commit 4 years ago
.editorconfig first commit 4 years ago
.env.development first commit 4 years ago
.env.production feat: iframe preview 4 years ago
.eslintignore first commit 4 years ago
.eslintrc.js style: code style 4 years ago
.gitignore chore: adjust config 4 years ago
.prettierignore first commit 4 years ago
.stylelintignore fix: monaco run error with production 4 years ago
LICENSE first commit 4 years ago
README.EN.md perf: dragable components 4 years ago
README.md perf: dragable components 4 years ago
commitlint.config.js first commit 4 years ago
index.html feat: tools 4 years ago
package.json chore: update deps 4 years ago
prettier.config.js first commit 4 years ago
stylelint.config.js feat: add animate components 4 years ago
tsconfig.json feat: add animate components 4 years ago
vite.config.ts fix: monaco run error with production 4 years ago
windi.config.ts first commit 4 years ago
yarn.lock chore: update deps 4 years ago

README.md

基于 Vite2.x + Vue3.x + TypeScript H5 低代码平台

license

中文 | English

克隆主分支,忽略 git-pages 等无关分支

git clone --single-branch https://github.com/buqiyuan/vite-vue3-lowcode.git
# or
git clone --single-branch https://gitee.com/buqiyuan/vite-vue3-lowcode.git

技术栈

功能清单

  • 动态添加页面
  • 拖拽式生成组件
  • service worker + indexeddb 实现无服务端的前端交互
  • 数据源管理
  • 提供预置函数
  • 更多组件的封装
  • 其他...

简易说明

目前在使用表单时,需要把相关的表单控件放到表单容器内部,并且需要将按钮放到表单容器内, 然后再讲按钮的type设置为表单提交按钮这时候点击提交按钮才会自动收集表单容器内部的所有字段和值

快速生成组件属性

// 在vant文档中 chrome控制台输入以下代码,快速生成组件属性
let propObj = {
  string: (config) => `createEditorInputProp(${JSON.stringify(config)})`,
  number: (config) => `createEditorInputNumberProp(${JSON.stringify(config)})`,
  boolean: (config) => `createEditorSwitchProp(${JSON.stringify(config)})`
}

$$('#props + table tr').reduce((prev, curr) => {
  const children = curr.children
  const key = children[0].textContent.replace(/-([a-z])/g, (all, i) => i.toUpperCase())
  const child3Text = children[3].textContent
  const defaultValue = ['true', 'false'].includes(child3Text)
    ? child3Text
    : `'${child3Text == '-' ? '' : child3Text}'`
  const value = (propObj[children[2].textContent] ?? propObj['string'])({
    label: `'${children[1].textContent}'`,
    defaultValue
  }).replaceAll('"', '')
  prev[key] = value
  return prev
}, {})

浏览器支持

本地开发推荐使用Chrome 80+ 浏览器

支持现代浏览器, 不支持 IE

 Edge
IE
 Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
not support last 2 versions last 2 versions last 2 versions last 2 versions

提交规范

  • feat 增加新功能
  • fix 修复问题/BUG
  • style 代码风格相关无影响运行结果的
  • perf 优化/性能提升
  • refactor 重构
  • revert 撤销修改
  • test 测试相关
  • docs 文档/注释
  • build 对构建系统或者外部依赖项进行了修改
  • chore 依赖更新/脚手架配置修改等
  • workflow 工作流改进
  • ci 持续集成
  • types 类型定义文件更改
  • wip 开发中

快速开始

安装依赖

npm install
# or
yarn add

启动项目

npm run dev

项目打包

npm run build