From afc78bf33b6dc845bd9e39fb1d5614eebac68e1c Mon Sep 17 00:00:00 2001
From: bqy_fe <1743369777@qq.com>
Date: Sun, 20 Mar 2022 18:26:21 +0800
Subject: [PATCH] refactor(components): [backTop] refactor

---
 components/back-top/index.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/components/back-top/index.tsx b/components/back-top/index.tsx
index 05ee70a04a..ebaf6c53a3 100644
--- a/components/back-top/index.tsx
+++ b/components/back-top/index.tsx
@@ -29,13 +29,20 @@ export const backTopProps = {
   // visible: PropTypes.looseBool, // Only for test. Don't use it.
 };
 
+export const backTopEmits = {
+  click: (e: Event) => e instanceof Event,
+};
+export type BackTopEmits = typeof backTopEmits;
+
+export type BackTopInstance = InstanceType<typeof BackTop>;
+
 export type BackTopProps = Partial<ExtractPropTypes<typeof backTopProps>>;
 
 const BackTop = defineComponent({
   name: 'ABackTop',
   inheritAttrs: false,
   props: backTopProps,
-  emits: ['click'],
+  emits: backTopEmits,
   setup(props, { slots, attrs, emit }) {
     const { prefixCls, direction } = useConfigInject('back-top', props);
     const domRef = ref();