bm-core-ui 2.11.5 → 2.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/BMView/BMMenu.js +10 -4
- package/lib/BMCoreUI.min.js +1 -1
- package/package.json +1 -1
package/build/BMView/BMMenu.js
CHANGED
|
@@ -890,7 +890,13 @@ BMMenu.prototype = {
|
|
|
890
890
|
|
|
891
891
|
// Make the menu expand
|
|
892
892
|
menuNode.style.overflow = 'hidden';
|
|
893
|
-
|
|
893
|
+
|
|
894
|
+
__BMVelocityAnimate(menuNode, {opacity: 1}, {
|
|
895
|
+
duration,
|
|
896
|
+
easing
|
|
897
|
+
}, BMMENU_USE_WEB_ANIMATIONS);
|
|
898
|
+
|
|
899
|
+
__BMVelocityAnimate(menuNode, {scaleX: 1, scaleY: 1, translateZ: 0, translateY: 0, translateX: 0}, {
|
|
894
900
|
duration,
|
|
895
901
|
easing,
|
|
896
902
|
complete: _ => {
|
|
@@ -901,7 +907,7 @@ BMMenu.prototype = {
|
|
|
901
907
|
|
|
902
908
|
// Animate each child node in
|
|
903
909
|
let delay = 50;
|
|
904
|
-
let delayIncrement = Math.min(16,
|
|
910
|
+
let delayIncrement = Math.min(16, 150 / menuNode.childNodes.length);
|
|
905
911
|
|
|
906
912
|
for (let i = 0; i < menuNode.childNodes.length; i++) {
|
|
907
913
|
const child = menuNode.childNodes[i];
|
|
@@ -1057,7 +1063,7 @@ BMMenu.prototype = {
|
|
|
1057
1063
|
|
|
1058
1064
|
// Animate each menu item in
|
|
1059
1065
|
let delay = 0;
|
|
1060
|
-
let delayIncrement = Math.min(16,
|
|
1066
|
+
let delayIncrement = Math.min(16, 150 / menuNode.childNodes.length);
|
|
1061
1067
|
|
|
1062
1068
|
for (let i = 0; i < menuNode.childNodes.length; i++) {
|
|
1063
1069
|
const child = menuNode.childNodes[i];
|
|
@@ -1387,7 +1393,7 @@ BMMenu.prototype = {
|
|
|
1387
1393
|
|
|
1388
1394
|
this._isSupermenuClosing = NO;
|
|
1389
1395
|
|
|
1390
|
-
this._node.style.
|
|
1396
|
+
this._node.style.overflow = 'hidden';
|
|
1391
1397
|
|
|
1392
1398
|
__BMVelocityAnimate(this._node, {
|
|
1393
1399
|
scaleX: this._kind == BMMenuKind.PullDownMenu ? 1 : scale,
|