feat: toast-provider and useToast initial
This commit is contained in:
@@ -58,6 +58,7 @@ function getComponents() {
|
||||
function getUtils() {
|
||||
return [
|
||||
{ text: 'Flowbite Themable', link: '/components/flowbiteThemable/flowbiteThemable.md' },
|
||||
{ text: 'ToastProvider', link: '/components/toastProvider/toastProvider.md' },
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -4,4 +4,12 @@ import DefaultTheme from 'vitepress/theme'
|
||||
|
||||
import './clear.css'
|
||||
|
||||
export default DefaultTheme
|
||||
import { TransitionGroup } from "vue";
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// strange thing, but there is no global transition-group component inside vitepress app
|
||||
app.component('TransitionGroup', TransitionGroup)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user