From ebd6cde2e1011e7949bd1fe97783aa5b2477a952 Mon Sep 17 00:00:00 2001 From: XY <541075770@qq.com> Date: Wed, 10 Apr 2019 10:31:43 +0900 Subject: [PATCH] add type definition for Form --- types/form/form.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/form/form.d.ts b/types/form/form.d.ts index 59feb60bb..62f7ab9cb 100644 --- a/types/form/form.d.ts +++ b/types/form/form.d.ts @@ -363,6 +363,12 @@ export declare class Form extends AntdComponent { options: object; createForm(context: Vue, options?: IformCreateOption): any; + + /** + * Convert props to field value + * @param field + */ + createFormField(field: any): any; } declare module 'vue/types/vue' {