由于Vant原生的选择器组件只支持值列表的数据,而不支持键值对列表的数据,并且使用较为麻烦,于是对Vant的选择器组件进行了封装。封装组件代码<template> <!-- 封装vant的选择器 --> <div> <van-field readonly clickable name="p...