|
@@ -1,21 +1,24 @@
|
|
|
## Button Props
|
|
## 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
|
|
## Button Events
|
|
|
|
|
|