import React from "react"; import classNames from "classnames"; import { Tooltip } from "../tooltip"; import { Icon } from "../icon"; import { StyledProps, Omit } from "../_type"; import { forwardRefWithStatics } from "../_util/forward-ref-with-statics"; import { useConfig } from "../_util/config-context"; /** * Button 组件支持的属性。 * * 除表格中列出的属性外,支持透传原生 ` ); /* eslint-enable react/button-has-type */ if (tooltip) { button = {button}; } return button; }, { defaultLabelAlign: "middle", } ); Button.displayName = "Button";