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

yqy-upload

v1.4.1

Published

A Vue.js project

Readme

yqy-upload组件是基于耀企云库项目2次开发的一个上传图片组件

安装yqy-upload

命令行进入项目根目录执行下面命令,安装最新稳定版,当然你也可以指定版本号安装对应版本

$ npm install yqy-upload

在项目中引入并使用 yqy-upload 组件

在 main.js 中写入以下内容:

// 当前位置 main.js

import Vue from 'vue'
import yqyUpload from 'yqy-upload'
import App from './App.vue'

Vue.use(yqyUpload)

new Vue({
  el: '#app',
  render: h => h(App)
})

在页面中使用

由于在 main.js 入口文件出全局引入并启用了 yqyUpload 组件,所以在项目下所有的 vue 页面中, 都可以直接使用。

<yqy-upload
  v-for="(item, key) in uploadImageObj"
  :key="key"
  :param="key"
  :image.sync="item.image"
  :name="item.certificate_name"
  :API_URL="API_URL"
  :accessToken="accessToken"
  class="upload-item"
  @listenToChildEvent="getUploadInfo"
></yqy-upload>

属性

accessToken

必传 类型 String 描述:用户登录后的token,用于上传接口

API_URL

必传 类型 String 描述:当前api的环境

name

必传 类型 String 描述:上传组件的名称展示

image

非必传 类型 String 描述:上传组件的图片展示

param

非必传 类型 String 描述:如果传了该字段,则返回@listenToChildEvent方法,此方法中返回了当前上传的参数

lookover

非必传 类型 Boolean 描述:是否只需要查看功能(传了该字段,则不显示上传功能,有图片时渲染,无图片时隐藏)

@listenToChildEvent

类型 Function 描述:返回当前上传可提交给后端的参数,示例:{ 'yljg_certificate': '/company/image/0/20210430104154_0_4226.jpeg' }

调用参数参考(对象中的key就是需要上传给后端的key)

this.uploadImageObj = {
  license_certificate: {certificate_name: '营业执照'},
  ypjy_certificate: {certificate_name: '药品经营许可证'},
  ylqx_certificate: {certificate_name: '医疗器械经营许可证'},
  spjy_certificate: {certificate_name: '食品经营许可证'},
  yljg_certificate:{certificate_name: '医疗机构执业许可证'},
  gsp_certificate: {certificate_name: 'GSP'},
  legal_person_idcard: {certificate_name: '法人身份证'},
  proxies: {certificate_name: '委托书'}
}