From 8d5a1fe4490b8c42364af2b1493e5751b37c1076 Mon Sep 17 00:00:00 2001 From: zhuguibiao <505418722@qq.com> Date: Thu, 21 Jan 2021 15:55:41 +0800 Subject: [PATCH] docs: Table scroll properties X and Y are missing type string (#28964) --- components/table/index.en-US.md | 4 ++-- components/table/index.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index 333ce9d516..8a9c0e8a93 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -210,8 +210,8 @@ Properties for row selection. | Property | Description | Type | Default | | --- | --- | --- | --- | | scrollToFirstRowOnChange | Whether to scroll to the top of the table when paging, sorting, filtering changes | boolean | - | -| x | Set horizontal scrolling, can also be used to specify the width of the scroll area, could be number, percent value, true and ['max-content'](https://developer.mozilla.org/zh-CN/docs/Web/CSS/width#max-content) | number \| true | - | -| y | Set vertical scrolling, can also be used to specify the height of the scroll area, could be number | number | - | +| x | Set horizontal scrolling, can also be used to specify the width of the scroll area, could be number, percent value, true and ['max-content'](https://developer.mozilla.org/zh-CN/docs/Web/CSS/width#max-content) | string \| number \| true | - | +| y | Set vertical scrolling, can also be used to specify the height of the scroll area, could be string or number | string \| number | - | ### selection diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index aa68535d55..2cf605c61f 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -217,8 +217,8 @@ const columns = [ | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | scrollToFirstRowOnChange | 当分页、排序、筛选变化后是否滚动到表格顶部 | boolean | - | -| x | 设置横向滚动,也可用于指定滚动区域的宽,可以设置为像素值,百分比,true 和 ['max-content'](https://developer.mozilla.org/zh-CN/docs/Web/CSS/width#max-content) | number \| true | - | -| y | 设置纵向滚动,也可用于指定滚动区域的高,可以设置为像素值 | number | - | +| x | 设置横向滚动,也可用于指定滚动区域的宽,可以设置为像素值,百分比,true 和 ['max-content'](https://developer.mozilla.org/zh-CN/docs/Web/CSS/width#max-content) | string \| number \| true | - | +| y | 设置纵向滚动,也可用于指定滚动区域的高,可以设置为像素值 | string \| number | - | ### selection