no message

This commit is contained in:
kuaifan 2025-05-06 23:33:00 +08:00
parent e52523f903
commit a608734be9
3 changed files with 28 additions and 5 deletions

View File

@ -102,7 +102,7 @@ export default {
if (this.transitions.length > 0) { if (this.transitions.length > 0) {
return this.transitions return this.transitions
} }
return [$A.isAndroid() ? '' : `drawer-slide-${this.placementName}`, ''] return [`drawer-slide-${this.placementName}`, '']
}, },
className() { className() {
const array = [] const array = []

View File

@ -3,8 +3,8 @@
ref="drawer" ref="drawer"
v-model="appConfig.isOpen" v-model="appConfig.isOpen"
placement="right" placement="right"
modal-class="micro-app-modal" :modal-class="modalClass"
drawer-class="micro-app-drawer" :drawer-class="drawerClass"
:transitions="transitions" :transitions="transitions"
:force-fullscreen="appConfig.forceFullscreen" :force-fullscreen="appConfig.forceFullscreen"
:size="1200"> :size="1200">
@ -39,6 +39,18 @@
} }
} }
.micro-app-transparent {
.ivu-modal,
.ivu-modal-content {
background: transparent;
}
.overlay-body {
.overlay-content {
background: transparent;
}
}
}
.micro-app-wrapper { .micro-app-wrapper {
.micro-app-load { .micro-app-load {
position: absolute; position: absolute;
@ -81,7 +93,7 @@ export default {
mounted() { mounted() {
microApp.start({ microApp.start({
'iframe': true, 'iframe': true,
'router-mode': 'state', // state 'router-mode': 'state',
}) })
emitter.on('openMicroApp', this.openMicroApp); emitter.on('openMicroApp', this.openMicroApp);
@ -105,8 +117,16 @@ export default {
'themeName', 'themeName',
]), ]),
modalClass() {
return this.appConfig.transparent ? 'micro-app-modal micro-app-transparent' : 'micro-app-modal'
},
drawerClass() {
return this.appConfig.transparent ? 'micro-app-drawer micro-app-transparent' : 'micro-app-drawer'
},
transitions() { transitions() {
return this.appConfig.forceFullscreen ? ['', ''] : [] return this.appConfig.transparent ? ['', ''] : []
}, },
appData() { appData() {
@ -216,7 +236,9 @@ export default {
appName: 'micro-app', // appName: 'micro-app', //
appUrl: null, // URL appUrl: null, // URL
initialData: {}, // initialData: {}, //
forceFullscreen: false, // (true/false) forceFullscreen: false, // (true/false)
transparent: false, // (true/false)
keepAlive: true, // (true/false) keepAlive: true, // (true/false)
isLoading: true, // (true/false) isLoading: true, // (true/false)

View File

@ -4678,6 +4678,7 @@ export default {
id: value, id: value,
}, },
forceFullscreen: true, forceFullscreen: true,
transparent: true,
}); });
} else { } else {
// 打开列表、统计 // 打开列表、统计