docs: fix select docs 样式污染

fix #21
This commit is contained in:
bac-joker 2020-09-28 11:06:33 +08:00
parent d0eaebb6b7
commit 7ea0e8b438

View File

@ -8,7 +8,7 @@ pageClass: comp-page-class
## 代码示例 ## 代码示例
<ClientOnly> <ClientOnly>
<row> <row class="ui-select-docs">
<cell span="12" class="pr-20"> <cell span="12" class="pr-20">
<componetTemplate title="基础用法" template="ui/templates/select/1.html"> <componetTemplate title="基础用法" template="ui/templates/select/1.html">
<template v-slot:demo> <template v-slot:demo>
@ -81,19 +81,22 @@ pageClass: comp-page-class
</ClientOnly> </ClientOnly>
<style lang="scss"> <style lang="scss">
.ui-select-docs {
.ui-select {
display: block;
margin-top: 20px;
width: 50%
}
.ui-select .ui-select-dropdown-list {
padding: 0;
}
}
.code-box-demo{ .code-box-demo{
.ui-select:first-child{ .ui-select:first-child{
margin-top: 0px; margin-top: 0px;
} }
} }
.ui-select {
display: block;
margin-top: 20px;
width: 50%
}
.ui-select .ui-select-dropdown-list {
padding: 0;
}
</style> </style>
<script> <script>