Skip to content

Instantly share code, notes, and snippets.

@lili668668
Last active August 1, 2019 14:57
Show Gist options
  • Save lili668668/7cf597760f9744abfe6d4dc1e6fa4112 to your computer and use it in GitHub Desktop.
Save lili668668/7cf597760f9744abfe6d4dc1e6fa4112 to your computer and use it in GitHub Desktop.
虛擬滾動表格解說的範例程式碼
<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