选中不显示:

要设置选中后显示谁  :label="item.AuctionID"

列表显示错位:

 {{ item.AuctionID }} 两边不能加<span>标签

 

正确方式:

                             <Select v-model="formDetail.AuctionID"  filterable clearable>
                                  <Option v-for="item in auctionList"  :value="item.AuctionID" :key="item.AuctionID" :label="item.AuctionID">         
                                       <!-- <span style="float: left">{{ item.AuctionID }}</span>
                                      <span style="float: right; color: #8492a6; margin-left:5px">{{ item.AuctionName }}</span> -->
                                         {{ item.AuctionID }}
                                      <span style="float: right; color: #8492a6; margin-left:5px">{{ item.AuctionName }}</span>
                                  </Option>
                               </Select>

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-02-27
  • 2021-12-01
  • 2021-11-27
  • 2021-09-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-05-22
相关资源
相似解决方案