feat: Implement layer activation and data transfer enhancements
- Added support for force-activated layer IDs in ScreenViewPage, allowing layers to be activated based on data events. - Introduced ScreenContextProvider in ScreenModal and EditModal to manage screen-specific data and context. - Enhanced V2Repeater to register as a DataReceiver, enabling automatic data handling and integration with ScreenContext. - Improved ButtonPrimaryComponent to support automatic target component discovery and layer activation for data transfers. - Updated various components to streamline data handling and improve user experience during data transfers and layer management.
This commit is contained in:
@@ -6287,7 +6287,14 @@ export class ButtonActionExecutor {
|
||||
const { targetType, targetComponentId, targetScreenId, mappingRules, receiveMode } = dataTransfer;
|
||||
|
||||
if (targetType === "component" && targetComponentId) {
|
||||
// 같은 화면 내 컴포넌트로 전달
|
||||
// 같은 화면 내 컴포넌트로 전달 + 레이어 활성화 이벤트 병행
|
||||
const activateEvent = new CustomEvent("activateLayerForComponent", {
|
||||
detail: {
|
||||
componentId: targetComponentId,
|
||||
targetLayerId: (dataTransfer as any).targetLayerId,
|
||||
},
|
||||
});
|
||||
window.dispatchEvent(activateEvent);
|
||||
|
||||
const transferEvent = new CustomEvent("componentDataTransfer", {
|
||||
detail: {
|
||||
|
||||
Reference in New Issue
Block a user