From 954c3a13f1b0be00497408ee3d5ef4a803136cc7 Mon Sep 17 00:00:00 2001 From: RaoHai Date: Sat, 5 Nov 2016 09:24:36 +0800 Subject: [PATCH] remove useless files and sentences --- components/anchor/index.zh-CN.md | 5 ----- components/anchor/style/index.zh-CN.md | 31 -------------------------- 2 files changed, 36 deletions(-) delete mode 100644 components/anchor/style/index.zh-CN.md diff --git a/components/anchor/index.zh-CN.md b/components/anchor/index.zh-CN.md index 794070ec52..93d47aba9d 100644 --- a/components/anchor/index.zh-CN.md +++ b/components/anchor/index.zh-CN.md @@ -28,8 +28,3 @@ title: Anchor | href | 锚点链接 | String | | | title | 文字内容 | String | | -```jsx - - - -``` diff --git a/components/anchor/style/index.zh-CN.md b/components/anchor/style/index.zh-CN.md deleted file mode 100644 index 531bed8ddd..0000000000 --- a/components/anchor/style/index.zh-CN.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -category: Components -subtitle: 固钉 -type: Other -title: Affix ---- - -将页面元素钉在可视范围。 - -## 何时使用 - -当内容区域比较长,需要滚动页面时,这部分内容对应的操作或者导航需要在滚动范围内始终展现。常用于侧边菜单和按钮组合。 - -页面可视范围过小时,慎用此功能以免遮挡页面内容。 - -## API - -| 成员 | 说明 | 类型 | 默认值 | -|-------------|----------------|--------------------|--------------| -| offsetTop | 距离窗口顶部达到指定偏移量后触发 | Number | | -| offsetBottom | 距离窗口底部达到指定偏移量后触发 | Number | | -| target | 设置 `Affix` 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 | Function | () => window | -| onChange | 固定状态改变时触发的回调函数 | Function(affixed) | 无 | - -**注意:**`Affix` 内的元素不要使用绝对定位,如需要绝对定位的效果,可以直接设置 `Affix` 为绝对定位: - -```jsx - - ... - -```