-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(navbar): adapt miniprogram's capsule length change feature (#2922)
* feat(navbar): adapt miniprogram's capsule length change feature wechat add a new feature of displaying the provider of the miniprogram on the capsule. When it displays, the capsule enxtends above the content of the navbar, this commit adapts this new feature , hides the content of the navbar when it is covered by the capsule "feat #2802" * feat(navbar): dapt miniprogram's capsule length change feature wechat add a new feature of displaying the provider of the miniprogram on the capsule. When it displays, the capsule enxtends above the content of the navbar, this commit adapts this new feature , hides the content of the navbar when it is covered by the capsule "feat #2802" * feat(navbar): update snap * feat(navbar): use getRect adaptor --------- Co-authored-by: jarmywang <[email protected]>
- Loading branch information
Showing
6 changed files
with
77 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* fixme: miniprogram-api-typings 未加入的新api临时声明,更新后可删除 | ||
*/ | ||
declare namespace WechatMiniprogram { | ||
interface Wx { | ||
onMenuButtonBoundingClientRectWeightChange(callback: (rect: any) => void): void; | ||
offMenuButtonBoundingClientRectWeightChange(callback: (res: any) => void): void; | ||
} | ||
} |