ActionIcon中的ref属性改为可选。
This commit is contained in:
		@@ -7,7 +7,7 @@ type ActionIconProps = {
 | 
				
			|||||||
  icon: IconProps['icon'];
 | 
					  icon: IconProps['icon'];
 | 
				
			||||||
  onClick?: MouseEventHandler<HTMLButtonElement>;
 | 
					  onClick?: MouseEventHandler<HTMLButtonElement>;
 | 
				
			||||||
  extendClassName?: HTMLButtonElement['className'];
 | 
					  extendClassName?: HTMLButtonElement['className'];
 | 
				
			||||||
  ref: RefObject<HTMLButtonElement>;
 | 
					  ref?: RefObject<HTMLButtonElement>;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function ActionIcon({ icon, onClick, extendClassName, ref }: ActionIconProps) {
 | 
					export function ActionIcon({ icon, onClick, extendClassName, ref }: ActionIconProps) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user