Go to file
renqian805 035663eb3b refactor: simplified code 2022-07-10 20:42:12 +08:00
.github/workflows chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.husky chore: ⬆️update deps 2022-01-01 01:31:04 +08:00
.vscode chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
preview chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
public chore: add gitee repository url 2021-06-01 14:20:33 +08:00
src refactor: simplified code 2022-07-10 20:42:12 +08:00
types chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.browserslistrc chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.cz-config.js first commit 2021-05-04 21:54:05 +08:00
.editorconfig first commit 2021-05-04 21:54:05 +08:00
.env.development feat: 添加组件事件 2021-07-04 17:04:10 +08:00
.env.production feat: 添加组件事件 2021-07-04 17:04:10 +08:00
.eslintignore chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.eslintrc.js chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.gitattributes chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.gitignore chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.npmrc chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
.prettierignore first commit 2021-05-04 21:54:05 +08:00
.stylelintignore fix: monaco run error with production 2021-05-26 22:15:13 +08:00
LICENSE first commit 2021-05-04 21:54:05 +08:00
README.EN.md feat(components): add tabbar component 2021-07-12 10:26:03 +08:00
README.md docs: update README 2022-01-16 16:21:27 +08:00
auto-imports.d.ts chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
commitlint.config.js chore: ⬆️update deps 2022-01-01 01:31:04 +08:00
components.d.ts refactor: simplified code 2022-07-10 20:42:12 +08:00
index.html fix: 🐛custom component can not use vue lifecycle hooks 2021-07-13 21:02:07 +08:00
package.json refactor: simplified code 2022-07-10 20:42:12 +08:00
pnpm-lock.yaml refactor: simplified code 2022-07-10 20:42:12 +08:00
prettier.config.js chore: ⬆️update deps 2022-01-01 01:31:04 +08:00
stylelint.config.js chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
tsconfig.json chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
vite.config.ts chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00
windi.config.ts chore: upgrade deps & code style 2022-07-03 02:38:58 +08:00

README.EN.md

base on Vite2.x + Vue3.x + TypeScript H5 Low code platform

license

English | 中文

Clone the main branch and ignore irrelevant branches such as git-pages

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

technology stack

Function List

  • Add pages dynamically
  • Drag and drop components
  • service worker + indexeddb Implement server-free front-end interaction
  • DataSource Admin Console
  • Provide preset functions
  • More component encapsulation
  • Others...

Generate component properties quickly

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

JSON.stringify(
  $$('#props + table tbody 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
  }, {})
).replaceAll('"', '')
// 在vant文档中 chrome控制台输入以下代码快速生成组件事件
JSON.stringify(
  $$('#events + table tbody tr').reduce((prev, curr) => {
    const children = curr.children
    const event = {
      label: children[1].textContent,
      value: children[0].textContent
    }
    return prev.concat([event])
  }, [])
)
  .replaceAll(/(?<!:)\"(?!,|})/g, '')
  .replace(/\"/g, "'")

Browser support

The Chrome 80+ browser is recommended for local development

Support modern browsers, not 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

Git Contribution submission specification

  • feat Add new features
  • fix Fix the problem/BUG
  • style The code style is related and does not affect the running result
  • perf Optimization/performance improvement
  • refactor Refactor
  • revert Undo edit
  • test Test related
  • docs Documentation/notes
  • chore Dependency update/scaffolding configuration modification etc.
  • workflow Workflow improvements
  • ci Continuous integration
  • types Type definition file changes
  • wip In development

QUICK START

Install and use

npm install
# or
yarn add

run

npm run dev

build

npm run build