Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@albertisernalvarez/pulltorefresh-vue
Advanced tools
pull to refresh for Vue.js
^1.0.0
npm install pullToRefresh-vue
down: if open pull down to refresh function
up: if open pull up to loadmore function
addNew: refresh callback, used to refresh or insert data to the lists
addMore: loadmore callback, used to loadmore data to the lists
hasMore: if there has more data, used to show pull up icon or 'nomore' message
<template>
<PullToRefresh
:down="1"
:up="1"
:pulldownOffset="80"
:pullupOffset="20"
:addNew="addNew"
:addMore="addMore"
:hasMore="hasMore"
ref="wrapItems"
>
<div>here is the content of what you want to pull down to refresh or pull up to loadmore</div>
<div>may be some ul list</div>
</PullToRefresh>
</template>
<script>
import PullToRefresh from 'pulltorefresh-vue';
export default {
/* other code */
name: 'pullDemo',
methods: {
addNew() {
return new Promise((resolve, reject) => {
this.getNewData().then(() => {
resolve();
});
});
},
addMore() {
let self = this;
return new Promise((resolve, reject)=> {
this.getMoreData().then(() => {
resolve();
});
});
},
}
/* other code */
}
</script>
FAQs
vue 版本的 pull to refresh
We found that @albertisernalvarez/pulltorefresh-vue 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.