npm

meixioacomponent
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

meixioacomponent

基于ElementUI二次封装的组件库。

安装

npm install meixioacomponent

项目中使用

// main.js
// 导入组件样式表
import 'meixioacomponent/lib/style/index.less';
//导入全局vuex
import store from '@/store';
//导入全局Vuerouter
import router from '@/router';
//导入全局Vue
import Vue from 'vue';
// 初始化组件库需要传入store与router
meixioacomponent.componentConfig.initConfig(store, router);
//设置上传组件的上传路径
meixioacomponent.componentConfig.setUploadPrefix(process.env.VUE_APP_UPLOAD_URL);
//使用meixioa组件
Vue.use(meixioacomponent);

打包组件库

npm run lib

Readme

Keywords

none

Package Sidebar

Install

npm i meixioacomponent

Weekly Downloads

79

Version

2.0.1

License

MIT

Unpacked Size

6.38 MB

Total Files

279

Last publish

Collaborators

  • yuri_star