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

12
bi/core.js

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

12
dist/core.js vendored

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

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

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

Loading…
Cancel
Save