2017-09-24 23:40:09 +00:00
|
|
|
<!-- xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com -->
|
2017-09-12 20:02:06 +00:00
|
|
|
<template>
|
2022-03-10 05:31:13 +00:00
|
|
|
<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>
|
2017-09-12 20:02:06 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2022-03-10 05:31:13 +00:00
|
|
|
async asyncData ({$content}) {
|
|
|
|
return {
|
|
|
|
data: await $content('sheetjs').fetch()
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2017-09-12 20:02:06 +00:00
|
|
|
</script>
|