fix: ts types error

pull/377/head
tangjinzhou 2019-01-01 12:39:29 +08:00
parent 0e499ee908
commit 11f5efcc66
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 { Col } from "./grid/col";
import { DatePicker } from "./date-picker/date-picker"; import { DatePicker } from "./date-picker/date-picker";
import { Divider } from "./divider"; import { Divider } from "./divider";
import { Drawer } from "./drawer";
import { Dropdown } from "./dropdown/dropdown"; import { Dropdown } from "./dropdown/dropdown";
import { Form } from "./form/form"; import { Form } from "./form/form";
import { Icon } from "./icon"; import { Icon } from "./icon";
@ -42,6 +43,7 @@ import { Radio } from "./radio/radio";
import { Rate } from "./rate"; import { Rate } from "./rate";
import { Row } from "./grid/row"; import { Row } from "./grid/row";
import { Select } from "./select/select"; import { Select } from "./select/select";
import { Skeleton } from "./skeleton";
import { Slider } from "./slider"; import { Slider } from "./slider";
import { Spin } from "./spin"; import { Spin } from "./spin";
import { Steps } from "./steps/steps"; import { Steps } from "./steps/steps";
@ -56,8 +58,6 @@ import { TimePicker } from "./time-picker";
import { Timeline } from "./timeline/timeline"; import { Timeline } from "./timeline/timeline";
import { Tooltip } from "./tootip/tooltip"; import { Tooltip } from "./tootip/tooltip";
import { Upload } from "./upload"; import { Upload } from "./upload";
import { Drawer } from "./drawer";
import { Skeleton } from "./skeleton";
/** /**
* Install all ant-design-vue components into Vue. * 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. * Two-way binding for form, single file template can be bound using the directive v-decorator.
* @type Function * @type Function
*/ */
getFieldDecorator(id: string, options: FieldDecoratorOptions); getFieldDecorator(id: string, options: FieldDecoratorOptions): any;
/** /**
* Get the error of a field. * Get the error of a field.
* @type Function (Function(name)) * @type Function (Function(name))
*/ */
getFieldError(name: string); getFieldError(name: string): object[];
/** /**
* Get the specified fields' error. If you don't specify a parameter, you will get all fields' error. * Get the specified fields' error. If you don't specify a parameter, you will get all fields' error.
* @type Function (Function([names: string[])) * @type Function (Function([names: string[]))
*/ */
getFieldsError(names: string[]); getFieldsError(names: string[]): object;
/** /**
* Get the specified fields' values. If you don't specify a parameter, you will get all fields' values. * Get the specified fields' values. If you don't specify a parameter, you will get all fields' values.
* @type Funtion (Function([fieldNames: string[])) * @type Funtion (Function([fieldNames: string[]))
*/ */
getFieldsValue(fieldNames: string[]); getFieldsValue(fieldNames: string[]): object;
/** /**
* Get the value of a field. * Get the value of a field.
* @type Function (Function(fieldName: string)) * @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 * Check whether any of fields is touched by getFieldDecorator's options.trigger event