chore: merge vant-doc to vant-cli

This commit is contained in:
陈嘉涵
2019-11-18 21:02:36 +08:00
parent 80c09566fe
commit b7d142322b
25 changed files with 40 additions and 218 deletions

View File

@@ -0,0 +1,36 @@
<template>
<div
class="van-doc-container van-doc-row"
:class="{ 'van-doc-container--with-simulator': hasSimulator }"
>
<slot />
</div>
</template>
<script>
export default {
name: 'van-doc-container',
props: {
hasSimulator: Boolean
}
};
</script>
<style lang="less">
@import '../../common/style/index';
.van-doc-container {
box-sizing: border-box;
padding-left: @van-doc-nav-width;
overflow: hidden;
&--with-simulator {
padding-right: @van-doc-simulator-width + @van-doc-padding;
@media (max-width: 1300px) {
padding-right: @van-doc-simulator-small-width + @van-doc-padding;
}
}
}
</style>