fix(editor): 组件属性表单配置默认值

This commit is contained in:
roymondchen 2022-08-24 10:03:35 +08:00 committed by jia000
parent 98bc4e2dbb
commit 5529bbc6e1

View File

@ -77,7 +77,7 @@ class Props extends BaseService {
return await this.getPropsConfig('button'); return await this.getPropsConfig('button');
} }
return cloneDeep(this.state.propsConfigMap[type] || this.fillConfig([])); return cloneDeep(this.state.propsConfigMap[type] || (await this.fillConfig([])));
} }
public setPropsValues(values: Record<string, MNode>) { public setPropsValues(values: Record<string, MNode>) {