douyin/src/components/Mask.vue
2021-10-16 20:02:51 +08:00

50 lines
772 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="Mask"
:class="mode"
></div>
</template>
<script>
//未以组件的方式使用FromBottomDialog.vue里面是用js append到dom里面去的
//以组件的方式使用不好随意插位置插到app下面又会出现定位覆盖的问题
export default {
name: "Mask",
props: {
mode: {
type: String,
default: 'dark'
},
}
}
</script>
<style lang="less">
@import "@/assets/less/index";
.Mask {
z-index: 3;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: @mask-dark;
&.dark {
background: @mask-dark;
}
&.light {
background: @mask-light;
}
&.lightgray {
background: @mask-lightgray;
}
&.white {
background: @mask-white;
}
}
</style>