Skip to content

docs: update badge documentation #2085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/docs/docs/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ module.exports = {
}
</style>

## Import Code Snippets <Badge text="beta" type="warn"/>
## Import Code Snippets <Badge text="beta" type="warning"/>

You can import code snippets from existing files via following syntax:

Expand Down
6 changes: 3 additions & 3 deletions packages/docs/docs/guide/using-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,20 +254,20 @@ Specify a specific slot for a specific page (.md) for rendering. This will be us
- [Writing a theme > Content Outlet](../theme/writing-a-theme.md#content-outlet)


### Badge <Badge text="beta" type="warn"/> <Badge text="default theme"/>
### Badge <Badge text="beta" type="warning"/> <Badge text="default theme"/>

- **Props**:

- `text` - string
- `type` - string, optional value: `"tip"|"warn"|"error"`, defaults to `"tip"`.
- `type` - string, optional value: `"tip"|"warning"|"error"`, defaults to `"tip"`.
- `vertical` - string, optional value: `"top"|"middle"`, defaults to `"top"`.

- **Usage**:

You can use this component in header to add some status for some API:

``` md
### Badge <Badge text="beta" type="warn"/> <Badge text="default theme"/>
### Badge <Badge text="beta" type="warning"/> <Badge text="default theme"/>
```

**Also see:**
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/theme/inheritance.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Theme Inheritance <Badge type="warn" text="beta" />
# Theme Inheritance <Badge type="warning" text="beta" />

## Motivation

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/zh/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ module.exports = {
}
</style>

## 导入代码段 <Badge text="beta" type="warn"/>
## 导入代码段 <Badge text="beta" type="warning"/>

你可以通过下述的语法导入已经存在的文件中的代码段:

Expand Down
6 changes: 3 additions & 3 deletions packages/docs/docs/zh/guide/using-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,20 +252,20 @@ export default {
- [开发主题 > 获取渲染内容](../theme/writing-a-theme.md#获取渲染内容)


### Badge <Badge text="beta" type="warn"/> <Badge text="默认主题"/>
### Badge <Badge text="beta" type="warning"/> <Badge text="默认主题"/>

- **Props**:

- `text` - string
- `type` - string, 可选值: `"tip"|"warn"|"error"`,默认值是: `"tip"`
- `type` - string, 可选值: `"tip"|"warning"|"error"`,默认值是: `"tip"`
- `vertical` - string, 可选值: `"top"|"middle"`,默认值是: `"top"`

- **Usage**:

你可以在标题中,使用这个组件来为某些 API 添加一些状态:

``` md
### Badge <Badge text="beta" type="warn"/> <Badge text="默认主题"/>
### Badge <Badge text="beta" type="warning"/> <Badge text="默认主题"/>
```

**参考:**
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/zh/theme/inheritance.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 主题的继承 <Badge type="warn" text="beta" />
# 主题的继承 <Badge type="warning" text="beta" />

## 动机

Expand Down