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