ElemeFE / vue-infinite-scroll

An infinite scroll directive for vue.js.
2.86k stars 416 forks source link

not working in table td element #160

Open Skura23 opened 2 years ago

Skura23 commented 2 years ago

vue-infinite-scroll does not workin table td element

Marsovski commented 2 years ago

@Skura23 try this

      <div v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="10">
        <table>
          <thead>
          <tr>
            <th>
              Title
            </th>
          </tr>
          </thead>
          <tbody>
            <tr v-for="(row, index) in data" :key="index">
              <td>
                <h4>{{ row }}</h4>
              </td>
            </tr>
          </tbody>
        </table>
      </div>