Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js (NUXT)如何在sweet alert 2中添加组件_Vue.js_Nuxt.js_Sweetalert2 - Fatal编程技术网

Vue.js (NUXT)如何在sweet alert 2中添加组件

Vue.js (NUXT)如何在sweet alert 2中添加组件,vue.js,nuxt.js,sweetalert2,Vue.js,Nuxt.js,Sweetalert2,我试图通过以下方法在swal中添加一个组件 this.$swal({ html: '<Card :assignment="{}"></Card>' }) 任何潜在客户都会受到欢迎。您收到的错误只是抛出的一个线头错误。它被抛出是因为linter希望您使用标签中的卡片组件 请尝试以下操作: // inside your Vue component components: { // eslint-disable-next-line vue/no-unu

我试图通过以下方法在swal中添加一个组件

this.$swal({ html: '<Card :assignment="{}"></Card>' })

任何潜在客户都会受到欢迎。您收到的错误只是抛出的一个线头错误。它被抛出是因为linter希望您使用标签中的卡片组件

请尝试以下操作:

// inside your Vue component

components: { 
// eslint-disable-next-line vue/no-unused-components
  Card 
}

// inside your Vue component

components: { 
// eslint-disable-next-line vue/no-unused-components
  Card 
}