jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
26 lines (25 loc) • 626 B
TypeScript
import React from 'react';
import type { ReactPropsBase } from 'jamis-core';
export interface LinkProps extends ReactPropsBase, React.DOMAttributes<HTMLAnchorElement> {
/**
* 禁用
*/
disabled?: boolean;
/**
* 图标
*/
icon?: string;
/**
* 右侧图标
*/
rightIcon?: string;
href?: string;
htmlTarget?: string;
title?: string;
children?: JSX.Element | null | string;
}
export default class Link extends React.Component<LinkProps, object> {
constructor(props: LinkProps);
handleClick(e: React.MouseEvent<any>): void;
render(): JSX.Element;
}