From cc3dd20250b5d6a79aff04caa98a3ce68baf9a61 Mon Sep 17 00:00:00 2001 From: dailer Date: Wed, 29 May 2019 12:00:44 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-644=20=20=20FineUI=E6=B7=BB=E5=8A=A0mixi?= =?UTF-8?q?n=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/shortcut.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/core/shortcut.js b/src/core/shortcut.js index ee05228f3..c579b5884 100644 --- a/src/core/shortcut.js +++ b/src/core/shortcut.js @@ -6,6 +6,19 @@ } kv[xtype] = cls; }; + + BI.mixin = function (xtype, mixins) { + var cls; + if (BI.isNull(mixins) && BI.isPlainObject(xtype)) { + cls = BI.OB; + mixins = xtype; + BI.extend(cls.prototype, mixins); + return; + } + cls = kv[xtype]; + BI.extend(cls.prototype, mixins); + }; + // 根据配置属性生成widget var createWidget = function (config) { if (config["classType"]) {