Skip to content

Commit 8a6be07

Browse files
kefranabgmeteorlxy
authored andcommitted
docs: update badge documentation (#2085)
1 parent bffd3a4 commit 8a6be07

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

packages/docs/docs/guide/markdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ module.exports = {
313313
}
314314
</style>
315315

316-
## Import Code Snippets <Badge text="beta" type="warn"/>
316+
## Import Code Snippets <Badge text="beta" type="warning"/>
317317

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

packages/docs/docs/guide/using-vue.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -254,20 +254,20 @@ Specify a specific slot for a specific page (.md) for rendering. This will be us
254254
- [Writing a theme > Content Outlet](../theme/writing-a-theme.md#content-outlet)
255255

256256

257-
### Badge <Badge text="beta" type="warn"/> <Badge text="default theme"/>
257+
### Badge <Badge text="beta" type="warning"/> <Badge text="default theme"/>
258258

259259
- **Props**:
260260

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

265265
- **Usage**:
266266

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

269269
``` md
270-
### Badge <Badge text="beta" type="warn"/> <Badge text="default theme"/>
270+
### Badge <Badge text="beta" type="warning"/> <Badge text="default theme"/>
271271
```
272272

273273
**Also see:**

packages/docs/docs/theme/inheritance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Theme Inheritance <Badge type="warn" text="beta" />
1+
# Theme Inheritance <Badge type="warning" text="beta" />
22

33
## Motivation
44

packages/docs/docs/zh/guide/markdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ module.exports = {
314314
}
315315
</style>
316316

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

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

packages/docs/docs/zh/guide/using-vue.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,20 @@ export default {
252252
- [开发主题 > 获取渲染内容](../theme/writing-a-theme.md#获取渲染内容)
253253

254254

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

257257
- **Props**:
258258

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

263263
- **Usage**:
264264

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

267267
``` md
268-
### Badge <Badge text="beta" type="warn"/> <Badge text="默认主题"/>
268+
### Badge <Badge text="beta" type="warning"/> <Badge text="默认主题"/>
269269
```
270270

271271
**参考:**

packages/docs/docs/zh/theme/inheritance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 主题的继承 <Badge type="warn" text="beta" />
1+
# 主题的继承 <Badge type="warning" text="beta" />
22

33
## 动机
44

0 commit comments

Comments
 (0)