@signalplus/params-about 1.0.5-alpha5 → 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.
Files changed (2) hide show
  1. package/lib/es/index.js +12 -3
  2. 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-12
4
- * Version: 1.0.5-alpha5
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.5-alpha5",
3
+ "version": "1.0.6-alpha1",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",