mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
3018f3653c
commit
1e45d199e2
@ -1,25 +1,32 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="micro-app-wrapper">
|
<div class="micro-app-wrapper">
|
||||||
<template v-for="app in apps">
|
<template v-for="app in apps">
|
||||||
<div
|
<Modal
|
||||||
v-if="app.transparent"
|
v-if="app.transparent"
|
||||||
v-transfer-dom
|
v-model="app.isOpen"
|
||||||
:data-transfer="true">
|
:mask="false"
|
||||||
<micro-app
|
:footer-hide="true"
|
||||||
v-if="app.isOpen"
|
:transition-names="[]"
|
||||||
:name="app.appName"
|
:beforeClose="async () => { await onBeforeClose(app.appName) }"
|
||||||
:url="app.appUrl"
|
class-name="micro-app-trans"
|
||||||
:keep-alive="app.keepAlive"
|
fullscreen>
|
||||||
:data="appData(app.appName)"
|
<template>
|
||||||
@created="created"
|
<micro-app
|
||||||
@beforemount="beforemount"
|
v-if="app.isOpen"
|
||||||
@mounted="mounted"
|
:name="app.appName"
|
||||||
@unmount="unmount"
|
:url="app.appUrl"
|
||||||
@error="error"/>
|
:keep-alive="app.keepAlive"
|
||||||
<div v-if="app.isLoading" class="micro-app-loader spinner">
|
:data="appData(app.appName)"
|
||||||
<Loading/>
|
@created="created"
|
||||||
</div>
|
@beforemount="beforemount"
|
||||||
</div>
|
@mounted="mounted"
|
||||||
|
@unmount="unmount"
|
||||||
|
@error="error"/>
|
||||||
|
<div v-if="app.isLoading" class="micro-app-loader">
|
||||||
|
<Loading/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</Modal>
|
||||||
<DrawerOverlay
|
<DrawerOverlay
|
||||||
v-else
|
v-else
|
||||||
v-model="app.isOpen"
|
v-model="app.isOpen"
|
||||||
@ -50,6 +57,18 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.micro-app-trans {
|
||||||
|
.ivu-modal-close {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.ivu-modal-content {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.micro-app-loader {
|
||||||
|
background-color: rgba(255, 255, 255, 0.6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.micro-app-modal {
|
.micro-app-modal {
|
||||||
.ivu-modal-close {
|
.ivu-modal-close {
|
||||||
display: none;
|
display: none;
|
||||||
@ -71,12 +90,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
&.spinner {
|
|
||||||
position: fixed;
|
|
||||||
z-index: 9999;
|
|
||||||
background-color: rgba(255, 255, 255, 0.6);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -104,12 +117,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
created() {
|
||||||
microApp.start({
|
microApp.start({
|
||||||
'iframe': true,
|
'iframe': true,
|
||||||
'router-mode': 'state',
|
'router-mode': 'state',
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
emitter.on('openMicroApp', this.openMicroApp);
|
emitter.on('openMicroApp', this.openMicroApp);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user