PeachScript / vue-infinite-loading

An infinite scroll plugin for Vue.js.
https://peachscript.github.io/vue-infinite-loading/
MIT License
2.67k stars 370 forks source link

element-ui @click on table row #210

Closed thedaaron closed 5 years ago

thedaaron commented 5 years ago

What is Expected?

Can handle onClick method on a row.

Current Code

<el-table
        :data="items"
        >
    <el-table-column v-for="header in headers"
                     :key="header.value"
                     :prop="header.value"
                     :label="header.text"
                     :align="header.align"
                     :header-align="header.align"
                     v-bind:sortable="header.sortable"
    >
    </el-table-column>
    <template slot="append">
        <infinite-loading
                ref="inf"
                spinner="waveDots"
                @infinite="fetchPage"

        >
            <span slot="loading">Loading ...</span>
            <span slot="no-more">No More Data</span>
            <span slot="no-results"> No Results</span>
        </infinite-loading>
    </template>
</el-table>

Version

"vue-infinite-loading": "^2.4.3", "element-ui": "^2.4.11", "vue": "^2.5.17",

PeachScript commented 5 years ago

Is this an issue for element-ui?