前端|vant的picker组件,传值为对象数组,colunmsFieldNames属性

【前端|vant的picker组件,传值为对象数组,colunmsFieldNames属性】// 组件用法

  • colunmsFieldNames:用来确定展示内容的键(picker里面默认展示键text的值),具体用法如下:

// script
const columns = reactive([[ {id:1,name:'a'},{id:2,name:'b'},{id:3,name:'c'},{id:4,name:'d'},{id:5,name:'e'}, ]])

    推荐阅读