feat: 添加 @formkit/auto-animate 插件

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);