🚀
开箱即用
60+ 精心打造的企业级组件,覆盖表单、表格、图表等核心场景,零配置即可快速上手
几行代码,即可构建复杂的企业级表单
<template>
<FkForm :config="formConfig" v-model="formData" @submit="onSubmit" />
</template>
<script setup lang="ts">
import { ref } from 'vue'
import type { FormConfig } from '@erp/common'
const formData = ref({ name: '', email: '', department: '' })
const formConfig: FormConfig = {
labelWidth: '100px',
items: [
{ type: 'input', prop: 'name', label: '姓名', required: true },
{ type: 'input', prop: 'email', label: '邮箱', rules: [{ type: 'email' }] },
{ type: 'select', prop: 'department', label: '部门', options: departments }
]
}
const onSubmit = (data) => console.log('提交数据:', data)
</script>Tree Shaking 友好,只打包使用的组件,构建体积减少 60%
内置 i18n 方案,支持中英日韩等 20+ 语言,满足全球化需求
自适应多端布局,桌面、平板、移动端完美适配
活跃的社区支持,每月发布新版本,快速响应需求
只需几分钟,即可在项目中使用 ERP 组件库