Change a bit of style

This commit is contained in:
Laurent
2025-03-20 08:34:14 +01:00
parent b21a2336d6
commit fd7bdace3b
4 changed files with 32 additions and 7 deletions

View File

@@ -3,6 +3,13 @@
let value;
const emit = defineEmits(['update:value']);
const props = defineProps({
placeholder: {
type: [String],
required: false
}
});
// Method to handle the update
const updateValue = (event : any) => {
emit('update:value', event.target.value);
@@ -11,7 +18,7 @@ const updateValue = (event : any) => {
</script>
<template>
<input class="input-field" :value="value" @input="updateValue" />
<input :placeholder="placeholder" class="input-field" :value="value" @input="updateValue" />
</template>
<style scoped>