Browse Source
type: update string type with React.HTMLAttributeAnchorTarget (#43129)
pull/43139/head
lijianan
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
components/button/button.tsx
|
|
@ -55,7 +55,7 @@ export interface BaseButtonProps { |
|
|
|
|
|
|
|
export type AnchorButtonProps = { |
|
|
|
href: string; |
|
|
|
target?: string; |
|
|
|
target?: React.HTMLAttributeAnchorTarget; |
|
|
|
onClick?: React.MouseEventHandler<HTMLAnchorElement>; |
|
|
|
} & BaseButtonProps & |
|
|
|
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, 'type' | 'onClick'>; |
|
|
|