Quellcode durchsuchen

feat: 增加输入过滤项功能

lanjianrong vor 4 Jahren
Ursprung
Commit
1663ab36dd
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      src/pages/Statistic/components/OptionSelect.tsx

+ 2 - 1
src/pages/Statistic/components/OptionSelect.tsx

@@ -87,7 +87,8 @@ const OptionSelect: React.FC<OptionSelectProps> = ({ multiple = true, type, onCh
       className: 'min-w-180px',
       dropdownMatchSelectWidth: true,
       onChange: value => trySetOpIds(value),
-      treeDefaultExpandAll: true
+      treeDefaultExpandAll: true,
+      treeNodeFilterProp: 'title'
     }
     if ([statisticOptionMap.STAFF, statisticOptionMap.DEPARTMENT].includes(state.optionType)) {
       base.multiple = true