# TableColumn 组件 API 文档

## 组件简介 | Component Introduction
`TableColumn` 是 VTable 的表格列组件，支持嵌套、插槽自定义、函数渲染等。

`TableColumn` is a table column component for VTable, supporting nesting, custom slots, and function rendering.

---

## Props/属性
| 属性名 | 说明 | 类型 | 是否必填 | 默认值 |
|--------|------|------|----------|--------|
| item | 列配置对象 | Object | 是 | - |
| slots | 插槽对象 | Object | 否 | - |

---

## 插槽 | Slots
- 支持通过 slot 名自定义表头、单元格内容。

---

## 示例 | Example
```vue
<template>
  <TableColumn :item="column" :slots="slots" />
</template>

<script setup>
import { TableColumn } from 'your-lib-path'
const column = {
  key: 'name',
  label: '名称'
}
const slots = {}
</script>
``` 