Browse Source

fix: ts types error

pull/377/head
tangjinzhou 6 years ago
parent
commit
11f5efcc66
  1. 4
      types/ant-design-vue.d.ts
  2. 10
      types/form/form.d.ts

4
types/ant-design-vue.d.ts vendored

@ -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

@ -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): object[];
/**
* 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[]): object;
/**
* 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[]): object;
/**
* 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

Loading…
Cancel
Save