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

file-icons-vue

v1.2.7

Published

file-icons-vue,为 Vue.js 项目提供文件图标的npm依赖库。file-icons-vue, a npm dependency package that provides file icons for Vue.js projects.

Downloads

22

Readme

file-icons-vue

file-icons-vue,为 Vue.js 项目提供文件图标的npm依赖库

file-icons-vue, a npm dependency package that provides file icons for Vue.js projects.

作者:zyyzyykk

源代码:https://github.com/zyyzyykk/file-icons-vue

npm地址:https://www.npmjs.com/package/file-icons-vue

更新时间:2024-04-29

快速引入

1.安装依赖:建议安装最新版

# 全部图标
npm i file-icons-vue
# 常用图标
npm i file-icons-vue-min

2.在vue3项目中引入组件:

<template>
  <FileIcons 
     name="test.txt" width="30" height="30" 
     :isFolder="false" :style="{'float':'right'}" 
  />
</template>

<script>
// 引入文件图标组件
import FileIcons from 'file-icons-vue';

export default {
  name: 'App',
  components: {
    FileIcons
  }
}
</script>

<style>
</style>

🛸 预览

预览

💡 功能说明

1.file-icons-vue 是一个用于展示文件后缀对应图标的vue3组件,已打包并发布在npm仓库中。file-icons-vue提供了丰富的图标集,包括常见的文件类型和扩展名,用于增强项目的可视化效果

2.组件接收的props参数:

| 参数名 | 类型 | 含义 | 说明 | | -------- | ------- | -------------- | ----------------------------------------- | | name | String | 文件全名称 | 必传 | | width | String | 图标宽度(px) | 默认值为20px | | height | String | 图标高度(px) | 默认值为20px | | style | Object | 图标自定义样式 | 对象中的宽高属性会覆盖上面的width、height | | isFolder | Boolean | 是否为文件夹 | 默认值为false |

3.file-icons-vue 包含的全部图标:

file-icons-vue的所有图标-1

file-icons-vue的所有图标-2

4.file-icons-vue-min 包含的常用图标:

file-icons-vue-min的所有图标

👨‍💻 更新记录

[email protected] :latest

新增 .dot.env.mk.tgz 图标

[email protected]

纠正组件props参数的拼写错误:由 isFloder 修改为 isFolder

[email protected]

新增 .dtd.ppa.pwz.ras.vdx.vsd.wiz.wmv.wsdl.xhtml.xsl 图标

[email protected]

props参数变为响应式,例如当文件名改变时会自动变成对应图标

历史更新记录

🏘️ 关于此项目

作者:zyyzyykk

欢迎对此项目提出宝贵的意见或建议,也可以加入我们一起进行此项目的维护与开发