import React, { useState } from 'react'; import type { CascaderProps } from 'antd'; import { Cascader } from 'antd'; interface Option { value?: string | number | null; label: React.ReactNode; children?: Option[]; isLeaf?: boolean; } const optionLists: Option[] = [ { value: 'zhejiang', label: 'Zhejiang', isLeaf: false, }, { value: 'jiangsu', label: 'Jiangsu', isLeaf: false, }, ]; const App: React.FC = () => { const [options, setOptions] = useState(optionLists); const onChange: CascaderProps