wangwenzhang 6a3b460ac5 fix
2020-04-04 20:36:09 +08:00
fix
2020-04-04 20:36:09 +08:00
2020-04-03 16:34:17 +08:00
2020-04-03 16:34:17 +08:00
2020-04-03 16:34:17 +08:00
2020-04-03 16:34:17 +08:00
2020-04-03 16:34:17 +08:00
2020-04-03 15:48:18 +08:00
2020-04-04 20:34:09 +08:00
2020-04-03 18:30:46 +08:00
2020-04-03 16:34:17 +08:00
2020-04-03 18:30:46 +08:00

@hoc-element/affix

npm NPM

📌 将页面元素固定在可视范围内。

Environment Support

  • Vue 2.5.17

Install

npm install @hoc-element/affix

Quick Start

import Vue from 'vue'
import HocElementAffix from '@hoc-element/affix'

Vue.use(HocElementAffix)

Using

可选参数

字段 说明 类型 默认值
offsetTop 距离窗口顶部多少时开始固定 Number 0

Demo

<template>
  <hoc-el-affix
    :offsetTop="10"
  >
    <div class="demo"></div>
  </hoc-el-affix>
</template>
<style lang="scss" scoped>
  .demo {
    position: absolute;
    width: 150px;
    height: 300px;
    border: 1px solid red;
  }
</style>

Description
No description provided
Readme 555 KiB
Languages
JavaScript 52%
Vue 43.3%
HTML 3.2%
SCSS 1.5%