mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 05:48:17 +00:00
style: for plugin-event-bind-dialog
This commit is contained in:
parent
35e4575543
commit
47a7f6c504
@ -1,4 +1,4 @@
|
|||||||
import { Component, isValidElement, ReactElement, ReactNode } from 'react';
|
import { Component } from 'react';
|
||||||
import { Dialog, Search, Input } from '@alifd/next';
|
import { Dialog, Search, Input } from '@alifd/next';
|
||||||
import { PluginProps } from '@ali/lowcode-types';
|
import { PluginProps } from '@ali/lowcode-types';
|
||||||
import MonacoEditor from 'react-monaco-editor';
|
import MonacoEditor from 'react-monaco-editor';
|
||||||
@ -48,25 +48,24 @@ export default class EventBindDialog extends Component<PluginProps> {
|
|||||||
// },
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
private bindEventName :''
|
private bindEventName :'';
|
||||||
|
|
||||||
state: any = {
|
state: any = {
|
||||||
visiable: false,
|
visiable: false,
|
||||||
setterName: 'event-setter',
|
setterName: 'event-setter',
|
||||||
selectedEventName: '',
|
selectedEventName: '',
|
||||||
eventName: '',
|
eventName: '',
|
||||||
bindEventName:'',
|
paramStr: '',
|
||||||
paramStr:''
|
|
||||||
};
|
};
|
||||||
|
|
||||||
openDialog = (bindEventName: String) => {
|
openDialog = (bindEventName: string) => {
|
||||||
this.bindEventName = bindEventName;
|
this.bindEventName = bindEventName;
|
||||||
|
|
||||||
this.initEventName();
|
this.initEventName();
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
visiable: true,
|
visiable: true,
|
||||||
selectedEventName:''
|
selectedEventName: '',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -101,7 +100,7 @@ export default class EventBindDialog extends Component<PluginProps> {
|
|||||||
|
|
||||||
initEventName = () => {
|
initEventName = () => {
|
||||||
let eventName = this.bindEventName;
|
let eventName = this.bindEventName;
|
||||||
this.eventList.map((item) => {
|
this.eventList.forEach((item) => {
|
||||||
if (item.name === eventName) {
|
if (item.name === eventName) {
|
||||||
eventName = `${eventName}_new`;
|
eventName = `${eventName}_new`;
|
||||||
}
|
}
|
||||||
@ -134,7 +133,7 @@ export default class EventBindDialog extends Component<PluginProps> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onSearchEvent = (searchEventName: string) => {};
|
onSearchEvent = () => {};
|
||||||
|
|
||||||
onOk = () => {
|
onOk = () => {
|
||||||
console.log(this);
|
console.log(this);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user