chore: 添加注释

This commit is contained in:
muyun.my 2020-09-22 15:57:36 +08:00
parent a0e5a266d6
commit 9a0a448778

View File

@ -118,10 +118,10 @@ export default class DataSourcePanePlugin extends PureComponent<DataSourcePanePr
handleSchemaChange = (schema: DataSource) => {
const { editor } = this.props;
// @TODO 姿势是否最优?
if (editor.get('designer')) {
const docSchema = editor.get('designer').project.currentDocument.schema;
_set(docSchema, 'componentsTree[0].dataSource', schema);
debugger;
editor.get('designer').project.currentDocument.import(docSchema);
console.log('editor schema', editor.get('designer').schema);
}