panels-origin/web-panel/components/DeskTableBar.vue
2026-08-21 16:55:01 -05:00

26 lines
683 B
Vue

<template>
<div class="padron-overview">
<div class="padron-overview-chips">
<slot />
</div>
<IconField class="desk-search table-search">
<InputIcon class="pi pi-search" />
<InputText
:model-value="modelValue"
:placeholder="placeholder"
@update:model-value="onInput"
/>
</IconField>
</div>
</template>
<script setup lang="ts">
withDefaults(defineProps<{ modelValue: string; placeholder?: string }>(), {
placeholder: "Buscar…",
});
const emit = defineEmits<{ "update:modelValue": [value: string] }>();
function onInput(value: string | undefined) {
emit("update:modelValue", String(value ?? ""));
}
</script>