1 | import {Button, Col, Option, Row, Upload} from "iview";
|
2 | import {FormCreate} from "./core";
|
3 |
|
4 | export default formCreate;
|
5 |
|
6 | declare class formCreate {
|
7 | static create: create;
|
8 | static maker: FormCreate.Maker<Creator, Rule>;
|
9 | static install: install;
|
10 | static init: init;
|
11 | static component: FormCreate.Component;
|
12 | }
|
13 |
|
14 |
|
15 | interface IviewFormConfig {
|
16 | inline?: boolean;
|
17 | labelPosition?: 'left' | 'right' | 'top';
|
18 | labelWidth?: number;
|
19 | showMessage?: boolean;
|
20 | autocomplete?: 'on' | 'off';
|
21 | size?: '' | 'large' | 'small' | 'default';
|
22 | }
|
23 |
|
24 | export declare interface FormCol extends Col {
|
25 | labelWidth?: number | string;
|
26 | }
|
27 |
|
28 | export declare interface FormOption extends FormCreate.BaseOption<Rule>, Option {
|
29 | }
|
30 |
|
31 | export declare interface Rule extends FormCreate.Rule<FormCol, FormOption> {
|
32 |
|
33 | }
|
34 |
|
35 | export declare interface Creator extends FormCreate.Creator<Rule, FormCol, FormOption> {
|
36 | }
|
37 |
|
38 | export declare type FormRule = Creator | Rule;
|
39 |
|
40 | export declare interface DefaultSlot extends FormCreate.DefaultSlot<Rule> {
|
41 |
|
42 | }
|
43 |
|
44 | export declare interface FormConfig extends FormCreate.BaseConfig<IviewFormConfig, Row, Upload, Button, FormRule, FormButton> {
|
45 |
|
46 | }
|
47 |
|
48 | export declare interface FormButton extends FormCreate.BaseButton<FormCol>, Button {
|
49 |
|
50 | }
|
51 |
|
52 | export declare interface $FApi extends FormCreate.$FApi<FormRule, FormConfig, FormButton> {
|
53 |
|
54 | }
|
55 |
|
56 | export declare interface FormData extends FormCreate.FormData {
|
57 |
|
58 | }
|
59 |
|
60 | export declare interface BindFormData extends FormCreate.BindFormData {
|
61 |
|
62 | }
|
63 |
|
64 | export declare interface ParseRuleList extends FormCreate.ParseRuleList<FormRule> {
|
65 |
|
66 | }
|
67 |
|
68 | export declare const maker: FormCreate.Maker<Creator, Rule>;
|
69 |
|
70 |
|
71 | export declare interface create extends FormCreate.Create<FormRule, FormConfig, FormButton> {
|
72 |
|
73 | }
|
74 |
|
75 | export declare interface install extends FormCreate.Install {
|
76 |
|
77 | }
|
78 |
|
79 |
|
80 | export declare interface init extends FormCreate.Init<FormRule, FormConfig, FormButton> {
|
81 |
|
82 | }
|
83 |
|
84 | export declare const MountApi: FormCreate.MountApi<FormRule, FormConfig, FormButton>;
|
85 |
|
86 | export declare class VData extends FormCreate.VData {
|
87 |
|
88 | }
|