mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-19 14:18:10 +00:00
no message
This commit is contained in:
parent
e52523f903
commit
a608734be9
@ -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 = []
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
1
resources/assets/js/store/actions.js
vendored
1
resources/assets/js/store/actions.js
vendored
@ -4678,6 +4678,7 @@ export default {
|
|||||||
id: value,
|
id: value,
|
||||||
},
|
},
|
||||||
forceFullscreen: true,
|
forceFullscreen: true,
|
||||||
|
transparent: true,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// 打开列表、统计
|
// 打开列表、统计
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user