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

@riil-frontend/component-file-import-com

v1.0.5

Published

intro component

Downloads

27

Readme

导入组件

@riil-frontend/component-file-import

导入组件

CHANGE LOG

  • 2021-11-15 发布v1.0.1版 修改五边形样式问题

导入弹框API

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ------ | ---- | ---- | ---- | ------ | ---- | |visible|打开导入弹框|否|Boolean |false|| |mode|单模版模式和多模版模式切换|否|Enum|single|multiple:多模版下载 ,single:单模版下载| |title| 弹框标题 | 否|string|导入|| |templateText|弹框提示文字|否|string|请先下载模板,需要依照模板导入,否则会失败。|| |buttonText|下载模版按钮文字|否|string|下载模板|| |listType|上传列表的样式|否|Enum|-|上传列表的样式 可选值:'text'(文字)'image'(图文)'card'(卡片)| |accept|接受上传的文件类型 (image/png, image/jpg, .doc, .ppt) 详见 input accept attribute https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-accept |否|string|-|| |draggerText|拖拽框的提示文字 |否|string|点击此处选择文件或将文件拖拽至此处|| |draggerHint|文件格式提示文字 |否|string|仅xls、xlsx支持格式的文件|| |draggerError|文件上传失败校验文字 |否|string|-|| |selectedValues|已选择的值 |否|Array|[]|| |downloadTemplate|点击下载按钮 |否|Func|(selectedValues)=>{}|| |uploadProps|上传组件的属性 详见: https://fusion.design/50512/component/upload |否|{}|| |downLoadButtonProps|按钮属性透传|否|Object|{}|| |selectProps|select组件属性透传|否|Object|{}||

导入TipAPI

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ------ | ---- | ---- | ---- | ------ | ---- |visible|是否显示tip|否|Boolean|false|| |type|tip类型 |否|Enum|-|importing:导入中、success:导入成功、fail:导入失败、noData:无数数据| |title|tip头部|否|string|-|-| |content|内容区域|否|string|-|-| |actionDesc|内容区域可点击文字内容|否|string|-|-| |action|内容区域可点击文字回调方法|否|function|()=>{}|-| |closeable|是否打开关闭按钮|否|function|true|-| |onClose|点击关闭按钮|否|function|-|-|