如何在Laravel应用程序中使用Vue插件

时间:2019-12-14 06:51:14

标签: php laravel vue-component vuedraggable

我正在尝试在laravel中使用vue-draggable插件。

我已经在app.js中添加了它

window.Vue = require('vue');
import VueDraggable from 'vue-draggable';


Vue.use(VueDraggable);


 <draggable class="list-group" :list="list1" group="people" @change="log">
      <div class="list-group-item" v-for="(element, index) in list1" :key="element.name" >
         {{ element.name }} {{ index }}
       </div>
  </draggable>

 export default {
    components: {
       //
    }
 }

显示此错误:

Unknown custom element: <draggable> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

0 个答案:

没有答案