diff --git a/src/components/Table/Table.stories.js b/src/components/Table/Table.stories.js index acb3219b3..6a2c12f43 100644 --- a/src/components/Table/Table.stories.js +++ b/src/components/Table/Table.stories.js @@ -282,3 +282,45 @@ export const WithTitleAndDescription = { args: {}, }; + +export const WithNoItems = { + render: (args) => ({ + components: { + PkpTable, + TableHeader, + TableBody, + TableRow, + TableColumn, + TableCell, + PkpButton, + }, + setup() { + return {args}; + }, + template: ` + + + + + ID + Title + Views + Downloads + Total + Action + + + + + + `, + }), + + args: {}, +}; diff --git a/src/components/Table/TableBody.vue b/src/components/Table/TableBody.vue index 52040ad5f..18a5d77da 100644 --- a/src/components/Table/TableBody.vue +++ b/src/components/Table/TableBody.vue @@ -1,7 +1,7 @@ - +