修复 treeTable 部分操作之后 `radio` 列选中状态丢失的问题

pull/1358/head
sunxiaobin89 2023-08-03 00:07:22 +08:00
parent 8e6ea6988f
commit 4cae7241d2
1 changed files with 3 additions and 0 deletions

View File

@ -1526,6 +1526,9 @@ layui.define(['table'], function (exports) {
Class.prototype.updateCheckStatus = function (dataP, checked) {
var that = this;
var options = that.getOptions();
if (!options.hasChecboxCol) {
return false; // 如果没有复选列则不需要更新状态
}
var treeOptions = options.tree;
var tableId = options.id;
var tableView = options.elem.next();