소스 검색

下拉框中文字未居中显示

lxf 2 년 전
부모
커밋
8f36014573
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/components/byTable/index.vue

+ 3 - 1
src/components/byTable/index.vue

@@ -38,6 +38,7 @@
             <li
               @click="searchItemSelct('all', i,index)"
               v-if="i.isShowAll === false ? i.isShowAll : true"
+              style="display: flex; align-items: center; justify-content: center;"
             >
               全部
             </li>
@@ -45,6 +46,7 @@
               v-for="j in i.data"
               :key="j.value"
               @click="searchItemSelct(j, i)"
+              style="display: flex; align-items: center; justify-content: center;"
             >
               {{ j.label }}
             </li>
@@ -548,7 +550,7 @@ export default defineComponent({
     }
   }
 }
-::v-deep(.by-dropdown-lists){
+.by-dropdown-lists {
   max-height: 50vh;
   overflow-y: auto;
   line-height: 1