docs(components): [link] (#10879)

* correct type
This commit is contained in:
Xc 2022-12-03 10:13:19 +08:00 committed by GitHub
parent 216a7a2dc9
commit 4f74524349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,17 +57,17 @@ link/with-icon
### Attributes
| Name | Description | Type | Default |
|-----------|-------------------------------------|-----------------------------------------------------------------------------------|---------|
| type | type | ^[string]`'primary' \| 'success' \| 'warning' \| 'danger' \| 'info' \| 'default'` | default |
| underline | whether the component has underline | ^[boolean] | true |
| disabled | whether the component is disabled | ^[boolean] | false |
| href | same as native hyperlink's `href` | ^[string] | - |
| icon | icon component | ^[string] / ^[Component] | - |
| Name | Description | Type | Default |
| --------- | ----------------------------------- | ------------------------------------------------------------------------------- | ------- |
| type | type | ^[enum]`'primary' \| 'success' \| 'warning' \| 'danger' \| 'info' \| 'default'` | default |
| underline | whether the component has underline | ^[boolean] | true |
| disabled | whether the component is disabled | ^[boolean] | false |
| href | same as native hyperlink's `href` | ^[string] | — |
| icon | icon component | ^[string] / ^[Component] | — |
### Slots
| Name | Description |
|---------|---------------------------|
| ------- | ------------------------- |
| default | customize default content |
| icon | customize icon component |