2022-02-17 14:47:39 +08:00

36 lines
443 B
Vue

<template>
<m-table :columns="columns" :data="data" :show-header="true"></m-table>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const columns = ref([
{
type: 'expand',
prop: 'b',
table: [
{
prop: 'a',
label: '1',
},
],
},
{
prop: 'a',
label: '1231',
},
]);
const data = ref([
{
a: 'a1',
b: [
{
a: 1,
},
],
},
]);
</script>