@signalplus/params-about 1.0.5 → 1.0.6-alpha1
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/lib/es/index.js +12 -3
- package/package.json +1 -1
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bundle of @signalplus/params-about
|
|
3
|
-
* Generated: 2023-05-
|
|
4
|
-
* Version: 1.0.
|
|
3
|
+
* Generated: 2023-05-19
|
|
4
|
+
* Version: 1.0.6-alpha1
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -1820,6 +1820,12 @@ var ParamRenderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
1820
1820
|
return ParamRenderer;
|
|
1821
1821
|
}(PureComponent);
|
|
1822
1822
|
|
|
1823
|
+
var filter = function filter(inputValue, path) {
|
|
1824
|
+
return path.some(function (option) {
|
|
1825
|
+
return option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
|
|
1826
|
+
});
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1823
1829
|
function ParentSelector(props) {
|
|
1824
1830
|
var options = useMemo(function () {
|
|
1825
1831
|
var _props$parentOptions;
|
|
@@ -1871,7 +1877,10 @@ function ParentSelector(props) {
|
|
|
1871
1877
|
|
|
1872
1878
|
return (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, val[val.length - 1]);
|
|
1873
1879
|
},
|
|
1874
|
-
changeOnSelect: true
|
|
1880
|
+
changeOnSelect: true,
|
|
1881
|
+
showSearch: {
|
|
1882
|
+
filter: filter
|
|
1883
|
+
}
|
|
1875
1884
|
});
|
|
1876
1885
|
}
|
|
1877
1886
|
|