MCPcopy
hub / github.com/layui/layui / collectNeedExpandNodeIndex

Function collectNeedExpandNodeIndex

src/modules/treeTable.js:2521–2529  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

2519 }
2520
2521 var collectNeedExpandNodeIndex = function (index) {
2522 needExpandIndex.push(index);
2523 var trElem = tableView.find('tr[lay-data-index="' + index + '"]');
2524 if (!trElem.length) {
2525 var nodeData = that.getNodeDataByIndex(index);
2526 var parentIndex = nodeData[LAY_PARENT_INDEX];
2527 parentIndex && collectNeedExpandNodeIndex(parentIndex);
2528 }
2529 };
2530
2531 // 判断是否展开过
2532 var trElem = tableView.find('tr[lay-data-index="' + dataIndex + '"]');

Callers 1

treeTable.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected