Browse Source

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	dist/bundle.js
#	dist/bundle.min.js
#	dist/fineui.js
#	dist/fineui.min.js
#	dist/utils.min.js
es6
guy 6 years ago
parent
commit
87430e865b
  1. 45
      dist/bundle.js
  2. 6
      dist/bundle.min.js
  3. 42
      dist/fineui.js
  4. 4
      dist/fineui.min.js
  5. 3
      dist/utils.js
  6. 4
      dist/utils.min.js
  7. 3
      public/js/fineui.i18n.js

45
dist/bundle.js vendored

@ -18554,28 +18554,26 @@ 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;
if (o.eventObj) { o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) {
o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) { if (type === BI.Events.CLICK) {
if (type === BI.Events.CLICK) { v = v || o.eventObj.getValue();
v = v || o.eventObj.getValue(); v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v;
v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v; if (BI.isNull(v)) {
if (BI.isNull(v)) { throw new Error("value cannot be null");
throw new Error("value cannot be null"); }
} var cardName = o.cardNameCreator(v);
var cardName = o.cardNameCreator(v); if (!o.cardLayout.isCardExisted(cardName)) {
if (!o.cardLayout.isCardExisted(cardName)) { var card = o.cardCreator(cardName);
var card = o.cardCreator(cardName); o.cardLayout.addCardByName(cardName, card);
o.cardLayout.addCardByName(cardName, card); o.afterCardCreated(cardName);
o.afterCardCreated(cardName); }
} o.cardLayout.showCardByName(cardName);
o.cardLayout.showCardByName(cardName); BI.nextTick(function () {
BI.nextTick(function () { o.afterCardShow(cardName);
o.afterCardShow(cardName); self.fireEvent(BI.ShowListener.EVENT_CHANGE, cardName);
self.fireEvent(BI.ShowListener.EVENT_CHANGE, cardName); });
}); }
} });
});
}
} }
}); });
BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE";/** BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE";/**
@ -82562,5 +82560,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,28 +18796,26 @@ 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;
if (o.eventObj) { o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) {
o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) { if (type === BI.Events.CLICK) {
if (type === BI.Events.CLICK) { v = v || o.eventObj.getValue();
v = v || o.eventObj.getValue(); v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v;
v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v; if (BI.isNull(v)) {
if (BI.isNull(v)) { throw new Error("value cannot be null");
throw new Error("value cannot be null"); }
} var cardName = o.cardNameCreator(v);
var cardName = o.cardNameCreator(v); if (!o.cardLayout.isCardExisted(cardName)) {
if (!o.cardLayout.isCardExisted(cardName)) { var card = o.cardCreator(cardName);
var card = o.cardCreator(cardName); o.cardLayout.addCardByName(cardName, card);
o.cardLayout.addCardByName(cardName, card); o.afterCardCreated(cardName);
o.afterCardCreated(cardName); }
} o.cardLayout.showCardByName(cardName);
o.cardLayout.showCardByName(cardName); BI.nextTick(function () {
BI.nextTick(function () { o.afterCardShow(cardName);
o.afterCardShow(cardName); self.fireEvent(BI.ShowListener.EVENT_CHANGE, 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

3
dist/utils.js vendored

@ -15906,7 +15906,8 @@ BI.Date._OFFSET = [0, -1, -2, -3, -4, -5, -6];BI.i18n = {
"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": "季度"
};/** };/**
* 缓冲池 * 缓冲池
* @type {{Buffer: {}}} * @type {{Buffer: {}}}

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

3
public/js/fineui.i18n.js

@ -183,5 +183,6 @@ BI.i18n = {
"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": "季度"
}; };
Loading…
Cancel
Save