Browse Source

update

master
windy 6 years ago
parent
commit
df9c2b8cc9
  1. 45
      dist/bundle.js
  2. 6
      dist/bundle.min.js
  3. 42
      dist/fineui.js
  4. 4
      dist/fineui.min.js
  5. 4
      dist/utils.min.js

45
dist/bundle.js vendored

@ -18554,26 +18554,28 @@ BI.ShowListener = BI.inherit(BI.OB, {
_init: function () { _init: function () {
BI.ShowListener.superclass._init.apply(this, arguments); BI.ShowListener.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) { if (o.eventObj) {
if (type === BI.Events.CLICK) { o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) {
v = v || o.eventObj.getValue(); if (type === BI.Events.CLICK) {
v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v; v = v || o.eventObj.getValue();
if (BI.isNull(v)) { v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v;
throw new Error("value cannot be null"); if (BI.isNull(v)) {
} throw new Error("value cannot be null");
var cardName = o.cardNameCreator(v); }
if (!o.cardLayout.isCardExisted(cardName)) { var cardName = o.cardNameCreator(v);
var card = o.cardCreator(cardName); if (!o.cardLayout.isCardExisted(cardName)) {
o.cardLayout.addCardByName(cardName, card); var card = o.cardCreator(cardName);
o.afterCardCreated(cardName); o.cardLayout.addCardByName(cardName, card);
} o.afterCardCreated(cardName);
o.cardLayout.showCardByName(cardName); }
BI.nextTick(function () { o.cardLayout.showCardByName(cardName);
o.afterCardShow(cardName); BI.nextTick(function () {
self.fireEvent(BI.ShowListener.EVENT_CHANGE, cardName); o.afterCardShow(cardName);
}); self.fireEvent(BI.ShowListener.EVENT_CHANGE, cardName);
} });
}); }
});
}
} }
}); });
BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE";/** BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE";/**
@ -82560,5 +82562,6 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
"BI-Basic_Minute": "分", "BI-Basic_Minute": "分",
"BI-Basic_Wan": "万", "BI-Basic_Wan": "万",
"BI-Basic_Million": "百万", "BI-Basic_Million": "百万",
"BI-Basic_Billion": "亿" "BI-Basic_Billion": "亿",
"BI-Basic_Quarter": "季度"
};BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/"; };BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/";

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

42
dist/fineui.js vendored

@ -18796,26 +18796,28 @@ BI.ShowListener = BI.inherit(BI.OB, {
_init: function () { _init: function () {
BI.ShowListener.superclass._init.apply(this, arguments); BI.ShowListener.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) { if (o.eventObj) {
if (type === BI.Events.CLICK) { o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) {
v = v || o.eventObj.getValue(); if (type === BI.Events.CLICK) {
v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v; v = v || o.eventObj.getValue();
if (BI.isNull(v)) { v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v;
throw new Error("value cannot be null"); if (BI.isNull(v)) {
} throw new Error("value cannot be null");
var cardName = o.cardNameCreator(v); }
if (!o.cardLayout.isCardExisted(cardName)) { var cardName = o.cardNameCreator(v);
var card = o.cardCreator(cardName); if (!o.cardLayout.isCardExisted(cardName)) {
o.cardLayout.addCardByName(cardName, card); var card = o.cardCreator(cardName);
o.afterCardCreated(cardName); o.cardLayout.addCardByName(cardName, card);
} o.afterCardCreated(cardName);
o.cardLayout.showCardByName(cardName); }
BI.nextTick(function () { o.cardLayout.showCardByName(cardName);
o.afterCardShow(cardName); BI.nextTick(function () {
self.fireEvent(BI.ShowListener.EVENT_CHANGE, cardName); o.afterCardShow(cardName);
}); self.fireEvent(BI.ShowListener.EVENT_CHANGE, cardName);
} });
}); }
});
}
} }
}); });
BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE";/** BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE";/**

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save