# useComputed
获取一个可`set`/`get`的`computed value`。
用于绑定组件v-model
### useComputed使用

``` vue
<template>
    <el-input v-model="myDataPropA"></el-input>
</template>

<script lang="ts" setup>
import { defineProps } from "vue";
import { useComputedProps } from ".";

const props = defineProps({
    modelValue: {
        type: Number,
        default: 0
    }
})
const myDataPropA = useComputedProps(props.modelValue, 'modelValue');
</script>
```

### Demo