18 lines
542 B
Vue
18 lines
542 B
Vue
<script setup>
|
|
const props = defineProps({
|
|
title:String,
|
|
name:String
|
|
});
|
|
const emits = defineEmits(['changeInput']);
|
|
const state = ref("");
|
|
const onChange = () => {
|
|
emits("changeInput",state.value, props.name)
|
|
};
|
|
</script>
|
|
<template>
|
|
<div class="flex flex-col w-[100%] ,t-2">
|
|
<label class="text-cyan-500 mb-q text-sm">{{ title }}</label>
|
|
<textarea class="p-2 border w-100 rounded" @input="onChange"
|
|
v-model="state"></textarea>
|
|
</div>
|
|
</template> |