Skip to content

Commit

Permalink
fix(Typescript): add a tags ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
nianxiongdi committed Jul 26, 2019
1 parent fc0d576 commit 443eecf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/button/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ export interface ButtonProps extends HTMLAttributesWeak, CommonProps {
* 点击按钮的回调
*/
onClick?: (e: {}) => void;

/**
* 在Button组件使用component属性值为a时有效,代表链接页面的URL
*/
href?: string;

/**
* 在Button组件使用component属性值为a时有效,代表何处打开链接文档
*/
target?: string;
}

export default class Button extends React.Component<ButtonProps, any> {
Expand Down

0 comments on commit 443eecf

Please sign in to comment.