Browse Source

perf: 优化工具栏样式

奔跑的面条 3 năm trước cách đây
mục cha
commit
55119bee93

+ 4 - 1
src/views/chart/ContentEdit/components/EditTools/index.vue

@@ -19,7 +19,7 @@
       placement="left"
     >
       <template #trigger>
-        <div class="btn-item" :class="[btnList.length - 1 === index && 'go-mt-0']">
+        <div class="btn-item">
           <n-button v-if="item.type === TypeEnum.BUTTON" :circle="isAside" secondary @click="item.handle">
             <template #icon>
               <n-icon size="22" v-if="isAside">
@@ -175,6 +175,9 @@ $asideBottom: 70px;
     transition: height ease 0.4s;
     .btn-item {
       margin-bottom: 10px;
+      &:first-of-type {
+        margin-bottom: 0;
+      }
       @include deep() {
         .n-button__icon {
           margin-right: 4px;