Последняя версия с сервера прошлого разработчика
This commit is contained in:
24
nova/resources/js/components/ScrollWrap.vue
Executable file
24
nova/resources/js/components/ScrollWrap.vue
Executable file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div class="scroll-wrap overflow-x-hidden overflow-y-auto" :style="style">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
height: {
|
||||
type: Number,
|
||||
default: 288,
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
style() {
|
||||
return {
|
||||
maxHeight: `${this.height}px`,
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user