File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
228236const 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
You can’t perform that action at this time.
0 commit comments