添加doc预览

This commit is contained in:
niunai
2017-01-16 02:48:57 +08:00
parent bf021c1d19
commit 347dc1751c
31 changed files with 11447 additions and 104 deletions

28
docs/examples/sample.md Normal file
View File

@@ -0,0 +1,28 @@
<script>
export default {
data() {
return {
author: 'test'
};
}
};
</script>
## sample组件
### 基础用法
author设置为test
:::demo 样例代码
```html
<sample author="author"></sample>
```
:::
### API
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|-----------|-----------|-----------|-------------|-------------|
| className | 自定义额外类名 | string | '' | '' |