mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-14 13:03:07 +00:00
Merge branch 'feat/joint-editor' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into feat/joint-editor
This commit is contained in:
commit
59b9925665
@ -37,7 +37,9 @@ export default class EventsSetter extends Component<{
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
this.props.field.getValue()
|
// this.props.field.getValue()
|
||||||
|
console.log(this.props);
|
||||||
|
|
||||||
this.initEventBtns();
|
this.initEventBtns();
|
||||||
this.initEventList();
|
this.initEventList();
|
||||||
}
|
}
|
||||||
@ -233,16 +235,15 @@ export default class EventsSetter extends Component<{
|
|||||||
|
|
||||||
submitDialog = (relatedEventName: String) => {
|
submitDialog = (relatedEventName: String) => {
|
||||||
const { bindEventName,eventDataList} = this.state;
|
const { bindEventName,eventDataList} = this.state;
|
||||||
const {field} = this.props;
|
|
||||||
eventDataList.map(item => {
|
eventDataList.map(item => {
|
||||||
if (item.name === bindEventName) {
|
if (item.name === bindEventName) {
|
||||||
item.relatedEventName = relatedEventName;
|
item.relatedEventName = relatedEventName;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
debugger;
|
|
||||||
|
|
||||||
field.setValue(eventDataList);
|
this.props.onChange(eventDataList);
|
||||||
|
// field.setValue(eventDataList);
|
||||||
|
|
||||||
|
|
||||||
this.closeDialog();
|
this.closeDialog();
|
||||||
|
|||||||
@ -343,6 +343,21 @@ registerMetadataTransducer(metadata => {
|
|||||||
}
|
}
|
||||||
: event;
|
: event;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// mock data
|
||||||
|
list:[
|
||||||
|
{
|
||||||
|
name:'onClick',
|
||||||
|
description:'点击回调'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name:'onChange',
|
||||||
|
description:'变更回调'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name:'onSubmit'
|
||||||
|
}
|
||||||
|
]
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
// 通用设置
|
// 通用设置
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user