Browse Source

Merge pull request #883 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '9d3af9a7d6a668b878ab6239fc24cd39dc5bcdee':
  无JIRA任务 i18n.js没有打进utils.js中
es6
windy 6 years ago
parent
commit
e55f9bcbeb
  1. 1
      Gruntfile.js
  2. 2
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.min.js
  4. 2
      dist/bundle.ie.min.js
  5. 2
      dist/bundle.min.js
  6. 2
      dist/fineui.ie.min.js
  7. 2
      dist/fineui.min.js
  8. 29
      dist/utils.js
  9. 4
      dist/utils.min.js

1
Gruntfile.js

@ -211,6 +211,7 @@ module.exports = function (grunt) {
"src/core/ob.js", "src/core/ob.js",
"src/core/alias.js", "src/core/alias.js",
"src/core/inject.js", "src/core/inject.js",
"src/core/i18n.js",
"src/core/utils/*.js", "src/core/utils/*.js",
"i18n/i18n.cn.js", "i18n/i18n.cn.js",
"_mobile/date.i18n.cn.js", "_mobile/date.i18n.cn.js",

2
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

29
dist/utils.js vendored

@ -13621,6 +13621,35 @@ if (!_global.BI) {
}; };
})(); })();
!(function () { !(function () {
var i18nStore = {};
_.extend(BI, {
addI18n: function (i18n) {
BI.extend(i18nStore, i18n);
},
i18nText: function (key) {
var localeText = i18nStore[key] || (BI.i18n && BI.i18n[key]) || "";
if (!localeText) {
localeText = key;
}
var len = arguments.length;
if (len > 1) {
if (localeText.indexOf("{R1}") > -1) {
for (var i = 1; i < len; i++) {
var key = "{R" + i + "}";
localeText = BI.replaceAll(localeText, key, arguments[i] + "");
}
} else {
var args = Array.prototype.slice.call(arguments);
var count = 1;
return BI.replaceAll(localeText, "\\{\\s*\\}", function () {
return args[count++] + "";
});
}
}
return localeText;
}
});
})();!(function () {
function aspect (type) { function aspect (type) {
return function (target, methodName, advice) { return function (target, methodName, advice) {
var exist = target[methodName], var exist = target[methodName],

4
dist/utils.min.js vendored

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