2022-02-11 11:03:15 +08:00
|
|
|
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
2021-08-24 13:36:48 +08:00
|
|
|
import Form from './src/form.vue'
|
|
|
|
import FormItem from './src/form-item.vue'
|
|
|
|
|
2021-09-24 19:11:56 +08:00
|
|
|
export const ElForm = withInstall(Form, {
|
|
|
|
FormItem,
|
|
|
|
})
|
|
|
|
export default ElForm
|
|
|
|
export const ElFormItem = withNoopInstall(FormItem)
|
2022-03-06 22:20:56 +08:00
|
|
|
|
|
|
|
export * from './src/form'
|
|
|
|
export * from './src/form-item'
|
|
|
|
export * from './src/types'
|
2022-03-16 15:43:49 +08:00
|
|
|
|
|
|
|
export type FormInstance = InstanceType<typeof Form>
|
|
|
|
export type FormItemInstance = InstanceType<typeof FormItem>
|