<template> <div> First: <a-select v-model:value="first" style="width: 100%" @change="handleFirstChange"> <a-select-option v-for="i in 10" :key="(i + 9).toString(36) + i"> {{ (i + 9).toString(36) + i }} </a-select-option> </a-select> Second: <a-select v-model:value="second" style="width: 100%" @change="handleSecondChange"> <a-select-option v-for="i in 10" :key="(i + 9).toString(36) + i"> {{ (i + 9).toString(36) + i }} </a-select-option> </a-select> </div> </template> <script> export default { data() { return { first: [], second: [] }; }, methods: { handleFirstChange(value) { this.second = [] }, handleSecondChange(value) { this.first = [] }, }, }; </script>
标签:vue,value,second,清空,antd,select,选框 From: https://www.cnblogs.com/zhangpooo/p/17037238.html