vue3-ep-biz-lib

基于 Vue3 + Element Plus + TypeScript 的企业级业务组件库
1,294
Install
npm install vue3-ep-biz-lib
Latest Version:1.3.0
Vue:3
License:MIT
Last Updated:Oct 23, 2026
Links: Gitee  ·  npm
Maintainer: shiyanjun

vue3-ep-biz-lib

基于 Vue3 + Element Plus + TypeScript + SCSS + VitePress 的企业级业务组件库,工程规范对标 Element Plus。

在线文档 | Gitee 仓库 | npm 包

工程结构

packages/
├── components/     # 组件源码(每个组件独立目录:src/组件.vue + style/index.scss + index.ts)
├── hooks/          # 公共组合式函数
├── utils/          # 工具方法(withInstall / makeInstaller)
├── types/          # 全局 TS 类型定义
└── theme/          # SCSS 全局变量、Element Plus 主题变量复用

docs/
├── .vitepress/     # VitePress 配置 + 主题 + :::demo 容器插件
├── zh-CN/
│   ├── guide/      # 开发指南
│   └── components/ # 组件文档(md)
└── examples/       # 文档 demo 示例(组件名/示例名.vue)

命令

命令 说明
npm run dev 启动文档站本地开发
npm run build 构建组件库(ES + UMD + d.ts)
npm run typecheck TS 类型检查
npm run docs:build 构建文档站
npm run release 发布 npm 包(release 分支 + tag,见发布指南)

开发流程

日常开发在 dev 分支;需要部署文档时合并到 master(EdgeOne 生产分支);发版用 npm run release。完整规范见开发流程指南。

新增组件三步

  1. 在 packages/components/xxx-component/ 开发组件,index.ts 中 withInstall 导出;
  2. 在 packages/components/index.ts 的 components 数组中注册;
  3. 补充 docs/zh-CN/components/xxx-component.md 文档与 docs/examples/xxx-component/basic.vue 示例。

使用方式

全局注册

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Vue3EpBizLib from 'vue3-ep-biz-lib'
import 'vue3-ep-biz-lib/dist/style.css' // 组件样式(npm 安装时必引)
import App from './App.vue'

const app = createApp(App)
app.use(ElementPlus)
app.use(Vue3EpBizLib)
app.mount('#app')

按需导入

<script setup lang="ts">
import { BizButton } from 'vue3-ep-biz-lib'
</script>

<template>
  <BizButton type="primary">按需导入</BizButton>
</template>

发布

统一命令(自动完成 release 分支、版本号、tag、构建、发布、合回 master):

npm run release          # patch;minor/major/显式版本号:npm run release -- minor

完整流程与注意事项见 发布指南。

Related Packages

@xjw_/vue3-npm-system

基于 Vue3 + Element Plus 的企业级组件库

10,831
keli-ui

A Vue 3 component library based on element-plus

9,980
twcpt

A Vue 3 component library built with Vite and TypeScript, featuring components i...

6,050
@ys-knife-crud/element-plus

Vue 3 + element-plus UI components for ys.knife.crud

374 0
ep-craft

A Vue 3 component library based on element-plus with ep- prefix

5,237

Version History

Version Released Vue License
1.3.0 ^3.4.0 MIT
1.2.0 ^3.4.0 MIT
1.1.0 ^3.4.0 MIT
1.0.0 ^3.4.0 MIT
0.5.1 ^3.4.0 MIT