Jav*_*noz 5 inertiajs vuejs3 laravel-8 vuetifyjs3
我如何在使用inertiajs(已安装vue3)时将vuetify 3(alpha)加载到我的应用程序中,目前我的app.js如下所示:
require('./bootstrap');
import { InertiaProgress } from '@inertiajs/progress';
import { createApp, h } from 'vue';
import { createInertiaApp } from '@inertiajs/inertia-vue3';
import { createVuetify } from 'vuetify'
const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel';
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => require(`./Pages/${name}.vue`),
setup({ el, app, props,plugin }) {
const vuetify= createVuetify(
)
return createApp({ render: () => h(app, props) })
.use(plugin)
.use(vuetify)
.mixin({ methods: { route } })
.mount(el);
},
});
InertiaProgress.init({ color: '#4B5563' });
Run Code Online (Sandbox Code Playgroud)
我真的需要帮助。
| 归档时间: |
|
| 查看次数: |
436 次 |
| 最近记录: |