import React from 'react'; import {PickerContainer, Button, Form, Controller, InputBox} from 'amis-ui'; export default function () { const body = React.createRef(); const beforeConfirm = React.useCallback(() => { return body.current?.submit(); }, []); const handleConfirm = React.useCallback((data: any) => { console.log('confirmed', data); }, []); return (
(
{({control}) => ( <> ( )} /> ( )} /> )} )} > {({isOpened, onClick}) => ( )}
); }