Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 删除 ScrollView 的 usingSticky 属性 #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/components/viewContainer/scroll-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ typeof ScrollViewProps
| refresherBackground | `string` | `'#FFF'` | 否 | 设置自定义下拉刷新区域背景颜色 |
| refresherTriggered | `boolean` | `false` | 否 | 设置当前下拉刷新状态,true 表示下拉刷新已经被触发,false 表示下拉刷新未被触发 |
| enhanced | `boolean` | `false` | 否 | 启用 scroll-view 增强特性 |
| usingSticky | `boolean` | `false` | 否 | 使 scroll-view 下的 position sticky 特性生效,否则滚动一屏后 sticky 元素会被隐藏 |
| bounces | `boolean` | `true` | 否 | iOS 下 scroll-view 边界弹性控制 (同时开启 enhanced 属性后生效) |
| showScrollbar | `boolean` | `true` | 否 | 滚动条显隐控制 (同时开启 enhanced 属性后生效) |
| pagingEnabled | `boolean` | `false` | 否 | 分页滑动效果 (同时开启 enhanced 属性后生效) |
Expand Down Expand Up @@ -263,7 +262,6 @@ typeof ScrollViewProps
| ScrollViewProps.refresherBackground | ✔️ | | | | | | | | | |
| ScrollViewProps.refresherTriggered | ✔️ | | | | | | | | | |
| ScrollViewProps.enhanced | ✔️ | ✔️ | | | | | | | | |
| ScrollViewProps.usingSticky | ✔️ | | | | | | | | | |
| ScrollViewProps.bounces | ✔️ | ✔️ | | | | | | | | |
| ScrollViewProps.showScrollbar | ✔️ | | | | | | | | | |
| ScrollViewProps.pagingEnabled | ✔️ | | | | | | | | | |
Expand Down
5 changes: 0 additions & 5 deletions packages/taro-components/types/ScrollView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ interface ScrollViewProps extends StandardProps {
* @default false
*/
enhanced?: boolean
/** 使 scroll-view 下的 position sticky 特性生效,否则滚动一屏后 sticky 元素会被隐藏
* @supported weapp
* @default false
*/
usingSticky?: boolean
/** iOS 下 scroll-view 边界弹性控制 (同时开启 enhanced 属性后生效)
* @supported weapp, swan
* @default true
Expand Down