@@ -21,7 +21,7 @@ import styled from "styled-components";
2121import { trans } from "i18n" ;
2222import { EditorContext , EditorState } from "@lowcoder-ee/comps/editorState" ;
2323import { configureComponentAction } from "../../preLoadComp/actions/componentConfiguration" ;
24- import { addComponentAction , moveComponentAction , nestComponentAction , resizeComponentAction } from "../../preLoadComp/actions/componentManagement" ;
24+ import { addComponentAction , deleteComponentAction , moveComponentAction , nestComponentAction , resizeComponentAction } from "../../preLoadComp/actions/componentManagement" ;
2525import { applyThemeAction , configureAppMetaAction , setCanvasSettingsAction } from "../../preLoadComp/actions/appConfiguration" ;
2626
2727// ============================================================================
@@ -192,6 +192,20 @@ export function ChatCoreMain({
192192 selectedCustomShortcutAction : null
193193 } ) ;
194194 break ;
195+ case "delete_component" :
196+ await deleteComponentAction . execute ( {
197+ actionKey : action ,
198+ actionValue : component ,
199+ actionPayload : action_payload ,
200+ selectedComponent : component ,
201+ selectedEditorComponent : null ,
202+ selectedNestComponent : null ,
203+ editorState : editorStateRef . current ,
204+ selectedDynamicLayoutIndex : null ,
205+ selectedTheme : null ,
206+ selectedCustomShortcutAction : null
207+ } ) ;
208+ break ;
195209 case "set_theme" :
196210 await applyThemeAction . execute ( {
197211 actionKey : action ,
@@ -237,7 +251,7 @@ export function ChatCoreMain({
237251 default :
238252 break ;
239253 }
240- await new Promise ( resolve => setTimeout ( resolve , 1000 ) ) ;
254+ await new Promise ( resolve => setTimeout ( resolve , 1500 ) ) ;
241255 }
242256 } ;
243257
0 commit comments