element-plus
Version:
A Component Library for Vue 3
61 lines (60 loc) • 1.54 kB
TypeScript
import type { ExtractPublicPropTypes } from 'vue';
export interface BacktopProps {
/**
* @description the button will not show until the scroll height reaches this value.
*/
visibilityHeight?: number;
/**
* @description the target to trigger scroll.
*/
target?: string;
/**
* @description right distance.
*/
right?: number;
/**
* @description bottom distance.
*/
bottom?: number;
}
/**
* @deprecated Removed after 3.0.0, Use `BacktopProps` instead.
*/
export declare const backtopProps: {
/**
* @description the button will not show until the scroll height reaches this value.
*/
readonly visibilityHeight: {
readonly type: NumberConstructor;
readonly default: 200;
};
/**
* @description the target to trigger scroll.
*/
readonly target: {
readonly type: StringConstructor;
readonly default: "";
};
/**
* @description right distance.
*/
readonly right: {
readonly type: NumberConstructor;
readonly default: 40;
};
/**
* @description bottom distance.
*/
readonly bottom: {
readonly type: NumberConstructor;
readonly default: 40;
};
};
/**
* @deprecated Removed after 3.0.0, Use `BacktopProps` instead.
*/
export type BacktopPropsPublic = ExtractPublicPropTypes<typeof backtopProps>;
export declare const backtopEmits: {
click: (evt: MouseEvent) => boolean;
};
export type BacktopEmits = typeof backtopEmits;