We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug I can't make it work with Nuxtjs
To Reproduce Steps to reproduce the behavior:
import JsonExcel from "vue-json-excel3" import { defineNuxtPlugin } from '#app'; export default defineNuxtPlugin(nuxtApp => { nuxtApp.vueApp.component('downloadExcel', JsonExcel); });
<downloadexcel :data="exportData" name="Test">Download</downloadexcel>
Expected behavior To load correctly the page, display the Download link, and download
Git link to reproduce the issue https://codesandbox.io/p/devbox/nuxt-json-excel3-2hs3l6
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Hi @LittleLama,
I tried on local it's working for me.
<script setup lang="ts"> const route = useRoute() import JsonExcel from "vue-json-excel3" const exportData = [ { name: "Johson", data: "developer", salary: 2000, age: 28 }, { name: "Monika", data: "designer", salary: 2500, age: 23 }, { name: "John", data: "developer", salary: 2000, age: 28 }, { name: "Monika", data: "designer", salary: 2500, age: 23 } ] </script> <template> <div> <h1>Nuxt Routing set up successfully!</h1> <p>Current route: {{ route.path }}</p> <JsonExcel :data="exportData" name="Test">Download</JsonExcel> </div> </template>
{ "name": "nuxt-app", "private": true, "type": "module", "scripts": { "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" }, "dependencies": { "nuxt": "^3.15.2", "vue": "latest", "vue-json-excel3": "^1.0.30", "vue-router": "latest" } }
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I can't make it work with Nuxtjs
To Reproduce
Steps to reproduce the behavior:
<downloadexcel :data="exportData" name="Test">Download</downloadexcel>
Expected behavior
To load correctly the page, display the Download link, and download
Git link to reproduce the issue
https://codesandbox.io/p/devbox/nuxt-json-excel3-2hs3l6
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: