From e0b397042a2ee2f8c0138dc7dec5e107555f7d07 Mon Sep 17 00:00:00 2001 From: "humphry.hy" Date: Wed, 10 Nov 2021 18:39:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=20as=20=E5=BC=BA?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor-skeleton/src/transducers/parse-props.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/editor-skeleton/src/transducers/parse-props.ts b/packages/editor-skeleton/src/transducers/parse-props.ts index 0e549207a..3283fa534 100644 --- a/packages/editor-skeleton/src/transducers/parse-props.ts +++ b/packages/editor-skeleton/src/transducers/parse-props.ts @@ -7,7 +7,6 @@ import { ObjectOf, ArrayOf, TransformedComponentMetadata, - ConfigureSupport, OneOfType, ConfigureSupportEvent, } from '@ali/lowcode-types'; @@ -227,21 +226,21 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom name, description, }); - (supports as ConfigureSupport).events = supportedEvents; + supports.events = supportedEvents; } return; } if (name === 'className' && (propType === 'string' || propType === 'any')) { - if ((supports as ConfigureSupport).className == null) { - (supports as ConfigureSupport).className = true; + if (supports.className == null) { + supports.className = true; } return; } if (name === 'style' && (propType === 'object' || propType === 'any')) { - if ((supports as any).style == null) { - (supports as any).style = true; + if (supports.style == null) { + supports.style = true; } return; }