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

@jt-icons/icon-vue-components

v1.1.39

Published

Vue components of JT Icons collection.

Downloads

3

Readme

icon-vue-components

简介

icon-vue-components是一个让开发者以组件的形式使用图标的图标组件库,类似于element-plus-icon ,如果阅读了这两个项目的源码会发现在打包部分是参考了element-plus-icon。目前仅支持 vue 项目使用

开发这个项目的初衷是不满足于element-plus-icon提供的有限的 svg 图标,同时为了内网部署考虑也没有使用类似 icon-font 等在线图标库,一般情况下我们手动将需要使用到的图标放在项目内部便可,但是当我们项目变得庞大的同时,与产品经理/UI 的交流也变得多了起来,因为他们要将合适的图标通过聊天软件发给你,之后需要你复制粘贴到项目中,当你在另一个项目中也想要使用某个图标的时候,继续复制粘贴?很明显这样是很影响开发效率的,基于这一点icon-vue-componentselement-plus-icon的基础上提供了上传图标的入口,我们仅需要更新我们的 npm 依赖便可使用到本来需要大费周折才能使用到的图标

注意:icon-vue-components本身不提供任何图标(测试图标除外)

安装

npm i @jt-icons/icon-vue-components

使用

JticonPassword是使用者(一般是产品或者 UI)上传的 svg 文件,password.svg,我们将其对应的 vue 组件的名称命名为前缀+文件名的格式,例如这里的前缀为 Jticon

<template>
  <JticonPassword />
</template>

<script setup>
import { JticonPassword } from '@jt-icons/icon-vue-components'
</script>