fix: 删除无用代码, 解决 ts 编译报错

This commit is contained in:
力皓 2020-12-10 10:58:48 +08:00
parent 3e99232af9
commit 1f241eafc7
2 changed files with 18 additions and 19 deletions

View File

@ -114,23 +114,23 @@ export default class BlockRenderer extends BaseRenderer {
</AppContext.Provider>
);
if (autoLoading || loading !== undefined) {
return (
<Loading
size="medium"
visible={!!(this.__showPlaceholder || loading)}
style={{
height: this.__showPlaceholder ? defaultHeight : 'auto',
display: 'block',
...style,
}}
className={classnames('luna-block', getFileCssName(__schema.fileName), className, this.props.className)}
id={id}
>
{!this.__showPlaceholder && renderContent()}
</Loading>
);
}
// if (autoLoading || loading !== undefined) {
// return (
// <Loading
// size="medium"
// visible={!!(this.__showPlaceholder || loading)}
// style={{
// height: this.__showPlaceholder ? defaultHeight : 'auto',
// display: 'block',
// ...style,
// }}
// className={classnames('luna-block', getFileCssName(__schema.fileName), className, this.props.className)}
// id={id}
// >
// {!this.__showPlaceholder && renderContent()}
// </Loading>
// );
// }
return (
<div

View File

@ -106,9 +106,8 @@ export interface ProjectSchema {
constants?: JSONObject;
css?: string;
dataSource?: DataSource;
config?: AppConfig;
config?: AppConfig | Record<string, any>;
id?: string;
config?: Record<string, any>;
meta?: Record<string, any>;
}