vant --- van-picker组件 渲染数组是json形式

 

通过value-key="" 来设置你要渲染展示的字段

collegetypeArry: [{
        id:0,
        itemText:'综合排名'
      },{
        id:1,
        itemText:'单类排名'
      },{
        id:2,
        itemText:'分省排名'
      }]


<van-picker show-toolbar
            :columns="collegetypeArry"
            value-key="itemText"
            @confirm="onConfirm"/>

  

posted @ 2021-12-03 10:40  三只小熊sky  阅读(526)  评论(0)    收藏  举报