mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 优化 supports: any 的定义
This commit is contained in:
parent
f9734e8a7e
commit
f7c57b801d
@ -9,6 +9,7 @@ import {
|
||||
TransformedComponentMetadata,
|
||||
ConfigureSupport,
|
||||
OneOfType,
|
||||
ConfigureSupportEvent,
|
||||
} from '@ali/lowcode-types';
|
||||
|
||||
function propConfigToFieldConfig(propConfig: PropConfig): FieldConfig {
|
||||
@ -204,7 +205,7 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
||||
};
|
||||
}
|
||||
const { component = {}, supports = {} } = configure;
|
||||
const supportedEvents: any[] | null = (supports as any).events ? null : [];
|
||||
const supportedEvents: ConfigureSupportEvent[] | null = supports.events ? null : [];
|
||||
const props: FieldConfig[] = [];
|
||||
|
||||
metadata.props.forEach((prop) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user