Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug 上报] wd-picker 多列联动pickerView.setColumnData([])设置空数组报错 #813

Open
wojide0301 opened this issue Jan 3, 2025 · 0 comments
Labels
🐞bug: need confirm 待确认的bug

Comments

@wojide0301
Copy link

Wot Design Uni 版本号

1.5.1

平台

h5

复现Demo地址(如不提供,将被直接关闭)

--

重现步骤

<wd-picker :columns="columns" label="多列联动" v-model="value" :column-change="onChangeDistrict" :display-format="displayFormat" />
const onChangeDistrict = (pickerView, value, columnIndex, resolve) => { const item = value[columnIndex] if (columnIndex === 0) { pickerView.setColumnData(1, district[item.value]) pickerView.setColumnData(2, district[district[item.value][0].value]) } else if (columnIndex === 1) { pickerView.setColumnData(2, []) } resolve() }
image

期望的结果是什么?

允许设置空数据

实际的结果是什么?

The value to select with Col:2 Row:-1 is incorrect

环境信息

No response

其他补充信息

No response

@wojide0301 wojide0301 added the 🐞bug: need confirm 待确认的bug label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞bug: need confirm 待确认的bug
Projects
None yet
Development

No branches or pull requests

1 participant