mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
Fix: deploy doc fail (#56)
This commit is contained in:
parent
78da8ff37f
commit
86d6b7097f
@ -58,7 +58,7 @@ export default {
|
|||||||
|
|
||||||
设置`name`属性为对应的图标名称即可:
|
设置`name`属性为对应的图标名称即可:
|
||||||
|
|
||||||
:::demo 所有Icon
|
:::demo 基础用法
|
||||||
```html
|
```html
|
||||||
<van-icon name="qr-invalid" style="text-align: center"></van-icon>
|
<van-icon name="qr-invalid" style="text-align: center"></van-icon>
|
||||||
```
|
```
|
||||||
|
@ -1,66 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="demo-block" :class="blockClass">
|
<zan-doc-block :class="`demo-${component}`">
|
||||||
<slot name="examples"></slot>
|
|
||||||
<slot name="highlight"></slot>
|
<slot name="highlight"></slot>
|
||||||
</div>
|
</zan-doc-block>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
blockClass() {
|
component() {
|
||||||
return `demo-${this.$route.path.split('/').pop()}`;
|
return this.$route.path.split('/').pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
.demo-block {
|
|
||||||
transition: .2s;
|
|
||||||
overflow: hidden;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-family: Menlo, Monaco, Consolas, Courier, monospace;
|
|
||||||
overflow: auto;
|
|
||||||
white-space: pre-wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.examples {
|
|
||||||
width: 320px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 10px 0;
|
|
||||||
min-height: 60px;
|
|
||||||
max-height: 500px;
|
|
||||||
overflow: auto;
|
|
||||||
background-color: #F8F8F8;
|
|
||||||
border: 1px solid #E5E5E5;
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlight {
|
|
||||||
box-sizing: border-box;
|
|
||||||
border: 1px solid #E5E5E5;
|
|
||||||
border-radius: 4px;
|
|
||||||
margin-right: 345px;
|
|
||||||
|
|
||||||
pre {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
code.hljs {
|
|
||||||
margin: 0;
|
|
||||||
border: none;
|
|
||||||
max-height: none;
|
|
||||||
border-radius: 0;
|
|
||||||
padding: 20px;
|
|
||||||
background-color: #F8F8F8;
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
@ -135,6 +135,6 @@
|
|||||||
"webpack-merge": "^2.0.0",
|
"webpack-merge": "^2.0.0",
|
||||||
"webpack-node-externals": "^1.5.4",
|
"webpack-node-externals": "^1.5.4",
|
||||||
"webpack-vendor-chunk-plugin": "^1.0.0",
|
"webpack-vendor-chunk-plugin": "^1.0.0",
|
||||||
"zan-doc": "^0.0.9"
|
"zan-doc": "^0.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7308,9 +7308,9 @@ yeast@0.1.2:
|
|||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
|
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
|
||||||
|
|
||||||
zan-doc@0.0.9:
|
zan-doc@0.1.0:
|
||||||
version "0.0.9"
|
version "0.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.0.9.tgz#fcbd2ae743ec2b05594c124c8632345391f8a680"
|
resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.1.0.tgz#6ea2aba808c39b35b9730899f000dbf05806cbad"
|
||||||
dependencies:
|
dependencies:
|
||||||
cheerio "0.22.0"
|
cheerio "0.22.0"
|
||||||
decamelize "^1.2.0"
|
decamelize "^1.2.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user