浏览代码

:deep修改

zhengnaiwen_citu 5 月之前
父节点
当前提交
f1ae7f6282
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/components/CtTable/index.vue

+ 5 - 5
src/components/CtTable/index.vue

@@ -164,16 +164,16 @@ const handleSelect = (e) => {
 </script>
 </script>
 
 
 <style scoped lang="scss">
 <style scoped lang="scss">
-:deep {
-  .v-table.v-table--fixed-header > .v-table__wrapper > table > thead > tr > th {
+
+  :deep(.v-table.v-table--fixed-header > .v-table__wrapper > table > thead > tr > th) {
     text-wrap: nowrap !important;
     text-wrap: nowrap !important;
     background-color: #f7f8fa !important;
     background-color: #f7f8fa !important;
   }
   }
-  .v-selection-control__input {
+  :deep(.v-selection-control__input) {
     color: var(--v-primary-base) !important;
     color: var(--v-primary-base) !important;
   }
   }
-  .v-table.v-table--hover > .v-table__wrapper > table > tbody > tr > td {
+  :deep(.v-table.v-table--hover > .v-table__wrapper > table > tbody > tr > td) {
     white-space: nowrap !important;
     white-space: nowrap !important;
   }
   }
-}
+
 </style>
 </style>