
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
基于Vue 2.x 封装的很轻量的scroller组件,具有下拉刷新、上拉加载更多的功能.
https://github.com/undo03/u-scroller
# install dependencies
npm install u-scroller -S
import Vue from 'vue'
import UScroller from 'u-scroller'
Vue.use(UScroller)
<u-scroller :onRefresh="onRefresh" :onInfinite="onInfinite">
<!-- html content -->
</u-scroller>
| 属性名 | 类型 | 默认值 | 是否必须 | 说明 |
|---|---|---|---|---|
| onRefresh | Function | 无 | 需要下拉刷新时,必须 | 刷新时执行的函数 |
| onInfinite | Function | 无 | 需要加载更多时,必须 | 加载更多是执行的函数 |
| enableRefresh | Boolean | true | 否 | 是否开启下拉刷新,默认开启 |
| enableInfinite | Boolean | true | 否 | 是否开启上拉加载,默认开启 |
| offset | Number | 100 | 否 | 触发下拉刷新的阈值 |
| noDataText | String | 没有更多数据了 | 否 | 没有更多数据时的提示语 |
| refreshText | String | 下拉刷新 | 否 | 下拉刷新提示 |
| freedRefreshText | String | 松开刷新数据 | 否 | 释放下拉提示语 |
| 插槽名 | 说明 |
|---|---|
| refresh | 刷新时的效果或文字 |
| load-more | 加载时的效果或文字 |
FAQs
基于Vue 2.x 封装的很轻量的scroller组件,具有下拉刷新、上拉加载更多的功能.
The npm package u-scroller receives a total of 7 weekly downloads. As such, u-scroller popularity was classified as not popular.
We found that u-scroller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.