From 1a09cfeb2fdd7a95f0860787f1a2a7c05bc8dd87 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Tue, 13 Dec 2022 22:18:43 +0800 Subject: [PATCH] docs: update API (#39539) --- components/anchor/index.en-US.md | 2 +- components/anchor/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/anchor/index.en-US.md b/components/anchor/index.en-US.md index b8a4422fdc..623b15ee39 100644 --- a/components/anchor/index.en-US.md +++ b/components/anchor/index.en-US.md @@ -40,7 +40,7 @@ For displaying anchor hyperlinks on page and jumping between them. | getContainer | Scrolling container | () => HTMLElement | () => window | | | getCurrentAnchor | Customize the anchor highlight | (activeLink: string) => string | - | | | offsetTop | Pixels to offset from top when calculating position of scroll | number | 0 | | -| showInkInFixed | Whether show ink-balls when `affix={false}` | boolean | false | | +| showInkInFixed | Whether show ink-square when `affix={false}` | boolean | false | | | targetOffset | Anchor scroll offset, default as `offsetTop`, [example](#components-anchor-demo-targetOffset) | number | - | | | onChange | Listening for anchor link change | (currentActiveLink: string) => void | | | | onClick | Set the handler to handle `click` event | (e: MouseEvent, link: object) => void | - | | diff --git a/components/anchor/index.zh-CN.md b/components/anchor/index.zh-CN.md index dc9d863fc2..6f78f6b635 100644 --- a/components/anchor/index.zh-CN.md +++ b/components/anchor/index.zh-CN.md @@ -41,7 +41,7 @@ group: | getContainer | 指定滚动的容器 | () => HTMLElement | () => window | | | getCurrentAnchor | 自定义高亮的锚点 | (activeLink: string) => string | - | | | offsetTop | 距离窗口顶部达到指定偏移量后触发 | number | | | -| showInkInFixed | `affix={false}` 时是否显示小圆点 | boolean | false | | +| showInkInFixed | `affix={false}` 时是否显示小方块 | boolean | false | | | targetOffset | 锚点滚动偏移量,默认与 offsetTop 相同,[例子](#components-anchor-demo-targetOffset) | number | - | | | onChange | 监听锚点链接改变 | (currentActiveLink: string) => void | - | | | onClick | `click` 事件的 handler | (e: MouseEvent, link: object) => void | - | |