Commit 134294fae2512bde1caab90f784792f99bd3ca5d
1 parent
9bc6d894
Exists in
master
and in
1 other branch
docs: 更新表格文档
Showing
1 changed file
with
0 additions
and
36 deletions
Show diff stats
examples/views/docs/component/table.md
| @@ -2,42 +2,6 @@ | @@ -2,42 +2,6 @@ | ||
| 2 | 2 | ||
| 3 | 拓展ElementUI的`el-table` | 3 | 拓展ElementUI的`el-table` |
| 4 | 4 | ||
| 5 | -## 原始用法 | ||
| 6 | - | ||
| 7 | -基本参数与ElementUI的`el-table`相同。 | ||
| 8 | - | ||
| 9 | -::: snippet 相当于直接使用`el-table` | ||
| 10 | - | ||
| 11 | -```html | ||
| 12 | -<template> | ||
| 13 | - <z-table size="mini" :data="tableData" border> | ||
| 14 | - <el-table-column prop="name" label="姓名" /> | ||
| 15 | - <el-table-column prop="age" label="年龄" /> | ||
| 16 | - <el-table-column prop="gender" label="性别"> | ||
| 17 | - <template #default="{ row }"> | ||
| 18 | - <el-tag size="mini">{{ row.gender }}</el-tag> | ||
| 19 | - </template> | ||
| 20 | - </el-table-column> | ||
| 21 | - </z-table> | ||
| 22 | -</template> | ||
| 23 | - | ||
| 24 | -<script> | ||
| 25 | -export default { | ||
| 26 | - data() { | ||
| 27 | - return { | ||
| 28 | - tableData: [ | ||
| 29 | - { name: '张三', age: '31', gender: '男' }, | ||
| 30 | - { name: '李四', age: '27', gender: '女' }, | ||
| 31 | - { name: '王五', age: '16', gender: '男' }, | ||
| 32 | - ], | ||
| 33 | - }; | ||
| 34 | - }, | ||
| 35 | -} | ||
| 36 | -</script> | ||
| 37 | -``` | ||
| 38 | - | ||
| 39 | -::: | ||
| 40 | - | ||
| 41 | ## 配置项 | 5 | ## 配置项 |
| 42 | 6 | ||
| 43 | 可以通过配置项列表快速生成表格列 | 7 | 可以通过配置项列表快速生成表格列 |