mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Allow list items to specify a wrapper class
This commit is contained in:
parent
e3110454ae
commit
2d30c8f010
|
@ -17,5 +17,5 @@ export default function listItems(array, noWrap) {
|
|||
}
|
||||
});
|
||||
|
||||
return newArray.map(item => [(noWrap && !isSeparator(item)) ? item : m('li', {className: (item.props && item.props.wrapperClass) || (item.component && item.component.wrapperClass) || ''}, item), ' ']);
|
||||
return newArray.map(item => [(noWrap && !isSeparator(item)) ? item : m('li', {className: item.wrapperClass || (item.props && item.props.wrapperClass) || (item.component && item.component.wrapperClass) || ''}, item), ' ']);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user