LOCKING盒子版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

535 B

文件图标

import React from 'react';
import FileIcon from '@/components/FileIcon';

export default () => (
  <>
    {/* 无法识别的的扩展名最终都会展示default */}
    <FileIcon extension="unknown_extenstion" />
    {/* 等价扩展名: doc, docx */}
    <FileIcon extension="doc" />
    {/* 等价扩展名: ppt, pptx */}
    <FileIcon extension="ppt" />
    {/* 等价扩展名: xls, xlsx */}
    <FileIcon extension="xls" />
    <FileIcon extension="zip" />
    <FileIcon extension="folder" />
  </>
)