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

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

 

 

改后:

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;
}

 

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-07-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案