feat: add ample demos to @pureadmin/table (#379)

* feat: add ample demos to @pureadmin/table
This commit is contained in:
RealityBoy
2022-11-21 11:42:33 +08:00
committed by GitHub
parent 8ff242ea45
commit 9b62d6ef1e
46 changed files with 1859 additions and 48 deletions

View File

@@ -0,0 +1,30 @@
<script setup lang="ts">
import { tableData } from "./data";
const indexMethod = (index: number) => {
return index * 2;
};
const columns: TableColumnList = [
{
type: "index",
index: indexMethod
},
{
label: "日期",
prop: "date"
},
{
label: "姓名",
prop: "name"
},
{
label: "地址",
prop: "address"
}
];
</script>
<template>
<pure-table :data="tableData" :columns="columns" />
</template>