@jdcfe/yep-react
Version:
一套移动端的React组件库
29 lines (28 loc) • 743 B
TypeScript
import * as React from 'react';
export interface ScratchProps {
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
scratchImgUrl: string;
resPercent?: number;
resCallback: () => void;
children: React.ReactNode;
}
export interface State {
isAreaShow: boolean;
isArea2Show: boolean;
}
export default class Scratch extends React.PureComponent<ScratchProps, State> {
static defaultProps: {
prefixCls: string;
style: {};
scratchImgUrl: string;
resCallback: () => void;
};
constructor(props: ScratchProps);
componentDidMount(): void;
touchStart(e: any): void;
touchMove(e: any): boolean;
touchEnd(): void;
render(): JSX.Element;
}