UNPKG

hy-app

Version:

修复上传提示功能

51 lines (48 loc) 1.25 kB
import type { CSSProperties } from 'vue' import type HyIconProps from '../hy-icon/typing' export default interface HyBackTopProps { /** * @description 返回顶部的形状,circle-圆形,square-方形 (默认 'circle' ) * */ mode?: HyApp.ShapeType /** * @description 自定义图标属性集合 * */ icon?: Partial<HyIconProps> /** * @description 提示文字 * */ text?: string /** * @description 返回顶部滚动时间 (默认 500) * */ duration?: number /** * @description 滚动距离 (默认 0 ) * */ scrollTop: number /** * @description 距离顶部多少距离显示,单位px (默认 400 ) * */ top?: number | string /** * @description 返回顶部按钮到底部的距离,单位px (默认 100 ) * */ bottom?: number | string /** * @description 返回顶部按钮到右边的距离,单位px (默认 20 ) * */ right?: number | string /** * @description 层级 (默认 888 ) * */ zIndex?: number /** * @description 定义需要用到的外部样式(默认{transform: "rotate(180deg)"}) * */ customStyle?: CSSProperties } export interface IBackTopEmit { /** 点击触发 */ (e: 'click'): void }