项目作者: rzning

项目描述 :
a single-spa plugin for Vue applications, reference https://github.com/CanopyTax/single-spa-vue
高级语言: JavaScript
项目地址: git://github.com/rzning/single-spa-vuejs.git
创建时间: 2019-03-04T08:16:23Z
项目社区:https://github.com/rzning/single-spa-vuejs

开源协议:MIT License

下载


single-spa-vuejs

a [single-spa] plugin for [Vue] applications

Install

  1. npm install single-spa-vuejs --save
  2. # or
  3. yarn add single-spa-vuejs

Usage

  1. import Vue from 'vue'
  2. import singleSpaVue from 'single-spa-vuejs'
  3. const vueLifecycles = singleSpaVue({
  4. Vue,
  5. appOptions: {
  6. el: `#app`,
  7. data () {
  8. return { content: 'hello single-spa' }
  9. },
  10. render: h => h('div', this.content)
  11. }
  12. })
  13. export const bootstrap = [
  14. vueLifecycles.bootstrap
  15. ]
  16. export function mount(props) {
  17. return vueLifecycles.mount(props)
  18. }
  19. export const unmount = [
  20. vueLifecycles.unmount
  21. ]

License

MIT

[single-spa]: https://single-spa.js.org
[Vue]: https://vuejs.org