// 组件用法
- colunmsFieldNames:用来确定展示内容的键(picker里面默认展示键text的值),具体用法如下:
<van-picker title="标题" :columns="columns" @change="onChange" :colunmsFieldNames="{text:'name'}"/>
// script
<script setup lang="ts">
const columns = reactive([[
{id:1,name:'a'},{id:2,name:'b'},{id:3,name:'c'},{id:4,name:'d'},{id:5,name:'e'},
]])
<script>