pictures-upload
v2.1.0
Published
用于预览上传图片控件
Downloads
6
Readme
Author
你们的吴男神
pictures-upload
用于预览上传图片控件
install
npm install --save pictures-upload
usage
import { Form } from 'antd';
import PictureUpload from 'pictures-upload';
import config from '@config';
/**
* @name 重点事件预警
*/
const Page = () => {
const [form] = Form.useForm();
const pictureUploadProps = {
uploadUrl: config.uploadUrl,
formProps: {
label: '调解协议书照片',
name: 'recordPhoto',
valuePropName: 'recordPhoto',
},
};
return (
<Form form={form}>
<PictureUpload {...pictureUploadProps} />
</Form>
);
};
export default memo(Page);