mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
feat: add ample demos to @pureadmin/table (#379)
* feat: add ample demos to @pureadmin/table
This commit is contained in:
26
src/views/pure-table/components/fixHeader.vue
Normal file
26
src/views/pure-table/components/fixHeader.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script setup lang="ts">
|
||||
import { tableData } from "./data";
|
||||
|
||||
const columns: TableColumnList = [
|
||||
{
|
||||
label: "日期",
|
||||
prop: "date"
|
||||
},
|
||||
{
|
||||
label: "姓名",
|
||||
prop: "name"
|
||||
},
|
||||
{
|
||||
label: "地址",
|
||||
prop: "address"
|
||||
}
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<pure-table
|
||||
:data="tableData.concat(tableData).concat(tableData)"
|
||||
:columns="columns"
|
||||
height="360"
|
||||
/>
|
||||
</template>
|
||||
Reference in New Issue
Block a user