mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-01 04:48:55 +08:00
Merge pull request #15702 from ferdikoomen/issue-15700
Fix for changes in @types/react (see issue #15700)
This commit is contained in:
commit
d0b68f9948
@ -7,7 +7,7 @@ import omit from 'omit.js';
|
|||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
||||||
import Wave from '../_util/wave';
|
import Wave from '../_util/wave';
|
||||||
import { tuple } from '../_util/type';
|
import { Omit, tuple } from '../_util/type';
|
||||||
|
|
||||||
const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
|
const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
|
||||||
const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
|
const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
|
||||||
@ -67,13 +67,13 @@ export type AnchorButtonProps = {
|
|||||||
target?: string;
|
target?: string;
|
||||||
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
||||||
} & BaseButtonProps &
|
} & BaseButtonProps &
|
||||||
React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'type'>;
|
||||||
|
|
||||||
export type NativeButtonProps = {
|
export type NativeButtonProps = {
|
||||||
htmlType?: ButtonHTMLType;
|
htmlType?: ButtonHTMLType;
|
||||||
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
||||||
} & BaseButtonProps &
|
} & BaseButtonProps &
|
||||||
React.ButtonHTMLAttributes<HTMLButtonElement>;
|
Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'>;
|
||||||
|
|
||||||
export type ButtonProps = AnchorButtonProps | NativeButtonProps;
|
export type ButtonProps = AnchorButtonProps | NativeButtonProps;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user