Browse Source

修改padding

lilinsen 7 years ago
parent
commit
846c96fcac
1 changed files with 9 additions and 2 deletions
  1. 9 2
      sites/doc/compents/hidden/hidden.vue

+ 9 - 2
sites/doc/compents/hidden/hidden.vue

@@ -1,5 +1,9 @@
 <template>
 <template>
-<div class="swap">
+<div class="swap"
+    :class="{
+        hasPadding:heightSlot>400
+    }"
+>
     <div 
     <div 
         class="eidt-box"
         class="eidt-box"
         :class="{
         :class="{
@@ -68,9 +72,12 @@ export default {
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 .swap{
 .swap{
     position: relative;
     position: relative;
-    padding-bottom:30px;
+   
     background: #F2F4F5;
     background: #F2F4F5;
 }
 }
+.hasPadding{
+     padding-bottom:30px;
+}
 .show{   
 .show{   
     overflow:hidden;
     overflow:hidden;
     position: relative;
     position: relative;