feat: add button type

This commit is contained in:
EleanorMao 2023-04-24 09:17:51 +08:00
parent c196059515
commit 4c0628612f
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import React, { FC } from 'react'
import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd' import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd'
export type ButtonProps = Omit<AntdButtonProps, 'danger' | 'ghost' | 'shape' | 'size' | 'type'> & { export type ButtonProps = Omit<AntdButtonProps, 'danger' | 'ghost' | 'shape' | 'size' | 'type'> & {
type?: 'primary' | 'link' | 'text' type?: 'primary' | 'default' | 'link' | 'text'
} }
export const Button: FC<ButtonProps> = (props) => { export const Button: FC<ButtonProps> = (props) => {
return <AntdButton type="primary" {...props} /> return <AntdButton type="primary" {...props} />

View File

@ -7,6 +7,10 @@ html, body {
font-weight: 500 !important; font-weight: 500 !important;
} }
.ant-btn-default {
border-color: #FF5A0C;
}
.ant-btn.ant-btn-icon-only { .ant-btn.ant-btn-icon-only {
width: 50px !important; width: 50px !important;
height: 50px !important; height: 50px !important;