element-plus/packages/components/form/index.ts
JeremyWuuuuu adf1ecf3eb
fix(components): [el-form] validation with callbacks throws (#6669)
* fix(components): [el-form] validation with callbacks throws

- Fix Form component's validation with callbacks still throws error
- Fix FormItem component's validation with callbacks still throws error
- Update test cases to make sure this functionality's integrity

* Fix linter
2022-03-16 15:43:49 +08:00

17 lines
479 B
TypeScript

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>