amis-editor 5.1.8 → 5.1.9-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component/base/BackTop.d.ts +1 -1
- package/dist/component/control/BadgeControl.d.ts +8 -8
- package/dist/component/control/BaseControl.d.ts +1 -1
- package/dist/component/control/StatusControl.d.ts +8 -3
- package/dist/component/control/SwitchMoreControl.d.ts +34 -34
- package/dist/exports.min.js +1 -1
- package/dist/index.min.js +1 -1
- package/dist/style.css +1 -1
- package/dist/util.d.ts +1 -1
- package/package.json +1 -1
- package/src/component/schemaTpl.tsx +15 -4
- package/src/plugin/CRUD.tsx +1 -1
- package/src/plugin/.DS_Store +0 -0
@@ -16,7 +16,7 @@ export default class BackTop extends React.Component<BackTopProps, BackTopStates
|
|
16
16
|
constructor(props: any);
|
17
17
|
componentDidMount(): void;
|
18
18
|
componentWillUnmount(): void;
|
19
|
-
getDefaultTarget():
|
19
|
+
getDefaultTarget(): (Window & typeof globalThis) | Document;
|
20
20
|
handleScroll(e: React.UIEvent<HTMLElement> | {
|
21
21
|
target: any;
|
22
22
|
}): void;
|
@@ -71,11 +71,11 @@ export default class BadgeControl extends React.Component<BadgeControlProps, Bad
|
|
71
71
|
normalizeBadgeValue(form: BadgeForm): {
|
72
72
|
style: import("lodash").Dictionary<any>;
|
73
73
|
offset: number[];
|
74
|
-
text?: string | number | undefined;
|
75
74
|
size?: any;
|
76
|
-
mode?: "text" | "dot" | "ribbon" | undefined;
|
77
75
|
visibleOn?: string | undefined;
|
78
76
|
level?: string | undefined;
|
77
|
+
mode?: "text" | "dot" | "ribbon" | undefined;
|
78
|
+
text?: string | number | undefined;
|
79
79
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
80
80
|
overflowCount?: number | undefined;
|
81
81
|
animation?: boolean | undefined;
|
@@ -84,11 +84,11 @@ export default class BadgeControl extends React.Component<BadgeControlProps, Bad
|
|
84
84
|
[propName: string]: any;
|
85
85
|
} | undefined;
|
86
86
|
offset: number[];
|
87
|
-
text?: string | number | undefined;
|
88
87
|
size?: any;
|
89
|
-
mode?: "text" | "dot" | "ribbon" | undefined;
|
90
88
|
visibleOn?: string | undefined;
|
91
89
|
level?: string | undefined;
|
90
|
+
mode?: "text" | "dot" | "ribbon" | undefined;
|
91
|
+
text?: string | number | undefined;
|
92
92
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
93
93
|
overflowCount?: number | undefined;
|
94
94
|
animation?: boolean | undefined;
|
@@ -98,11 +98,11 @@ export default class BadgeControl extends React.Component<BadgeControlProps, Bad
|
|
98
98
|
x: number;
|
99
99
|
y: number;
|
100
100
|
};
|
101
|
-
text?: string | number | undefined;
|
102
101
|
size?: any;
|
103
|
-
mode?: "text" | "dot" | "ribbon" | undefined;
|
104
102
|
visibleOn?: string | undefined;
|
105
103
|
level?: string | undefined;
|
104
|
+
mode?: "text" | "dot" | "ribbon" | undefined;
|
105
|
+
text?: string | number | undefined;
|
106
106
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
107
107
|
overflowCount?: number | undefined;
|
108
108
|
animation?: boolean | undefined;
|
@@ -114,11 +114,11 @@ export default class BadgeControl extends React.Component<BadgeControlProps, Bad
|
|
114
114
|
x: number;
|
115
115
|
y: number;
|
116
116
|
};
|
117
|
-
text?: string | number | undefined;
|
118
117
|
size?: any;
|
119
|
-
mode?: "text" | "dot" | "ribbon" | undefined;
|
120
118
|
visibleOn?: string | undefined;
|
121
119
|
level?: string | undefined;
|
120
|
+
mode?: "text" | "dot" | "ribbon" | undefined;
|
121
|
+
text?: string | number | undefined;
|
122
122
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
123
123
|
overflowCount?: number | undefined;
|
124
124
|
animation?: boolean | undefined;
|
@@ -122,7 +122,7 @@ export declare function remarkTpl(config: {
|
|
122
122
|
body: string | SchemaObject[];
|
123
123
|
};
|
124
124
|
bulk: boolean;
|
125
|
-
name: "
|
125
|
+
name: "remark" | "labelRemark";
|
126
126
|
pipeIn: (value: any) => boolean;
|
127
127
|
pipeOut: (value: any) => any;
|
128
128
|
form: {
|
@@ -8,15 +8,20 @@ import type { SchemaCollection } from 'amis/lib/Schema';
|
|
8
8
|
import type { FormSchema } from 'amis/lib/schema';
|
9
9
|
export interface StatusControlProps extends FormControlProps {
|
10
10
|
name: string;
|
11
|
-
|
11
|
+
expressionName: string;
|
12
12
|
trueValue?: boolean;
|
13
13
|
falseValue?: boolean;
|
14
14
|
options?: Option[];
|
15
15
|
children?: SchemaCollection;
|
16
16
|
messages?: Pick<FormSchema, 'messages'>;
|
17
17
|
}
|
18
|
+
declare type StatusFormData = {
|
19
|
+
statusType: number;
|
20
|
+
expression: string;
|
21
|
+
};
|
18
22
|
interface StatusControlState {
|
19
23
|
checked: boolean;
|
24
|
+
formData: StatusFormData;
|
20
25
|
}
|
21
26
|
export declare class StatusControl extends React.Component<StatusControlProps, StatusControlState> {
|
22
27
|
static defaultProps: {
|
@@ -26,11 +31,11 @@ export declare class StatusControl extends React.Component<StatusControlProps, S
|
|
26
31
|
constructor(props: StatusControlProps);
|
27
32
|
initState(): {
|
28
33
|
checked: boolean;
|
34
|
+
formData: StatusFormData;
|
29
35
|
};
|
30
36
|
shouldComponentUpdate(nextProps: StatusControlProps, nextState: StatusControlState): boolean;
|
31
37
|
handleSwitch(value: boolean): void;
|
32
|
-
|
33
|
-
handleSelect(value: true | ''): void;
|
38
|
+
handleFormSubmit(values: StatusFormData): void;
|
34
39
|
render(): JSX.Element;
|
35
40
|
renderContent(): JSX.Element;
|
36
41
|
}
|
@@ -66,16 +66,25 @@ export default class SwitchMore extends React.Component<SwitchMoreProps, SwitchM
|
|
66
66
|
itemClassName: string;
|
67
67
|
icon: string;
|
68
68
|
form: {
|
69
|
+
name?: string | undefined;
|
70
|
+
actions?: import("amis/lib/renderers/Action").ActionSchema[] | undefined;
|
71
|
+
title: any;
|
69
72
|
className?: import("amis").SchemaClassName | undefined;
|
73
|
+
$ref?: string | undefined;
|
74
|
+
disabled?: boolean | undefined;
|
75
|
+
disabledOn?: string | undefined;
|
76
|
+
hidden?: boolean | undefined;
|
77
|
+
hiddenOn?: string | undefined;
|
78
|
+
visible?: boolean | undefined;
|
79
|
+
visibleOn?: string | undefined;
|
70
80
|
id?: string | undefined;
|
71
|
-
data: any;
|
72
81
|
onEvent?: {
|
73
82
|
[propName: string]: {
|
74
83
|
weight?: number | undefined;
|
75
84
|
actions: import("amis").ListenerAction[];
|
76
85
|
};
|
77
86
|
} | undefined;
|
78
|
-
|
87
|
+
data: any;
|
79
88
|
persistData?: string | undefined;
|
80
89
|
rules?: {
|
81
90
|
rule: string;
|
@@ -88,28 +97,18 @@ export default class SwitchMore extends React.Component<SwitchMoreProps, SwitchM
|
|
88
97
|
horizontal: import("amis").FormHorizontal;
|
89
98
|
labelAlign?: import("amis-core/lib/renderers/Item").LabelAlign | undefined;
|
90
99
|
labelWidth?: string | number | undefined;
|
91
|
-
|
92
|
-
api?: string | import("amis").BaseApiObject | undefined;
|
93
|
-
visible?: boolean | undefined;
|
94
|
-
hidden?: boolean | undefined;
|
95
|
-
body?: SchemaCollection | undefined;
|
96
|
-
title: any;
|
97
|
-
initFetchOn?: string | undefined;
|
98
|
-
initFetch?: boolean | undefined;
|
100
|
+
reload?: string | undefined;
|
99
101
|
submitOnChange: boolean;
|
100
102
|
mode: string;
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
visibleOn?: string | undefined;
|
105
|
-
wrapWithPanel: boolean;
|
106
|
-
actions?: import("amis/lib/renderers/Action").ActionSchema[] | undefined;
|
107
|
-
reload?: string | undefined;
|
103
|
+
initFetchOn?: string | undefined;
|
104
|
+
initFetch?: boolean | undefined;
|
105
|
+
body?: SchemaCollection | undefined;
|
108
106
|
tabs?: any;
|
109
107
|
interval?: number | undefined;
|
110
108
|
silentPolling?: boolean | undefined;
|
111
109
|
stopAutoRefreshWhen?: string | undefined;
|
112
110
|
fieldSet?: any;
|
111
|
+
wrapWithPanel: boolean;
|
113
112
|
panelClassName: import("amis").ClassName;
|
114
113
|
preventEnterSubmit: boolean;
|
115
114
|
debug?: boolean | undefined;
|
@@ -118,6 +117,7 @@ export default class SwitchMore extends React.Component<SwitchMoreProps, SwitchM
|
|
118
117
|
initFinishedField?: string | undefined;
|
119
118
|
initCheckInterval?: number | undefined;
|
120
119
|
clearPersistDataAfterSubmit?: boolean | undefined;
|
120
|
+
api?: string | import("amis").BaseApiObject | undefined;
|
121
121
|
feedback?: any;
|
122
122
|
asyncApi?: string | import("amis").BaseApiObject | undefined;
|
123
123
|
checkInterval?: number | undefined;
|
@@ -142,16 +142,25 @@ export default class SwitchMore extends React.Component<SwitchMoreProps, SwitchM
|
|
142
142
|
};
|
143
143
|
};
|
144
144
|
renderForm(): {
|
145
|
+
name?: string | undefined;
|
146
|
+
actions?: import("amis/lib/renderers/Action").ActionSchema[] | undefined;
|
147
|
+
title?: string | undefined;
|
145
148
|
className?: import("amis").SchemaClassName | undefined;
|
149
|
+
$ref?: string | undefined;
|
150
|
+
disabled?: boolean | undefined;
|
151
|
+
disabledOn?: string | undefined;
|
152
|
+
hidden?: boolean | undefined;
|
153
|
+
hiddenOn?: string | undefined;
|
154
|
+
visible?: boolean | undefined;
|
155
|
+
visibleOn?: string | undefined;
|
146
156
|
id?: string | undefined;
|
147
|
-
data: any;
|
148
157
|
onEvent?: {
|
149
158
|
[propName: string]: {
|
150
159
|
weight?: number | undefined;
|
151
160
|
actions: import("amis").ListenerAction[];
|
152
161
|
};
|
153
162
|
} | undefined;
|
154
|
-
|
163
|
+
data: any;
|
155
164
|
persistData?: string | undefined;
|
156
165
|
rules?: {
|
157
166
|
rule: string;
|
@@ -164,28 +173,18 @@ export default class SwitchMore extends React.Component<SwitchMoreProps, SwitchM
|
|
164
173
|
horizontal: import("amis").FormHorizontal;
|
165
174
|
labelAlign?: import("amis-core/lib/renderers/Item").LabelAlign | undefined;
|
166
175
|
labelWidth?: string | number | undefined;
|
167
|
-
|
168
|
-
api?: string | import("amis").BaseApiObject | undefined;
|
169
|
-
visible?: boolean | undefined;
|
170
|
-
hidden?: boolean | undefined;
|
171
|
-
body?: SchemaCollection | undefined;
|
172
|
-
title?: string | undefined;
|
173
|
-
initFetchOn?: string | undefined;
|
174
|
-
initFetch?: boolean | undefined;
|
176
|
+
reload?: string | undefined;
|
175
177
|
submitOnChange: boolean;
|
176
178
|
mode: string;
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
visibleOn?: string | undefined;
|
181
|
-
wrapWithPanel: boolean;
|
182
|
-
actions?: import("amis/lib/renderers/Action").ActionSchema[] | undefined;
|
183
|
-
reload?: string | undefined;
|
179
|
+
initFetchOn?: string | undefined;
|
180
|
+
initFetch?: boolean | undefined;
|
181
|
+
body?: SchemaCollection | undefined;
|
184
182
|
tabs?: any;
|
185
183
|
interval?: number | undefined;
|
186
184
|
silentPolling?: boolean | undefined;
|
187
185
|
stopAutoRefreshWhen?: string | undefined;
|
188
186
|
fieldSet?: any;
|
187
|
+
wrapWithPanel: boolean;
|
189
188
|
panelClassName: import("amis").ClassName;
|
190
189
|
preventEnterSubmit: boolean;
|
191
190
|
debug?: boolean | undefined;
|
@@ -194,6 +193,7 @@ export default class SwitchMore extends React.Component<SwitchMoreProps, SwitchM
|
|
194
193
|
initFinishedField?: string | undefined;
|
195
194
|
initCheckInterval?: number | undefined;
|
196
195
|
clearPersistDataAfterSubmit?: boolean | undefined;
|
196
|
+
api?: string | import("amis").BaseApiObject | undefined;
|
197
197
|
feedback?: any;
|
198
198
|
asyncApi?: string | import("amis").BaseApiObject | undefined;
|
199
199
|
checkInterval?: number | undefined;
|