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: ` + + + No Items + + + There's a total of 0 items(s). + + + ID + Title + Views + Downloads + Total + Action + + + + This is a custom no-content slot. No items available. + + + + `, + }), + + 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 @@ - + diff --git a/src/components/Table/TableRow.vue b/src/components/Table/TableRow.vue index 85aeaa151..052c14352 100644 --- a/src/components/Table/TableRow.vue +++ b/src/components/Table/TableRow.vue @@ -4,4 +4,20 @@ - +