Explorar el Código

feat: 增加输入过滤项功能

lanjianrong hace 4 años
padre
commit
1663ab36dd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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