Skip to content

Commit

Permalink
fix: Fix the LowerLimitPoint of PointTool
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin-L committed Jan 7, 2022
1 parent 10fc24c commit 6976a51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lb-annotation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labelbee/lb-annotation",
"version": "1.5.4-alpha.8",
"version": "1.5.4-alpha.9",
"description": "Annotation tool collection",
"keywords": [
"annotation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class PointOperation extends BasicToolOperation {
public createPoint(e: MouseEvent) {
if (!this.imgInfo) return;
const { upperLimit } = this.config;
if (upperLimit && this.pointList.length >= upperLimit) {
if (upperLimit && this.currentPageResult.length >= upperLimit) {
// 小于对应的下限点, 大于上限点无法添加
this.emit('messageInfo', `${locale.getMessagesByLocale(EMessage.LowerLimitPoint, this.lang)}`);
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/lb-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"email": "brady_luo.sz@foxmail.com"
},
"dependencies": {
"@labelbee/lb-annotation": "1.5.4-alpha.8",
"@labelbee/lb-annotation": "1.5.4-alpha.9",
"@ant-design/icons": "^4.6.2",
"classnames": "^2.3.0",
"@labelbee/lb-utils": "^1.0.4-alpha.0",
Expand Down

0 comments on commit 6976a51

Please sign in to comment.