mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:11:57 +00:00
chore: 添加注释
This commit is contained in:
parent
a0e5a266d6
commit
9a0a448778
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user