feat: 添加 @formkit/auto-animate 插件
All checks were successful
/ depcheck (push) Successful in 1m12s
/ playwright (push) Successful in 1m19s
/ build-and-deploy-to-vercel (push) Successful in 2m32s

This commit is contained in:
严浩
2024-12-26 18:38:35 +08:00
parent c2d942554d
commit f3e6dbcc0e
5 changed files with 24 additions and 8 deletions

View File

@ -1,6 +1,11 @@
import { createHead } from '@unhead/vue';
import { autoAnimatePlugin } from '@formkit/auto-animate/vue';
export function install({ app }: { app: import('vue').App<Element> }) {
app.config.globalProperties.$__DEV__ = $__DEV__;
app.use(autoAnimatePlugin); // v-auto-animate="{ duration: 100 }"
app.use(createHead());
app.config.errorHandler = (error, instance, info) => {
console.error('Global error:', error);

View File

@ -5,5 +5,3 @@ export function install({ app }: { app: import('vue').App<Element> }) {
app.use(createPinia().use(piniaPluginPersistedstate));
app.use(PiniaColada, {});
}
export * from '../stores/counter';