@kne/react-file-type 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -50,6 +50,14 @@ const BaseExample = () => {
50
50
  <FileType type="xlsx"/>
51
51
  <FileType type="zip"/>
52
52
  </Space>
53
+ <Space direction="vertical">
54
+ <div>自定义尺寸:</div>
55
+ <Space>
56
+ <FileType type="doc" size={30}/>
57
+ <FileType type="doc" size={40}/>
58
+ <FileType type="doc" size={50}/>
59
+ </Space>
60
+ </Space>
53
61
  <div>
54
62
  不支持的文件格式显示如下:
55
63
  </div>
@@ -66,7 +74,8 @@ render(<BaseExample/>);
66
74
 
67
75
  ### API
68
76
 
69
- |属性名|说明|类型|默认值|
70
- | --- | --- | --- | --- |
77
+ |属性名|说明|类型| 默认值 |
78
+ | --- | --- | --- |--------|
71
79
  | type | 文件后缀名 | doc &#124; docx &#124; gif &#124; jpg &#124; mp4 &#124; pdf &#124; png &#124; ppt &#124; pptx &#124; rar &#124; svg &#124; xls &#124; xlsx &#124; zip | unknow |
80
+ | size| 图标大小| number| 40 |
72
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kne/react-file-type",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "显示文件类型图标",
5
5
  "syntax": {
6
6
  "esmodules": true