31 lines
852 B
TypeScript
31 lines
852 B
TypeScript
import { SuperComponent } from '../common/src/index';
|
|
import type { TdStickyProps } from './type';
|
|
export interface StickyProps extends TdStickyProps {
|
|
}
|
|
export default class Sticky extends SuperComponent {
|
|
externalClasses: string[];
|
|
properties: TdStickyProps;
|
|
behaviors: string[];
|
|
observers: {
|
|
'offsetTop, disabled, container'(): void;
|
|
};
|
|
data: {
|
|
prefix: string;
|
|
classPrefix: string;
|
|
containerStyle: string;
|
|
contentStyle: string;
|
|
};
|
|
ready(): void;
|
|
methods: {
|
|
onScroll(event?: {
|
|
scrollTop: number;
|
|
}): void;
|
|
setDataAfterDiff(data: {
|
|
isFixed: boolean;
|
|
height?: number;
|
|
transform?: number;
|
|
}): void;
|
|
getContainerRect(): Promise<WechatMiniprogram.BoundingClientRectCallbackResult>;
|
|
};
|
|
}
|