From b303641f585d3cad0b1fa06c53a2c3c6f908773b Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 31 May 2021 23:14:00 +0800 Subject: [PATCH] bugfix --- src/core/h.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/h.js b/src/core/h.js index d853c1e7bb..96b99e5f47 100644 --- a/src/core/h.js +++ b/src/core/h.js @@ -22,7 +22,7 @@ BI.h = function (type, props, children) { return children; } if (BI.isFunction(type)) { - type = type.xtype; + type = type.xtype || type; } if (type === "el") { return BI.extend({ @@ -32,4 +32,4 @@ BI.h = function (type, props, children) { return BI.extend({ type: type, }, children.length > 0 ? {items: children} : {}, props); -}; \ No newline at end of file +};