AntmJS / vantui

基于vant-weapp实现的Taro-React版及H5-React版组件库https://antmjs.github.io/vantui/#/home
https://antm-js.gitee.io/vantui/#/home
MIT License
765 stars 99 forks source link

Area 组件报错“Error: setColumnIndex: 对应列不存在” #715

Open TechQuery opened 2 weeks ago

TechQuery commented 2 weeks ago

这个 Issue 涉及以下平台

BUG 描述

@zuolung 升级 Taro 4.0 后,地址选择器报错崩溃,让小程序白屏。

复现步骤

  1. 打开脚手架预览页面:https://taro-vant-mobx-oxbisjliu-techquerys-projects.vercel.app/#/pages/component
  2. 点击“请选择地区”
  3. 浏览器控制台即显示上述报错

期望结果

在 Taro 4.x 中使用 <Area /> 组件无报错。

实际结果

Error: setColumnIndex: 对应列不存在
    at ._node_modules_.pnpm_@antmjs+vantui@3.5.1_node_modules_@antmjs_vantui_es_picker_index.js:251
    at ._node_modules_.pnpm_@antmjs+vantui@3.5.1_node_modules_@antmjs_vantui_es_picker_index.js:263
    at Array.map (<anonymous>)
    at Object.setIndexes (._node_modules_.pnpm_@antmjs+vantui@3.5.1_node_modules_@antmjs_vantui_es_picker_index.js:263)
    at t.<anonymous> (._node_modules_.pnpm_@antmjs+vantui@3.5.1_node_modules_@antmjs_vantui_es_area_index.js:195)
    at f (WASubContext.js?t=wechat&s=1730203008373&v=3.6.3:1)
    at WASubContext.js?t=wechat&s=1730203008373&v=3.6.3:1
    at t.<anonymous> (WASubContext.js?t=wechat&s=1730203008373&v=3.6.3:1)
    at Function.<anonymous> (WASubContext.js?t=wechat&s=1730203008373&v=3.6.3:1)
    at p (WAServiceMainContext.js?t=wechat&s=1730203008373&v=3.6.3:1)(env: Windows,mp,1.06.2409140; lib: 3.6.3)

截图

image

环境

👽 Taro v4.0.7

  Taro CLI 4.0.7 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
      npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.7 => 4.0.7
      @tarojs/components: 4.0.7 => 4.0.7
      @tarojs/helper: 4.0.7 => 4.0.7
      @tarojs/plugin-framework-react: 4.0.7 => 4.0.7
      @tarojs/plugin-html: 4.0.7 => 4.0.7
      @tarojs/plugin-http: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-alipay: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-h5: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-jd: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-qq: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-swan: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-tt: 4.0.7 => 4.0.7
      @tarojs/plugin-platform-weapp: 4.0.7 => 4.0.7
      @tarojs/react: 4.0.7 => 4.0.7
      @tarojs/runtime: 4.0.7 => 4.0.7
      @tarojs/shared: 4.0.7 => 4.0.7
      @tarojs/taro: 4.0.7 => 4.0.7
      @tarojs/webpack5-runner: 4.0.7 => 4.0.7
      babel-preset-taro: 4.0.7 => 4.0.7

附加信息

zuolung commented 1 week ago

暂时不支持v4+

TechQuery commented 1 week ago

暂时不支持v4+

有大概的开发计划吗?