1 | import * as React from 'react';
|
2 | import { AntAnchor } from './Anchor';
|
3 | import { ConfigConsumerProps } from '../config-provider';
|
4 | export interface AnchorLinkProps {
|
5 | prefixCls?: string;
|
6 | href: string;
|
7 | target?: string;
|
8 | title: React.ReactNode;
|
9 | children?: React.ReactNode;
|
10 | className?: string;
|
11 | }
|
12 | declare class AnchorLink extends React.Component<AnchorLinkProps, any, AntAnchor> {
|
13 | static defaultProps: {
|
14 | href: string;
|
15 | };
|
16 | static contextType: React.Context<AntAnchor>;
|
17 | context: AntAnchor;
|
18 | componentDidMount(): void;
|
19 | componentDidUpdate({ href: prevHref }: AnchorLinkProps): void;
|
20 | componentWillUnmount(): void;
|
21 | handleClick: (e: React.MouseEvent<HTMLElement>) => void;
|
22 | renderAnchorLink: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
|
23 | render(): JSX.Element;
|
24 | }
|
25 | export default AnchorLink;
|