如下:

dom结构:

<el-select
    ref="nationalityIdSel"
    placeholder="请选择"
    style="width:100%"
    clearable
    filterable
>
    <el-option
        v-for="(nationality,id) in nationalities"
        :value="id"
        :label="nationality"
        :key="id"
    ></el-option>
</el-select>

JavaScript:

this.$refs.nationalityIdSel.selectedLabel

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-03-29
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-12-01
  • 2021-12-10
  • 1970-01-01
  • 2022-12-23
相关资源
相似解决方案