<uni-popup ref="carType" type="bottom">
<uni-card class="content-carType" title="所需车型" :is-full="true">
<checkbox-group class="content-carType__checkbox-group" @change="carTypeChange">
<label v-for="(item,index) in carTypes" :key="index">
<checkbox
:value="item.value"
:disabled="item.disabled"
:checked="item.checked"
style="transform: scale(0.7);"
/>
uni-app checkbox限制选中数量 移除选中样式
最新推荐文章于 2024-06-16 10:48:24 发布
本文介绍了如何在uni-app中控制checkbox最多只能选择一定数量,并在达到限制时移除已选中项的样式,详细讲解了相关配置和代码实现过程。
摘要由CSDN通过智能技术生成