--- order: 22 title: zh-CN: 隐藏已选择选项 en-US: Hide Already Selected --- ## zh-CN 隐藏下拉列表中已选择的选项。 ## en-US Hide already selected options in the dropdown. ```tsx import React, { useState } from 'react'; import { Select } from 'antd'; const OPTIONS = ['Apples', 'Nails', 'Bananas', 'Helicopters']; const App: React.FC = () => { const [selectedItems, setSelectedItems] = useState([]); const filteredOptions = OPTIONS.filter(o => !selectedItems.includes(o)); return ( ); }; export default App; ```