mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
77c7225a9d
- Add entry for table-v2 - Add basic usage for table-v2
12 lines
342 B
Vue
12 lines
342 B
Vue
<template>
|
|
<table-v2 :columns="columns" :data="data" :width="700" :height="400" fixed />
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import TableV2 from '@element-plus/components/table-v2/src/table-v2'
|
|
import { generateColumns, generateData } from './utils'
|
|
|
|
const columns = generateColumns(10)
|
|
const data = generateData(columns, 1000)
|
|
</script>
|