1.0.0 • Published 2 years ago
dacong-fileicon v1.0.0
安装
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
}
注意事项
- 这是Vue3的组件
- 高度和宽度要保持一致,因为原图为1:1
1.0.0
2 years ago