Skip to content

Commit

Permalink
1.0.3 * 修复代码设置 isLiked 为 true,不显示的问题(#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmtzawqlp committed Jan 17, 2025
1 parent 5bd3c1f commit c3928cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions entry/src/main/ets/pages/Index.ets
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ struct Index {
}
)
}

GridItem() {
LikeButton(
{
Expand All @@ -133,6 +134,7 @@ struct Index {
GridItem() {
LikeButton(
{
isLiked: true,
likeCount: 888,
likeWidgetBuilder: this.buildLikeWidget2,
bubblesColor: {
Expand Down
2 changes: 1 addition & 1 deletion like_button/BuildProfile.ets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Use these variables when you tailor your ArkTS code. They must be of the const type.
*/
export const HAR_VERSION = '1.0.2';
export const HAR_VERSION = '1.0.3';
export const BUILD_MODE_NAME = 'debug';
export const DEBUG = true;
export const TARGET_NAME = 'default';
Expand Down
4 changes: 4 additions & 0 deletions like_button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.3

* 修复代码设置 isLiked 为 true,不显示的问题(#1)

## 1.0.2

* 优化语法写法,以适配最新的 api12 和 ide,hvigor 5.0.0.
Expand Down
2 changes: 1 addition & 1 deletion like_button/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "Like Button 支持推特点赞效果和点赞数量动画的 ArkUI 库.",
"main": "Index.ets",
"repository": "https://github.com/HarmonyCandies/like_button",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "https://github.com/HarmonyCandies/like_button",
"dependencies": {}
}
2 changes: 1 addition & 1 deletion like_button/src/main/ets/components/LikeButton.ets
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export struct LikeButton {
@State _outerCircleRadiusProgress: number = 0;
@State _innerCircleRadiusProgress: number = 0;
@State _bubblesProgress: number = 0;
@State _iconScale: number = 0;
@State _iconScale: number = 1;
@State _likeCountOpacity: number = 0;

initAnimation(): AnimatorResult {
Expand Down

0 comments on commit c3928cb

Please sign in to comment.