import { setupPage } from '@goldfishjs/composition-api' ; Page ( setupPage ( ( ) => { return { onSubmit ( e ) { const value = e . detail . value ; if ( ! value . name || ! value . description ) { my . alert ( { content : 'Please Fill in the Form.' , } ) ; return ; } my . confirm ( { title : 'Your Submit Data' , content : value , } ) ; } , } ; } ) ) ;