From 49428342f2ceb082157662b32f08840290c68193 Mon Sep 17 00:00:00 2001 From: xuzhendong666 <810792608@Outlook.com> Date: Mon, 22 Nov 2021 17:23:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20alwaysByViewport=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9ts=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复alwaysByViewport配置项ts类型定义缺失 --- src/interface.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interface.ts b/src/interface.ts index ab91f17..b240229 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -20,10 +20,12 @@ export interface AlignType { /** * If adjustX field is true, will adjust source node in x direction if source node is invisible. * If adjustY field is true, will adjust source node in y direction if source node is invisible. + * If alwaysByViewport is true, the it will adjust if node is not inside viewport. */ overflow?: { adjustX?: boolean | number; adjustY?: boolean | number; + alwaysByViewport?: boolean; }; /** * Whether use css right instead of left to position