uni-app radio unchecked

Write custom directory title here

uni-app radio unchecked

Radio traversal, control the selected state of the checkbox through the state of default_domain

<label class="radio" @click="setDoamin(item.domain)">
		<radio color="#536AF4 " style="transform:scale(0.7)"
			 :checked="item.default_domain == 1 ? true : false" />
		 <span>设为默认</span>
</label>

Just set this state to false before the user clicks the event to pop up the modal box
insert image description here

Guess you like

Origin blog.csdn.net/weixin_47211345/article/details/124151727