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 bbba1d863d fix: some bug 4 years ago
.github/workflows first commit 4 years ago
.husky fix: monaco run error with production 4 years ago
preview fix: some bug 4 years ago
public style: personal github 4 years ago
src fix: some bug 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 fix: monaco run error with production 4 years ago
.gitignore fix: monaco run error with production 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.md fix: some bug 4 years ago
commitlint.config.js first commit 4 years ago
index.html feat: tools 4 years ago
package.json fix: some bug 4 years ago
prettier.config.js first commit 4 years ago
stylelint.config.js fix: monaco run error with production 4 years ago
tsconfig.json feat: iframe preview 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 fix: some bug 4 years ago

README.md

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

技术栈

功能清单

  • 动态添加页面
  • 拖拽式生成组件
  • 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 value = (propObj[children[2].textContent] ?? propObj['string'])({
    label: `'${children[1].textContent}'`
  }).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