Commit 5806fd56 authored by zhangwenshuai's avatar zhangwenshuai

修改upload

parent 6cef53aa
......@@ -42,11 +42,10 @@ export const ApolloUpload = (props: ApolloUploadProps) => {
const changeValue = (value: any) => {
setValue(value);
if (origin === 'editForm') {
if (props.onBlurFn) {
onBlurFn({ ...props, value });
} else if (typeof onChange === 'function') {
if (typeof onChange === 'function') {
onChange(value);
}
onBlurFn({ ...props, value });
}
};
const [visible, setVisible] = useState(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment