import type { CSSProperties } from 'react'; import type { PickClassStyleType } from 'jamis-core'; import type { ButtonLevel, SizeUnit, TooltipObject, Trigger } from '../../types'; export interface ButtonProps extends React.DOMAttributes, PickClassStyleType { type?: 'button' | 'reset' | 'submit' | 'action'; id?: string; className?: string; href?: string; title?: string; style?: CSSProperties; overrideClassName?: boolean; /** * 按钮大小 */ size?: SizeUnit; level?: ButtonLevel; tooltip?: string | TooltipObject; tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left'; tooltipContainer?: any; tooltipTrigger?: Trigger | Array; tooltipRootClose?: boolean; disabled?: boolean; readOnly?: boolean; active?: boolean; block?: boolean; iconOnly?: boolean; disabledTip?: string | TooltipObject; componentClass?: React.ComponentType | 'button' | 'a' | 'div' | 'input'; loading?: boolean; loadingClassName?: string; target?: string; }