diff --git a/src/App.tsx b/src/App.tsx index df495fe..c4fa398 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,6 +4,7 @@ import Loader from './common/Loader'; import useAuthRedirect from '@/hooks/useAuthRedirect'; import { ConfigProvider } from 'antd'; import RouteList from './components/RouteList'; +import "@/styles/customAntd.scss" function App() { useAuthRedirect() diff --git a/src/components/FileUpload/index.tsx b/src/components/FileUpload/index.tsx index cc4b428..017c642 100644 --- a/src/components/FileUpload/index.tsx +++ b/src/components/FileUpload/index.tsx @@ -90,8 +90,8 @@ export default ({ dir, open, onCancel, onSuccess }: UploadFileProps) => { isCompressionUpload && } /> + } className='customizeAntdInputAddonAfter' /> diff --git a/src/styles/customAntd.scss b/src/styles/customAntd.scss new file mode 100644 index 0000000..9d744c0 --- /dev/null +++ b/src/styles/customAntd.scss @@ -0,0 +1,10 @@ +// 自定义input后置按钮样式 +.customizeAntdInputAddonAfter { + .ant-input-group-addon { + padding: 0; + + >span { + padding: 8px 10px; + } + } +} \ No newline at end of file diff --git a/src/styles/index.css b/src/styles/index.css index 3148697..b1a2655 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -215,6 +215,6 @@ span.flatpickr-weekday, display: none !important; } -.ant-btn-primary{ +.ant-btn-primary { background-color: #727cf5; } \ No newline at end of file