Skip to content

Commit

Permalink
fix(back-top): add inheritAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Jun 16, 2022
1 parent 27eb0ea commit cce45e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/varlet-ui/src/back-top/BackTop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
right: toSizeUnit(right),
bottom: toSizeUnit(bottom),
}"
v-bind="$attrs"
@click.stop="click"
>
<slot>
Expand Down Expand Up @@ -35,6 +36,7 @@ export default defineComponent({
VarButton,
VarIcon,
},
inheritAttrs: false,
props,
setup(props) {
const show: Ref<boolean> = ref(false)
Expand Down

0 comments on commit cce45e2

Please sign in to comment.