Skip to content

Commit c3c8ea3

Browse files
authored
Merge branch 'main' into fix/standardize-button-heights
2 parents abd5699 + d6cc162 commit c3c8ea3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sysvale/cuida",
3-
"version": "3.121.1",
3+
"version": "3.122.1",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",

src/components/DataTable.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ const props = defineProps({
223223
type: String,
224224
default: 'Certifique-se de ajustar os filtros para encontrar resultados.',
225225
},
226+
/**
227+
* Tempo de atraso entre a digitação e a emissão do evento de busca (em ms).
228+
*/
229+
searchInputDelay: {
230+
type: Number,
231+
default: 500,
232+
validator: (value) => value >= 0,
233+
},
226234
});
227235
228236
const emits = defineEmits(['update-fields-list', 'customize-click', 'search']);
@@ -264,7 +272,7 @@ function handleSearchInput(value) {
264272
clearTimeout(searchTimeout.value);
265273
searchTimeout.value = setTimeout(() => {
266274
emits('search', value);
267-
}, 500);
275+
}, props.searchInputDelay);
268276
}
269277
</script>
270278

0 commit comments

Comments
 (0)