vue-infinite-loading
vue-infinite-loading copied to clipboard
Change infinite-loading render tag
<template>
<ul >
<li v-for="item, index in items"></li>
<infinite-loading @infinite="infiniteHandler"></infinite-loading>
</ul>
</template>
will rendered as:
<ul >
<li v-for="item, index in items"></li>
<div ... ></div>
</ul>
div
inside ul
doesn't look good, so I think what it could be helpful to get tag
attribute for set render wrapper tag.
It is recommended to put infinite-loading
under ul
or simply wrapped it with li
, to avoid the inherited styles from li
, how do you think?
@PeachScript I think it's sound quite good. But what if li
doesn't have styles but li>div
have its? I strongly believe that tag attribute the same as in router-link
will be a more flexible solution