export interface AddOrEditMenuProps { visible: boolean; menu: Menu | null; onClose: () => void; onConfirm: () => void; }
const PersonList: React.FC<any> = (props: AddOrEditMenuProps) =>{}
限制了父子组件传值的类型
export interface AddOrEditMenuProps { visible: boolean; menu: Menu | null; onClose: () => void; onConfirm: () => void; }
const PersonList: React.FC<any> = (props: AddOrEditMenuProps) =>{}
限制了父子组件传值的类型