mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 04:40:32 +00:00
style: plugin-variable-bind-dialog
This commit is contained in:
parent
e329811afe
commit
b4a6d69727
@ -27,7 +27,6 @@ export default class VariableBindDialog extends Component<PluginProps> {
|
||||
|
||||
state = {
|
||||
visiable: false,
|
||||
selectedVariableName: '',
|
||||
variableContext: '',
|
||||
};
|
||||
|
||||
@ -54,7 +53,7 @@ export default class VariableBindDialog extends Component<PluginProps> {
|
||||
initEventName = () => {
|
||||
const { bindEventName } = this.state;
|
||||
let eventName = bindEventName;
|
||||
this.eventList.map((item) => {
|
||||
this.eventList.forEach((item) => {
|
||||
if (item.name === eventName) {
|
||||
eventName = `${eventName}_new`;
|
||||
}
|
||||
@ -73,7 +72,6 @@ export default class VariableBindDialog extends Component<PluginProps> {
|
||||
|
||||
onSelectItem = (variableName: string) => {
|
||||
this.setState({
|
||||
selectedVariableName: variableName,
|
||||
variableContext: variableName,
|
||||
});
|
||||
|
||||
@ -111,7 +109,7 @@ export default class VariableBindDialog extends Component<PluginProps> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { selectedEventName, eventName, visiable, variableContext } = this.state;
|
||||
const { visiable, variableContext } = this.state;
|
||||
return (
|
||||
<Dialog
|
||||
visible={visiable}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user