Comparing version 0.1.19 to 0.2.0
{ | ||
"name": "Dui", | ||
"version": "0.1.19", | ||
"version": "0.2.0", | ||
"description": "针对某部门的UI组件开发", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,8 +13,8 @@ export default { | ||
if (left < width / 2) { | ||
return width / 2; | ||
if (left < 0) { | ||
return 0; | ||
} | ||
if (left > (containerWidth - width / 2)) { | ||
return containerWidth - width / 2; | ||
if (left > (containerWidth - width)) { | ||
return containerWidth - width; | ||
} | ||
@@ -28,8 +28,8 @@ | ||
if (top < height / 2) { | ||
return height / 2; | ||
if (top < 0) { | ||
return 0; | ||
} | ||
if (top > (containerHeight - height / 2)) { | ||
return containerHeight - height / 2; | ||
if (top > (containerHeight - height)) { | ||
return containerHeight - height; | ||
} | ||
@@ -36,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
1505024