上传图片按钮文案替换

This commit is contained in:
禺狨
2023-04-11 16:40:54 +08:00
parent d2ca3f535f
commit 060d686cee
6 changed files with 10 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ interface ImageItem {
}
interface PropsInterface {
text: any;
onSelected: (url: string) => void;
}
@@ -83,7 +84,7 @@ export const UploadImageButton = (props: PropsInterface) => {
setShowModal(true);
}}
>
{props.text ? props.text : "上传图片"}
</Button>
{showModal && (