fix: ts types error

This commit is contained in:
tangjinzhou 2019-01-01 12:39:29 +08:00
parent 0e499ee908
commit fa110de4eb
2 changed files with 7 additions and 7 deletions

View File

@ -22,6 +22,7 @@ import { Checkbox } from "./checkbox/checkbox";
import { Col } from "./grid/col";
import { DatePicker } from "./date-picker/date-picker";
import { Divider } from "./divider";
import { Drawer } from "./drawer";
import { Dropdown } from "./dropdown/dropdown";
import { Form } from "./form/form";
import { Icon } from "./icon";
@ -42,6 +43,7 @@ import { Radio } from "./radio/radio";
import { Rate } from "./rate";
import { Row } from "./grid/row";
import { Select } from "./select/select";
import { Skeleton } from "./skeleton";
import { Slider } from "./slider";
import { Spin } from "./spin";
import { Steps } from "./steps/steps";
@ -56,8 +58,6 @@ import { TimePicker } from "./time-picker";
import { Timeline } from "./timeline/timeline";
import { Tooltip } from "./tootip/tooltip";
import { Upload } from "./upload";
import { Drawer } from "./drawer";
import { Skeleton } from "./skeleton";
/**
* Install all ant-design-vue components into Vue.

10
types/form/form.d.ts vendored
View File

@ -184,31 +184,31 @@ export interface WrappedFormUtils {
* Two-way binding for form, single file template can be bound using the directive v-decorator.
* @type Function
*/
getFieldDecorator(id: string, options: FieldDecoratorOptions);
getFieldDecorator(id: string, options: FieldDecoratorOptions): any;
/**
* Get the error of a field.
* @type Function (Function(name))
*/
getFieldError(name: string);
getFieldError(name: string): any;
/**
* Get the specified fields' error. If you don't specify a parameter, you will get all fields' error.
* @type Function (Function([names: string[]))
*/
getFieldsError(names: string[]);
getFieldsError(names: string[]): any;
/**
* Get the specified fields' values. If you don't specify a parameter, you will get all fields' values.
* @type Funtion (Function([fieldNames: string[]))
*/
getFieldsValue(fieldNames: string[]);
getFieldsValue(fieldNames: string[]): any;
/**
* Get the value of a field.
* @type Function (Function(fieldName: string))
*/
getFieldValue(fieldName: string);
getFieldValue(fieldName: string): any;
/**
* Check whether any of fields is touched by getFieldDecorator's options.trigger event