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

feat(taro-components): 完善 CoverView 的类型定义 #2436

Merged
merged 1 commit into from
Mar 14, 2019
Merged
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
31 changes: 29 additions & 2 deletions packages/taro-components/types/CoverView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,38 @@ import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

export interface CoverViewProps extends StandardProps {

/**
* 设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效
*/
scrollTop?: number
scrollTop?: number,

/**
* 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
*
* 默认值:`none`
*/
hoverClass?: string,

/**
* 指定是否阻止本节点的祖先节点出现点击态
*
* 默认值:`fasle`
*/
hoverStopPropagation?: boolean,

/**
* 按住后多久出现点击态,单位毫秒
*
* 默认值:`50`
*/
hoverStartTime?: number,

/**
* 手指松开后点击态保留时间,单位毫秒
*
* 默认值:`400`
*/
hoverStayTime?: number,
}

export interface CoverImageProps extends StandardProps {
Expand Down