From a1b7d45495c19edc8b5ffa77466be504dd13be32 Mon Sep 17 00:00:00 2001 From: mm <25961416+mlmoravek@users.noreply.github.com> Date: Fri, 7 Jun 2024 13:59:17 +0200 Subject: [PATCH] feat(table): enhance loading spinner (#946) --- packages/docs/components/Table.md | 4 ++- packages/oruga/src/components/table/Table.vue | 34 +++++++++++++++++-- packages/oruga/src/components/types.ts | 6 ++++ 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/packages/docs/components/Table.md b/packages/docs/components/Table.md index 67c6abf66..c9ed26dfc 100644 --- a/packages/docs/components/Table.md +++ b/packages/docs/components/Table.md @@ -76,6 +76,8 @@ title: Table | isRowCheckable | Custom method to verify if a row is checkable, works when is checkable | (row: unknown) => boolean | - |
table: {
isRowCheckable: (row) => true
}
|
| isRowSelectable | Custom method to verify if a row is selectable, works when is selected. | func | - | Default function (see source code) |
| loading | Enable loading state | boolean | - | false
|
+| loadingIcon | Icon for the loading state | string | - | table: {
loadingIcon: "loading"
}
|
+| loadingLabel | Label for the loading state | string | - | table: {
loadingLabel: undefined
}
|
| mobileBreakpoint | Mobile breakpoint as max-width value | string | - | table: {
mobileBreakpoint: undefined
}
|
| mobileCards | Rows appears as cards on mobile (collapse rows) | boolean | - | table: {
mobileCards: true
}
|
| mobileSortPlaceholder | Text when nothing is selected | string | - | table: {
mobileSortPlaceholder: undefined
}
|
@@ -148,7 +150,7 @@ title: Table
| detail | Place row detail content here | **row** `unknown` - row content