fix: should support nested list

This commit is contained in:
Benjy Cui 2016-03-01 12:06:01 +08:00
parent 66b974a10f
commit c9aff0ac92

View File

@ -5,6 +5,10 @@ import { Menu } from '../../';
export function objectToComponent(object, index) {
if (object === null) return;
if (typeof object === 'string') {
return <span key={index}>{ object }</span>;
}
const children = object.children;
if (object.type === 'html') {