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

dog-icon

v1.0.3

Published

易于使用的图标组件

Downloads

9

Readme

图标库

易于使用的图标组件

命名规范

| 名称 | 值 | | ------------ | -------------- | | 库全称 | dog-icon | | 库简称 | dog | | 组件前缀 | dog- |

快速开始

1. 安装

npm i dog-icon

或者

yarn add dog-icon

2. 使用

  1. 在检索页面上选择需要使用的图标

  2. 复制组件代码

  3. 在页面中贴入代码,示例如下:

按需引用(推荐)

 <!--在组件中使用-->
 <DogExcel theme="outline" size="32" fill='#333' />
import {DogExcel} from 'dog-icon'
export default{
  components:{
    DogExcel
  }
}

全局引用

// 在main.js中进行全局引入
import dogIcon from 'dog-icon'
Vue.use(dogIcon)
 <!--在组件中使用-->
 <DogExcel theme="outline" size="32" fill='#333' />

属性

| 属性 | 类型 | 默认值| 说明 | | :------------ | :------------: | :------------:| :------------ | | theme | String | outline | 图标的主题,一共四个主题,分别为:outline[线条],filled[填充],two-tone[双色],multi-color[多色]| | size | String | 32px |图标大小,可配置px,em,rem等类型的尺寸 | fill | String or Array | #333 | 图标的颜色,除主题outline设置为字符串类外,其他均为数组 |strokeWidth|Number|2|图标线条的宽度| |strokeLinecap|String|round|路径两端的形状,可选值:round (圆角),butt (紧贴),square(直角)| |strokeLinejoin|String|round|路径的转角处使用的形状,可选值:round(圆角),miter(锐角),bevel(钝角)| |spin| Boolean |false|设定图标是否旋转|