-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
878 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
## Chip Props | ||
|
||
| Name | Type | Default | Description | | ||
| --------- | ------- | --------- | ------------------------------------------------- | | ||
| outline | string | '' | The outline type: primary, secondary, success, danger, warning, info, light, dark | | ||
| size | string | 'small' | The size of the chip: small, medium, large | | ||
| img | string | '' | The image source for the chip | | ||
| closable | boolean | false | Whether the chip can be closed | | ||
| tag | string | '' | The tag for the chip | | ||
| className | string | '' | The custom class name for the chip | | ||
| Name | Type | Default | Description | | ||
| --------- | ------- | ------- | --------------------------------------------------------------------------------- | | ||
| outline | string | '' | The outline type: primary, secondary, success, danger, warning, info, light, dark | | ||
| size | string | 'small' | The size of the chip: small, medium, large | | ||
| img | string | '' | The image source for the chip | | ||
| closable | boolean | false | Whether the chip can be closed | | ||
| tag | string | '' | The tag for the chip | | ||
| className | string | '' | The custom class name for the chip | | ||
|
||
## Chip Events | ||
|
||
| Event | Description | | ||
| ----- | ------------------- | | ||
| Event | Description | | ||
| ----- | ----------------------------- | | ||
| close | Fired when the chip is closed | | ||
|
||
|
||
## Chip 属性 | ||
|
||
| 属性名 | 类型 | 默认值 | 说明 | | ||
| -------- | -------- | -------- | ------------------------------------------------ | | ||
| outline | 字符串 | '' | 描述轮廓类型:primary、secondary、success、danger、warning、info、light、dark | | ||
| size | 字符串 | 'small' | Chip 的尺寸:small、medium、large | | ||
| img | 字符串 | '' | Chip 的图片来源 | | ||
| closable | 布尔值 | false | Chip 是否可以关闭 | | ||
| tag | 字符串 | '' | Chip 的标签 | | ||
| className| 字符串 | '' | Chip 的自定义类名 | | ||
| 属性名 | 类型 | 默认值 | 说明 | | ||
| --------- | ------ | ------- | ----------------------------------------------------------------------------- | | ||
| outline | 字符串 | '' | 描述轮廓类型:primary、secondary、success、danger、warning、info、light、dark | | ||
| size | 字符串 | 'small' | Chip 的尺寸:small、medium、large | | ||
| img | 字符串 | '' | Chip 的图片来源 | | ||
| closable | 布尔值 | false | Chip 是否可以关闭 | | ||
| tag | 字符串 | '' | Chip 的标签 | | ||
| className | 字符串 | '' | Chip 的自定义类名 | | ||
|
||
## Chip 事件 | ||
|
||
| 事件名 | 说明 | | ||
| ------ | ---------------- | | ||
| close | 当 Chip 被关闭时触发 | | ||
| 事件名 | 说明 | | ||
| ------ | -------------------- | | ||
| close | 当 Chip 被关闭时触发 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import content from './api.md?raw' | ||
import { tag, Component } from 'omi' | ||
import '../../common/markdown-renderer' | ||
|
||
@tag('tabs-api') | ||
export class API extends Component { | ||
render() { | ||
return <markdown-renderer content={content}></markdown-renderer> | ||
} | ||
} |
Oops, something went wrong.