mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-07 02:47:12 +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 = {
|
state = {
|
||||||
visiable: false,
|
visiable: false,
|
||||||
selectedVariableName: '',
|
|
||||||
variableContext: '',
|
variableContext: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -54,7 +53,7 @@ export default class VariableBindDialog extends Component<PluginProps> {
|
|||||||
initEventName = () => {
|
initEventName = () => {
|
||||||
const { bindEventName } = this.state;
|
const { bindEventName } = this.state;
|
||||||
let eventName = bindEventName;
|
let eventName = bindEventName;
|
||||||
this.eventList.map((item) => {
|
this.eventList.forEach((item) => {
|
||||||
if (item.name === eventName) {
|
if (item.name === eventName) {
|
||||||
eventName = `${eventName}_new`;
|
eventName = `${eventName}_new`;
|
||||||
}
|
}
|
||||||
@ -73,7 +72,6 @@ export default class VariableBindDialog extends Component<PluginProps> {
|
|||||||
|
|
||||||
onSelectItem = (variableName: string) => {
|
onSelectItem = (variableName: string) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
selectedVariableName: variableName,
|
|
||||||
variableContext: variableName,
|
variableContext: variableName,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -111,7 +109,7 @@ export default class VariableBindDialog extends Component<PluginProps> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { selectedEventName, eventName, visiable, variableContext } = this.state;
|
const { visiable, variableContext } = this.state;
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
visible={visiable}
|
visible={visiable}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user