pr-icon
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

基于 vue3 封装的一个图标库。

使用方法

npm i pr-icon

全局引入

import PrIcon from 'pr-icon'
app.use(PrIcon)

按需引入

import { PrIcon } from 'pr-icon'
<div id="app">
  <pr-icon></pr-icon>
</div>

参数设置

const props = defineProps({
  // 图标名称
  name: {
    type: [String],
    default: () => 'pryun'
  },
  // 图标颜色
  color: {
    type: [String],
    default: () => ''
  },
  // 图标大小
  size: {
    type: [String, Number],
    default: () => 28
  }
})

代码仓库

github

贡献

breathe

Readme

Keywords

Package Sidebar

Install

npm i pr-icon

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

201 kB

Total Files

8

Last publish

Collaborators

  • breathe97