Skip to content

Commit

Permalink
docs: update badge documentation (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
kefranabg authored and meteorlxy committed Dec 23, 2019
1 parent bffd3a4 commit 8a6be07
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
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

0 comments on commit 8a6be07

Please sign in to comment.