element-plus/packages/components/form/index.ts

17 lines
479 B
TypeScript
Raw Normal View History

import { withInstall, withNoopInstall } from '@element-plus/utils'
import Form from './src/form.vue'
import FormItem from './src/form-item.vue'
export const ElForm = withInstall(Form, {
FormItem,
})
export default ElForm
export const ElFormItem = withNoopInstall(FormItem)
export * from './src/form'
export * from './src/form-item'
export * from './src/types'
export type FormInstance = InstanceType<typeof Form>
export type FormItemInstance = InstanceType<typeof FormItem>