From 6a1c913df28641d9bfd36886899f7884c62a023e Mon Sep 17 00:00:00 2001 From: yeyinglong_admin Date: Tue, 8 Jul 2025 10:14:52 +0800 Subject: [PATCH] =?UTF-8?q?Scroll=E7=BC=A9=E6=94=BE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yeyinglong_admin --- compiler/components/scroll.json | 4 +++- compiler/src/pre_define.ts | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/compiler/components/scroll.json b/compiler/components/scroll.json index 998f0c979..bb5aec29e 100644 --- a/compiler/components/scroll.json +++ b/compiler/components/scroll.json @@ -6,6 +6,8 @@ "scrollBarWidth", "edgeEffect", "enableScrollInteraction", "onScrollBegin", "scrollSnap", "nestedScroll", "friction", "enablePaging", "initialOffset", "onScrollFrameBegin", "onWillScroll", "onDidScroll", "onScrollStart", "onScrollStop", "flingSpeedLimit", - "fadingEdge", "clipContent", "onReachStart", "onReachEnd", "backToTop", "onWillStopDragging" + "fadingEdge", "clipContent", "onReachStart", "onReachEnd", "backToTop", "onWillStopDragging", + "maxZoomScale", "minZoomScale", "zoomScale", "enableBouncesZoom", "onDidZoom", "onZoomStart", + "onZoomStop" ] } diff --git a/compiler/src/pre_define.ts b/compiler/src/pre_define.ts index 82f716824..84468634e 100644 --- a/compiler/src/pre_define.ts +++ b/compiler/src/pre_define.ts @@ -391,6 +391,8 @@ export const BIND_MENU: string = 'bindMenu'; export const BIND_CONTEXT_MENU: string = 'bindContextMenu'; export const NAV_BAR_WIDTH: string = 'navBarWidth'; export const ARC_LIST_ITEM: string = 'ArcListItem'; +const SCROLL: string = 'Scroll'; +const ZOOM_SCALE: string = 'zoomScale'; export const DOLLAR_BLOCK_INTERFACE: Set = new Set([ CHECK_BOX, CHECKBOX_GROUP, DATE_PICKER, TIME_PICKER, MENU_ITEM, PANEL, RATING, SIDE_BAR_CONTAINER, STEPPER, SWIPER, TABS, TEXT_PICKER, TOGGLE, SELECT, @@ -453,7 +455,8 @@ export const PROPERTIES_ADD_DOUBLE_EXCLAMATION: Map> = new M [SELECT, new Set([SELECTED, VALUE])], [CALENDAR, new Set([DATE])], [GRID_ITEM, new Set([SELECTED])], - [LIST_ITEM, new Set([SELECTED])] + [LIST_ITEM, new Set([SELECTED])], + [SCROLL, new Set([ZOOM_SCALE])] ]); export const CREATE_BIND_COMPONENT: Set = new Set(['ListItemGroup', REFRESH]); -- Gitee