We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad4b535 commit 4d9b2ccCopy full SHA for 4d9b2cc
packages/amis-editor/src/renderer/event-control/action-config-panel.tsx
@@ -36,12 +36,17 @@ export default class ActionConfigPanel extends React.Component<RendererProps> {
36
data.componentId === 'customCmptId' ? true : false,
37
manager
38
);
39
+
40
+ const _subActionSchema = isFunction(subActionSchema)
41
+ ? subActionSchema(manager, data)
42
+ : subActionSchema;
43
44
// 追加到基础配置
45
schema = [
46
...(Array.isArray(baseSchema) ? baseSchema : [baseSchema]),
- ...(Array.isArray(subActionSchema)
- ? subActionSchema
- : [subActionSchema])
47
+ ...(Array.isArray(_subActionSchema)
48
+ ? _subActionSchema
49
+ : [_subActionSchema])
50
];
51
} else {
52
const __originActionSchema = data.__actionSchema;
0 commit comments