|  |  | 
 |  |  |     const { setFilters } = useListContext(); // 获取列表上下文 | 
 |  |  |     const [selectedOption, setSelectedOption] = useState(null); | 
 |  |  |     const [treeData, setTreeData] = useState([]); | 
 |  |  |     const [defaultIds, setDefaultIds] = useState(['29']); | 
 |  |  |     const [defaultIds, setDefaultIds] = useState(['65']); | 
 |  |  |     const [condition, setCondition] = useState(''); | 
 |  |  |  | 
 |  |  |     const haveChildren = (item) => { | 
 |  |  | 
 |  |  |                 border: theme.palette.mode === 'light' && '1px solid #e0e0e3', | 
 |  |  |                 width: 250, | 
 |  |  |                 minWidth: 150, | 
 |  |  |                 height: `calc(100% - 120px)`, | 
 |  |  |                 height: `100%`, | 
 |  |  |             }} | 
 |  |  |         > | 
 |  |  |             <CardContent> | 
 |  |  |                 <Input | 
 |  |  |                     placeholder="搜索物料分区" | 
 |  |  |                     placeholder="搜索物料分组" | 
 |  |  |                     sx={{ '--Input-focused': 1, marginBottom: '10px' }} | 
 |  |  |                     onChange={handleSearch} | 
 |  |  |                 /> |