sheetjs-clone/demos/vue/pages/index.vue
SheetJS 0b6ebc67da DBF preserve field properties
- DBF write type N and roundtrip C length (fixes #1888 h/t@bandizsolt)
- clean up xhr demo (fixes #2604 h/t @UP2022742)
- clean up vue / nuxt demo
2022-03-10 00:31:13 -05:00

25 lines
499 B
Vue

<!-- xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com -->
<template>
<div>
<div v-for="item in data.data" v-bind:key="item.name">
<h2>{{ item.name }}</h2>
<table>
<tr v-for="row in item.data" v-bind:key="row.Index">
<td>{{ row.Name }}</td>
<td>{{ row.Index }}</td>
</tr>
</table>
</div>
</div>
</template>
<script>
export default {
async asyncData ({$content}) {
return {
data: await $content('sheetjs').fetch()
};
}
}
</script>