import React, { HTMLAttributes, ReactNode } from 'react'; import classNames from 'classnames'; import LoadingIcon from '../icons/loading2.svg'; import './index.scss'; export interface ButtonProps extends HTMLAttributes { radius?: boolean; disabled?: boolean; size?: 'big' | 'normal' | 'small'; type?: 'primary' | 'text' | 'link' | 'dashed' | 'default'; loading?: boolean; children?: ReactNode; } const Button: React.FC = (props) => { const { radius, disabled, type, children, className, loading, size, ...rest } = props; return ( ); }; Button.defaultProps = { radius: false, type: 'primary', disabled: false, children: '按钮', size: 'normal', loading: false }; export default Button;