Socket
Book a DemoInstallSign in
Socket

el-backtop

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

el-backtop

A vue backtop component

0.0.1
latest
npmnpm
Version published
Maintainers
1
Created
Source

el-backtop

一个基于 vue2.x 版本的回到顶部组件,API 跟 element-ui 保持一致。

引入 el-backtop

在 main.js 中写入以下内容:

import Vue from "vue";
import ElBacktop from "el-backtop";

Vue.use(ElBacktop);

在 vue 文件中使用:

<template>
  <div>
    <el-backtop></el-backtop>
  </div>
</template>
参数说明类型默认值
target触发滚动的对象stringdocument.documentElement
visibility-height滚动高度达到此参数值才出现number200
right控制其显示位置, 距离页面右边距number40
bottom控制其显示位置, 距离页面底部距离number40

API 文档

Keywords

backtop

FAQs

Package last updated on 19 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.