diff --git a/dist/font/iconfont.eot b/dist/font/iconfont.eot
index 06bb85f6f..6c1e56c95 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 606f96c48..524ddd818 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 5f5dd9fff..597cada87 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 6fa498a6d..5d08889bf 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 57e480148..94414d325 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 711b60f02..16d1c2f2d 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 5663879b6..544fca3fb 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");
}