From 161892d56f3ace594835f43d6ebc8e8c82367eeb Mon Sep 17 00:00:00 2001 From: lexiaoyao2 Date: Fri, 1 Aug 2025 17:26:30 +0800 Subject: [PATCH] add qj struct Signed-off-by: lexiaoyao2 Change-Id: I265c51c9184cc468b44c05d1596ff9f426039a2d --- .../core/components_ng/pattern/picker/picker_model.h | 7 +++++++ .../pattern/text_picker/textpicker_event_hub.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/frameworks/core/components_ng/pattern/picker/picker_model.h b/frameworks/core/components_ng/pattern/picker/picker_model.h index 6a1bf46d409..6892e41b3a4 100644 --- a/frameworks/core/components_ng/pattern/picker/picker_model.h +++ b/frameworks/core/components_ng/pattern/picker/picker_model.h @@ -56,6 +56,13 @@ struct PickerDialogEvent { std::function onWillAppear; std::function onWillDisappear; }; +struct PickerDialogInteractiveEvent { + std::function cancelEvent; + std::function acceptEvent; + std::function changeEvent; + std::function dateAcceptEvent; + std::function dateChangeEvent; +}; class ACE_FORCE_EXPORT DatePickerModel { public: static DatePickerModel* GetInstance(); diff --git a/frameworks/core/components_ng/pattern/text_picker/textpicker_event_hub.h b/frameworks/core/components_ng/pattern/text_picker/textpicker_event_hub.h index 1d486cb09b9..35c019a82d9 100644 --- a/frameworks/core/components_ng/pattern/text_picker/textpicker_event_hub.h +++ b/frameworks/core/components_ng/pattern/text_picker/textpicker_event_hub.h @@ -28,6 +28,14 @@ using DialogTextEvent = std::function; using DialogCancelEvent = std::function; using DialogGestureEvent = std::function; +struct TextPickerInteractiveEvent { + DialogCancelEvent cancelEvent; + DialogTextEvent acceptEvent; + DialogTextEvent changeEvent; + DialogTextEvent scrollStopEvent; + DialogTextEvent enterSelectedAreaEvent; +}; + class TextPickerEventHub : public EventHub { DECLARE_ACE_TYPE(TextPickerEventHub, EventHub) -- Gitee