Newer
Older
sample-vue-component02 / src / components / MyTable.vue
Yoshimune Saito on 26 Jan 2020 324 bytes サンプル格納
<template>
  <table>
    <thead>
      <tr>
        <th>No</th>
        <th>name</th>
        <th>desc</th>
      </tr>
    </thead>
    <tbody>
      <component :is="row" v-for="(i, idx) in items" :key="idx" :item="i" />
    </tbody>
  </table>
</template>

<script>
export default {
  props: ["items", "row"]
};
</script>