From aacdc2ebe18e70a6fe88c567dabad4366ebdb0e2 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Wed, 5 Aug 2020 14:50:52 +0800 Subject: [PATCH] docs: perfect site (#26025) --- components/affix/demo/debug.md | 2 +- components/affix/index.en-US.md | 2 +- components/affix/index.zh-CN.md | 2 +- components/breadcrumb/demo/basic.md | 2 +- components/breadcrumb/demo/separator-indepent.md | 2 +- components/breadcrumb/demo/separator.md | 2 +- components/breadcrumb/index.en-US.md | 4 ++-- components/breadcrumb/index.zh-CN.md | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/affix/demo/debug.md b/components/affix/demo/debug.md index abb3c0ebb1..5300bf5230 100644 --- a/components/affix/demo/debug.md +++ b/components/affix/demo/debug.md @@ -2,7 +2,7 @@ order: 99 title: zh-CN: 调整浏览器大小,观察 Affix 容器是否发生变化。跟随变化为正常。#17678 - en-US: + en-US: debug debug: true --- diff --git a/components/affix/index.en-US.md b/components/affix/index.en-US.md index 75a671b307..0d308594cb 100644 --- a/components/affix/index.en-US.md +++ b/components/affix/index.en-US.md @@ -19,8 +19,8 @@ Please note that Affix should not cover other content on the page, especially wh | --- | --- | --- | --- | | offsetBottom | Offset from the bottom of the viewport (in pixels) | number | - | | offsetTop | Offset from the top of the viewport (in pixels) | number | 0 | +| onChange | Callback for when Affix state is changed | function(affixed) | - | | target | Specifies the scrollable area DOM node | () => HTMLElement | () => window | -| onChange | Callback for when Affix state is changed | Function(affixed) | - | **Note:** Children of `Affix` must not have the property `position: absolute`, but you can set `position: absolute` on `Affix` itself: diff --git a/components/affix/index.zh-CN.md b/components/affix/index.zh-CN.md index 2bd659ac30..e053e73c27 100644 --- a/components/affix/index.zh-CN.md +++ b/components/affix/index.zh-CN.md @@ -20,8 +20,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/tX6-md4H6/Affix.svg | --- | --- | --- | --- | | offsetBottom | 距离窗口底部达到指定偏移量后触发 | number | - | | offsetTop | 距离窗口顶部达到指定偏移量后触发 | number | - | +| onChange | 固定状态改变时触发的回调函数 | function(affixed) | - | | target | 设置 `Affix` 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 | () => HTMLElement | () => window | -| onChange | 固定状态改变时触发的回调函数 | Function(affixed) | - | **注意:**`Affix` 内的元素不要使用绝对定位,如需要绝对定位的效果,可以直接设置 `Affix` 为绝对定位: diff --git a/components/breadcrumb/demo/basic.md b/components/breadcrumb/demo/basic.md index 37d777fa01..63c31aa564 100644 --- a/components/breadcrumb/demo/basic.md +++ b/components/breadcrumb/demo/basic.md @@ -11,7 +11,7 @@ title: ## en-US -The simplest use +The simplest use. ```jsx import { Breadcrumb } from 'antd'; diff --git a/components/breadcrumb/demo/separator-indepent.md b/components/breadcrumb/demo/separator-indepent.md index b9b4a001d3..f889d49a51 100644 --- a/components/breadcrumb/demo/separator-indepent.md +++ b/components/breadcrumb/demo/separator-indepent.md @@ -11,7 +11,7 @@ title: ## en-US -The separator can be customized by setting the separator property: `Breadcrumb.Separator` +The separator can be customized by setting the separator property: `Breadcrumb.Separator`. ```jsx import { Breadcrumb } from 'antd'; diff --git a/components/breadcrumb/demo/separator.md b/components/breadcrumb/demo/separator.md index ccb4643f90..086794584a 100644 --- a/components/breadcrumb/demo/separator.md +++ b/components/breadcrumb/demo/separator.md @@ -11,7 +11,7 @@ title: ## en-US -The separator can be customized by setting the separator property: separator=">" +The separator can be customized by setting the separator property: separator=">". ```jsx import { Breadcrumb } from 'antd'; diff --git a/components/breadcrumb/index.en-US.md b/components/breadcrumb/index.en-US.md index c5ece2a2cb..aad519220a 100644 --- a/components/breadcrumb/index.en-US.md +++ b/components/breadcrumb/index.en-US.md @@ -28,10 +28,10 @@ A breadcrumb displays the current location within a hierarchy. It allows going b | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | +| dropdownProps | The dropdown props | [Dropdown](/components/dropdown) | - | | | href | Target of hyperlink | string | - | | | overlay | The dropdown menu | [Menu](/components/menu) \| () => Menu | - | | -| onClick | Set the handler to handle `click` event | (e:MouseEvent)=>void | - | | -| dropdownProps | The dropdown props | [Dropdown](/components/dropdown) | - | | +| onClick | Set the handler to handle `click` event | (e:MouseEvent) => void | - | | ### Breadcrumb.Separator diff --git a/components/breadcrumb/index.zh-CN.md b/components/breadcrumb/index.zh-CN.md index 4b425f8b4c..b2062fada9 100644 --- a/components/breadcrumb/index.zh-CN.md +++ b/components/breadcrumb/index.zh-CN.md @@ -29,10 +29,10 @@ cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | +| dropdownProps | 弹出下拉菜单的自定义配置 | [Dropdown](/components/dropdown) | - | | | href | 链接的目的地 | string | - | | | overlay | 下拉菜单的内容 | [Menu](/components/menu) \| () => Menu | - | | -| onClick | 单击事件 | (e:MouseEvent)=>void | - | | -| dropdownProps | 弹出下拉菜单的自定义配置 | [Dropdown](/components/dropdown) | - | | +| onClick | 单击事件 | (e:MouseEvent) => void | - | | ### Breadcrumb.Separator