升级package, 以及更新声明文件
This commit is contained in:
50
miniprogram/miniprogram_npm/tdesign-miniprogram/popover/popover.d.ts
vendored
Normal file
50
miniprogram/miniprogram_npm/tdesign-miniprogram/popover/popover.d.ts
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import { TdPopoverProps } from './type';
|
||||
import { SuperComponent } from '../common/src/index';
|
||||
export interface PopoverProps extends TdPopoverProps {
|
||||
}
|
||||
export default class Popover extends SuperComponent {
|
||||
behaviors: string[];
|
||||
externalClasses: string[];
|
||||
options: {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
properties: TdPopoverProps;
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
_placement: string;
|
||||
contentStyle: string;
|
||||
arrowStyle: string;
|
||||
};
|
||||
controlledProps: {
|
||||
key: string;
|
||||
event: string;
|
||||
}[];
|
||||
observers: {
|
||||
visible(val: boolean): void;
|
||||
'placement, realVisible'(v: boolean): void;
|
||||
};
|
||||
methods: {
|
||||
onScroll(): void;
|
||||
updateVisible(visible: boolean): void;
|
||||
onOverlayTap(): void;
|
||||
getToward(placement: string): {
|
||||
isHorizontal: string;
|
||||
isVertical: string;
|
||||
isBase: string;
|
||||
isEnd: boolean;
|
||||
};
|
||||
calcArrowStyle(placement: string, contentDom: any, popoverDom: any): string;
|
||||
calcContentPosition(placement: string, triggerRect: any, contentRect: any): {
|
||||
top: number;
|
||||
left: number;
|
||||
};
|
||||
alignCrossAxis(start: number, triggerSize: number, contentSize: number, align: 'start' | 'end' | 'center'): number;
|
||||
calcPlacement(isFixed: boolean, placement: string, triggerRect: any, contentRect: any): Promise<{
|
||||
placement: string;
|
||||
top: number;
|
||||
left: number;
|
||||
}>;
|
||||
computePosition(): Promise<void>;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user