From fdf38f41d7ca7ad7d99b17caa4bfeab405d5930d Mon Sep 17 00:00:00 2001 From: Rustin Date: Tue, 29 Oct 2019 10:08:27 +0800 Subject: [PATCH 01/11] fix: modify textarea resize demo defaultValue to english (#19348) * modify textarea defaultValue to english * update test snapshots --- components/input/__tests__/__snapshots__/demo.test.js.snap | 2 +- components/input/demo/textarea-resize.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index db3b323918..b4e816c36f 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -1968,7 +1968,7 @@ exports[`renders ./components/input/demo/textarea-resize.md correctly 1`] = ` class="ant-input" rows="4" > - autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。ending + The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows. The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows. `; diff --git a/components/input/demo/textarea-resize.md b/components/input/demo/textarea-resize.md index 0966d4e496..642a717d1f 100644 --- a/components/input/demo/textarea-resize.md +++ b/components/input/demo/textarea-resize.md @@ -20,7 +20,7 @@ import { Input, Button } from 'antd'; const { TextArea } = Input; const defaultValue = - 'autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。autoSize 属性适用于 textarea 节点,并且只有高度会自动变化。另外 autoSize 可以设定为一个对象,指定最小行数和最大行数。ending'; + 'The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows. The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows.'; class Demo extends React.Component { state = { From 654a675532b5829bf1150fd06e6b648bfa01810d Mon Sep 17 00:00:00 2001 From: David Broder-Rodgers Date: Tue, 29 Oct 2019 03:24:07 +0000 Subject: [PATCH 02/11] docs: Responsive fixes for examples pages (#19448) * Remove fixed width from cascader examples * Replace fixed vertical slider example height with clearfix div * Replace fixed width on TreeSelect examples with percentage width * Update test snapshots * Use inline-block rather than float left for vertical slider example --- components/cascader/index.en-US.md | 6 ------ components/cascader/index.zh-CN.md | 6 ------ .../slider/__tests__/__snapshots__/demo.test.js.snap | 10 ++++------ components/slider/demo/vertical.md | 4 ++-- .../__tests__/__snapshots__/demo.test.js.snap | 12 ++++++------ components/tree-select/demo/async.md | 2 +- components/tree-select/demo/basic.md | 2 +- components/tree-select/demo/checkable.md | 2 +- components/tree-select/demo/multiple.md | 2 +- components/tree-select/demo/suffix.md | 2 +- components/tree-select/demo/treeData.md | 2 +- 11 files changed, 18 insertions(+), 32 deletions(-) diff --git a/components/cascader/index.en-US.md b/components/cascader/index.en-US.md index 073f2a3bda..88c60d06b3 100644 --- a/components/cascader/index.en-US.md +++ b/components/cascader/index.en-US.md @@ -72,9 +72,3 @@ interface Option { | ------- | ------------ | ------- | | blur() | remove focus | | | focus() | get focus | | - - diff --git a/components/cascader/index.zh-CN.md b/components/cascader/index.zh-CN.md index 84733d02b8..adc0bbdef4 100644 --- a/components/cascader/index.zh-CN.md +++ b/components/cascader/index.zh-CN.md @@ -74,10 +74,4 @@ interface Option { | blur() | 移除焦点 | | | focus() | 获取焦点 | | - - > 注意,如果需要获得中国省市区数据,可以参考 [china-division](https://gist.github.com/afc163/7582f35654fd03d5be7009444345ea17)。 diff --git a/components/slider/__tests__/__snapshots__/demo.test.js.snap b/components/slider/__tests__/__snapshots__/demo.test.js.snap index 5050e82983..642fce56b6 100644 --- a/components/slider/__tests__/__snapshots__/demo.test.js.snap +++ b/components/slider/__tests__/__snapshots__/demo.test.js.snap @@ -1032,11 +1032,9 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = ` `; exports[`renders ./components/slider/demo/vertical.md correctly 1`] = ` -
+
+
diff --git a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap index 01b9863e09..ad79807158 100644 --- a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap @@ -5,7 +5,7 @@ exports[`renders ./components/tree-select/demo/async.md correctly 1`] = ` aria-haspopup="listbox" class="ant-select ant-select-enabled" role="combobox" - style="width:300px" + style="width:100%" tabindex="0" > ; diff --git a/components/tree-select/demo/multiple.md b/components/tree-select/demo/multiple.md index 44d8674ed3..a94090a095 100644 --- a/components/tree-select/demo/multiple.md +++ b/components/tree-select/demo/multiple.md @@ -32,7 +32,7 @@ class Demo extends React.Component { return ( Date: Tue, 29 Oct 2019 04:26:20 +0100 Subject: [PATCH 03/11] Fix defaultPickerValue in WeekPicker (#19141) --- components/date-picker/WeekPicker.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/date-picker/WeekPicker.tsx b/components/date-picker/WeekPicker.tsx index 92c20dd2d8..4d45a22b9a 100644 --- a/components/date-picker/WeekPicker.tsx +++ b/components/date-picker/WeekPicker.tsx @@ -143,6 +143,7 @@ class WeekPicker extends React.Component { onBlur, id, suffixIcon, + defaultPickerValue, } = this.props; const prefixCls = getPrefixCls('calendar', customizePrefixCls); @@ -170,6 +171,7 @@ class WeekPicker extends React.Component { showToday={false} disabledDate={disabledDate} renderFooter={this.renderFooter} + defaultValue={defaultPickerValue} /> ); const clearIcon = From 2ee2cc33033b4f17d839bd77917f96664ff3ea43 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 29 Oct 2019 11:40:50 +0800 Subject: [PATCH 04/11] :bug: Fix DatePicker throw onEsc error close #19461 --- components/date-picker/wrapPicker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/date-picker/wrapPicker.tsx b/components/date-picker/wrapPicker.tsx index 0b82e6f86d..a81d9b4f87 100644 --- a/components/date-picker/wrapPicker.tsx +++ b/components/date-picker/wrapPicker.tsx @@ -192,6 +192,7 @@ export default function wrapPicker(Picker: React.ComponentClass, pickerType className={timePickerCls} placeholder={locale.timePickerLocale.placeholder} transitionName="slide-up" + onEsc={() => {}} /> ) : null; From d99d90b1fa7b41ad879a4ede8ec1f840678b505a Mon Sep 17 00:00:00 2001 From: wangweijun0418 <40419952+wangweijun0418@users.noreply.github.com> Date: Wed, 30 Oct 2019 13:15:50 +0800 Subject: [PATCH 05/11] Fix Menu menu collapsed in Chrome (#19476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update index.less 修复margin重合样式问题,(次问题造成menu组件下拉不顺畅) * Update index.less 解决margin重合问题,overflow方式会有副作用,采用padding解决margin重合现象。 --- components/menu/style/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/menu/style/index.less b/components/menu/style/index.less index b54490842e..b3a43c1fe9 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -364,7 +364,7 @@ // disable margin collapsed .@{menu-prefix-cls}-submenu { - padding-bottom: 0.01px; + padding-bottom: 0.02px; } .@{menu-prefix-cls}-item:not(:last-child) { From 593cfe8950c37dce0d3c5c52eb2d0a1bdf897448 Mon Sep 17 00:00:00 2001 From: Ender Lee Date: Wed, 30 Oct 2019 20:40:57 +0800 Subject: [PATCH 06/11] fix(Upload): add interface field (#19485) (#19496) --- components/upload/interface.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/upload/interface.tsx b/components/upload/interface.tsx index c80380a6d9..7e66c5f441 100755 --- a/components/upload/interface.tsx +++ b/components/upload/interface.tsx @@ -40,6 +40,7 @@ export interface UploadFile { error?: any; linkProps?: any; type: string; + preview?: string; } export interface UploadChangeParam { From 82aa3cdc137b5d8a6d449140a32b1520932affc0 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 31 Oct 2019 21:27:27 +0800 Subject: [PATCH 07/11] fix: remove the selected padding right when use allow clear (#19510) --- components/select/style/index.less | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/select/style/index.less b/components/select/style/index.less index 199c057f54..b6a3b6a3d6 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -382,10 +382,6 @@ } } - &-allow-clear &-selection--single &-selection-selected-value { - padding-right: 16px; - } - &-allow-clear &-selection--multiple &-selection__rendered, &-show-arrow &-selection--multiple &-selection__rendered { margin-right: 20px; // In case that clear button will overlap content From 92caa2d02c9a95caabf4809691d0102e0082198d Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 1 Nov 2019 10:41:07 +0800 Subject: [PATCH 08/11] docs: improve table demo description --- components/table/demo/fixed-columns-header.md | 4 ++-- components/table/demo/fixed-columns.md | 4 ++-- components/table/demo/fixed-header.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/table/demo/fixed-columns-header.md b/components/table/demo/fixed-columns-header.md index e008645456..452e65bc90 100644 --- a/components/table/demo/fixed-columns-header.md +++ b/components/table/demo/fixed-columns-header.md @@ -9,7 +9,7 @@ title: 适合同时展示有大量数据和数据列。 -> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`。如果指定 `width` 不生效,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。 +> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`。如果指定 `width` 不生效或出现白色垂直空隙,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。 > > 建议指定 `scroll.x` 为大于表格宽度的固定值或百分比。注意,且非固定列宽度之和不要超过 `scroll.x`。 @@ -17,7 +17,7 @@ title: A Solution for displaying large amounts of data with long columns. -> Specify the width of columns if header and cell do not align properly. If specified width is not working, please try to leave one column at least without width to fit fluid layout, or make sure no [long word to break table layout](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241). +> Specify the width of columns if header and cell do not align properly. If specified width is not working or have gutter between columns, please try to leave one column at least without width to fit fluid layout, or make sure no [long word to break table layout](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241). > > A fixed value which is greater than table width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`. diff --git a/components/table/demo/fixed-columns.md b/components/table/demo/fixed-columns.md index 68349d3ac4..1bb370f402 100644 --- a/components/table/demo/fixed-columns.md +++ b/components/table/demo/fixed-columns.md @@ -9,7 +9,7 @@ title: 对于列数很多的数据,可以固定前后的列,横向滚动查看其它数据,需要和 `scroll.x` 配合使用。 -> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`。如果指定 `width` 不生效,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。 +> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`。如果指定 `width` 不生效或出现白色垂直空隙,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。 > > 建议指定 `scroll.x` 为大于表格宽度的固定值或百分比。注意,且非固定列宽度之和不要超过 `scroll.x`。 @@ -17,7 +17,7 @@ title: To fix some columns and scroll inside other columns, and you must set `scroll.x` meanwhile. -> Specify the width of columns if header and cell do not align properly. If specified width is not working, please try to leave one column at least without width to fit fluid layout, or make sure no [long word to break table layout](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241). +> Specify the width of columns if header and cell do not align properly. If specified width is not working or have gutter between columns, please try to leave one column at least without width to fit fluid layout, or make sure no [long word to break table layout](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241). > > A fixed value which is greater than table width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`. diff --git a/components/table/demo/fixed-header.md b/components/table/demo/fixed-header.md index 46aaf807b9..e8bdc944c3 100644 --- a/components/table/demo/fixed-header.md +++ b/components/table/demo/fixed-header.md @@ -9,13 +9,13 @@ title: 方便一页内展示大量数据。 -需要指定 column 的 `width` 属性,否则列头和内容可能不对齐。如果指定 `width` 不生效,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。 +需要指定 column 的 `width` 属性,否则列头和内容可能不对齐。如果指定 `width` 不生效或出现白色垂直空隙,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。 ## en-US Display large amounts of data in scrollable view. -> Specify width of columns if header and cell do not align properly. If specified width is not working, please try to leave one column at least without width to fit fluid layout, or make sure no [long word to break table layout](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241). +> Specify width of columns if header and cell do not align properly. If specified width is not working or have gutter between columns, please try to leave one column at least without width to fit fluid layout, or make sure no [long word to break table layout](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241). ```jsx import { Table } from 'antd'; From 3d8b9df4233798776b74f75caccfe4451c8ceedd Mon Sep 17 00:00:00 2001 From: He Linming Date: Sat, 2 Nov 2019 17:18:44 +0800 Subject: [PATCH 09/11] fix: table does not automatically scroll to the top when change page size (#19465) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :bug: (Table): fix scrollToFirstRow fix table does not automatically scroll to the top when change page size close #19464 * :white_check_mark: (Table): add test case for scrollToFirstRow * 👌 (Table): change Trigger to .ant-select Co-Authored-By: 骗你是小猫咪 --- components/table/Table.tsx | 6 ++--- .../table/__tests__/Table.pagination.test.js | 22 +++++++++++++++++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/components/table/Table.tsx b/components/table/Table.tsx index f66381f90c..1b323940c4 100755 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -807,7 +807,7 @@ class Table extends React.Component, TableState> { current: this.state.pagination.current, }; } - this.setState(newState, () => this.scrollToFirstRow()); + this.setState(newState, this.scrollToFirstRow); this.props.store.setState({ selectionDirty: false, @@ -834,7 +834,7 @@ class Table extends React.Component, TableState> { pageSize, current, }; - this.setState({ pagination: nextPagination }); + this.setState({ pagination: nextPagination }, this.scrollToFirstRow); const { onChange } = this.props; if (onChange) { @@ -878,7 +878,7 @@ class Table extends React.Component, TableState> { // Controlled if (this.getSortOrderColumns().length === 0) { - this.setState(newState, () => this.scrollToFirstRow()); + this.setState(newState, this.scrollToFirstRow); } const { onChange } = this.props; diff --git a/components/table/__tests__/Table.pagination.test.js b/components/table/__tests__/Table.pagination.test.js index a44d0068c7..6a0c3b6420 100644 --- a/components/table/__tests__/Table.pagination.test.js +++ b/components/table/__tests__/Table.pagination.test.js @@ -79,14 +79,32 @@ describe('Table.pagination', () => { expect(wrapper.find('.ant-pagination.mini')).toHaveLength(1); }); - // TODO it('should scroll to first row when page change', () => { - const wrapper = mount(createTable({ scroll: { y: 20 } })); + const wrapper = mount( + createTable({ scroll: { y: 20 }, pagination: { showSizeChanger: true, pageSize: 2 } }), + ); + const scrollToSpy = jest.spyOn( + wrapper + .find('Table') + .first() + .instance(), + 'scrollToFirstRow', + ); + expect(scrollToSpy).toHaveBeenCalledTimes(0); wrapper .find('Pager') .last() .simulate('click'); + expect(scrollToSpy).toHaveBeenCalledTimes(1); + + wrapper.find('.ant-select').simulate('click'); + wrapper + .find('MenuItem') + .find('li') + .last() + .simulate('click'); + expect(scrollToSpy).toHaveBeenCalledTimes(2); }); it('fires change event', () => { From dc2ba553e7f83a41234fb97099c79c36dff23436 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Sun, 3 Nov 2019 17:32:17 +0800 Subject: [PATCH 10/11] doc fix layout breakpoints url --- components/layout/index.en-US.md | 4 ++-- components/layout/index.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/layout/index.en-US.md b/components/layout/index.en-US.md index d25dd32ea8..55212ee7fe 100644 --- a/components/layout/index.en-US.md +++ b/components/layout/index.en-US.md @@ -87,7 +87,7 @@ The sidebar. | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| breakpoint | [breakpoints](/components/grid#api) of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | +| breakpoint | [breakpoints](/components/grid#Col) of the responsive layout | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | | className | container className | string | - | | | collapsed | to set the current status | boolean | - | | | collapsedWidth | width of the collapsed sidebar, by setting to `0` a special trigger will appear | number | 80 | | @@ -99,7 +99,7 @@ The sidebar. | trigger | specify the customized trigger, set to null to hide the trigger | string\|ReactNode | - | | | width | width of the sidebar | number\|string | 200 | | | onCollapse | the callback function, executed by clicking the trigger or activating the responsive layout | (collapsed, type) => {} | - | | -| onBreakpoint | the callback function, executed when [breakpoints](/components/grid#api) changed | (broken) => {} | - | 3.7.0 | +| onBreakpoint | the callback function, executed when [breakpoints](/components/grid#API) changed | (broken) => {} | - | 3.7.0 | | zeroWidthTriggerStyle | to customize the styles of the special trigger that appears when `collapsedWidth` is 0 | object | - | 3.24.0 | #### breakpoint width diff --git a/components/layout/index.zh-CN.md b/components/layout/index.zh-CN.md index d60a94b150..8e967e034d 100644 --- a/components/layout/index.zh-CN.md +++ b/components/layout/index.zh-CN.md @@ -88,7 +88,7 @@ title: Layout | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | -| breakpoint | 触发响应式布局的[断点](/components/grid#api) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | +| breakpoint | 触发响应式布局的[断点](components/grid-cn/#Col) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | | className | 容器 className | string | - | | | collapsed | 当前收起状态 | boolean | - | | | collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 80 | | @@ -100,7 +100,7 @@ title: Layout | trigger | 自定义 trigger,设置为 null 时隐藏 trigger | string\|ReactNode | - | | | width | 宽度 | number\|string | 200 | | | onCollapse | 展开-收起时的回调函数,有点击 trigger 以及响应式反馈两种方式可以触发 | (collapsed, type) => {} | - | | -| onBreakpoint | 触发响应式布局[断点](/components/grid#api)时的回调 | (broken) => {} | - | 3.7.0 | +| onBreakpoint | 触发响应式布局[断点](/components/grid#API)时的回调 | (broken) => {} | - | 3.7.0 | | zeroWidthTriggerStyle | 指定当 `collapsedWidth` 为 0 时出现的特殊 trigger 的样式 | object | - | 3.24.0 | #### breakpoint width From 0189244ebc9173a097453089e342a215d004e889 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Sun, 3 Nov 2019 17:38:28 +0800 Subject: [PATCH 11/11] fix: fix remove url --- components/layout/index.zh-CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout/index.zh-CN.md b/components/layout/index.zh-CN.md index 8e967e034d..e40fb9a149 100644 --- a/components/layout/index.zh-CN.md +++ b/components/layout/index.zh-CN.md @@ -88,7 +88,7 @@ title: Layout | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | -| breakpoint | 触发响应式布局的[断点](components/grid-cn/#Col) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | +| breakpoint | 触发响应式布局的[断点](/components/grid-cn/#Col) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - | | | className | 容器 className | string | - | | | collapsed | 当前收起状态 | boolean | - | | | collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 80 | |