diff --git a/packages/smarthr-ui/scripts/exportUIProps.ts b/packages/smarthr-ui/scripts/exportUIProps.ts index 93db2eeb52..e61207309c 100644 --- a/packages/smarthr-ui/scripts/exportUIProps.ts +++ b/packages/smarthr-ui/scripts/exportUIProps.ts @@ -30,7 +30,7 @@ glob(SRC_PATH).then( const propItem = props[name] const declarations = propItem.declarations - if (!declarations) { + if (!declarations || declarations.length === 0) { return propItem }