一个基于 Vue 3 的低代码组件库
$ npm i @xuanmo/dl-ui
$ yarn add @xuanmo/dl-ui
$ pnpm add @xuanmo/dl-ui
import { createApp } from 'vue'
// 1. 引入组件
import DLUI, { validator } from '@xuanmo/dl-ui'
// 2. 引入校验国际化并注册
import zhCN from '@xuanmo/validator/locale/zh-CN.json'
validator.localize(zhCN)
// 3. 引入组件样式
import '@xuanmo/dl-ui/dist/index.css'
const app = createApp()
// 4. 注册组件
app.use(DLUI)
- 🚀 以最少的代码,实现表单渲染
- 🚀 零外部依赖,不依赖其他三方包
- 💪 内置常用表单组件,支持扩展集成到表单使用
- 💪 繁琐的表单校验通过规则配置即可,校验与表单业务可完美剥离
- ✍️ 使用 TypeScript 开发,提供完整的类型定义
- 🛠 更多功能开发中,欢迎共建...
- 感谢 JetBrains 提供的 非商业开源软件开发授权
- 感谢 JasKang 提供的 Markdown 预览方案
- 感谢 三咲智子 提供的在线运行组件方案