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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mu-vue-plugin

v0.2.8

Published

mu-vue-plugin

Downloads

135

Readme

mu-vue-plugin

mu-vue-plugin

安装启动

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run start

# build for production and publish
npm run pub

使用方式

  1. 安装插件
npm install mu-vue-plugin
  1. 在项目中引入,main.js文件中添加
import muVuePlugin from 'mu-vue-plugin'
Vue.use(muVuePlugin)

一、 文件上传至七牛云插件

使用示例:

<mu-upload-file
  ref="muUpload"
  :upload-params="uploadParams"
  :style-name="uploadOption.styleName"
  :auto-upload="uploadOption.autoUpload"
  :limit="uploadOption.limit"
  :max-size="uploadOption.maxSize"
  :show-file-list="uploadOption.showFileList"
  @tokenError="tokenError"
  @uploadSuccess="uploadSuccess"
  @uploadError="uploadError"
  @deleteSuccess="deleteSuccess"></mu-upload-file>

参数说明:

| 参数名 | 说明 | 类型 | 是否必填 | 可选值 | 默认值 | | --- | --- | --- | --- | --- | --- | | upload-params | 上传文件所需的token和domain | Object | 是 | - | {"token": "EMKHAX8lWY7alVKPuitIWS4IisNMZBGRTjS36aOH:","domain": "https://qnoutbucket.immatchu.com/"} | | style-name | 上传按钮类型 | String | 否 | btn-style, picture-style | btn-style | | auto-upload | 选择文件后是否自动上传 | Boolean | 否 | - | false | | file-type | 文件类型限制 | String | 否 | picture, excel, word, pdf, video | - | | limit | 一次上传文件个数限制 | Number | 否 | - | 1 | | max-size | 上传的每个文件最大体积,单位为KB | String | 否 | - | 4000 | | show-file-list | 是否显示上传的文件列表 | Boolean | 否 | - | true |

函数参数说明:

| 参数 | 说明 | 回调参数类型 | 回调参数示例 | | --- | --- | --- | --- | | tokenError | 缺少上传使用的token参数或token已失效 | String | token不可用 | | uploadSuccess | 文件上传成功回调,参数是上传成功的文件信息 | Array | [{"url": "https://qnoutbucket.immatchu.com/2019_4_11_98086e9a-9bf8-4752-91ea-8d49a4b412da.jpg", "uniqueName": "2019_4_11_98086e9a-9bf8-4752-91ea-8d49a4b412da.jpg", "size":"10014"}] | | uploadError | 文件上传失败回调,参数是失败原因 | String | 文件大小超过限制,上传失败 | | deleteSuccess | 文件删除回调,参数是已经删除的文件链接 | String | https://qnoutbucket.immatchu.com/2019_4_11_98086e9a-9bf8-4752-91ea-8d49a4b412da.jpg |

方法说明:

| 方法名 | 说明 | 传参 | | ------------- | ------------- | ------------- | | startUpload | 手动开始对已经选择文件列表进行上传操作 | - | | deleteFile | 删除指定文件 | 文件url |