Skip to content

Commit

Permalink
refactor(utils): refine iconPropType
Browse files Browse the repository at this point in the history
  • Loading branch information
holazz authored and sxzz committed Aug 29, 2022
1 parent 34d1d6f commit b6449d9
Show file tree
Hide file tree
Showing 24 changed files with 252 additions and 252 deletions.
8 changes: 4 additions & 4 deletions docs/en-US/component/breadcrumb.md
Expand Up @@ -25,10 +25,10 @@ breadcrumb/icon

## Breadcrumb Attributes

| Attribute | Description | Type | Accepted Values | Default |
| -------------- | -------------------------------- | -------------------------------------- | --------------- | ------- |
| separator | separator character | string | β€” | / |
| separator-icon | icon component of icon separator | `string \| Component \| (() => VNode)` | β€” | - |
| Attribute | Description | Type | Accepted Values | Default |
| -------------- | -------------------------------- | --------------------- | --------------- | ------- |
| separator | separator character | string | β€” | / |
| separator-icon | icon component of icon separator | `string \| Component` | β€” | - |

## Breadcrumb Slots

Expand Down
34 changes: 17 additions & 17 deletions docs/en-US/component/button.md
Expand Up @@ -125,23 +125,23 @@ button/custom

## Button Attributes

| Attribute | Description | Type | Accepted Values | Default |
| ----------------------------------- | --------------------------------------------------------------- | -------------------------------------- | ------------------------------------------------------------- | ------- |
| size | button size | string | large / default /small | β€” |
| type | button type | string | primary / success / warning / danger / info / <del>text</del> | β€” |
| plain | determine whether it's a plain button | boolean | β€” | false |
| text <VersionTag version="2.2.0" /> | determine whether it's a text button | boolean | β€” | false |
| bg <VersionTag version="2.2.0" /> | determine whether the text button background color is always on | boolean | β€” | false |
| link <VersionTag version="2.2.1" /> | determine whether it's a link button | boolean | β€” | false |
| round | determine whether it's a round button | boolean | β€” | false |
| circle | determine whether it's a circle button | boolean | β€” | false |
| loading | determine whether it's loading | boolean | β€” | false |
| loading-icon | customize loading icon component | `string \| Component \| (() => VNode)` | β€” | Loading |
| disabled | disable the button | boolean | β€” | false |
| icon | icon component | `string \| Component \| (() => VNode)` | β€” | β€” |
| autofocus | same as native button's `autofocus` | boolean | β€” | false |
| native-type | same as native button's `type` | string | button / submit / reset | button |
| auto-insert-space | automatically insert a space between two chinese characters | boolean | | β€” |
| Attribute | Description | Type | Accepted Values | Default |
| ----------------------------------- | --------------------------------------------------------------- | --------------------- | ------------------------------------------------------------- | ------- |
| size | button size | string | large / default /small | β€” |
| type | button type | string | primary / success / warning / danger / info / <del>text</del> | β€” |
| plain | determine whether it's a plain button | boolean | β€” | false |
| text <VersionTag version="2.2.0" /> | determine whether it's a text button | boolean | β€” | false |
| bg <VersionTag version="2.2.0" /> | determine whether the text button background color is always on | boolean | β€” | false |
| link <VersionTag version="2.2.1" /> | determine whether it's a link button | boolean | β€” | false |
| round | determine whether it's a round button | boolean | β€” | false |
| circle | determine whether it's a circle button | boolean | β€” | false |
| loading | determine whether it's loading | boolean | β€” | false |
| loading-icon | customize loading icon component | `string \| Component` | β€” | Loading |
| disabled | disable the button | boolean | β€” | false |
| icon | icon component | `string \| Component` | β€” | β€” |
| autofocus | same as native button's `autofocus` | boolean | β€” | false |
| native-type | same as native button's `type` | string | button / submit / reset | button |
| auto-insert-space | automatically insert a space between two chinese characters | boolean | | β€” |

## Button Slots

Expand Down
4 changes: 2 additions & 2 deletions docs/en-US/component/date-picker.md
Expand Up @@ -160,8 +160,8 @@ Note, date time locale (month name, first day of the week ...) are also configur
| id | same as `id` in native input | string / array(string) | String `id="my-date"` or array `:id="['my-range-start', 'my-range-end']"` for date range | - |
| name | same as `name` in native input | string | β€” | β€” |
| unlink-panels | unlink two date-panels in range-picker | boolean | β€” | false |
| prefix-icon | custom prefix icon component | `string \| Component \| (() => VNode)` | β€” | Date |
| clear-icon | custom clear icon component | `string \| Component \| (() => VNode)` | β€” | CircleClose |
| prefix-icon | custom prefix icon component | `string \| Component` | β€” | Date |
| clear-icon | custom clear icon component | `string \| Component` | β€” | CircleClose |
| validate-event | whether to trigger form validation | boolean | - | true |
| disabled-date | a function determining if a date is disabled with that date as its parameter. Should return a Boolean | function | β€” | β€” |
| shortcuts | an object array to set shortcut options | object[{ text: string, value: date / function }] | β€” | β€” |
Expand Down
4 changes: 2 additions & 2 deletions docs/en-US/component/datetime-picker.md
Expand Up @@ -81,8 +81,8 @@ datetime-picker/default-time
| id | same as `id` in native input | string / array(string) | String `id="my-datetime"` or array `:id="['my-range-start', 'my-range-end']"` for date range | - |
| name | same as `name` in native input | string | β€” | β€” |
| unlink-panels | unllink two date-panels in range-picker | boolean | β€” | false |
| prefix-icon | Custom prefix icon component | `string \| Component \| (() => VNode)` | β€” | Date |
| clear-icon | Custom clear icon component | `string \| Component \| (() => VNode)` | β€” | CircleClose |
| prefix-icon | Custom prefix icon component | `string \| Component` | β€” | Date |
| clear-icon | Custom clear icon component | `string \| Component` | β€” | CircleClose |
| shortcuts | an object array to set shortcut options | object[{ text: string, value: date / function }] | β€” | β€” |
| disabledDate | a function determining if a date is disabled with that date as its parameter. Should return a Boolean | function | β€” | β€” |
| cellClassName | set custom className | Function(Date) | β€” | β€” |
Expand Down
12 changes: 6 additions & 6 deletions docs/en-US/component/dropdown.md
Expand Up @@ -126,12 +126,12 @@ dropdown/sizes

## Dropdown-Item Attributes

| Attribute | Description | Type | Accepted Values | Default |
| --------- | ----------------------------------------------------------- | -------------------------------------- | --------------- | ------- |
| command | a command to be dispatched to Dropdown's `command` callback | string/number/object | β€” | β€” |
| disabled | whether the item is disabled | boolean | β€” | false |
| divided | whether a divider is displayed | boolean | β€” | false |
| icon | custom icon | `string \| Component \| (() => VNode)` | β€” | β€” |
| Attribute | Description | Type | Accepted Values | Default |
| --------- | ----------------------------------------------------------- | --------------------- | --------------- | ------- |
| command | a command to be dispatched to Dropdown's `command` callback | string/number/object | β€” | β€” |
| disabled | whether the item is disabled | boolean | β€” | false |
| divided | whether a divider is displayed | boolean | β€” | false |
| icon | custom icon | `string \| Component` | β€” | β€” |

## Dropdown-Item Slots

Expand Down

0 comments on commit b6449d9

Please sign in to comment.