Skip to content

Instantly share code, notes, and snippets.

@lili668668
Last active Aug 1, 2019
Embed
What would you like to do?
虛擬滾動表格解說的範例程式碼
<template>
<table>
<thead>
<tr v-for="(title, index) in titles">
<th key="index">{{ title }}</th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in items">
<td key="index">{{ item }}</td>
</tr>
</tbody>
</table>
</template>
<script>
...
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment