Kaynağa Gözat

[doc]Fix some error

dufu1991 2 yıl önce
ebeveyn
işleme
64aa200b3e

+ 12 - 12
doc/components/noticeBar/api.md

@@ -1,17 +1,17 @@
 ## NoticeBar Props
 
-| 属性      | 类型          | 默认值                                           | 可选值                   | 必传 | 说明                        |
-| --------- | ------------- | ------------------------------------------------ | ------------------------ | ---- | --------------------------- |
-| textList  | Array         | []                                               | -                        | Y    | 通告内容组成的数组。        |
-| leftIcon  | Object/String | {name: 'ri-volume-down-line', size: 20, top: -1} | Icon Props/'slot'/'none' | N    | 左侧内容。                  |
-| rightIcon | String        | 'close'                                          | 'close'/'arrow'/'none'   | N    | 右侧内容。                  |
-| fontSize  | String        | 'sm'                                             | 'xs'/'sm'/'base'/'lg'    | N    | 通告字体大小。              |
-| space     | Number        | 100                                              | -                        | N    | 通告间距         |
-| speed     | Number        | 30                                               | -                        | N    | 横向滚动速度,单位是 px/s。 |
-| vertical  | Boolean       | false                                            | true/false               | N    | 是否垂直滚动。              |
-| duration  | Number        | 500                                              | 100/300/500/700/1000     | N    | 垂直滚动过渡时间 |
-| interval  | Number        | 4                                                | -                        | N    | 垂直滚动间隔时间  |
-| injClass  | String        | ''                                               | Class                    | N    | 注入 CSS 名称。             |
+| 属性      | 类型          | 默认值                                           | 可选值                   | 必传 | 说明                          |
+| --------- | ------------- | ------------------------------------------------ | ------------------------ | ---- | ----------------------------- |
+| textList  | Array         | []                                               | -                        | Y    | 通告内容组成的数组。          |
+| leftIcon  | Object/String | {name: 'ri-volume-down-line', size: 20, top: -1} | Icon Props/'slot'/'none' | N    | 左侧内容。                    |
+| rightIcon | String        | 'close'                                          | 'close'/'arrow'/'none'   | N    | 右侧内容。                    |
+| fontSize  | String        | 'sm'                                             | 'xs'/'sm'/'base'/'lg'    | N    | 通告字体大小。                |
+| space     | Number        | 100                                              | -                        | N    | 通告间距,单位是 px。         |
+| speed     | Number        | 30                                               | -                        | N    | 横向滚动速度,单位是 px/s。   |
+| vertical  | Boolean       | false                                            | true/false               | N    | 是否垂直滚动。                |
+| duration  | Number        | 500                                              | 100/300/500/700/1000     | N    | 垂直滚动过渡时间,单位是 ms。 |
+| interval  | Number        | 4                                                | -                        | N    | 垂直滚动间隔时间,单位是 s。  |
+| injClass  | String        | ''                                               | Class                    | N    | 注入 CSS 名称。               |
 
 ## NoticeBar Events
 

+ 12 - 12
doc/components/noticeBar/api_en.md

@@ -1,17 +1,17 @@
 ## NoticeBar Props
 
-| Name      | Type          | Default                                          | Options                  | Required | Description                         |
-| --------- | ------------- | ------------------------------------------------ | ------------------------ | -------- | ----------------------------------- |
-| textList  | Array         | []                                               | -                        | Y        | An array of announcement content.   |
-| leftIcon  | Object/String | {name: 'ri-volume-down-line', size: 20, top: -1} | Icon Props/'slot'/'none' | N        | Left content.                       |
-| rightIcon | String        | 'close'                                          | 'close'/'arrow'/'none'   | N        | Right content.                      |
-| fontSize  | String        | 'sm'                                             | 'xs'/'sm'/'base'/'lg'    | N        | Font size of the announcement.      |
-| space     | Number        | 100                                              | -                        | N        | Spacing between announcements.      |
-| speed     | Number        | 30                                               | -                        | N        | Horizontal scrolling speed (px/s).  |
-| vertical  | Boolean       | false                                            | true/false               | N        | Whether to vertically scroll.       |
-| duration  | Number        | 500                                              | 100/300/500/700/1000     | N        | Vertical scrolling transition time. |
-| interval  | Number        | 4                                                | -                        | N        | Vertical scrolling interval time.   |
-| injClass  | String        | ''                                               | Class                    | N        | Injected CSS class name.            |
+| Name      | Type          | Default                                          | Options                  | Required | Description                              |
+| --------- | ------------- | ------------------------------------------------ | ------------------------ | -------- | ---------------------------------------- |
+| textList  | Array         | []                                               | -                        | Y        | An array of announcement content.        |
+| leftIcon  | Object/String | {name: 'ri-volume-down-line', size: 20, top: -1} | Icon Props/'slot'/'none' | N        | Left content.                            |
+| rightIcon | String        | 'close'                                          | 'close'/'arrow'/'none'   | N        | Right content.                           |
+| fontSize  | String        | 'sm'                                             | 'xs'/'sm'/'base'/'lg'    | N        | Font size of the announcement.           |
+| space     | Number        | 100                                              | -                        | N        | Spacing between announcements (px).      |
+| speed     | Number        | 30                                               | -                        | N        | Horizontal scrolling speed (px/s).       |
+| vertical  | Boolean       | false                                            | true/false               | N        | Whether to vertically scroll.            |
+| duration  | Number        | 500                                              | 100/300/500/700/1000     | N        | Vertical scrolling transition time (ms). |
+| interval  | Number        | 4                                                | -                        | N        | Vertical scrolling interval time (s).    |
+| injClass  | String        | ''                                               | Class                    | N        | Injected CSS class name.                 |
 
 ## NoticeBar Events
 

+ 9 - 9
doc/components/switch/api.md

@@ -1,14 +1,14 @@
 ## Switch Props
 
-| 属性     | 类型              | 默认值 | 可选值                       | 必传 | 说明                                          |
-| -------- | ----------------- | ------ | ---------------------------- | ---- | --------------------------------------------- |
-| check    | Boolean           | false  | true/false                   | N    | 开关状态。                                    |
-| radius   | String            | 'base' | 'full'/'base'/'none'         | N    | 圆角风格。                                    |
-| inside   | Array/String/slot | []     | Array/'state'/'loading'/slot | N    | 开关内部内容。                                |
-| injClass | String            | ''     | Class                        | N    | 注入 CSS 名称。                               |
-| disabled | Boolean           | false  | true/false                   | N    | 是否禁用。                                    |
-| async    | Boolean           | false  | true/false                   | N    | 是否异步。                                    |
-| loading  | Object            | {}     | 参考 Loading Props           | N    | 加载组件参数,仅 inside 为 'loading' 时生效。 |
+| 属性     | 类型         | 默认值 | 可选值                            | 必传 | 说明                                          |
+| -------- | ------------ | ------ | --------------------------------- | ---- | --------------------------------------------- |
+| check    | Boolean      | false  | true/false                        | N    | 开关状态。                                    |
+| radius   | String       | 'base' | 'full'/'base'/'none'              | N    | 圆角风格。                                    |
+| inside   | Array/String | ''     | Array/'state'/'loading'/'slot'/'' | N    | 开关内部内容。                                |
+| injClass | String       | ''     | Class                             | N    | 注入 CSS 名称。                               |
+| disabled | Boolean      | false  | true/false                        | N    | 是否禁用。                                    |
+| async    | Boolean      | false  | true/false                        | N    | 是否异步。                                    |
+| loading  | Object       | {}     | 参考 Loading Props                | N    | 加载组件参数,仅 inside 为 'loading' 时生效。 |
 
 ## Switch Events
 

+ 9 - 9
doc/components/switch/api_en.md

@@ -1,14 +1,14 @@
 ## Switch Props
 
-| Prop Name | Type              | Default | Options                      | Required | Description                                                        |
-| --------- | ----------------- | ------- | ---------------------------- | -------- | ------------------------------------------------------------------ |
-| check     | Boolean           | false   | true/false                   | No       | Switch status.                                                     |
-| radius    | String            | 'base'  | 'full'/'base'/'none'         | No       | Corner style.                                                      |
-| inside    | Array/String/slot | []      | Array/'state'/'loading'/slot | No       | Switch internal content.                                           |
-| injClass  | String            | ''      | Class                        | No       | Inject CSS class names.                                            |
-| disabled  | Boolean           | false   | true/false                   | No       | Whether disabled.                                                  |
-| async     | Boolean           | false   | true/false                   | No       | Whether asynchronous.                                              |
-| loading   | Object            | {}      | Refer to Loading Props       | No       | Loading component parameters, only valid when inside is 'loading'. |
+| Prop Name | Type         | Default | Options                           | Required | Description                                                        |
+| --------- | ------------ | ------- | --------------------------------- | -------- | ------------------------------------------------------------------ |
+| check     | Boolean      | false   | true/false                        | No       | Switch status.                                                     |
+| radius    | String       | 'base'  | 'full'/'base'/'none'              | No       | Corner style.                                                      |
+| inside    | Array/String | []      | Array/'state'/'loading'/'slot'/'' | No       | Switch internal content.                                           |
+| injClass  | String       | ''      | Class                             | No       | Inject CSS class names.                                            |
+| disabled  | Boolean      | false   | true/false                        | No       | Whether disabled.                                                  |
+| async     | Boolean      | false   | true/false                        | No       | Whether asynchronous.                                              |
+| loading   | Object       | {}      | Refer to Loading Props            | No       | Loading component parameters, only valid when inside is 'loading'. |
 
 ## Switch Events
 

+ 1 - 1
doc/components/switch/guide.md

@@ -10,7 +10,7 @@
 
 ## inside & slot
 
-inside 参数决定了开关内部显示内容,默认值是空数组,不显示任何内容。若传入字符‘state’则会以竖线和圆形表示开关状态;若传入两项字符组成的数组,第一项和第二项将分别显示关闭与开启状态时的内部文字,建议传入单个文字;若传入字符‘loading’则会以 Loading 图标渲染;若传入字符‘slot’则会以插槽内容渲染,请传入开启与关闭时的插槽内容。
+inside 参数决定了开关内部显示内容,默认值是空字符,不显示任何内容。若传入字符‘state’则会以竖线和圆形表示开关状态;若传入两项字符组成的数组,第一项和第二项将分别显示关闭与开启状态时的内部文字,建议传入单个文字;若传入字符‘loading’则会以 Loading 图标渲染;若传入字符‘slot’则会以插槽内容渲染,请传入开启与关闭时的插槽内容。
 
 请参考示例。
 

+ 1 - 1
doc/components/switch/guide_en.md

@@ -10,7 +10,7 @@ The `injClass` parameter can be used to inject CSS class names (not limited to T
 
 ## inside & slot
 
-The `inside` parameter determines the content displayed inside the switch, with an empty array as the default value, displaying no content. If 'state' is passed in, the switch status will be represented by a vertical line and a circle. If an array of two characters is passed in, the first and second items will display the internal text when the switch is turned off and on, respectively. It is recommended to pass in a single character. If 'loading' is passed in, a Loading icon will be rendered. If 'slot' is passed in, the slot content when turned on and off will be rendered.
+The `inside` parameter determines the content displayed inside the switch, with an empty string as the default value, displaying no content. If 'state' is passed in, the switch status will be represented by a vertical line and a circle. If an array of two characters is passed in, the first and second items will display the internal text when the switch is turned off and on, respectively. It is recommended to pass in a single character. If 'loading' is passed in, a Loading icon will be rendered. If 'slot' is passed in, the slot content when turned on and off will be rendered.
 
 Please refer to the example.
 

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

@@ -9,7 +9,7 @@
 | py               | String  | '20      | '0'/'10'/'20'/'40'/'60'/'80'                                                 | N    | 顶部和底部显示时距离顶部或底部的距离,position 为 'center' 时不生效。 |     |
 | radius           | String  | 'base    | 'base'/'full'/'none'/'sm'/'md'/'lg'/'xl'/'2xl'                               | N    | 圆角风格。                                                            |     |
 | useSlot          | Boolean | false    | true/false                                                                   | N    | 是否使用 slot。                                                       |     |
-| transitionType   | String  | 'scale'  | 'fade'/'fly'/'scale'/'slide'/'none'                                          | N    | 动画类型。                                                            |     |
+| transitionType   | String  | 'scale'  | 'fade'/'fly'/'scale'/'slide'/'blur'/'none'                                   | N    | 动画类型。                                                            |     |
 | transitionParams | Object  | {}       | 参考 [svelte/transition](https://svelte.dev/docs#run-time-svelte-transition) | N    | 动画参数,其中 duration 默认 300。                                    |     |
 | outDuration      | Number  | 0        | -                                                                            | N    | 退出动画时间,单位:ms。                                              |     |
 | mask             | Object  | {}       | 参考 Mask Props                                                              | N    | 遮罩层参数。                                                          |     |

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

@@ -9,7 +9,7 @@
 | py               | String  | '20      | '0'/'10'/'20'/'40'/'60'/'80'                                                | N        | The position offset from the top or bottom of the screen when the notification is displayed. This property is ignored when position is set to 'center'. |     |
 | radius           | String  | 'base'   | 'base'/'full'/'none'/'sm'/'md'/'lg'/'xl'/'2xl'                              | N        | The style of the notification's corners.                                                                                                                |     |
 | useSlot          | Boolean | false    | true/false                                                                  | N        | Whether to use a slot.                                                                                                                                  |     |
-| transitionType   | String  | 'scale'  | 'fade'/'fly'/'scale'/'slide'/'none'                                         | N        | The type of animation to use.                                                                                                                           |     |
+| transitionType   | String  | 'scale'  | 'fade'/'fly'/'scale'/'slide'/'blur'/'none'                                  | N        | The type of animation to use.                                                                                                                           |     |
 | transitionParams | Object  | {}       | See [svelte/transition](https://svelte.dev/docs#run-time-svelte-transition) | N        | Animation parameters, with the default duration set to 300ms.                                                                                           |
 | outDuration      | Number  | 0        | -                                                                           | N        | Duration of the exit animation in milliseconds.                                                                                                         |
 | mask             | Object  | {}       | See Mask Props                                                              | N        | Parameters for the mask layer.                                                                                                                          |