layCascader 排序问题,我想按照我点击顺序回显,有办法解决吗
admin.req(getProjectUrl() + 'city/listCityOptions', function (res) {
if (res.success && res.data) {
var finalOptions = res.data;
wayPlaceCascadeRender = layCascader({
elem: '#wayPlaceCode',
clearable: true,
options: finalOptions,
showAllLevels: false,
props: {
multiple: true,
checkStrictly: true
},
layVerify: 'required',
layVerType: 'tips'
});
if (editData !== null && editData !== undefined) {
if (editData.wayPlaceCode !== null && editData.wayPlaceCode !== '') {
console.log(editData.wayPlaceCode) // [130406,130404,130102,110100,150500,150304,510400,530500,500300,120103,320400] 他非得走默认排序,不按照我勾选的顺序回显
wayPlaceCascadeRender.setValue(editData.wayPlaceCode);
}
}
} else {
console.error('请求失败或没有数据');
}
});