npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-picture-manager

v1.1.3

Published

A Vue.js project

Readme

vuePictureManager

该项目为图片管理插件,使用vue,element-ui,iconfont等技术进行构建。 demo(在源码的example目录下)

安装

npm install vue-picture-manager --save

引入

  • 页面直接引用
  <!--该项目依赖于vue,element-ui,如果您的项目已经引用过,可以不必再次引入-->
  <!--vue-->
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
  <!--element-ui-->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  
  <!--必须保证在vue和element-ui的引入之后-->
  <!--vue-picture-manager-->
  <script src="../dist/vue-picture-manager.js"></script>
  • 脚手架导入
//ES6
import vuePictureManager from 'vue-picture-manager.js'
//require
var vuePictureManager =require(vuePictureManager)

Vue.use(vuePictureManager)

使用

参数

name | description | type --- | --- | --- upload-path | 上传接口地址 | String img-list | 图片列表 | Array

事件

name | description | param --- | --- | --- upload-response| 上传接口回调 | 上传接口返回的数据 delete | 删除的图片回调 | 删除的图片url selected | 选中的图片后,点击'确定'回调 | 选中的图片组成的数组

方法(使用方法时记得使用ref给组件注册引用)

  • show 打开图片管理器
this.$refs.XXX.show({
  defaultUrlList: [],  //默认选中的图片的地址数组
  ensureFun: function (res) {  //选中图片后点击'确定'的回调,返回选中的图片数组
    that.selectedList = res  
  }
});