1.子组件获取props和抛出update:text事件
<template>
<div>
<van-cell-group>
<van-field v-model="text" label="文本" />
</van-cell-group>
</div>
</template>
<script>
import {
ref, watch } from 'vue'
1.子组件获取props和抛出update:text事件
<template>
<div>
<van-cell-group>
<van-field v-model="text" label="文本" />
</van-cell-group>
</div>
</template>
<script>
import {
ref, watch } from 'vue'