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