mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 08:00:24 +08:00
Format
This commit is contained in:
parent
f51fc7b502
commit
ff3ea8bd0e
|
@ -75,13 +75,13 @@ export default function listItems<Attrs extends ComponentAttrs>(
|
|||
|
||||
if (isVnode(item)) {
|
||||
classes.push(item.attrs?.itemClassName || item.itemClassName);
|
||||
|
||||
|
||||
if (item.tag.isActive?.(item.attrs)) {
|
||||
classes.push('active');
|
||||
}
|
||||
}
|
||||
|
||||
const key = isVnode(item) && item?.attrs?.key || item.itemName;
|
||||
const key = (isVnode(item) && item?.attrs?.key) || item.itemName;
|
||||
|
||||
return (
|
||||
<Tag className={classList(classes)} key={key} {...attributes}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user