naive-ui/demo/documentation/components/table/enUS/index.md

25 lines
537 B
Markdown
Raw Normal View History

2020-02-20 16:26:34 +08:00
# Table
<!--single-column-->
If you only want to render some basic table, use it. If you want to render structured data, see <n-a to="n-data-table">Data Table</n-a>.
## Demos
```demo
basic
2020-02-23 12:08:48 +08:00
bordered
2020-03-03 18:08:58 +08:00
size
2020-02-23 12:08:48 +08:00
single-column
single-line
2020-02-20 16:26:34 +08:00
```
## Components
You can use `n-table`, `n-thead`, `n-tbody`, `n-tr`, `n-th` and `n-td`.
2020-02-23 11:28:20 +08:00
## Props
### Table Props
|Name|Type|Default|Description|
|-|-|-|-|
|bordered|`boolean`|`true`||
|single-line|`boolean`|`true`||
2020-02-23 12:08:48 +08:00
|single-column|`boolean`|`false`||
2020-03-03 18:08:58 +08:00
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||