优化Icon、Upload
parent
aca36570fb
commit
9ac093dd46
|
|
@ -1,7 +1,7 @@
|
|||
import { UndoOutlined } from "@ant-design/icons";
|
||||
import { ReloadOutlined } from "@ant-design/icons";
|
||||
|
||||
const ResetIcon = props => (
|
||||
<UndoOutlined {...props} />
|
||||
<ReloadOutlined {...props} />
|
||||
);
|
||||
|
||||
ResetIcon.displayName = "ResetIcon";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { PlusOutlined } from "@ant-design/icons";
|
||||
import { PlusOutlined, UploadOutlined } from "@ant-design/icons";
|
||||
import { Upload as AntUpload, Button, message, Modal } from "antd";
|
||||
import { useState } from "react";
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ const Upload = (props) => {
|
|||
</div>
|
||||
)
|
||||
: (
|
||||
<Button type="primary">{uploadButtonText}</Button>
|
||||
<Button type="primary" icon={<UploadOutlined />}>{uploadButtonText}</Button>
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue