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 🙏

© 2024 – Pkg Stats / Ryan Hefner

heart-upload

v1.1.4

Published

基于Element UI的文件上传组件,后端对应的是jeesite

Downloads

3

Readme

heart-upload

简介

基于Vue、Element UI的文件上传组件,后端对应的是jeestie,基本支持Element UI upload 组件的API

安装

yarn add heart-upload

使用

  1. 在main.js中引入
import Element from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
// 必须在Element UI之后引入
import Uploader from "heart-upload";
import "heart-upload/lib/heart-upload.css";

Vue.use(Element);
Vue.use(Uploader);
  1. 使用组件
<uploader  bizKey="1234567890" bizType="test-yi-xia" baseUrl="http://127.0.0.1:10086/sbos/a" token="e2dc400c760948be9660af3edb4d5925"/>

参数说明

| 参数名 | 数据类型 | 说明 | | --- | --- | --- | | bizKey | String | 附件对应业务的id(必须项) | | bizType | String | 附件对应业务类型,与后端约定好(必须项) | | baseUrl | String | 后端接口的前置地址(必须项) | | token | String | 用户令牌或sessionId(必须项) | | uploadButtonClass | String | 上传按钮的样式,指定此属性时,style标签不能时scoped | | tip | String | 显示在上传按钮下方的简单说明 | | layout | Array[String] | 设置文件列表布局,默认显示文件列表所有组件,可传入的值有:"progress"(进度条),"fileSize"(文件大小),"userName"(上传人),"uploadDate"(上传日期) |

本组件基本支持Element UI upload组件的API,所以可以根据Element UI upload组件的文档传入参数实现更多的个性化配置

当使用Element UI upload的参数时,参数名应使用驼峰式命名,如官方的show-file-list参数,应改成showFileList

但是heart-uploader组件并不支持以下参数:actionhttp-requestfile-liston-progressbefore-uploadon-successon-error

方法

| 名称 | 说明 | | --- | --- | | getFileList | 向后端发请求获取附件列表 | | clearFileList | 清空附件列表 |

共享地址

码云npm