Browse Source

国际化

es6
imp 6 years ago
parent
commit
1e6a6efce5
  1. 112
      dist/bundle.ie.js
  2. 64
      dist/bundle.ie.min.js
  3. 112
      dist/bundle.js
  4. 64
      dist/bundle.min.js
  5. 112
      dist/core.js
  6. 112
      dist/fineui.ie.js
  7. 64
      dist/fineui.ie.min.js
  8. 112
      dist/fineui.js
  9. 64
      dist/fineui.min.js
  10. 7
      dist/fineui_without_jquery_polyfill.js
  11. 9
      dist/utils.js
  12. 6
      dist/utils.min.js
  13. 20
      src/core/base.js

112
dist/bundle.ie.js vendored

@ -10154,11 +10154,17 @@ if (!_global.BI) {
if (!localeText) { if (!localeText) {
localeText = key; localeText = key;
} }
var args = Array.prototype.slice.call(arguments); var len = arguments.length;
var count = 1; if (len > 1) {
return BI.replaceAll(localeText, "\\{\\s*\\}", function () { for (var i = 1; i < len; i++) {
return args[count++] + ""; var key = "{R" + i + "}";
}); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
}
}
return localeText;
}, },
assert: function (v, is) { assert: function (v, is) {
@ -10798,7 +10804,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -10831,7 +10837,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {
@ -30371,98 +30377,6 @@ BI.AbsoluteVerticalLayout = BI.inherit(BI.Layout, {
} }
}); });
BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/** BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/**
* 内联布局
* @class BI.InlineCenterAdaptLayout
* @extends BI.Layout
*
* @cfg {JSON} options 配置属性
* @cfg {Number} [hgap=0] 水平间隙
* @cfg {Number} [vgap=0] 垂直间隙
*/
BI.InlineVaerticalAdaptLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-inline-center-adapt-layout",
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0
});
},
render: function () {
BI.InlineVaerticalAdaptLayout.superclass.render.apply(this, arguments);
this.element.css({
whiteSpace: "nowrap",
"text-align": "left"
});
this.populate(this.options.items);
},
_addElement: function (i, item, length) {
var o = this.options;
if (!this.hasWidget(this.getName() + i)) {
var t = BI.createWidget(item);
this.addWidget(this.getName() + i, t);
} else {
var t = this.getWidgetByName(this.getName() + i);
}
t.element.css({
position: "relative",
display: "inline-block",
"vertical-align": "middle",
"*display": "inline",
"*zoom": 1
});
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-top": (o.vgap || 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + "px"
});
}
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-left": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-right": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-bottom": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + "px"
});
}
return t;
},
resize: function () {
this.stroke(this.options.items);
},
addItem: function (item) {
throw new Error("不能添加元素");
},
stroke: function (items) {
var self = this;
BI.each(items, function (i, item) {
if (item) {
self._addElement(i, item, items.length);
}
});
},
populate: function (items) {
BI.InlineVaerticalAdaptLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.vertical_inline_adapt", BI.InlineVaerticalAdaptLayout);/**
* 自适应水平和垂直方向都居中容器 * 自适应水平和垂直方向都居中容器
* @class BI.CenterAdaptLayout * @class BI.CenterAdaptLayout
* @extends BI.Layout * @extends BI.Layout

64
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

112
dist/bundle.js vendored

@ -10154,11 +10154,17 @@ if (!_global.BI) {
if (!localeText) { if (!localeText) {
localeText = key; localeText = key;
} }
var args = Array.prototype.slice.call(arguments); var len = arguments.length;
var count = 1; if (len > 1) {
return BI.replaceAll(localeText, "\\{\\s*\\}", function () { for (var i = 1; i < len; i++) {
return args[count++] + ""; var key = "{R" + i + "}";
}); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
}
}
return localeText;
}, },
assert: function (v, is) { assert: function (v, is) {
@ -10798,7 +10804,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -10831,7 +10837,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {
@ -30371,98 +30377,6 @@ BI.AbsoluteVerticalLayout = BI.inherit(BI.Layout, {
} }
}); });
BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/** BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/**
* 内联布局
* @class BI.InlineCenterAdaptLayout
* @extends BI.Layout
*
* @cfg {JSON} options 配置属性
* @cfg {Number} [hgap=0] 水平间隙
* @cfg {Number} [vgap=0] 垂直间隙
*/
BI.InlineVaerticalAdaptLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-inline-center-adapt-layout",
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0
});
},
render: function () {
BI.InlineVaerticalAdaptLayout.superclass.render.apply(this, arguments);
this.element.css({
whiteSpace: "nowrap",
"text-align": "left"
});
this.populate(this.options.items);
},
_addElement: function (i, item, length) {
var o = this.options;
if (!this.hasWidget(this.getName() + i)) {
var t = BI.createWidget(item);
this.addWidget(this.getName() + i, t);
} else {
var t = this.getWidgetByName(this.getName() + i);
}
t.element.css({
position: "relative",
display: "inline-block",
"vertical-align": "middle",
"*display": "inline",
"*zoom": 1
});
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-top": (o.vgap || 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + "px"
});
}
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-left": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-right": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-bottom": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + "px"
});
}
return t;
},
resize: function () {
this.stroke(this.options.items);
},
addItem: function (item) {
throw new Error("不能添加元素");
},
stroke: function (items) {
var self = this;
BI.each(items, function (i, item) {
if (item) {
self._addElement(i, item, items.length);
}
});
},
populate: function (items) {
BI.InlineVaerticalAdaptLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.vertical_inline_adapt", BI.InlineVaerticalAdaptLayout);/**
* 自适应水平和垂直方向都居中容器 * 自适应水平和垂直方向都居中容器
* @class BI.CenterAdaptLayout * @class BI.CenterAdaptLayout
* @extends BI.Layout * @extends BI.Layout

64
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

112
dist/core.js vendored

@ -10154,11 +10154,17 @@ if (!_global.BI) {
if (!localeText) { if (!localeText) {
localeText = key; localeText = key;
} }
var args = Array.prototype.slice.call(arguments); var len = arguments.length;
var count = 1; if (len > 1) {
return BI.replaceAll(localeText, "\\{\\s*\\}", function () { for (var i = 1; i < len; i++) {
return args[count++] + ""; var key = "{R" + i + "}";
}); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
}
}
return localeText;
}, },
assert: function (v, is) { assert: function (v, is) {
@ -10798,7 +10804,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -10831,7 +10837,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {
@ -30371,98 +30377,6 @@ BI.AbsoluteVerticalLayout = BI.inherit(BI.Layout, {
} }
}); });
BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/** BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/**
* 内联布局
* @class BI.InlineCenterAdaptLayout
* @extends BI.Layout
*
* @cfg {JSON} options 配置属性
* @cfg {Number} [hgap=0] 水平间隙
* @cfg {Number} [vgap=0] 垂直间隙
*/
BI.InlineVaerticalAdaptLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-inline-center-adapt-layout",
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0
});
},
render: function () {
BI.InlineVaerticalAdaptLayout.superclass.render.apply(this, arguments);
this.element.css({
whiteSpace: "nowrap",
"text-align": "left"
});
this.populate(this.options.items);
},
_addElement: function (i, item, length) {
var o = this.options;
if (!this.hasWidget(this.getName() + i)) {
var t = BI.createWidget(item);
this.addWidget(this.getName() + i, t);
} else {
var t = this.getWidgetByName(this.getName() + i);
}
t.element.css({
position: "relative",
display: "inline-block",
"vertical-align": "middle",
"*display": "inline",
"*zoom": 1
});
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-top": (o.vgap || 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + "px"
});
}
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-left": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-right": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-bottom": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + "px"
});
}
return t;
},
resize: function () {
this.stroke(this.options.items);
},
addItem: function (item) {
throw new Error("不能添加元素");
},
stroke: function (items) {
var self = this;
BI.each(items, function (i, item) {
if (item) {
self._addElement(i, item, items.length);
}
});
},
populate: function (items) {
BI.InlineVaerticalAdaptLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.vertical_inline_adapt", BI.InlineVaerticalAdaptLayout);/**
* 自适应水平和垂直方向都居中容器 * 自适应水平和垂直方向都居中容器
* @class BI.CenterAdaptLayout * @class BI.CenterAdaptLayout
* @extends BI.Layout * @extends BI.Layout

112
dist/fineui.ie.js vendored

@ -10396,11 +10396,17 @@ if (!_global.BI) {
if (!localeText) { if (!localeText) {
localeText = key; localeText = key;
} }
var args = Array.prototype.slice.call(arguments); var len = arguments.length;
var count = 1; if (len > 1) {
return BI.replaceAll(localeText, "\\{\\s*\\}", function () { for (var i = 1; i < len; i++) {
return args[count++] + ""; var key = "{R" + i + "}";
}); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
}
}
return localeText;
}, },
assert: function (v, is) { assert: function (v, is) {
@ -11040,7 +11046,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -11073,7 +11079,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {
@ -30613,98 +30619,6 @@ BI.AbsoluteVerticalLayout = BI.inherit(BI.Layout, {
} }
}); });
BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/** BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/**
* 内联布局
* @class BI.InlineCenterAdaptLayout
* @extends BI.Layout
*
* @cfg {JSON} options 配置属性
* @cfg {Number} [hgap=0] 水平间隙
* @cfg {Number} [vgap=0] 垂直间隙
*/
BI.InlineVaerticalAdaptLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-inline-center-adapt-layout",
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0
});
},
render: function () {
BI.InlineVaerticalAdaptLayout.superclass.render.apply(this, arguments);
this.element.css({
whiteSpace: "nowrap",
"text-align": "left"
});
this.populate(this.options.items);
},
_addElement: function (i, item, length) {
var o = this.options;
if (!this.hasWidget(this.getName() + i)) {
var t = BI.createWidget(item);
this.addWidget(this.getName() + i, t);
} else {
var t = this.getWidgetByName(this.getName() + i);
}
t.element.css({
position: "relative",
display: "inline-block",
"vertical-align": "middle",
"*display": "inline",
"*zoom": 1
});
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-top": (o.vgap || 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + "px"
});
}
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-left": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-right": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-bottom": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + "px"
});
}
return t;
},
resize: function () {
this.stroke(this.options.items);
},
addItem: function (item) {
throw new Error("不能添加元素");
},
stroke: function (items) {
var self = this;
BI.each(items, function (i, item) {
if (item) {
self._addElement(i, item, items.length);
}
});
},
populate: function (items) {
BI.InlineVaerticalAdaptLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.vertical_inline_adapt", BI.InlineVaerticalAdaptLayout);/**
* 自适应水平和垂直方向都居中容器 * 自适应水平和垂直方向都居中容器
* @class BI.CenterAdaptLayout * @class BI.CenterAdaptLayout
* @extends BI.Layout * @extends BI.Layout

64
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

112
dist/fineui.js vendored

@ -10396,11 +10396,17 @@ if (!_global.BI) {
if (!localeText) { if (!localeText) {
localeText = key; localeText = key;
} }
var args = Array.prototype.slice.call(arguments); var len = arguments.length;
var count = 1; if (len > 1) {
return BI.replaceAll(localeText, "\\{\\s*\\}", function () { for (var i = 1; i < len; i++) {
return args[count++] + ""; var key = "{R" + i + "}";
}); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
}
}
return localeText;
}, },
assert: function (v, is) { assert: function (v, is) {
@ -11040,7 +11046,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -11073,7 +11079,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {
@ -30613,98 +30619,6 @@ BI.AbsoluteVerticalLayout = BI.inherit(BI.Layout, {
} }
}); });
BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/** BI.shortcut("bi.absolute_vertical_adapt", BI.AbsoluteVerticalLayout);/**
* 内联布局
* @class BI.InlineCenterAdaptLayout
* @extends BI.Layout
*
* @cfg {JSON} options 配置属性
* @cfg {Number} [hgap=0] 水平间隙
* @cfg {Number} [vgap=0] 垂直间隙
*/
BI.InlineVaerticalAdaptLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-inline-center-adapt-layout",
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0
});
},
render: function () {
BI.InlineVaerticalAdaptLayout.superclass.render.apply(this, arguments);
this.element.css({
whiteSpace: "nowrap",
"text-align": "left"
});
this.populate(this.options.items);
},
_addElement: function (i, item, length) {
var o = this.options;
if (!this.hasWidget(this.getName() + i)) {
var t = BI.createWidget(item);
this.addWidget(this.getName() + i, t);
} else {
var t = this.getWidgetByName(this.getName() + i);
}
t.element.css({
position: "relative",
display: "inline-block",
"vertical-align": "middle",
"*display": "inline",
"*zoom": 1
});
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-top": (o.vgap || 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + "px"
});
}
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-left": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {
t.element.css({
"margin-right": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + "px"
});
}
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {
t.element.css({
"margin-bottom": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + "px"
});
}
return t;
},
resize: function () {
this.stroke(this.options.items);
},
addItem: function (item) {
throw new Error("不能添加元素");
},
stroke: function (items) {
var self = this;
BI.each(items, function (i, item) {
if (item) {
self._addElement(i, item, items.length);
}
});
},
populate: function (items) {
BI.InlineVaerticalAdaptLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.vertical_inline_adapt", BI.InlineVaerticalAdaptLayout);/**
* 自适应水平和垂直方向都居中容器 * 自适应水平和垂直方向都居中容器
* @class BI.CenterAdaptLayout * @class BI.CenterAdaptLayout
* @extends BI.Layout * @extends BI.Layout

64
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/fineui_without_jquery_polyfill.js vendored

@ -10159,6 +10159,9 @@ if (!_global.BI) {
for (var i = 1; i < len; i++) { for (var i = 1; i < len; i++) {
var key = "{R" + i + "}"; var key = "{R" + i + "}";
localeText = BI.replaceAll(localeText, key, arguments[i] + ""); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
} }
} }
return localeText; return localeText;
@ -10801,7 +10804,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -10834,7 +10837,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {

9
dist/utils.js vendored

@ -10919,8 +10919,11 @@ if (!_global.BI) {
var len = arguments.length; var len = arguments.length;
if (len > 1) { if (len > 1) {
for (var i = 1; i < len; i++) { for (var i = 1; i < len; i++) {
var key = "{}"; var key = "{R" + i + "}";
localeText = BI.replaceAll(localeText, key, arguments[i] + ""); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
} }
} }
return localeText; return localeText;
@ -11563,7 +11566,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -11596,7 +11599,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {

6
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

20
src/core/base.js

@ -43,11 +43,17 @@ if (!_global.BI) {
if (!localeText) { if (!localeText) {
localeText = key; localeText = key;
} }
var args = Array.prototype.slice.call(arguments); var len = arguments.length;
var count = 1; if (len > 1) {
return BI.replaceAll(localeText, "\\{\\s*\\}", function () { for (var i = 1; i < len; i++) {
return args[count++] + ""; var key = "{R" + i + "}";
}); localeText = BI.replaceAll(localeText, key, arguments[i] + "");
if (i === 1) {
localeText = BI.replaceAll(localeText, "\\{\\s*\\}", arguments[i] + "");
}
}
}
return localeText;
}, },
assert: function (v, is) { assert: function (v, is) {
@ -687,7 +693,7 @@ if (!_global.BI) {
var pending = false; var pending = false;
var timerFunc; var timerFunc;
function nextTickHandler () { function nextTickHandler() {
pending = false; pending = false;
var copies = callbacks.slice(0); var copies = callbacks.slice(0);
callbacks = []; callbacks = [];
@ -720,7 +726,7 @@ if (!_global.BI) {
setTimeout(nextTickHandler, 0); setTimeout(nextTickHandler, 0);
}; };
} }
return function queueNextTick (cb) { return function queueNextTick(cb) {
var _resolve; var _resolve;
var args = [].slice.call(arguments, 1); var args = [].slice.call(arguments, 1);
callbacks.push(function () { callbacks.push(function () {

Loading…
Cancel
Save