<el-form :model="formData">
<el-form-item label="切换">
<el-radio-group v-model="formData.addedType">
<el-radio :label="0">0000</el-radio>
<el-radio :label="1">111</el-radio>
</el-radio-group>
<br />
<el-date-picker v-show="formData.addedType == '1'"></el-date-picker>
</el-form-item>
</el-form>
//还是v-shwo
formData: {
addedType: 0, //重点是v-show
},
v-show
最新推荐文章于 2024-07-19 10:16:01 发布