fix: make BaseInput.vue actually model the text that is inputted
This commit is contained in:
@ -1,9 +1,13 @@
|
|||||||
<script setup lang="ts" xmlns="http://www.w3.org/1999/html">
|
<script setup lang="ts" xmlns="http://www.w3.org/1999/html">
|
||||||
import vRecolorText from '@/directives/vRecolorText.ts';
|
import vRecolorText from '@/directives/vRecolorText.ts';
|
||||||
|
const model = defineModel<string>({
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<input v-recolor-text>
|
<input v-recolor-text v-model="model">
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user