First test
This commit is contained in:
26
resources/js/Components/Input.vue
Normal file
26
resources/js/Components/Input.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script>
|
||||
|
||||
export default {
|
||||
props: {
|
||||
value: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
model: {
|
||||
get() {
|
||||
return this.value;
|
||||
},
|
||||
set(value) {
|
||||
this.$emit("input", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<input type="text" v-model="model" placeholder="dummy input">
|
||||
</template>
|
||||
Reference in New Issue
Block a user