forked from fanruan/fineui
guy
4 years ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@
|
||||
BI.Fragment = function () { |
||||
}; |
||||
|
||||
BI.h = function (type, props, children) { |
||||
if (type === BI.Fragment) { |
||||
return children; |
||||
} |
||||
if (BI.isFunction(type)) { |
||||
type = type.xtype; |
||||
} |
||||
if (type === "el") { |
||||
return BI.extend({ |
||||
el: children[0] |
||||
}, props); |
||||
} |
||||
return BI.extend({ |
||||
items: children |
||||
}, props); |
||||
}; |
Loading…
Reference in new issue