diff --git a/dist/font/iconfont.eot b/dist/font/iconfont.eot
index 06bb85f6f8..6c1e56c953 100644
Binary files a/dist/font/iconfont.eot and b/dist/font/iconfont.eot differ
diff --git a/dist/font/iconfont.svg b/dist/font/iconfont.svg
index 606f96c487..524ddd8187 100644
--- a/dist/font/iconfont.svg
+++ b/dist/font/iconfont.svg
@@ -56,7 +56,7 @@ Created by iconfont
-
+
@@ -68,16 +68,16 @@ Created by iconfont
-
+
-
+
-
+
@@ -95,7 +95,7 @@ Created by iconfont
-
+
@@ -1091,7 +1091,7 @@ Created by iconfont
-
+
@@ -1166,13 +1166,34 @@ Created by iconfont
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dist/font/iconfont.ttf b/dist/font/iconfont.ttf
index 5f5dd9fff4..597cada87f 100644
Binary files a/dist/font/iconfont.ttf and b/dist/font/iconfont.ttf differ
diff --git a/dist/font/iconfont.woff b/dist/font/iconfont.woff
index 6fa498a6da..5d08889bf4 100644
Binary files a/dist/font/iconfont.woff and b/dist/font/iconfont.woff differ
diff --git a/dist/utils.js b/dist/utils.js
index 57e480148c..94414d3258 100644
--- a/dist/utils.js
+++ b/dist/utils.js
@@ -13336,6 +13336,14 @@ if (!_global.BI) {
};
})();
(function () {
+ var moduleInjection = {};
+ BI.module = function (xtype, cls) {
+ if (moduleInjection[xtype] != null) {
+ _global.console && console.error("module:[" + xtype + "] has been registed");
+ }
+ moduleInjection[xtype] = cls;
+ };
+
var constantInjection = {};
BI.constant = function (xtype, cls) {
if (constantInjection[xtype] != null) {
@@ -13428,6 +13436,16 @@ if (!_global.BI) {
points[type][action][after ? "after" : "before"].push(pointFn);
};
+ BI.Modules = {
+ getModule: function (type) {
+ if(!moduleInjection[type]){
+ _global.console && console.error("module:[" + type + "] does not exists");
+ return false;
+ }
+ return moduleInjection[type];
+ }
+ };
+
BI.Constants = {
getConstant: function (type) {
return constantInjection[type];
diff --git a/src/core/inject.js b/src/core/inject.js
index 711b60f02b..16d1c2f2d5 100644
--- a/src/core/inject.js
+++ b/src/core/inject.js
@@ -1,4 +1,12 @@
(function () {
+ var moduleInjection = {};
+ BI.module = function (xtype, cls) {
+ if (moduleInjection[xtype] != null) {
+ _global.console && console.error("module:[" + xtype + "] has been registed");
+ }
+ moduleInjection[xtype] = cls;
+ };
+
var constantInjection = {};
BI.constant = function (xtype, cls) {
if (constantInjection[xtype] != null) {
@@ -91,6 +99,16 @@
points[type][action][after ? "after" : "before"].push(pointFn);
};
+ BI.Modules = {
+ getModule: function (type) {
+ if(!moduleInjection[type]){
+ _global.console && console.error("module:[" + type + "] does not exists");
+ return false;
+ }
+ return moduleInjection[type];
+ }
+ };
+
BI.Constants = {
getConstant: function (type) {
return constantInjection[type];
diff --git a/src/core/shortcut.js b/src/core/shortcut.js
index 5663879b6e..544fca3fbb 100644
--- a/src/core/shortcut.js
+++ b/src/core/shortcut.js
@@ -1,6 +1,6 @@
(function () {
var kv = {};
- BI.shortcut = function (xtype, cls) {
+ BI.shortcut = BI.component = function (xtype, cls) {
if (kv[xtype] != null) {
_global.console && console.error("shortcut:[" + xtype + "] has been registed");
}