多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
526 B

<script setup lang="ts">
import Text from './Text.vue'
import { computed } from '#imports'
interface Props {
modelValue: any
}
const { modelValue: value } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
const localState = computed({
get: () => value,
set: (val) => emit('update:modelValue', val),
})
</script>
<template>
<Text v-model="localState" />
</template>
<style scoped>
input,
textarea {
width: 100%;
height: 100%;
color: var(--v-textColor-base);
outline: none;
}
</style>