Skip to content

Commit

Permalink
feat(table): make debounceSearch a global option
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriata committed Apr 28, 2024
1 parent 74ed824 commit a5a9a1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/oruga/src/components/table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ const props = defineProps({
/** Add a native event to filter */
filtersEvent: { type: String, default: "" },
/** Filtering debounce time (in milliseconds) */
debounceSearch: { type: Number, default: undefined },
debounceSearch: {
type: Number,
default: () => getOption("table.debounceSearch", undefined),
},
/** Show header */
showHeader: {
type: Boolean,
Expand Down
2 changes: 2 additions & 0 deletions packages/oruga/src/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,8 @@ but will set body to position fixed, might break some layouts. */
detailKey: string;
/** Whether table is striped */
striped: boolean;
/** Filtering debounce time (in milliseconds) */
debounceSearch: number;
}>;
tabs?: ComponentConfigBase &
Partial<{
Expand Down

0 comments on commit a5a9a1d

Please sign in to comment.