@webdocker/vue-microapp-entry
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Vue Microapp Entry

将原本微应用入口包装一下,导出 {mount: (props?: {}) => void;unmount: () => void;} 对象,使之可以被宿主应用使用。

安装

npm install @webdocker/vue-microapp-entry

使用


import { mount } from "@webdocker/vue-microapp-entry"

const microApp = mount({el:'#app',router,store,render:h=>h(App)})

export default microApp

注意

微应用(vue2.x)使用Vue构造器启动才可使用该包改造。


new Vue(el:'#app',render:h=>h(App))

Readme

Keywords

Package Sidebar

Install

npm i @webdocker/vue-microapp-entry

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.93 kB

Total Files

9

Last publish

Collaborators

  • xujun_npm