antoniandre / wave-ui

A UI framework for Vue.js 3 (and 2) with only the bright side. ☀️
https://antoniandre.github.io/wave-ui
MIT License
544 stars 39 forks source link

[typescript][w-table] Typescript slot definitions for item-cell #142

Closed DerrikMilligan closed 4 months ago

DerrikMilligan commented 5 months ago

For a template section like this:

<w-table :headers="tableHeaders" :items="tableItems">
    <template #item-cell.name="{ item }">
        <td>Custom Cell...</td>
    </template>
</w-table>

Without this change the template slot #item-cell.name shows that it's an error.

I left the original item-cell without the slot modifier so that for autocompletion we still can see it and get the documentation for it.