guy 8 years ago
parent
commit
22933f334e
  1. 2
      bi/core.js
  2. 2
      dist/core.js
  3. 2
      src/core/wrapper/layout/layout.card.js

2
bi/core.js

@ -13461,12 +13461,14 @@ BI.CardLayout = BI.inherit(BI.Layout, {
var flag = false;
BI.each(this.options.items, function (i, item) {
var el = self._children[item.cardName];
if (el) {
if (name != item.cardName) {
//动画效果只有在全部都隐藏的时候才有意义,且只要执行一次动画操作就够了
!flag && !exist && (BI.Action && action instanceof BI.Action) ? (action.actionBack(el), flag = true) : el.invisible();
} else {
(BI.Action && action instanceof BI.Action) ? action.actionPerformed(void 0, el, callback) : (el.visible(), callback && callback())
}
}
});
},

2
dist/core.js vendored

@ -26875,12 +26875,14 @@ BI.CardLayout = BI.inherit(BI.Layout, {
var flag = false;
BI.each(this.options.items, function (i, item) {
var el = self._children[item.cardName];
if (el) {
if (name != item.cardName) {
//动画效果只有在全部都隐藏的时候才有意义,且只要执行一次动画操作就够了
!flag && !exist && (BI.Action && action instanceof BI.Action) ? (action.actionBack(el), flag = true) : el.invisible();
} else {
(BI.Action && action instanceof BI.Action) ? action.actionPerformed(void 0, el, callback) : (el.visible(), callback && callback())
}
}
});
},

2
src/core/wrapper/layout/layout.card.js

@ -123,12 +123,14 @@ BI.CardLayout = BI.inherit(BI.Layout, {
var flag = false;
BI.each(this.options.items, function (i, item) {
var el = self._children[item.cardName];
if (el) {
if (name != item.cardName) {
//动画效果只有在全部都隐藏的时候才有意义,且只要执行一次动画操作就够了
!flag && !exist && (BI.Action && action instanceof BI.Action) ? (action.actionBack(el), flag = true) : el.invisible();
} else {
(BI.Action && action instanceof BI.Action) ? action.actionPerformed(void 0, el, callback) : (el.visible(), callback && callback())
}
}
});
},

Loading…
Cancel
Save