@beisen-platform/user-selector
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -838,7 +838,2 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
}, { | ||
key: "componentDidUpdate", | ||
value: function componentDidUpdate() { | ||
this.changeLen(); | ||
} | ||
}, { | ||
key: "componentDidMount", | ||
@@ -853,2 +848,11 @@ value: function componentDidMount() { | ||
}, { | ||
key: "componentDidUpdate", | ||
value: function componentDidUpdate(prevProps) { | ||
this.changeLen(); // 当结果发生增加时,滚动到底部,其他情况不变 | ||
if (prevProps.results && this.props.results && this.props.results.length > prevProps.results.length) { | ||
this.refs.usResultsCon.scrollTop = 99999; | ||
} | ||
} | ||
}, { | ||
key: "render", | ||
@@ -855,0 +859,0 @@ value: function render() { |
{ | ||
"name": "@beisen-platform/user-selector", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
101245
2507