mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Scrolltotop added to plugin
This commit is contained in:
parent
3eac7d6658
commit
a6de96f5fb
9 changed files with 28 additions and 11 deletions
|
@ -48,7 +48,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Quill from "quill";
|
||||
//import Quill from "quill";
|
||||
|
||||
export default {
|
||||
name: 'Editor',
|
||||
|
|
2
components/fullcalendar/FullCalendar.d.ts
vendored
2
components/fullcalendar/FullCalendar.d.ts
vendored
|
@ -29,7 +29,7 @@ declare module '@vue/runtime-core' {
|
|||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [FullCalendar](https://www.primefaces.org/primevue/showcase/#/fullcalendar)
|
||||
* - [FullCalendar](https://www.primefaces.org/primevue/fullcalendar)
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
|
|
|
@ -57,8 +57,7 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
<style></style>
|
||||
|
|
|
@ -20,7 +20,7 @@ export default defineNuxtConfig({
|
|||
rel: 'stylesheet',
|
||||
href: './styles/landing/themes/lara-light-blue/theme.css'
|
||||
}
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
css: [
|
||||
|
|
|
@ -152,7 +152,7 @@ nuxtApp.vueApp.component('Dropdown', Dropdown);
|
|||
/* nuxtApp.vueApp.component('Editor', Editor); */
|
||||
nuxtApp.vueApp.component('Fieldset', Fieldset);
|
||||
nuxtApp.vueApp.component('FileUpload', FileUpload);
|
||||
nuxtApp.vueApp.component('FullCalendar', FullCalendar);
|
||||
//nuxtApp.vueApp.component('FullCalendar', FullCalendar);
|
||||
nuxtApp.vueApp.component('Image', Image);
|
||||
nuxtApp.vueApp.component('InlineMessage', InlineMessage);
|
||||
nuxtApp.vueApp.component('Inplace', Inplace);
|
||||
|
|
9
plugins/scrollToTop.js
Normal file
9
plugins/scrollToTop.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
nuxtApp.$router.options.scrollBehavior = (to, from, savedPosition) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve({ left: 0, top: 0, behaviour: "smooth" });
|
||||
}, 100);
|
||||
});
|
||||
};
|
||||
});
|
9
vitest.config.js
Normal file
9
vitest.config.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import vue from '@vitejs/plugin-vue';
|
||||
|
||||
export default {
|
||||
plugins: [vue()],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue