diff --git a/compiler/components/scroll.json b/compiler/components/scroll.json index 998f0c979998cf3d62cea77566ae1e16c7948ad3..bb5aec29ebd30cc137501914e4586b52104aa103 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 82f716824bea7c6d4c35e07cd759424b827c0d8a..84468634ed5ffef86f63371e9326c2e2a396cb08 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]);