import Form from './src/form.vue' import FormItem from './src/form-item.vue' import type { App } from 'vue' import type { SFCWithInstall } from '@element-plus/utils/types' Form.install = (app: App): void => { app.component(Form.name, Form) app.component(FormItem.name, FormItem) } Form.FormItem = FormItem const _Form = Form as any as SFCWithInstall & { FormItem: typeof FormItem } export default _Form export const ElForm = _Form export const ElFormItem = FormItem