mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
feat: 优化透明模式样式
This commit is contained in:
parent
e9abf6ed05
commit
f433d13a2f
@ -7,6 +7,7 @@
|
||||
:ref="`ref-${app.name}`"
|
||||
:size="1200"
|
||||
:options="app"
|
||||
:windowType="windowType"
|
||||
:beforeClose="onBeforeClose"
|
||||
@on-capsule-more="onCapsuleMore"
|
||||
@on-popout-window="onPopoutWindow"
|
||||
@ -72,8 +73,10 @@
|
||||
}
|
||||
|
||||
.transparent-mode {
|
||||
.micro-app-loader {
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
&:not(.popout-window) {
|
||||
.micro-app-loader {
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -71,6 +71,10 @@ export default {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
windowType: {
|
||||
type: String,
|
||||
default: 'embed',
|
||||
},
|
||||
beforeClose: Function
|
||||
},
|
||||
data() {
|
||||
@ -90,6 +94,7 @@ export default {
|
||||
'micro-modal-hidden': !this.open,
|
||||
'no-dark-content': !this.options.auto_dark_theme,
|
||||
'transparent-mode': !!this.options.transparent,
|
||||
[`${this.windowType}-window`]: true,
|
||||
}
|
||||
},
|
||||
transitions() {
|
||||
@ -430,6 +435,12 @@ body.dark-mode-reverse {
|
||||
--modal-body-background-color: #000000;
|
||||
}
|
||||
}
|
||||
&.popout-window {
|
||||
&.no-dark-content {
|
||||
--modal-dark-filter: invert(100%) hue-rotate(180deg) contrast(100%);
|
||||
--modal-body-background-color: #000000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user