mirror of
https://origin.cursor.com/mrdevmx/panels.git
synced 2026-10-09 18:23:22 +00:00
26 lines
683 B
Vue
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>
|