比如antd-mobile?
官方文檔 Popover 組件?
屬性報錯
TS2769: No overload matches this call.
? Overload 1 of 2, '(props: Readonly<PopOverPropsType>): Popover', gave the following error.
? ? Type '{ offset: number[]; }' is not assignable to type '{ overflow: { adjustY: number; adjustX: number; }; }'.
? ? ? Object literal may only specify known properties, and 'offset' does not exist in type '{ overflow: { adjustY: number; adjustX: number; }; }'.
? Overload 2 of 2, '(props: PopOverPropsType, context?: any): Popover', gave the following error.
? ? Type '{ offset: number[]; }' is not assignable to type '{ overflow: { adjustY: number; adjustX: number; }; }'.
? ? ? Object literal may only specify known properties, and 'offset' does not exist in type '{ overflow: { adjustY: number; adjustX: number; }; }'.
import?{PopOverPropsType}?from?"antd-mobile/lib/popover";
import?{ITooltipProps}?from?'rmc-tooltip/lib/Tooltip'?
declare?module?"antd-mobile/lib/popover"?{? ? ? ? ? ? ? ? ?
? export?interface?PopOverPropsType?extends?ITooltipProps?{
? ?}
}