mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-11 18:36:03 +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) => {
|
handleSchemaChange = (schema: DataSource) => {
|
||||||
const { editor } = this.props;
|
const { editor } = this.props;
|
||||||
|
|
||||||
|
// @TODO 姿势是否最优?
|
||||||
if (editor.get('designer')) {
|
if (editor.get('designer')) {
|
||||||
const docSchema = editor.get('designer').project.currentDocument.schema;
|
const docSchema = editor.get('designer').project.currentDocument.schema;
|
||||||
_set(docSchema, 'componentsTree[0].dataSource', schema);
|
_set(docSchema, 'componentsTree[0].dataSource', schema);
|
||||||
debugger;
|
|
||||||
editor.get('designer').project.currentDocument.import(docSchema);
|
editor.get('designer').project.currentDocument.import(docSchema);
|
||||||
console.log('editor schema', editor.get('designer').schema);
|
console.log('editor schema', editor.get('designer').schema);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user