浏览代码

[doc]Update avatar and internation document

dufu1991 2 年之前
父节点
当前提交
fcb5b89da5
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      doc/components/avatar/api.md
  2. 1 1
      doc/components/avatar/api_en.md
  3. 2 2
      doc/guide/internation.md
  4. 2 2
      doc/guide/internation_en.md

+ 1 - 1
doc/components/avatar/api.md

@@ -7,7 +7,7 @@
 | icon     | Object | { name: 'ri-user-3-line', theme: true, size: 32 } | Icon Props                            | N    | 替换图标,传入 Icon Props。 |
 | altSize  | String | 'md'                                              | 'xs'/'sm'/'md'/'lg'/'xl'              | N    | 替换文本大小。              |
 | radius   | String | 'base'                                            | 'none'/'base'/'xl'/'2xl'/'3xl'/'full' | N    | 圆角风格。                  |
-| size     | String | 'md'                                              | 'xs'/'sm'/'md'/'lg'/'xl'              | N    | 头像框大小。                |
+| size     | String | 'md'                                              | 'xs'/'sm'/'base'/'md'/'lg'/'xl'/'2xl' | N    | 头像框大小。                |
 | imgSize  | String | 'l'                                               | 's'/'m'/'l'                           | N    | 头像图片大小。              |
 | line     | String | 'none'                                            | 'none'/'solid'/'dashed'/'dotted'      | N    | 边框风格。                  |
 | injClass | String | ''                                                | Class                                 | N    | 注入 CSS 名称。             |

+ 1 - 1
doc/components/avatar/api_en.md

@@ -7,7 +7,7 @@
 | icon       | Object | { name: 'ri-user-3-line', theme: true, size: 32 } | Icon Props                            | N        | Replace the icon and pass in Icon Props.     |
 | altSize    | String | 'md'                                              | 'xs'/'sm'/'md'/'lg'/'xl'              | N        | Replace the text size.                       |
 | radius     | String | 'base'                                            | 'none'/'base'/'xl'/'2xl'/'3xl'/'full' | N        | Round -corner style.                         |
-| size       | String | 'md'                                              | 'xs'/'sm'/'md'/'lg'/'xl'              | N        | The size of the avatar box.                  |
+| size       | String | 'md'                                              | 'xs'/'sm'/'base'/'md'/'lg'/'xl'/'2xl' | N        | The size of the avatar box.                  |
 | imgSize    | String | 'l'                                               | 's'/'m'/'l'                           | N        | Avatar picture size.                         |
 | line       | String | 'none'                                            | 'none'/'solid'/'dashed'/'dotted'      | N        | Border style.                                |
 | injClass   | String | ''                                                | Class                                 | N        | Inject the CSS name.                         |

+ 2 - 2
doc/guide/internation.md

@@ -1,9 +1,9 @@
 ## 配置语言包
 
-STDF 组件使用 Svelte 的 [Context](https://svelte.dev/docs#run-time-svelte-setcontext) 实现国际化文案配置,默认配置是中文简体。一般在应用的入口 App.svelte 中配置 Context,例如:
+STDF 组件使用 Svelte 的 [Context](https://svelte.dev/docs#run-time-svelte-setcontext) 实现国际化文案配置,默认配置是中文简体。一般在应用的入口 `App.svelte` 或 `+layout.svelte` 中配置 Context,例如:
 
 ```svelte
-<!-- App.svelte -->
+<!-- App.svelte/+layout.svelte -->
 <script>
 	import { setContext } from 'svelte'; // 引入 setContext
 	import en_US from 'stdf/lang/en_US'; // 导入语言文件

+ 2 - 2
doc/guide/internation_en.md

@@ -1,9 +1,9 @@
 ## Configuring Language Pack
 
-The STDF component uses Svelte's [Context](https://svelte.dev/docs#run-time-svelte-setcontext) to implement internationalization configuration of text, with the default configuration being in Simplified Chinese. Usually, the Context is configured in the entry file `App.svelte`. For example:
+The STDF component uses Svelte's [Context](https://svelte.dev/docs#run-time-svelte-setcontext) to implement internationalization configuration of text, with the default configuration being in Simplified Chinese. Usually, the Context is configured in the entry file `App.svelte` or `+layout.svelte`. For example:
 
 ```svelte
-<!-- App.svelte -->
+<!-- App.svelte/+layout.svelte -->
 <script>
 	import { setContext } from 'svelte'; // import setContext
 	import en_US from 'stdf/lang/en_US'; // import language file