Comparing version 1.0.7 to 1.0.8
@@ -46,2 +46,3 @@ "use strict"; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.linked = {}; | ||
_this.state = { | ||
@@ -139,7 +140,10 @@ columns: [] | ||
} | ||
if (link_1.onload && this.props.data[column.field]) { | ||
if (this.props.data[link_1.field]) { | ||
if ((!_.has(this.linked, link_1.field)) && this.props.show && link_1.onload && this.props.data[column.field]) { | ||
this.linked[link_1.field] = true; | ||
if (_.trim('' + this.props.data[link_1.field]) !== '') { | ||
callBack_1(this.props.data[column.field], false); | ||
} | ||
callBack_1(this.props.data[column.field]); | ||
else { | ||
callBack_1(this.props.data[column.field]); | ||
} | ||
} | ||
@@ -366,3 +370,3 @@ } | ||
return (React.createElement(antd_1.Modal, __assign({}, this.props, { onOk: function () { return _this.submit(); } }), | ||
React.createElement(DataFrom, { data: this.props.data, columns: columns, ref: "modalfrom" }))); | ||
React.createElement(DataFrom, { data: this.props.data, columns: columns, show: this.props.visible, ref: "modalfrom" }))); | ||
}; | ||
@@ -369,0 +373,0 @@ return FromModal; |
{ | ||
"name": "vap", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "vap", | ||
@@ -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
64231
1601