一个插件,用于在 Livewire 中添加对使用 Vue 组件的支持。
If you are using VueJS AND Livewire on the same page, this plugin is required.
Additionally, it allows you to use Vue components within your Livewire components.
| Livewire Version | Vue Plugin Version |
|---|---|
| 1.x | 0.2.x |
| 2.x | 0.3.x |
Include the CDN asset after @livewireScripts or `` in your app's HTML:
...
@livewireScripts
Install the package from NPM.
npm install livewire-vue --save-devImport the package in your bundle:
import 'livewire-vue'
// Or.
require('livewire-vue')Please make sure you load vue in a way required for this plugin to work as expected.
import Vue from 'vue'
import 'livewire-vue'
window.Vue = Vue //this is important! Do not use require('vue')
暂无开放 Issues,或尚未同步最近议题。