fix: added as prop in FadedScrollableDiv
This commit is contained in:
parent
7c5696ee75
commit
c8146b7c3c
@ -1,16 +1,21 @@
|
||||
<template>
|
||||
<div
|
||||
<component
|
||||
:is="props.as || 'div'"
|
||||
ref="scrollableDiv"
|
||||
:style="`maskImage: ${maskStyle}`"
|
||||
@scroll="updateMaskStyle"
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</component>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
|
||||
const props = defineProps({
|
||||
as: {
|
||||
type: String,
|
||||
default: 'div',
|
||||
},
|
||||
maskLength: {
|
||||
type: Number,
|
||||
default: 30,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user