Skip to content

Table

Lightweight data table: column-config driven, per-cell scoped slots, built-in empty state.

Basic usage

项目负责人进度
预约小程序李工80%
企业官网王工45%
数据看板张工12%

Custom cells

Each column exposes a scoped slot named cell-<key> receiving { row, value }:

任务负责人状态
聊天室消息引用李工已完成
工程量导出王工进行中
合同模板张工待开始

Empty data

When rows is empty a built-in empty state shows; replace it via the empty slot:

任务状态
还没有任务
创建第一条任务开始协作

API

Props

NameTypeDefaultDescription
columns{ key: string; title: string; width?: string; align?: 'left' | 'center' | 'right' }[]column config (required)
rowsRecord<string, unknown>[]row data (required)
rowKeystring'id'row key field

Slots

NamePayloadDescription
cell-<key>{ row, value }cell content for that column
emptyempty placeholder (defaults to built-in EmptyState)