1.3.4 • Published 6 months ago

file-icons-vue v1.3.4

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

file-icons-vue

file-icons-vue, a file icons npm package for Vue projects

Author: zyyzyykk

Source Code: https://github.com/zyyzyykk/file-icons-vue

Npm Address: https://www.npmjs.com/package/file-icons-vue

Update Time: 2025-01-19

⚡ Quick Importing

  1. Install dependencies: recommend to the latest version
# all icons
npm i file-icons-vue
# common icons
npm i file-icons-vue-min
  1. Import components in the Vue3 project:
<template>
  <FileIcons 
     name="text.txt" :width="30" :height="30" 
     :isFolder="false" :isMulti="false" :isLink="false" 
     :itemStyle="{display: 'flex', alignItems: 'center'}" 
     :iconStyle="{opacity: 0.5}" 
  />
</template>

<script>
// import file icon component
import FileIcons from 'file-icons-vue';

export default {
  name: 'App',
  components: {
    FileIcons
  }
}
</script>

<style>
</style>

🛸 Preview

Preview

💡 Function Description

1.file-icons-vue is a component used to display icons corresponding to file suffixes, which has been packaged and published in the npm repository. file-icons-vue provides a rich set of icons, including common file types and extensions, to enhance the visualization of Vue projects

2.The props parameters received by the component:

ParameterTypeMeaningDescription
nameStringFull file nameMust be transmitted
widthNumberIcon width (px)Default value is 20 (px)
heightNumberIcon height (px)Default value is 20 (px)
iconStyleObjectFile Icon custom styleThe width and height attributes in the object do not take effect
linkStyleObjectFile Iink custom styleThe width and height attributes in the object do not take effect
itemStyleObjectIcon parent element custom styleThe width and height attributes in the object do not take effect
style (deprecated)ObjectIcon parent element custom styleThe width and height attributes in the object do not take effect
isFolderBooleanIs it a folderDefault value is false
isMultiBooleanIs it multiple filesDefault value is false
isLinkBooleanIs it linked fileDefault value is false

👨‍💻 Update Records

file-icons-vue@1.3.4: latest
  • Add itemStyle attribute instead of style attribute
  • Add .hh.xaml.xsd.xslt icons,Modify .xsl icon
file-icons-vue@1.3.2:
  • Add iconStylelinkStyle attribute, Modify the meaning of style attribute
file-icons-vue@1.3.1:
  • Add isLink attribute, supports displaying reference type files
  • Remove duplicate icons and reduce packaging volume
  • Modify .html icon
file-icons-vue@1.2.8:

Add isMulti attribute, supporting multi file display

History Update Records

🏘️ About this project

Author: zyyzyykk

Welcome to provide valuable opinions or suggestions on this project, and you can also join us in maintaining and developing this project together

1.3.4

6 months ago

1.3.2

8 months ago

1.3.1

8 months ago

1.2.8

11 months ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.9

1 year ago

1.1.7

1 year ago

1.1.5

2 years ago

1.1.3

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.5

2 years ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.0

2 years ago