{"version":3,"file":"backtop.mjs","names":[],"sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPublicPropTypes } from 'vue'\n\nexport interface BacktopProps {\n  /**\n   * @description the button will not show until the scroll height reaches this value.\n   */\n  visibilityHeight?: number\n  /**\n   * @description the target to trigger scroll.\n   */\n  target?: string\n  /**\n   * @description right distance.\n   */\n  right?: number\n  /**\n   * @description bottom distance.\n   */\n  bottom?: number\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `BacktopProps` instead.\n */\nexport const backtopProps = {\n  /**\n   * @description the button will not show until the scroll height reaches this value.\n   */\n  visibilityHeight: {\n    type: Number,\n    default: 200,\n  },\n  /**\n   * @description the target to trigger scroll.\n   */\n  target: {\n    type: String,\n    default: '',\n  },\n  /**\n   * @description right distance.\n   */\n  right: {\n    type: Number,\n    default: 40,\n  },\n  /**\n   * @description bottom distance.\n   */\n  bottom: {\n    type: Number,\n    default: 40,\n  },\n} as const\n\n/**\n * @deprecated Removed after 3.0.0, Use `BacktopProps` instead.\n */\nexport type BacktopPropsPublic = ExtractPublicPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n  click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"mappings":";;;;AAwBA,MAAa,eAAe;CAI1B,kBAAkB;EAChB,MAAM;EACN,SAAS;EACV;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CAID,OAAO;EACL,MAAM;EACN,SAAS;EACV;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACF;AAOD,MAAa,eAAe,EAC1B,QAAQ,QAAoB,eAAe,YAC5C"}