Merge pull request #1115 from ZZZping/main

树型组件中使用长数字字符串作为节点id时出现的渲染问题
This commit is contained in:
贤心 2022-08-19 00:33:51 +08:00 committed by GitHub
commit dff69b820b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -760,7 +760,7 @@ layui.define('form', function(exports){
//若返回数字
if(typeof checkedId === 'number'){
if(thisId == checkedId){
if(thisId.toString() == checkedId.toString()){
if(!input[0].checked){
reInput.click();
};
@ -770,7 +770,7 @@ layui.define('form', function(exports){
//若返回数组
else if(typeof checkedId === 'object'){
layui.each(checkedId, function(index, value){
if(value == thisId && !input[0].checked){
if(value.toString() == thisId.toString() && !input[0].checked){
reInput.click();
return true;
}