@minto-ai/mt-ui
Version:
UI组件库
44 lines (43 loc) • 1.26 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
declare const backtopProps: {
/**
* 滚动高度达到此参数值才出现
*/
readonly visibilityHeight: {
readonly type: PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: 200;
};
/**
* 触发滚动的对象
*/
readonly target: {
readonly type: PropType<string | HTMLElement>;
readonly default: "";
};
/**
* 控制其显示位置,距离页面右边距
*/
readonly right: {
readonly type: PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: 60;
};
/**
* 控制其显示位置,距离页面底部距离
*/
readonly bottom: {
readonly type: PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: 60;
};
};
declare const backtopEmits: {
/**
* 点击按钮触发的事件
*/
click: (event: MouseEvent) => boolean;
};
export type BacktopProps = ExtractPropTypes<typeof backtopProps>;
export type BacktopEmits = typeof backtopEmits;
export { backtopEmits, backtopProps };