ant-design-vue——a-select下拉框值为空字串时,高度偏窄问题


问题页面(红框处即为值为空字符串的数据):

 

 

改后:

 

 

页面:

···
<a-select v-model="formData.urgentLevel" style="width: 100%" dropdownClassName="selectOption"> <a-select-option v-for="(item,index) in URGENTLEVEL" :key="index" :value="item.code">{{item.name}}</a-select-option> </a-select> ··· URGENTLEVEL:[{ code:'01', name:' ' },{ code:'02', name:'平急' }]
···

 

关键——css:

.ant-select-dropdown-menu-item {  //写在全局处
  height: 30px;
}

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM