ukelli-ui
Version:
Base on React's UI lib. Make frontend's dev simpler and faster.
17 lines (16 loc) • 472 B
TypeScript
import { Component } from 'react';
export interface ClickAwayProps {
/** 点击 children 以外的区域时触发的回调 */
onClickAway: (event: any) => void;
/** children */
children: any;
}
export default class ClickAway extends Component<ClickAwayProps> {
__mounted: boolean;
node: any;
componentDidMount(): void;
componentWillUnmount(): void;
handleClick: (event: any) => void;
updateNodeRef: () => void;
render(): any;
}