Browse Source

feat:修改人员录入品种显示

wangsisi 20 hours ago
parent
commit
2803ac441a
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/views/old_mini/entry_information/components/selectVariety.vue

+ 7 - 6
src/views/old_mini/entry_information/components/selectVariety.vue

@@ -14,7 +14,7 @@
                     class="category-tab"
                     :class="{
                         active: activeCategoryId === tab.id,
-                        first: index === 0,
+                        first: index % 3 === 0,
                         last: index === categoryTabs.length - 1,
                     }"
                     @click="activeCategoryId = tab.id"
@@ -801,12 +801,14 @@ const handleConfirm = async () => {
 
         .category-tabs {
             display: flex;
+            flex-wrap: wrap;
+            row-gap: 8px;
             margin-bottom: 10px;
-            height: 30px;
 
             .category-tab {
                 --arrow: 20px;
-                flex: 1;
+                flex: 0 0 calc((100% + 16px) / 3);
+                height: 30px;
                 display: flex;
                 align-items: center;
                 justify-content: center;
@@ -833,9 +835,8 @@ const handleConfirm = async () => {
 
                 &.last {
                     clip-path: polygon(0 0,
-                            calc(100% - var(--arrow)) 0,
-                            100% 50%,
-                            calc(100% - var(--arrow)) 100%,
+                            100% 0,
+                            100% 100%,
                             0 100%,
                             var(--arrow) 50%);
                 }