We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6c6ed3 + a6e5cab commit 88a2f76Copy full SHA for 88a2f76
src/progress/_example/progress.ts
@@ -5,7 +5,7 @@ Page({
5
6
clickAdd() {
7
this.setData({
8
- percentage: this.data.percentage + 10,
+ percentage: Math.min(this.data.percentage + 10, 100),
9
});
10
},
11
0 commit comments