ronds-metadata 1.2.17 → 1.2.18
Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
34
34
|
/*
|
35
35
|
* @Author:wangxian
|
36
36
|
* @Date: 2021-09-18 14:15:04
|
37
|
-
* @LastEditTime: 2023-03-
|
37
|
+
* @LastEditTime: 2023-03-07 08:29:13
|
38
38
|
*/
|
39
39
|
import React from 'react';
|
40
40
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -433,6 +433,14 @@ function Index(props) {
|
|
433
433
|
|
434
434
|
return /*#__PURE__*/React.createElement(_TreeSelect, {
|
435
435
|
showSearch: true,
|
436
|
+
filterTreeNode: function filterTreeNode(input, treeNode) {
|
437
|
+
var _treeNode$label;
|
438
|
+
|
439
|
+
return (treeNode === null || treeNode === void 0 ? void 0 : (_treeNode$label = treeNode.label) === null || _treeNode$label === void 0 ? void 0 : _treeNode$label.toString().indexOf(input)) >= 0;
|
440
|
+
},
|
441
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
442
|
+
return triggerNode.parentNode;
|
443
|
+
},
|
436
444
|
multiple: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.isMutiple,
|
437
445
|
style: {
|
438
446
|
width: '100%'
|
@@ -442,6 +450,7 @@ function Index(props) {
|
|
442
450
|
overflow: 'auto'
|
443
451
|
},
|
444
452
|
treeData: treeData,
|
453
|
+
allowClear: true,
|
445
454
|
disabled: (_extraInfo$disabled2 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled2 !== void 0 ? _extraInfo$disabled2 : disabled,
|
446
455
|
placeholder: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.placeholder,
|
447
456
|
treeDefaultExpandAll: true,
|