Refactor #3832 Refactor #3833 - For ScrollTop

This commit is contained in:
Bahadır Sofuoğlu 2023-04-08 02:06:45 +03:00
parent 07ca49f983
commit e3c0ee65ec
3 changed files with 25 additions and 10 deletions

View file

@ -14,7 +14,7 @@ const ScrollTopProps = [
{
name: 'icon',
type: 'string',
default: 'pi pi-chevron-up',
default: 'undefined',
description: 'Icon to display.'
},
{
@ -25,10 +25,18 @@ const ScrollTopProps = [
}
];
const ScrollTopSlots = [
{
name: 'icon',
description: 'Custom scrolltop icon template.'
}
];
module.exports = {
scrolltop: {
name: 'ScrollTop',
description: 'ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly.',
props: ScrollTopProps
props: ScrollTopProps,
slots: ScrollTopSlots
}
};