Skip to content

deepberry/vue3-element-extend

Repository files navigation

Vue3 Element Extend

一个对 element plus 扩展的组件库,解决部分组件太屎或延展性太差的问题。
组件需通过 es6 module 形式引入,本身项目环境需按照vue-boilerplate进行配置。

Get Started

Install

npm install @deepberry/vue3-element-extend

Import

A.局部引入单个组件

import { UploadImage } from "@deepberry/vue3-element-extend";
export {components : UploadImage}

B.全局引入单个组件

import { UploadImage } from "@deepberry/vue3-element-extend";
app.component("UploadImage", UploadImage);

C.全局引入全部组件

import DeepBerryUI from "@deepberry/vue3-element-extend";
app.use(DeepBerryUI);

API Reference

查看对应组件属性与事件等 https://admin.deepberry.cn/vue3-element-extend image

Dev

新增组件

  1. src/components/下创建
  2. src/stories 下编写 story
  3. index.js 添加 export

本地调试

npm install
npm run serve
npm run storybook

Todo

  • 测试模块