ronds-metadata 1.1.32 → 1.1.33
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-
|
17
|
+
* @LastEditTime: 2022-08-08 14:51:55
|
18
18
|
*/
|
19
19
|
import React from 'react';
|
20
20
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -223,7 +223,9 @@ function Index(props) {
|
|
223
223
|
options: httpOptions && httpOptions.length > 0 ? httpOptions : options,
|
224
224
|
showSearch: true,
|
225
225
|
filterOption: function filterOption(input, option) {
|
226
|
-
|
226
|
+
var _option$label;
|
227
|
+
|
228
|
+
return (option === null || option === void 0 ? void 0 : (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toString().indexOf(input)) >= 0;
|
227
229
|
},
|
228
230
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
229
231
|
return triggerNode.parentNode;
|