fix: formmodel add ts types #1996
parent
c66177be6a
commit
34bd7ef76d
|
@ -5,7 +5,7 @@
|
||||||
import { AntdComponent } from '../component';
|
import { AntdComponent } from '../component';
|
||||||
import { Col } from '../grid/col';
|
import { Col } from '../grid/col';
|
||||||
|
|
||||||
export declare class NFormItem extends AntdComponent {
|
export declare class FormModelItem extends AntdComponent {
|
||||||
/**
|
/**
|
||||||
* Used with label, whether to display : after label text.
|
* Used with label, whether to display : after label text.
|
||||||
* @default true
|
* @default true
|
||||||
|
@ -64,6 +64,6 @@ export declare class NFormItem extends AntdComponent {
|
||||||
wrapperCol: Col;
|
wrapperCol: Col;
|
||||||
labelAlign: 'left' | 'right';
|
labelAlign: 'left' | 'right';
|
||||||
prop: string;
|
prop: string;
|
||||||
rules: object | array;
|
rules: object | object[];
|
||||||
autoLink: boolean;
|
autoLink: boolean;
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
import { AntdComponent } from '../component';
|
import { AntdComponent } from '../component';
|
||||||
import { Col } from '../grid/col';
|
import { Col } from '../grid/col';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { NFormItem } from './form-item';
|
import { FormModelItem } from './form-item';
|
||||||
|
|
||||||
declare interface ValidationRule {
|
declare interface ValidationRule {
|
||||||
trigger?: string;
|
trigger?: string;
|
||||||
|
@ -79,8 +79,8 @@ declare interface ValidationRule {
|
||||||
validator?: (rule: any, value: any, callback: Function) => any;
|
validator?: (rule: any, value: any, callback: Function) => any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare class NForm extends AntdComponent {
|
export declare class FormModel extends AntdComponent {
|
||||||
static Item: typeof NFormItem;
|
static Item: typeof FormModelItem;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hide required mark of all form items
|
* Hide required mark of all form items
|
Loading…
Reference in New Issue