Commit 2944f87e09fdfaec154f3546b32d0e6b8bc840d5

Authored by ww
1 parent 7ff5ea99

fix: DEFECT-801 enabled dark mode,some page not switch dark mode

@@ -185,7 +185,7 @@ @@ -185,7 +185,7 @@
185 <PageWrapper dense contentFullHeight contentClass="flex"> 185 <PageWrapper dense contentFullHeight contentClass="flex">
186 <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" /> 186 <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" />
187 <section class="p-4 pl-9 split-screen-mode flex flex-col flex-auto w-3/4 xl:w-4/5"> 187 <section class="p-4 pl-9 split-screen-mode flex flex-col flex-auto w-3/4 xl:w-4/5">
188 - <div class="p-3 bg-light-50 flex justify-between mb-4"> 188 + <div class="p-3 bg-light-50 flex justify-between mb-4 dark:bg-dark-900">
189 <div class="flex gap-4 cursor-pointer items-center"> 189 <div class="flex gap-4 cursor-pointer items-center">
190 <div 190 <div
191 class="w-8 h-8 flex justify-center items-center" 191 class="w-8 h-8 flex justify-center items-center"
@@ -232,7 +232,7 @@ @@ -232,7 +232,7 @@
232 </Tabs> 232 </Tabs>
233 </div> 233 </div>
234 </div> 234 </div>
235 - <section ref="videoContainer" class="bg-light-50 flex-auto"> 235 + <section ref="videoContainer" class="bg-light-50 flex-auto dark:bg-dark-900">
236 <Spin :spinning="loading" class="h-full"> 236 <Spin :spinning="loading" class="h-full">
237 <Empty 237 <Empty
238 class="h-full flex flex-col justify-center items-center" 238 class="h-full flex flex-col justify-center items-center"
1 <template> 1 <template>
2 - <div style="background-color: #f0f2f5">  
3 - <BasicTable @register="registerTable"> 2 + <div style="background-color: #f0f2f5" class="dark:bg-dark-900">
  3 + <BasicTable @register="registerTable" class="dark:bg-dark-900">
4 <template #toolbar> 4 <template #toolbar>
5 <Authority value="api:yt:smsLog:export"> 5 <Authority value="api:yt:smsLog:export">
6 <a-button type="primary" @click="handleCreate"> 导出 </a-button> 6 <a-button type="primary" @click="handleCreate"> 导出 </a-button>
1 <template> 1 <template>
2 - <div style="background-color: #f0f2f5">  
3 - <BasicTable @register="registerTable"> 2 + <div style="background-color: #f0f2f5" class="dark:bg-dark-900">
  3 + <BasicTable @register="registerTable" class="dark:bg-dark-900">
4 <template #toolbar> 4 <template #toolbar>
5 <Authority value="api:yt:smsLog:export"> 5 <Authority value="api:yt:smsLog:export">
6 <a-button type="primary" @click="handleExport"> 导出 </a-button> 6 <a-button type="primary" @click="handleExport"> 导出 </a-button>
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 </script> 15 </script>
16 16
17 <template> 17 <template>
18 - <section class="widget"> 18 + <section class="widget !dark:bg-dark-900">
19 <slot name="header"></slot> 19 <slot name="header"></slot>
20 20
21 <div class="widget-content"> 21 <div class="widget-content">
@@ -45,7 +45,14 @@ @@ -45,7 +45,14 @@
45 45
46 .widget-select:deep(.ant-card-body) { 46 .widget-select:deep(.ant-card-body) {
47 /* height: 240px; */ 47 /* height: 240px; */
48 - width: 240px; 48 +
  49 + /* width: 236px;
  50 + height: 196px; */
  51 +
  52 + /* width: 100%;
  53 + height: 100%; */
  54 + width: 236px;
  55 + height: 236px;
49 padding: 0; 56 padding: 0;
50 box-sizing: border-box; 57 box-sizing: border-box;
51 display: flex; 58 display: flex;
@@ -64,10 +71,18 @@ @@ -64,10 +71,18 @@
64 } 71 }
65 72
66 .widget-select .widget-container { 73 .widget-select .widget-container {
67 - width: 240px;  
68 - height: 200px; 74 + width: 236px;
  75 + height: 196px;
69 display: flex; 76 display: flex;
70 justify-content: center; 77 justify-content: center;
71 align-items: center; 78 align-items: center;
72 } 79 }
  80 +
  81 + [data-theme='dark'] .widget-select:deep(.ant-card-body) {
  82 + @apply bg-dark-900;
  83 + }
  84 +
  85 + [data-theme='dark'] .widget-select:deep(.ant-card) {
  86 + @apply border-dark-300;
  87 + }
73 </style> 88 </style>
@@ -565,6 +565,10 @@ @@ -565,6 +565,10 @@
565 background-color: #fff; 565 background-color: #fff;
566 } 566 }
567 567
  568 + [data-theme='dark'] .board-detail:deep(.ant-page-header-heading) {
  569 + @apply bg-dark-900;
  570 + }
  571 +
568 .board-detail:deep(.ant-page-header-heading-extra) { 572 .board-detail:deep(.ant-page-header-heading-extra) {
569 margin: 0; 573 margin: 0;
570 line-height: 78px; 574 line-height: 78px;
@@ -189,13 +189,13 @@ @@ -189,13 +189,13 @@
189 189
190 <template> 190 <template>
191 <PageWrapper> 191 <PageWrapper>
192 - <div class="flex items-center mb-3 bg-light-100 h-78px"> 192 + <div class="flex items-center mb-3 bg-light-100 h-78px dark:text-gray-300 dark:bg-dark-900">
193 <div class="text-lg ml-30px mr-9px font-bold">自定义看板</div> 193 <div class="text-lg ml-30px mr-9px font-bold">自定义看板</div>
194 <Authority value="api:yt:data_board:add:post"> 194 <Authority value="api:yt:data_board:add:post">
195 <Button type="primary" @click="handleOpenDetailModal">创建看板</Button> 195 <Button type="primary" @click="handleOpenDetailModal">创建看板</Button>
196 </Authority> 196 </Authority>
197 </div> 197 </div>
198 - <div class="bg-light-100 mb-6 w-full p-3 search-form"> 198 + <div class="bg-light-100 mb-6 w-full p-3 search-form dark:text-gray-300 dark:bg-dark-900">
199 <BasicForm class="flex-auto w-full" @register="searchFormRegister" /> 199 <BasicForm class="flex-auto w-full" @register="searchFormRegister" />
200 </div> 200 </div>
201 <Spin :spinning="loading"> 201 <Spin :spinning="loading">
@@ -309,4 +309,9 @@ @@ -309,4 +309,9 @@
309 padding: 10px; 309 padding: 10px;
310 background-color: #fff; 310 background-color: #fff;
311 } 311 }
  312 +
  313 + [data-theme='dark'] .data-board-list:deep(.ant-list-pagination) {
  314 + padding: 10px;
  315 + background-color: #000;
  316 + }
312 </style> 317 </style>