Comparing version 3.8.176 to 3.8.177
@@ -164,3 +164,5 @@ "use strict"; | ||
if (!!param.defaultExpandAll) return [3 /*break*/, 6]; | ||
if (!(tree.length == 1 && param.defaultExpandedKeys.length == 0)) return [3 /*break*/, 6]; | ||
if (!(tree.length == 1)) return [3 /*break*/, 6]; | ||
console.log(param); | ||
if (!(param.defaultCheckedKeys && _.isArray(param.defaultCheckedKeys))) return [3 /*break*/, 6]; | ||
param.defaultExpandedKeys = [tree[0][this.fields.keyField]]; | ||
@@ -167,0 +169,0 @@ if (this.props.canAddRoot == undefined || this.props.canAddRoot == false) { |
@@ -31,2 +31,3 @@ "use strict"; | ||
var React = require("react"); | ||
var _ = require("lodash"); | ||
var antd_1 = require("antd"); | ||
@@ -77,5 +78,7 @@ var _Utils_1 = require("./_Utils"); | ||
if (!param.defaultExpandAll) { | ||
if (tree.length == 1 && param.defaultExpandedKeys.length == 0) { | ||
param.defaultExpandedKeys = [tree[0][this.fields.keyField]]; | ||
param.className = param.className + ' utree-root'; | ||
if (tree.length == 1) { | ||
if (param.defaultCheckedKeys && _.isArray(param.defaultCheckedKeys)) { | ||
param.defaultExpandedKeys = [tree[0][this.fields.keyField]]; | ||
param.className = param.className + ' utree-root'; | ||
} | ||
} | ||
@@ -82,0 +85,0 @@ } |
{ | ||
"name": "vap", | ||
"version": "3.8.176", | ||
"version": "3.8.177", | ||
"description": "vap - framework for webapps, support micro-service(base on vap-base) and single-web-application(base on vap-base)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1965718
47497