Skip to content

Commit 443eecf

Browse files
committed
fix(Typescript): add a tags ts.
1 parent fc0d576 commit 443eecf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

types/button/index.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ export interface ButtonProps extends HTMLAttributesWeak, CommonProps {
7878
* 点击按钮的回调
7979
*/
8080
onClick?: (e: {}) => void;
81+
82+
/**
83+
* 在Button组件使用component属性值为a时有效,代表链接页面的URL
84+
*/
85+
href?: string;
86+
87+
/**
88+
* 在Button组件使用component属性值为a时有效,代表何处打开链接文档
89+
*/
90+
target?: string;
8191
}
8292

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

0 commit comments

Comments
 (0)