1.0.7 • Published 2 years ago

@sunac/mfe-plugin v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

使用方法

安装

yarn add @sunac/mfe-plugin

main.js

import router from './router';
import modules from '@/store'

import MfePlugin from '@sunac/mfe-plugin'

const appName = process.env.VUE_APP_NAME || ''
export const {bootstrap, mount, unmount} = MfePlugin({appName, modules, router}, app => {
  // 这里是app配置
  // app.config.globalProperties.xxx = 'xxx'
});

路由组件router-view

import KARouterView from '@sunac/mfe-plugin/SFC/keep-alive-router-view'

注意事项

入口文件名字App.vue

publish后 若淘宝镜像不同步 终端执行:open https://npmmirror.com/sync/@sunac/mfe-plugin

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago