A simple and lightweight data table component for Vue.js 3. Features sorting, paging, row check, dynamic data rendering, supported TypeScript, and more.
To better type the emit functions outside the components, a typing workaround was added to the emits as the defineEmits cannot be used with the Options API. I had to disable eslint on those definitions to prevent throwing warnings for unused variables.
To better type the emit functions outside the components, a typing workaround was added to the emits as the defineEmits cannot be used with the Options API. I had to disable eslint on those definitions to prevent throwing warnings for unused variables.
New snippet with the event type:
Let me know if there is something to change.