-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.d.ts
More file actions
110 lines (102 loc) · 2.08 KB
/
type.d.ts
File metadata and controls
110 lines (102 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
type ElementType = 'static' | 'dynamic';
export interface elementStyle {
size?: string;
value?: string | number;
}
/**
* 每个组件配置属性的类型
*/
export interface IComponentType {
_ID: string;
tagIcon?: any;
tag: string;
defaultValue?: any;
attrs: {
[key: string]: any;
};
text: string;
label?: string;
value?: string | number;
isShowPointer: boolean;
_opt_?: {
label: string;
_val_?: {
type: string;
tag: string;
keyValue?: {
key: string;
value: string | number;
};
staticData?: { key: any; value: any }[];
dynamicData?: {
url: string;
method: string;
keyName: string;
valueName: string;
};
};
input_type: string;
};
}
export interface IElements {
base: {
list: IComponentType[];
title: string;
};
form: {
list: IComponentType[];
title: string;
};
}
/**
* renderElement的props
*/
export interface IRenderElement {
item: IComponentType;
index: number;
}
export interface IFormConfig {
// tag:
// props: {},
// __rules: {},
// attrs: {
// }
tag: string;
props: {};
__rules: {};
attrs: {};
}
export interface IElementName {
size: string | undefined;
textValue: string;
type: string | undefined;
e_icon: string | undefined;
circle: boolean | undefined;
content_position: string;
divider_Value: string | undefined;
formName: string | undefined;
labelWidth: number;
placeholder: string | undefined;
option: any[] | undefined; // 你可以根据实际情况更具体定义 option 的类型
step: number | undefined;
min: number | undefined;
max: number | undefined;
defaultValue: any | undefined; // 你可以根据实际情况更具体定义 defaultValue 的类型
src: string | undefined;
style: {
width: string | undefined;
height: string | undefined;
};
fit: string | undefined;
}
/**
* 历史记录的数组
*/
export interface IHistoryList {
history_lists: Array<any>;
search_time: string;
}
export interface IUserInfo {
username: string;
password: string;
}