(Translated by https://www.hiragana.jp/)
GitHub - zipeijun/vue-bounce: 禁用 iOS 平台橡皮筋效果的 Vue 插件
Skip to content

きんよう iOS 平台ひらだいとちかわすじ效果こうかてき Vue 插件

License

Notifications You must be signed in to change notification settings

zipeijun/vue-bounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-bounce

きんよう iOS とちかわすじ效果こうかてき Vue 插件

あんそう

$ npm install vue-bounce

使用しよう

  1. ざい main.js ちゅう导入插件
import Bounce from 'vue-bounce'

Vue.use(Bounce)
// or
Vue.use(Bounce, {
    name: 'directiveName' // 选参すうよう于覆盖指令名れいめい
})
  1. 使用しよう指令しれい

container 必须有明ありあけ确的高度こうどどう时要ゆう overflow: auto 下面かめん个简单的れい

<div class="container" v-bounce>
    ...scroll element
</div>
.container {
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

Tips: v-bounce 接受せつじゅさんすう true 开启 Bounce 效果こうかかけしょうある false きんよう Bounce。

License

MIT License

Copyright (c) 2019 あずさ姵君

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

きんよう iOS 平台ひらだいとちかわすじ效果こうかてき Vue 插件

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages