Sfoglia il codice sorgente

[doc]更新图标组件文档,修改属性名称和描述,确保一致性和准确性。

dufu1991 1 anno fa
parent
commit
ac93ffd0d4
2 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 3 3
      docs/mds/components/icon/api.md
  2. 3 3
      docs/mds/components/icon/api_en.md

+ 3 - 3
docs/mds/components/icon/api.md

@@ -8,10 +8,10 @@
 | width    | `number`                               | `0`                  | N    | 图标宽度。                                                       |
 | height   | `number`                               | `0`                  | N    | 图标高度。                                                       |
 | theme    | `boolean`                              | `false`              | N    | 是否跟随主题色(包含亮暗模式),type 为 `iconify-color` 时无效。 |
-| alpha    | `number`                               | `1`                  | N    | 图标透明度。                                                     |
-| top      | `number`                               | `0`                  | N    | 上下偏移量。                                                     |
+| opacity  | `number`                               | `1`                  | N    | 图标透明度。                                                     |
+| y      | `number`                               | `0`                  | N    | 上下偏移量。                                                     |
 | injClass | `string`                               | `''`                 | N    | 注入 CSS 名称。                                                  |
-| path     | `string`                               | `'fonts/symbol.svg'` | N    | 项目存放 symbol.svg 的路径             |
+| path     | `string`                               | `'fonts/symbol.svg'` | N    | 项目存放 symbol.svg 的路径,type 为 `symbol` 时有效。             |
 
 ## Icon Snippets
 

+ 3 - 3
docs/mds/components/icon/api_en.md

@@ -8,10 +8,10 @@
 | width    | `number`                               | `0`                  | N        | Icon width.                                                                            |
 | height   | `number`                               | `0`                  | N        | Icon height.                                                                           |
 | theme    | `boolean`                              | `false`              | N        | Whether to follow theme color (light/dark mode), invalid when type is `iconify-color`. |
-| alpha    | `number`                               | `1`                  | N        | Icon opacity.                                                                          |
-| top      | `number`                               | `0`                  | N        | Vertical offset.                                                                       |
+| opacity  | `number`                               | `1`                  | N        | Icon opacity.                                                                          |
+| y        | `number`                               | `0`                  | N        | Vertical offset.                                                                       |
 | injClass | `string`                               | `''`                 | N        | Injected CSS class name.                                                               |
-| path     | `string`                               | `'fonts/symbol.svg'` | N        | Project path for symbol.svg file.                                                      |
+| path     | `string`                               | `'fonts/symbol.svg'` | N        | Project path for symbol.svg file, valid when type is `symbol`.                          |
 
 ## Icon Snippets