Closed cathrinevaage closed 6 years ago
There are some more elements that must be a direct list children like: list-group, block-title, block-footer, swipeouts, etc. You can just add own <ul>
inside and it will work like you expected, e.g.:
<f7-list>
<ul>
<some-custom-component></some-custom-component>
</ul>
</f7-list>
Also added before-list
, list
, after-list
slots to have more control over it
It's impossible to use custom components in
f7-list
because they are sortet intolistChildren
instead ofulChildren
, and placed outside theul
.I have a component,
result-item
. The root element in thetemplate
isf7-list-item
. The tag name in theVNode
is thenvue-component-N-result-item
, and is not treated like a anlist-item
component.I propose two solutions to this:
ulChildren
.listChildren
thing. I don't think the documentation even mentions support for other element types thanlist-item
. Treating every element in the default slot as list items, regardless of tag name.I personally think the second option is better. If we still need to support other elements that will be put under the list, add a named slot for it.