ronds-metadata 1.1.22 → 1.1.23

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.
@@ -14,7 +14,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
14
14
  /*
15
15
  * @Author:wangxian
16
16
  * @Date: 2021-09-18 14:15:04
17
- * @LastEditTime: 2022-05-23 16:51:06
17
+ * @LastEditTime: 2022-07-04 15:54:53
18
18
  */
19
19
  import React from 'react';
20
20
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -221,6 +221,10 @@ function Index(props) {
221
221
  disabled: (_extraInfo$disabled = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled !== void 0 ? _extraInfo$disabled : disabled,
222
222
  placeholder: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.placeholder,
223
223
  options: httpOptions && httpOptions.length > 0 ? httpOptions : options,
224
+ showSearch: true,
225
+ filterOption: function filterOption(input, option) {
226
+ return (option === null || option === void 0 ? void 0 : option.label.indexOf(input)) >= 0;
227
+ },
224
228
  getPopupContainer: function getPopupContainer(triggerNode) {
225
229
  return triggerNode.parentNode;
226
230
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.1.22",
4
+ "version": "1.1.23",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",