mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-19 18:25:44 +08:00
ConfigurationPage组件化
This commit is contained in:
35
src/components/config/BackgroundLayer.vue
Normal file
35
src/components/config/BackgroundLayer.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div
|
||||
class="background-layer"
|
||||
:style="{
|
||||
background: $q.dark.isActive
|
||||
? $root.profile.backgroundImgDark
|
||||
? `url('${$root.profile.backgroundImgDark}')`
|
||||
: 'none'
|
||||
: $root.profile.backgroundImgLight
|
||||
? `url('${$root.profile.backgroundImgLight}')`
|
||||
: 'none',
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
backgroundAttachment: 'fixed',
|
||||
}"
|
||||
></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'BackgroundLayer'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.background-layer {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user