Browse Source

Merge pull request #1115 from ZZZping/main

树型组件中使用长数字字符串作为节点id时出现的渲染问题
pull/1119/head
贤心 2 years ago committed by GitHub
parent
commit
dff69b820b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/modules/tree.js

4
src/modules/tree.js

@ -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;
}

Loading…
Cancel
Save