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

Slot for name="complete" doesn't work

Open w-A-L-L-e opened this issue 2 years ago • 4 comments

I want to override the text when the complete slot is rendered. However when I add my named slot like so it's still showing the original text. Also it would be nice to add a css class to this slot then you can opt to hide it with display:none. Right now as workaround I'm hiding the unwanted text by placing a div over it using some trickery with a div that has negative margin-top.

    <InfiniteLoading @infinite="load_more_matches">
      <slot name="complete">THIS DOES NOT WORK</slot>
    </InfiniteLoading>
    
    <div class="hide-completed-message"/>

w-A-L-L-e avatar Oct 03 '23 13:10 w-A-L-L-e

Same Issue here. It was working in version 1.2.2.

<InfiniteLoading class="loader-message" @infinite="load" top distance=0 target=".log-list">
   <template #complete>End of log entries</template>
   <template #error>Error loading log</template>
</InfiniteLoading>

teisnet avatar Oct 04 '23 11:10 teisnet

DOM comparison: Version 1.2.2: infinite-1 2 2

Version 1.3.1: infinite-1 3 1

teisnet avatar Oct 04 '23 12:10 teisnet

Any solution for this?

Sakthi002 avatar Dec 01 '23 06:12 Sakthi002

in vue 3

 <InfiniteLoading @infinite="load">
          <template #complete><div></div></template>
        </InfiniteLoading>

hardik-baraiya-123456 avatar May 24 '24 09:05 hardik-baraiya-123456