1.0.0 • Published 3 years ago

@alicloud/console-os-vue-host-app v1.0.0

Weekly downloads
10
License
MIT
Repository
-
Last release
3 years ago

@alicloud/console-os-vue-host-app

Host application component Vue edition

How to use

<template>
    <Application
        id="os-example"
        class="test-class"
        :sandBox="{
          initialPath: '/dashboard',
          disableFakeBody: true,
          disable: false
        }"
        manifest="https://g.alicdn.com/ConsoleOS/OSExample/0.0.2/os-example.manifest.json"
    />
</template>
<script >
import Application from '@alicloud/console-os-vue-host-app'
export default {
  name: 'Example',
  components: {
    Application
  }
}
</script>

Props

propertytypedescription
idstringid for sub application
sandBoxobjectsandbox options, same as react-host-app
manifeststringsub application url for summarizing sub application
externalsVarsstringglobal variables injection for sub application
disableBodyTagbooleandisable body tag
initialPathstringinitial router path for sub application
singletonbooleanenable singleton mode