Skip to content

Commit

Permalink
docs: 防抖改为节流
Browse files Browse the repository at this point in the history
  • Loading branch information
cncolder committed May 26, 2020
1 parent 108d11d commit 27e40ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ButtonProps extends Omit<_ButtonProps, 'size' | 'type'>, Pick<A
style?: React.CSSProperties
type?: _ButtonProps['type'] | AtButtonProps['type'] | 'error'
size?: _ButtonProps['size'] | AtButtonProps['size']
/** onClick 事件防抖时间间隔, 单位: ms, 默认 500ms. */
/** onClick 事件节流时间间隔, 单位: ms, 默认 500ms. */
clickThrottle?: boolean | number
/** 透明按钮 */
transparent?: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FormProps as _FormProps } from '@tarojs/components/types/Form'
import { useThrottleCallback } from '@tarojsx/hooks/dist/useThrottleCallback'

export interface FormProps extends Omit<_FormProps, 'onSubmit'> {
/** onClick 事件防抖时间间隔, 单位: ms, 默认 500ms. */
/** onClick 事件节流时间间隔, 单位: ms, 默认 500ms. */
submitThrottle?: boolean | number
onSubmit?(e: React.BaseSyntheticEvent): void
}
Expand Down

0 comments on commit 27e40ac

Please sign in to comment.