Jelajahi Sumber

[doc]Update for stdf@0.5.2

dufu1991 1 tahun lalu
induk
melakukan
981a029280
2 mengubah file dengan 38 tambahan dan 32 penghapusan
  1. 19 16
      doc/components/button/api.md
  2. 19 16
      doc/components/button/api_en.md

+ 19 - 16
doc/components/button/api.md

@@ -1,21 +1,24 @@
 ## Button Props
 
-| 属性         | 类型    | 默认值  | 可选值                                                                | 必传 | 说明                           |
-| ------------ | ------- | ------- | --------------------------------------------------------------------- | ---- | ------------------------------ |
-| fill         | String  | 'base'  | 'base'/'line'/'lineLight'/'lineTheme'/'text'/'textTheme'/'colorLight' | N    | 填充模式。                     |
-| state        | String  | 'theme' | 'theme'/'success'/'warning'/'error'/'info'                            | N    | 状态色,theme 表示跟随主题色。 |
-| radius       | String  | 'base'  | 'none'/'base'/'xl'/'2xl'/'full'                                       | N    | 圆角风格。                     |
-| size         | String  | 'big'   | 'full'/'big'/'md'/'sm'/'auto'                                         | N    | 尺寸。                         |
-| line         | String  | 'solid' | 'solid'/'dashed'/'dotted'                                             | N    | 边框风格。                     |
-| heightOut    | String  | '2'     | '0'/'1'/'2'/'3'/'4'                                                   | N    | 按钮外部高度。                 |
-| heightIn     | String  | '3'     | '0'/'1'/'2'/'3'/'4'                                                   | N    | 按钮高度。                     |
-| injClass     | String  | ''      | Class                                                                 | N    | 注入 CSS 名称。                |
-| love         | Boolean | false   | true/false                                                            | N    | 是否开启关爱版。               |
-| group        | Boolean | false   | true/false                                                            | N    | 是否使用按钮组。               |
-| disabled     | Boolean | false   | true/false                                                            | N    | 是否禁用。                     |
-| customSize   | Boolean | false   | true/false                                                            | N    | 是否自定义大小。               |
-| customWidth  | Number  | 0       | -                                                                     | N    | 自定义宽度。                   |
-| customHeight | Number  | 0       | -                                                                     | N    | 自定义高度。                   |
+| 属性            | 类型        | 默认值  | 可选值                                                                | 必传 | 说明                           |
+| --------------- | ----------- | ------- | --------------------------------------------------------------------- | ---- | ------------------------------ |
+| fill            | String      | 'base'  | 'base'/'line'/'lineLight'/'lineTheme'/'text'/'textTheme'/'colorLight' | N    | 填充模式。                     |
+| state           | String      | 'theme' | 'theme'/'success'/'warning'/'error'/'info'                            | N    | 状态色,theme 表示跟随主题色。 |
+| radius          | String      | 'base'  | 'none'/'base'/'xl'/'2xl'/'full'                                       | N    | 圆角风格。                     |
+| size            | String      | 'big'   | 'full'/'big'/'md'/'sm'/'auto'                                         | N    | 尺寸。                         |
+| line            | String      | 'solid' | 'solid'/'dashed'/'dotted'                                             | N    | 边框风格。                     |
+| heightOut       | String      | '2'     | '0'/'1'/'2'/'3'/'4'                                                   | N    | 按钮外部高度。                 |
+| heightIn        | String      | '3'     | '0'/'1'/'2'/'3'/'4'                                                   | N    | 按钮高度。                     |
+| injClass        | String      | ''      | Class                                                                 | N    | 注入 CSS 名称。                |
+| love            | Boolean     | false   | true/false                                                            | N    | 是否开启关爱版。               |
+| group           | Boolean     | false   | true/false                                                            | N    | 是否使用按钮组。               |
+| disabled        | Boolean     | false   | true/false                                                            | N    | 是否禁用。                     |
+| customSize      | Boolean     | false   | true/false                                                            | N    | 是否自定义大小。               |
+| customWidth     | Number      | 0       | -                                                                     | N    | 自定义宽度。                   |
+| customHeight    | Number      | 0       | -                                                                     | N    | 自定义高度。                   |
+| icon            | Object/null | null    | 参考 Icon Props                                                       | N    | 图标参数。                     |
+| loading         | Object/null | null    | 参考 Loading Props                                                    | N    | 加载参数。                     |
+| disabledLoading | Boolean     | false   | true/false                                                            | N    | 使用加载时是否禁用。           |
 
 ## Button Events
 

+ 19 - 16
doc/components/button/api_en.md

@@ -1,21 +1,24 @@
 ## Button Props
 
-| property     | type    | default value | optional value                               | required | description                                       |
-| ------------ | ------- | ------------- | -------------------------------------------- | -------- | ------------------------------------------------- |
-| fill         | String  | 'base'        | base/line/lineLight/lineTheme/text/textTheme | N        | fill mode.                                        |
-| state        | String  | 'theme'       | theme/success/warning/error/info             | N        | Status color, theme means follow the theme color. |
-| radius       | String  | 'base'        | none/base/xl/2xl/full                        | N        | Rounded corner style.                             |
-| size         | String  | 'big'         | full/big/md/sm/auto                          | N        | size.                                             |
-| line         | String  | 'solid'       | solid/dashed/dotted                          | N        | border style.                                     |
-| heightOut    | String  | '2'           | '0'/'1'/'2'/'4'                              | N        | Button outer height.                              |
-| heightIn     | String  | '3'           | '0'/'1'/'2'/'4'                              | N        | Button height.                                    |
-| injClass     | String  | ''            | Class                                        | N        | Inject CSS name.                                  |
-| love         | Boolean | false         | true/false                                   | N        | Whether to open the love version.                 |
-| group        | Boolean | false         | true/false                                   | N        | Whether to use a button group.                    |
-| disabled     | Boolean | false         | true/false                                   | N        | Whether to disable.                               |
-| customSize   | Boolean | false         | true/false                                   | N        | Whether to customize the size.                    |
-| customWidth  | Number  | 0             | -                                            | N        | Customize the width.                              |
-| customHeight | Number  | 0             | -                                            | N        | Customize the height.                             |
+| property        | type        | default value | optional value                               | required | description                                       |
+| --------------- | ----------- | ------------- | -------------------------------------------- | -------- | ------------------------------------------------- |
+| fill            | String      | 'base'        | base/line/lineLight/lineTheme/text/textTheme | N        | fill mode.                                        |
+| state           | String      | 'theme'       | theme/success/warning/error/info             | N        | Status color, theme means follow the theme color. |
+| radius          | String      | 'base'        | none/base/xl/2xl/full                        | N        | Rounded corner style.                             |
+| size            | String      | 'big'         | full/big/md/sm/auto                          | N        | size.                                             |
+| line            | String      | 'solid'       | solid/dashed/dotted                          | N        | border style.                                     |
+| heightOut       | String      | '2'           | '0'/'1'/'2'/'4'                              | N        | Button outer height.                              |
+| heightIn        | String      | '3'           | '0'/'1'/'2'/'4'                              | N        | Button height.                                    |
+| injClass        | String      | ''            | Class                                        | N        | Inject CSS name.                                  |
+| love            | Boolean     | false         | true/false                                   | N        | Whether to open the love version.                 |
+| group           | Boolean     | false         | true/false                                   | N        | Whether to use a button group.                    |
+| disabled        | Boolean     | false         | true/false                                   | N        | Whether to disable.                               |
+| customSize      | Boolean     | false         | true/false                                   | N        | Whether to customize the size.                    |
+| customWidth     | Number      | 0             | -                                            | N        | Customize the width.                              |
+| customHeight    | Number      | 0             | -                                            | N        | Customize the height.                             |
+| icon            | Object/null | null          | Reference Icon Props                         | N        | Icon params.                                      |
+| loading         | Object/null | null          | Reference Loading Props                      | N        | Loading params.                                   |
+| disabledLoading | Boolean     | false         | true/false                                   | N        | Whether to disable when using loading.            |
 
 ## Button Events