diff --git a/packages/lego/src/table/index.md b/packages/lego/src/table/index.md index 3361f404a1..02719c505c 100644 --- a/packages/lego/src/table/index.md +++ b/packages/lego/src/table/index.md @@ -15,7 +15,7 @@ group: | --- | --- | --- | --- | --- | | columns | `true` | 列数据 | `Column[]` | | | data | `true` | 数据源 | `T[]` | | -| height | `false` | 除了表头的表格内容高度, 如果不填默认撑满父组件 | `number` | calc(100% - 36px) | +| height | `false` | 除了表头的表格内容高度, 如果不填默认撑满父组件 | `number` | `calc(100% - 36px)` | | pageSize | `true` | 每屏显示几条数据 | `number` | | | speed | `false` | 速度(ms) | `number` | | | autoplay | `false` | 自动轮播, 注:pageSize必须小于等于数量的一半才能自动轮播 | `boolean` | | diff --git a/packages/lego/src/table/index.tsx b/packages/lego/src/table/index.tsx index ce3798e8a3..239278e9f3 100644 --- a/packages/lego/src/table/index.tsx +++ b/packages/lego/src/table/index.tsx @@ -173,7 +173,7 @@ const Container = memo( speed, children, }: PropsWithChildren<{ - height: string; + height: string | number; pageSize: number; autoplay: boolean; speed: number;