Browse Source

Merge pull request #204819 in DEC/fineui from master to feature/x

* commit '17a888e39d1e9a4cf5174f855dcbdb99b2cf471a':
  auto upgrade version to 2.0.20221104135556
  BI-115904 fix: 【来源内测BUG】展开下拉树子节点,会出现重复数据
research/test
superman 2 years ago
parent
commit
b12af44cc6
  1. 2
      package.json
  2. 5
      src/case/ztree/1.asynctree.js

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20221104110628",
"version": "2.0.20221104135556",
"description": "fineui",
"main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts",

5
src/case/ztree/1.asynctree.js

@ -1,6 +1,6 @@
/**
* guy
* 步树
* 步树
* @class BI.AsyncTree
* @extends BI.TreeView
*/
@ -194,7 +194,8 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
// 展开节点会将halfCheck置为false以开启自动计算半选, 所以第一次展开节点的时候需要在置为false之前获取配置
var checkState = treeNode.getCheckStatus();
if (!treeNode.children) {
if (!treeNode.children && !treeNode.requested) {
treeNode.requested = true;
setTimeout(function () {
getNodes({
times: 1,

Loading…
Cancel
Save