Nav.tsx 816 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Space, Select } from "antd";
  2. const NavWidget = () => {
  3. return (
  4. <div>
  5. <Space orientation="vertical">
  6. <Select
  7. defaultValue="current"
  8. style={{ width: "100%" }}
  9. onChange={(value: string) => {
  10. console.log(`selected ${value}`);
  11. }}
  12. options={[
  13. {
  14. value: "book-mark",
  15. label: "书签",
  16. },
  17. {
  18. value: "tag",
  19. label: "标签",
  20. },
  21. {
  22. value: "suggestion",
  23. label: "修改建议",
  24. },
  25. {
  26. value: "qa",
  27. label: "问答",
  28. },
  29. ]}
  30. />
  31. <div>搜索结果</div>
  32. </Space>
  33. </div>
  34. );
  35. };
  36. export default NavWidget;