feat(图片背景组件): 设置取消滚动条
This commit is contained in:
parent
1e4c2a7249
commit
a2594b5e8f
@ -24,6 +24,7 @@
|
||||
|
||||
<!-- 内容 -->
|
||||
<div
|
||||
class="scrollY"
|
||||
style="
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
@ -44,6 +45,7 @@ import { ref, onMounted, computed } from 'vue'
|
||||
const props = defineProps({
|
||||
imgUrl: {
|
||||
type: String,
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
|
||||
@ -116,4 +118,8 @@ onMounted(() => {
|
||||
.placeholder {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.scrollY::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user