element -ui select下拉框label显示多个值

sixthelement 2020-06-16

<el-select
    v-model="form.coupon"
    placeholder="请选择优惠券类型"
    @change="selectCoupon"
 >
    <el-option
     v-for="(item, index) in couponList"
    :key="index"
    :label="`${item.agioType} ${item.day}天`"
    :value="item.dId"
  ></el-option>
 </el-select>

相关推荐

jiong / 0评论 2020-09-17