van-field type="number" type类型对应不上导致 赋值失败

  <van-field
                              style="border: 1px solid #cbcad5"
                              v-model="item.inletTankNumberName"
                              placeholder="请选择"
                              type="number"
                              readonly
                              is-link
                              @click="openOilPopFn(index)"
                            />

上面必选赋值 数值,赋值字符串 会自动被清除

posted @ 2024-10-21 16:03  ThisCall  阅读(19)  评论(0编辑  收藏  举报