import type { App } from 'vue' ; import type { ArcoOptions } from '../_utils/types' ; import { setGlobalConfig , getComponentPrefix } from '../_utils/global-config' ; import _Form from './form.vue' ; import _FormItem from './form-item' ; const Form = Object . assign ( _Form , { Item : _FormItem , install : ( app , options ? ) => { setGlobalConfig ( app , options ) ; const componentPrefix = getComponentPrefix ( options ) ; app . component ( componentPrefix + _Form . name , _Form ) ; app . component ( componentPrefix + _FormItem . name , _FormItem ) ; } } ) ; export type FormInstance = InstanceType < typeof _Form > ; export type FormItemInstance = InstanceType < typeof _FormItem > ; export { _FormItem as FormItem } ; export default Form ;