4.6.7-alpha commit (#743)
Co-authored-by: Archer <545436317@qq.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ export const uploadFiles = ({
|
||||
};
|
||||
|
||||
export const getUploadBase64ImgController = (props: CompressImgProps & UploadImgProps) =>
|
||||
compressBase64Img({
|
||||
compressBase64ImgAndUpload({
|
||||
maxW: 4000,
|
||||
maxH: 4000,
|
||||
maxSize: 1024 * 1024 * 5,
|
||||
|
||||
@@ -27,7 +27,7 @@ export const useSelectFile = (props?: {
|
||||
if (e.target.files.length > maxCount) {
|
||||
return toast({
|
||||
status: 'warning',
|
||||
title: t('file.Select a maximum of 10 files')
|
||||
title: t('common.file.Select file amount limit', { max: maxCount })
|
||||
});
|
||||
}
|
||||
onSelect(Array.from(e.target.files), openSign.current);
|
||||
@@ -35,7 +35,7 @@ export const useSelectFile = (props?: {
|
||||
/>
|
||||
</Box>
|
||||
),
|
||||
[fileType, maxCount, multiple]
|
||||
[fileType, maxCount, multiple, t, toast]
|
||||
);
|
||||
|
||||
const onOpen = useCallback((sign?: any) => {
|
||||
|
||||
Reference in New Issue
Block a user