Element获取选中的下拉框的文本label

如下:

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

 

posted @ 2020-12-02 17:46  许伟强  阅读(3905)  评论(1编辑  收藏  举报