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

tnuiv3p-tn-cool-icon

v1.0.1

Published

TuniaoUI vue3 uniapp 插件

Downloads

38

Readme

图鸟 UI vue3 uniapp Plugins - 酷炫图标

TuniaoUI vue3 uniapp

Tuniao UI vue3官方仓库

该组件一般用于展示图标用作丰富内容的场景

组件安装

npm i tnuiv3p-tn-cool-icon

组件位置

tnuiv3p-tn-cool-icon/index.vue

平台差异说明

| App(vue) | H5 | 微信小程序 | 支付宝小程序 | ... | | :------: | :-: | :--------: | :----------: | :----: | | √ | √ | √ | √ | 适配中 |

基础使用

  • 通过name传入图标的名称
<template>
  <TnCoolIcon name="logo-tuniao" />
</template>

修改显示图标背景样式

  • 通过type设置图标背景模式
  • 通过color可以设置图标的颜色,如果是以gradient开头的颜色,可以设置渐变色
  • 通过bg-color可以设置背景颜色

在不同的模式下,colorbg-color的作用不同

新拟态 - mimic (默认)

  • type设置为mimic可以将图标设置为新拟态风格,在该模式下只有color的设置生效,bg-color不生效
<template>
  <TnCoolIcon name="logo-tuniao" type="mimic" color="tn-red" />
</template>
<template>
  <TnCoolIcon name="logo-tuniao" type="mimic" color="gradient__cool-5" />
</template>

圆形 - circle

  • type设置为circle可以将图标设置为圆形风格,在该模式下colorbg-color都生效
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="circle"
    bg-color="tn-indigo"
    color="tn-white"
  />
</template>
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="circle"
    bg-color="gradient__cool-1"
    color="tn-white"
  />
</template>

椭圆 - oval

  • type设置为oval可以将图标设置为椭圆风格,在该模式下colorbg-color都生效
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="oval"
    bg-color="tn-indigo"
    color="tn-white"
  />
</template>
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="oval"
    bg-color="gradient__cool-1"
    color="tn-white"
  />
</template>

方形 - square

  • type设置为square可以将图标设置为方形风格,在该模式下colorbg-color都生效
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="square"
    bg-color="tn-indigo"
    color="tn-white"
  />
</template>
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="square"
    bg-color="gradient__cool-1"
    color="tn-white"
  />
</template>

三角形 - triangle

  • type设置为triangle可以将图标设置为三角形风格,在该模式下colorbg-color都生效
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="triangle"
    bg-color="tn-indigo"
    color="tn-white"
  />
</template>
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="triangle"
    bg-color="gradient__cool-1"
    color="tn-white"
  />
</template>

胶囊 - capsule

  • type设置为capsule可以将图标设置为胶囊风格,在该模式下colorbg-color都生效
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="capsule"
    bg-color="tn-indigo"
    color="tn-white"
  />
</template>
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="capsule"
    bg-color="gradient__cool-1"
    color="tn-white"
  />
</template>

暗黑金边 - dark-goldborder

  • type设置为dark-goldborder可以将图标设置为暗黑金边风格,在该模式下colorbg-color都不生效
<template>
  <TnCoolIcon name="logo-tuniao" type="dark-goldborder" />
</template>
<template>
  <TnCoolIcon name="logo-tuniao" type="dark-goldborder" />
</template>

花朵 - flower

  • type设置为flower可以将图标设置为花朵风格,在该模式下colorbg-color都生效
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="flower"
    bg-color="tn-indigo"
    color="tn-white"
  />
</template>
<template>
  <TnCoolIcon
    name="logo-tuniao"
    type="flower"
    bg-color="gradient__cool-1"
    color="tn-white"
  />
</template>

API

Props

| 参数 | 说明 | 类型 | 默认值 | 可选值 | | -------- | ------------------------------------------------------------ | ------ | ------- | ------------------------------------------------------------ | | name | 图标名称 | String | - | 图标 | | color | 图标颜色,具体模式允许设置的说明可查看上方说明,以tn开头使用图鸟内置的text颜色,如果是gradient开头则使用图鸟内置的渐变色 | String | - | - | | bg-color | 背景颜色,具体模式允许设置的说明可查看上方说明,以tn开头使用图鸟内置的颜色 | String | - | - | | size | 图标尺寸,默认单位为rpx | String | 100 | - | | type | 图标背景类型 | String | minic | circle \ square \ oval \ triangle \ flower \ capsule \ dark-goldborder |

Event

| 事件名 | 说明 | 回调参数 | | ------ | -------------- | -------- | | click | 点击图标时触发 | - |