mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
docs: fix update demo
This commit is contained in:
parent
a29154e67a
commit
7caa03e2ef
@ -21,7 +21,7 @@ import { UploadOutlined } from '@ant-design/icons';
|
||||
const Uploader = () => {
|
||||
const props = {
|
||||
beforeUpload: file => {
|
||||
const isPNG = file.type === 'image/png';
|
||||
const isPNG = file.type === 'image/png';
|
||||
if (!isPNG) {
|
||||
message.error(`${file.name} is not a png file`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user