1.0.0 • Published 9 months ago

dacong-fileicon v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

安装

npm install dacong-fileicon@latest

使用

<script setup>
import { FileIcon } from 'dacong-fileicon'
let extension = '' // 文件的拓展名,🌰png sql js
let height = '' // 图标的高度
let width = '' // 图标的宽度
</script>
<template>
  <QrLogin :loginUrl="loginUrl" :height="height" :width="width" />
</template>

Props

{
    extension:'', //String 文件的拓展名 default:'in'
    height:'', //Number 图标的高度 default:20
    width:'' //Number 图标的宽度 default:20
}

注意事项

  1. 这是Vue3的组件
  2. 高度和宽度要保持一致,因为原图为1:1