{props.items.length ? (
- props.items.map((item, index) => (
-
selectItem(index)}
- >
- {typeof item.label === 'function' ? item.label(props.editor) : item.label}
-
- ))
+ props.items.map((item, index) => {
+ return (
+
selectItem(index)}
+ >
+
+ {item.icon}
+ {item.label}
+
+
+ );
+ })
) : (
没有找到结果
)}