@kaiheila/ui-components 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-components.js +5 -2
- package/package.json +1 -1
package/dist/ui-components.js
CHANGED
|
@@ -2502,7 +2502,7 @@ if (true) {
|
|
|
2502
2502
|
/* 7 */
|
|
2503
2503
|
/***/ (function(module) {
|
|
2504
2504
|
|
|
2505
|
-
module.exports = JSON.parse("{\"name\":\"@kaiheila/ui-components\",\"version\":\"0.1.
|
|
2505
|
+
module.exports = JSON.parse("{\"name\":\"@kaiheila/ui-components\",\"version\":\"0.1.35\",\"description\":\"开黑啦 UI Components\",\"main\":\"dist/ui-components.js\",\"scripts\":{\"build\":\"webpack\",\"demo\":\"webpack-dev-server --config webpack.config.demo.js\"},\"keywords\":[\"UI\",\"Components\"],\"author\":\"yangchuan\",\"license\":\"ISC\",\"files\":[\"dist\"],\"devDependencies\":{\"@babel/core\":\"^7.15.5\",\"@babel/preset-env\":\"^7.15.6\",\"@babel/preset-react\":\"^7.14.5\",\"@webpack-cli/serve\":\"^1.6.0\",\"babel-loader\":\"^8.2.2\",\"classnames\":\"^2.3.1\",\"css-loader\":\"^2.1.1\",\"html-webpack-plugin\":\"^4.5.2\",\"less\":\"^4.1.2\",\"less-loader\":\"^5.0.0\",\"mini-css-extract-plugin\":\"^0.8.0\",\"prop-types\":\"^15.7.2\",\"react\":\"^18\",\"react-dom\":\"^18\",\"react-tooltip\":\"4.2.21\",\"style-loader\":\"^1.0.0\",\"url-loader\":\"^2.1.0\",\"webpack\":\"^4.40.2\",\"webpack-cli\":\"^3.3.1\",\"webpack-dev-server\":\"^3.2.1\"},\"peerDependencies\":{\"react\":\"^18\",\"react-dom\":\"^18\"},\"browserslist\":{\"production\":[\">0.2%\",\"not dead\",\"not op_mini all\"],\"development\":[\"last 1 chrome version\",\"last 1 firefox version\",\"last 1 safari version\"]}}");
|
|
2506
2506
|
|
|
2507
2507
|
/***/ }),
|
|
2508
2508
|
/* 8 */
|
|
@@ -4682,7 +4682,7 @@ class selector_search_SelectorSearch extends external_react_["Component"] {
|
|
|
4682
4682
|
}
|
|
4683
4683
|
event.stopPropagation();
|
|
4684
4684
|
event.nativeEvent.stopImmediatePropagation();
|
|
4685
|
-
let showList = !this.state.showList;
|
|
4685
|
+
let showList = this.props.allFocus ? true : !this.state.showList;
|
|
4686
4686
|
if (showList) {
|
|
4687
4687
|
this.inputRef.focus();
|
|
4688
4688
|
} else {
|
|
@@ -4702,6 +4702,9 @@ class selector_search_SelectorSearch extends external_react_["Component"] {
|
|
|
4702
4702
|
});
|
|
4703
4703
|
document.removeEventListener('click', this.hide);
|
|
4704
4704
|
}
|
|
4705
|
+
if (this.props.allFocus) {
|
|
4706
|
+
this.setFocus();
|
|
4707
|
+
}
|
|
4705
4708
|
});
|
|
4706
4709
|
selector_search_defineProperty(this, "select", (value, event) => {
|
|
4707
4710
|
const {
|