json-to-csv-vue-3-typescript
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "json-to-csv-vue-3-typescript", | ||
"private": false, | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"main": "dist/json-to-csv-vue-3-typescript.js", | ||
@@ -6,0 +6,0 @@ "unpkg": "dist/json-to-csv-vue-3-typescript.umd.js", |
@@ -31,7 +31,7 @@ # JSON to CSV Vue 3 TypeScript Converter | ||
import { defineComponent } from 'vue'; | ||
import JsonToCsvConverter from 'json-to-csv-vue-3-typescript'; | ||
import JsonToCSV from 'json-to-csv-vue-3-typescript'; | ||
export default defineComponent({ | ||
components: { | ||
JsonToCsvConverter, | ||
JsonToCSV, | ||
}, | ||
@@ -48,3 +48,3 @@ // Your component code here | ||
<!-- Your existing template content --> | ||
<json-to-csv-converter :jsonData="yourJsonData"></json-to-csv-converter> | ||
<json-to-csv :data="yourJsonData"></json-to-csv> | ||
</div> | ||
@@ -56,3 +56,3 @@ </template> | ||
- `jsonData` (required): The JSON data that you want to convert to CSV. | ||
- `data` (required): The JSON data that you want to convert to CSV. | ||
@@ -64,7 +64,7 @@ ### Example | ||
<div> | ||
<json-to-csv-converter :jsonData="[ | ||
<json-to-csv :data="[ | ||
{ name: 'John Doe', age: 30, city: 'New York' }, | ||
{ name: 'Jane Doe', age: 25, city: 'Los Angeles' }, | ||
{ name: 'Bob Smith', age: 40, city: 'Chicago' } | ||
]"></json-to-csv-converter> | ||
]"></json-to-csv> | ||
</div> | ||
@@ -71,0 +71,0 @@ </template> |
203357