picker组件在Honor 7C上bug导致app卡死
picker当滚动框滚动到内容比较长的项目时,直接会造成app卡死,实例代码如下:
index.js
//index.js Page({ data: { pickerDatas: [ [{ "id" : "62" , "name" : "甘肃省" , "type" : "d" }, { "id" : "52" , "name" : "贵州省" , "type" : "d" }, { "id" : "53" , "name" : "云南省" , "type" : "d" }, { "id" : "54" , "name" : "西藏自治区" , "type" : "d" }, { "id" : "65" , "name" : "新疆维吾尔自治区" , "type" : "d" }], [{ "id" : "_all_" , "name" : "全部" , "type" : "" }, { "id" : "110101" , "name" : "东城区" , "type" : "d" }], [{ "id" : "test" , "name" : "test" , "type" : "d" }], [{ "id" : "test" , "name" : "test" , "type" : "d" }] ], pickerValue: [0, 0, 0, 0], }, onLoad: function () { }, }) |
index.wxml
< view class = "container" > < picker mode = "multiSelector" range = "{{pickerDatas}}" range-key = "name" value = "{{pickerValue}}" > 测试picker信息 </ picker > </ view > |
1 回复
这里APP卡死是指微信?还是什么?
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
另外,请扫描下图贴一下截图