primevue-mirror/components/lib/scrolltop/BaseScrollTop.vue

34 lines
671 B
Vue
Raw Normal View History

2023-05-24 10:09:45 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import ScrollTopStyle from 'primevue/scrolltop/style';
2023-05-24 10:09:45 +00:00
export default {
name: 'BaseScrollTop',
extends: BaseComponent,
props: {
target: {
type: String,
default: 'window'
},
threshold: {
type: Number,
default: 400
},
icon: {
type: String,
default: undefined
},
behavior: {
type: String,
default: 'smooth'
}
},
style: ScrollTopStyle,
provide() {
return {
$parentInstance: this
};
2023-05-24 10:09:45 +00:00
}
};
</script>