vue-infinite-loading icon indicating copy to clipboard operation
vue-infinite-loading copied to clipboard

Change infinite-loading render tag

Open VasiliyRusin opened this issue 5 years ago • 2 comments

<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.

VasiliyRusin avatar Apr 16 '19 15:04 VasiliyRusin

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 avatar Oct 23 '19 11:10 PeachScript

@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

VasiliyRusin avatar Oct 23 '19 11:10 VasiliyRusin