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

xinyin_ui

v1.1.7

Published

公共组件

Downloads

335

Readme

新印科技公共组件

安装

npm install xinyin_common -S

公共组件列表

1. single-upload 单文件上传
single-upload 参数列表
  • value String 图片 URL
  • name String 文件名称
  • disabled boolean 是否可编辑
  • tips String 图片文件提示信息
  • fileSize 数组 大小限制 默认: [10, 'mb'],支持 kb: [300, 'kb']
  • fileType 数组 类型限制 默认:['jpeg', 'jpg', 'png']
事件回调
  • input String 图片 url
案例
<single-upload v-model="url" name="file.png" />
2. upload-file 多文件上传
upload-file 参数列表
  • limit number 数量限制 默认:1
  • fileType array 文件类型限制 默认:[],支持文件范围:['doc', 'docx', 'xls', 'xlsx', 'pdf', 'PDF', 'jpg', 'eml', 'mp4']
  • btnText array 上传按钮显示的文字 默认:['选取文件', '上传']
  • loadingText String 上传中文字显示 默认:处理中...
  • fileSize array 文件大小限制 默认:[5,'mb'],支持 mb 和 kb:[300, 'kb']
  • listType String 图片展示方式 默认:picture,枚举值:text,picture,picture-card
  • initFileList array 初始文件列表,默认:[], 写法参考:[{name:'file.png',url:'xxx',type:'png'}]
事件回调
  • removeFile 参数:index 文件在 fileList 中的索引位置
  • uploadSuccess 参数:fileList 返回多个图片集合数组
案例
 <upload-file :limit="1" :file-size="fileSizePicture" :file-type="fileTypePicture" :btn-text="btnTextPicture" :list-type="listTypePicture" :init-file-list="fileList" :loading-text="loadingTextPicture" :name="'file-name'" @removeFile="removeFile" @uploadSuccess="uploadSuccess" />
3. link-upload 链接文件上传
link-upload 参数列表
  • fileType array 文件类型 默认:['png', 'jpeg', 'jpg', 'gif']
  • fileSize array 文件大小限制 默认:[10,'mb'],支持 kb
事件回调
  • uploadSuccess 参数:url 上传成功后的图片 url
案例
<link-upload @uploadSuccess="avatarUpload" />
4. button-upload 按钮上传
button-upload 参数列表
  • visibleFileList Boolean 是否显示上传的文件列表,只支持单文件
  • text String 上传按钮显示文字 默认:上传附件
  • flag Object 回传对象 默认 null
  • fileType Array 支持的文件类型 默认: ['doc', 'docx', 'pdf']
  • fileSize Array 文件限制大小 [10, 'mb']或者[100, 'kb'] 默认:[10, 'mb']
  • target String 文件功能类型 'ali'、'aliFixed'、'yzxAli'、'drive'
  • fullPath String 文件上传完整路径,带文件名
  • cssStyle Object 按钮样式
  • multiple Boolean 是否多传
  • policy Object 阿里云 policy
  • isBackName Boolean 是否回传文件名