当在使用select组件的时候,要注意

<el-select v-model="scope.row.state"
                               @change="editDriftStatus"
                               placeholder="请选择">
    <el-option v-for="item in drifStatusOptions"
                                   :label="item.label"
                                   :value="item.value">
    </el-option>
</el-select>

el-select  里面的v-model值要和el-option里面的value值对上,特别注意数据类型,之前value值写成字符串了,导致没效果

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案