mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 05:48:17 +00:00
fix: 去除 as 强转
This commit is contained in:
parent
f7c57b801d
commit
e0b397042a
@ -7,7 +7,6 @@ import {
|
|||||||
ObjectOf,
|
ObjectOf,
|
||||||
ArrayOf,
|
ArrayOf,
|
||||||
TransformedComponentMetadata,
|
TransformedComponentMetadata,
|
||||||
ConfigureSupport,
|
|
||||||
OneOfType,
|
OneOfType,
|
||||||
ConfigureSupportEvent,
|
ConfigureSupportEvent,
|
||||||
} from '@ali/lowcode-types';
|
} from '@ali/lowcode-types';
|
||||||
@ -227,21 +226,21 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
|||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
});
|
});
|
||||||
(supports as ConfigureSupport).events = supportedEvents;
|
supports.events = supportedEvents;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'className' && (propType === 'string' || propType === 'any')) {
|
if (name === 'className' && (propType === 'string' || propType === 'any')) {
|
||||||
if ((supports as ConfigureSupport).className == null) {
|
if (supports.className == null) {
|
||||||
(supports as ConfigureSupport).className = true;
|
supports.className = true;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'style' && (propType === 'object' || propType === 'any')) {
|
if (name === 'style' && (propType === 'object' || propType === 'any')) {
|
||||||
if ((supports as any).style == null) {
|
if (supports.style == null) {
|
||||||
(supports as any).style = true;
|
supports.style = true;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user