Browse Source

fix(cell): cell 样式问题修复

eiinu 3 years ago
parent
commit
5903d678d3
2 changed files with 4 additions and 3 deletions
  1. 1 2
      src/packages/__VUE/cell/doc.md
  2. 3 1
      src/packages/__VUE/cell/index.scss

+ 1 - 2
src/packages/__VUE/cell/doc.md

@@ -29,12 +29,11 @@ app.use(CellGroup);
 </template>
 <script>
   import { ref } from 'vue';
-  import { Toast } from '@nutui/nutui';
   export default {
     setup() {
       const switchChecked = ref(true);
       const testClick = (event) => {
-        Toast.text('点击事件');
+        console.log('点击事件');
       };
       return { testClick, switchChecked };
     }

+ 3 - 1
src/packages/__VUE/cell/index.scss

@@ -72,7 +72,8 @@
   &__icon {
     display: flex;
     flex-direction: row;
-    margin-right: $cell-default-icon-margin;
+    margin: $cell-default-icon-margin;
+    align-items: center;
   }
 
   &__title {
@@ -94,5 +95,6 @@
   }
   &__link {
     color: #979797;
+    align-self: center;
   }
 }