比如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 {
}
}
网友评论