mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-16 02:11:48 +08:00
adf1ecf3eb
* 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
17 lines
479 B
TypeScript
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>
|