forked from pu428f3pz/InternshipProject
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
853 B
26 lines
853 B
import * as React from 'react';
|
|
import { AntAnchor } from './Anchor';
|
|
import { ConfigConsumerProps } from '../config-provider';
|
|
export interface AnchorLinkProps {
|
|
prefixCls?: string;
|
|
href: string;
|
|
target?: string;
|
|
title: React.ReactNode;
|
|
children?: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
declare class AnchorLink extends React.Component<AnchorLinkProps, any, AntAnchor> {
|
|
static defaultProps: {
|
|
href: string;
|
|
};
|
|
static contextType: React.Context<AntAnchor>;
|
|
context: AntAnchor;
|
|
componentDidMount(): void;
|
|
componentDidUpdate({ href: prevHref }: AnchorLinkProps): void;
|
|
componentWillUnmount(): void;
|
|
handleClick: (e: React.MouseEvent<HTMLElement>) => void;
|
|
renderAnchorLink: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
export default AnchorLink;
|