Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计算机应用开发
前端
Vuepress
提交
3e4a73d5
V
Vuepress
项目概览
计算机应用开发
/
前端
/
Vuepress
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vuepress
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3e4a73d5
编写于
6月 13, 2018
作者:
U
ULIVZ
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs(cn): document global components
上级
d6d0874a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
47 addition
and
1 deletion
+47
-1
docs/guide/using-vue.md
docs/guide/using-vue.md
+1
-1
docs/zh/guide/using-vue.md
docs/zh/guide/using-vue.md
+46
-0
未找到文件。
docs/guide/using-vue.md
浏览文件 @
3e4a73d5
...
...
@@ -180,7 +180,7 @@ export default {
### OutboundLink <Badge text="stable"/>
It(
<OutboundLink/>
) is used to indicate that this is an external link
, and VuePress has added this component to each
external link.
It(
<OutboundLink/>
) is used to indicate that this is an external link
. In VuePress this component have been followed by every
external link.
### ClientOnly <Badge text="stable"/>
...
...
docs/zh/guide/using-vue.md
浏览文件 @
3e4a73d5
...
...
@@ -177,3 +177,49 @@ export default {
}
}
</script>
## 内置的组件
### OutboundLink <Badge text="stable"/>
(
<OutboundLink/>
) 用来表明当前是一个外部链接。在 VuePress 中这个组件会紧跟在每一个外部链接后面。
### ClientOnly <Badge text="stable"/>
参考
[
浏览器的 API 访问限制
](
#浏览器的-api-访问限制
)
。
### Content <Badge text="beta" type="warn"/>
-
**Props**
:
-
`custom`
- boolean
-
**用法**
:
当前的
`.md`
文件渲染的内容,当你在使用
[
自定义布局
](
../default-theme-config/README.md#特定页面的自定义布局
)
时,它将非常有用。
```
vue
<Content/>
```
**参考:**
-
[
自定义主题 > 获取渲染内容
](
./custom-themes.md#获取渲染内容
)
### Badge <Badge text="beta" type="warn"/> <Badge text="0.10.1+"/>
-
**Props**
:
-
`text`
- string
-
`type`
- string, 可选值:
`"tip"|"warn"|"error"`
,默认值是:
`"tip"`
-
`vertical`
- string, 可选值:
`"top"|"middle"`
,默认值是:
`"top"`
-
**Usage**
:
你可以在标题文本的末尾,使用这个组件来为某些 API 添加一些状态:
```
md
### Badge <Badge text="beta" type="warn"/> <Badge text="0.10.1+"/>
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录