
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
vue-resumable
Advanced tools
这是一个vue上传组件,它支持多线程、分块上传及异常重试
与其他Vue插件一样,在项目目录安装插件
npm install vue-resumable
并在Vue入口文件 对插件进行注册
Vue.use(VueResumable)
之后可以在组件中使用该插件
以下参数用于随上传请求发出 目前不支持关闭
<template>
<div id="app">
<vue-resumable
inputId="up1"
name="up1-name"
:multiple="true"
:directory="false"
post-action=""
:promptly="false"
:thread="3"
@change="change"
:data="uploadData"
ref="resumable"
></vue-resumable>
<div>
<img v-for="img in imgList" :src="img.url" width="150">
</div>
<button @click="upload">upload</button>
</div>
</template>
<script>
export default {
data: function () {
return {
imgList: [],
uploadData: {memberId: 1}
}
},
methods: {
change: function () {
console.log('change')
let _self = this
let resumable = this.$refs.resumable
resumable.files.forEach(file => {
if (file.url) {
_self.imgList.push(file)
}
})
},
upload: function () {
console.log('App upload')
this.$refs.resumable.upload()
}
}
}
</script>
FAQs
这是一个vue上传组件,它支持多线程、分块上传及异常重试
The npm package vue-resumable receives a total of 23 weekly downloads. As such, vue-resumable popularity was classified as not popular.
We found that vue-resumable 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.