1、修复主题设置无法生效的bug
2、SVG本地化V3 3、优化控制台数据显示方式为异步,以提高整体渲染效率
@ -1 +1 @@
|
||||
<svg t="1755573058467" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="62812" width="200" height="200"><path d="M432.115602 109.378637v482.605741h482.605741c-26.694786 212.758446-208.759227 377.926186-428.616285 377.926186C247.951572 969.910564 54.089436 776.148409 54.089436 537.894942c0-219.857059 165.167741-401.9215 378.026166-428.516305m53.989456-57.388791C217.657489 51.989846 0.09998 269.547354 0.09998 537.994923c0 268.347588 217.557508 486.005077 486.005078 486.005077 268.347588 0 486.005077-217.557508 486.005077-486.005077H486.105058V51.989846z" fill="#303030" p-id="62813"></path><path d="M591.984378 57.488772C787.04628 81.884007 942.115993 236.95372 966.511228 432.115602H591.984378V57.488772M537.894942 0.09998v486.005078h486.005078C1023.90002 217.657489 806.342511 0.09998 537.894942 0.09998z" fill="#303030" p-id="62814"></path></svg>
|
||||
<svg t="1755841428966" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20049" width="200" height="200"><path d="M913.3459 505.68709H511.714844v-401.631056a36.511914 36.511914 0 0 0-36.511914-36.511914L438.691016 69.004597a475.385122 475.385122 0 0 0-425.728919 584.190626A474.654884 474.654884 0 0 0 949.857814 578.710918v-36.511914a36.511914 36.511914 0 0 0-36.511914-36.511914z m-438.14297 438.14297a401.631056 401.631056 0 0 1-36.511914-803.262111v402.361293a35.781676 35.781676 0 0 0 35.781676 35.781676H876.833986a400.900817 400.900817 0 0 1-401.631056 365.119142z" p-id="20050"></path><path d="M1016.309498 388.118726A476.115361 476.115361 0 0 0 626.362255 0.362198 36.511914 36.511914 0 0 0 584.738672 37.604351v370.230809a25.55834 25.55834 0 0 0 25.55834 24.828102h370.23081a36.511914 36.511914 0 0 0 36.511914-36.511914 29.93977 29.93977 0 0 0-0.730238-8.032622z m-351.974853-28.479293A6.572145 6.572145 0 0 1 657.762501 353.067289V73.386026a397.979864 397.979864 0 0 1 278.220786 284.062693z" p-id="20051"></path></svg>
|
||||
|
Before Width: | Height: | Size: 897 B After Width: | Height: | Size: 1.0 KiB |
1
cds-fontend-2025.V1/src/assets/svg-icon/menu/bili2.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg t="1755841707357" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31794" width="200" height="200"><path d="M201.427923 447.246293q5.037597-99.216095 86.540189-127.250529a9.051293 9.051293 0 0 1 10.23902 10.239019 168.452342 168.452342 0 0 1-2.559755 20.375648 249.442983 249.442983 0 0 0-10.239019 73.720937q7.658786 99.216095 61.06551 114.51319 35.59083-2.477843 38.171063-91.618743 0-76.362604-38.171063-83.959957h-5.058076c-17.01725-1.638243-24.573646-5.918153-22.894447-12.696383a137.428114 137.428114 0 0 1 15.276617-45.82985 7.454006 7.454006 0 0 1 2.539277-5.099031 26.191411 26.191411 0 0 1 27.973-17.774938q89.099944 15.256138 96.738252 132.288127-10.239019 152.725209-129.810284 157.824241-117.072944-12.73734-129.789806-124.711253z m201.053379 313.027292h-48.369126l2.559755-5.099032a43.433919 43.433919 0 0 0 2.539276-10.239019l249.422506-450.51684h-2.559755a22.976359 22.976359 0 0 1 20.375648-12.73734h22.914925c8.45743 0 12.696384 3.419832 12.696383 10.239019a20.170868 20.170868 0 0 1-2.539276 12.696384L410.11961 760.294063h-7.638308z m269.777675-244.302996q-10.239019 22.894447 2.539277-7.638308c0 1.720155 1.638243-0.819122 5.099032-7.638308q10.116151-27.932044 27.973-22.894447 91.659699 12.778296 96.738252 134.909316-10.239019 147.585221-127.250529 147.585221-117.134379-5.078553-129.810284-117.072944 5.078553-101.734894 86.540189-127.209574c6.737275 0 10.239019 4.238954 10.239019 12.696384a58.485277 58.485277 0 0 1-5.139987 17.795415 249.832066 249.832066 0 0 0-10.239019 73.720938q7.658786 99.257051 61.065509 114.513189 40.669384 0 40.730818-91.618743-2.621189-73.720938-40.730818-83.959956h-10.239019c-13.597417 0-19.51557-4.218476-17.774937-12.73734a140.7046 140.7046 0 0 1 10.239019-30.532755z m351.66935-3.952261a510.845141 510.845141 0 0 1-805.155506 418.693969 46.403235 46.403235 0 0 1-34.259758-44.683079l-0.450516-4.27991a46.444191 46.444191 0 0 1 80.642514-31.577135 420.536993 420.536993 0 1 0-132.615775-160.138259l-7.576875 7.576874a46.423713 46.423713 0 0 1 29.017381 43.00388l0.430038 4.27991a46.403235 46.403235 0 1 1-91.086314 12.757818 511.950955 511.950955 0 1 1 961.013855-245.736458z" p-id="31795"></path></svg>
|
After Width: | Height: | Size: 2.2 KiB |
1
cds-fontend-2025.V1/src/assets/svg-icon/menu/bili3.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg t="1755841867225" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="38155" width="200" height="200"><path d="M302.156 450.693c6.318 11.211 14.878 21.402 25.683 30.572s22.625 15.9 35.67 19.975c13.045 4.281 25.479 6.318 37.098 6.114 15.287 0 30.164-3.057 44.844-9.376 14.676-6.318 26.293-13.859 35.060-22.625 8.765-8.765 15.9-17.937 21.402-27.519 5.503-9.581 9.581-19.159 12.233-28.942 5.097-19.773 5.708-37.301 1.837-52.587-3.872-15.287-8.56-27.519-14.269-36.689-5.503-8.971-12.841-17.937-22.014-26.907-9.171-8.765-19.975-15.9-32.409-21.196-12.637-5.3-27.722-7.95-45.453-7.95-7.54 0.205-15.694 1.019-24.461 2.24-8.765 1.428-18.346 4.686-28.741 9.782-10.396 5.097-20.588 12.637-30.371 22.625-9.987 9.782-17.529 20.588-23.030 32.409-5.3 11.618-8.56 24.255-9.782 37.911-1.223 13.454 0.205 27.519 4.078 41.783 2.24 9.171 6.318 19.159 12.637 30.371zM315.202 372.015c2.036-12.026 7.338-23.645 15.491-34.446 8.356-10.802 18.753-19.364 31.391-25.683 12.637-6.114 26.092-9.376 40.562-9.376 12.637 0.205 24.255 2.647 34.649 7.338 10.396 4.686 21.402 12.841 32.815 24.663 11.618 11.823 17.529 29.556 18.142 53.198 0.205 11.007-1.837 22.421-6.114 33.839-4.281 11.618-12.841 23.44-25.683 35.874-12.841 12.434-31.186 19.159-55.238 20.384-9.581 0.406-19.773-1.632-30.778-6.318-11.007-4.686-19.773-10.396-26.702-16.917-6.931-6.522-12.841-13.654-17.732-21.402-4.893-7.747-8.56-16.917-10.601-27.519-2.24-10.19-2.24-21.607-0.205-33.632zM729.18 567.079c-5.503-9.171-12.841-17.937-21.607-26.498-8.971-8.56-19.975-15.694-33.427-21.402-13.249-5.708-28.129-8.356-44.844-8.356-6.725 0.205-14.878 1.019-24.663 2.854s-19.364 4.893-28.942 9.581c-9.581 4.686-19.364 12.233-29.761 22.421-10.19 10.19-18.142 20.994-23.237 32.409-5.3 11.414-8.56 23.847-9.581 37.301-1.223 13.454 0.205 27.722 4.078 42.397 2.24 9.171 6.522 19.159 12.637 30.164 6.114 10.802 14.473 20.994 25.683 30.164 11.007 9.376 23.030 16.103 35.67 20.177 12.841 4.078 25.274 6.114 37.301 6.114 15.287 0 30.371-3.057 44.844-9.376 14.473-6.114 26.092-13.654 35.060-22.625 8.971-8.971 16.103-18.142 21.402-27.519 5.3-9.376 9.376-18.956 12.026-28.538 5.097-19.568 5.708-37.098 1.837-52.587-4.281-15.287-8.971-27.519-14.473-36.689zM709.409 659.007c-4.281 11.414-12.841 23.44-25.683 36.078s-31.391 19.159-55.443 19.975c-9.171 0.406-19.364-1.632-30.572-6.522-11.211-4.893-19.975-10.396-26.702-16.715-6.725-6.318-12.637-13.454-17.732-21.196-5.097-7.747-8.765-16.917-10.802-27.519-2.24-9.987-2.24-21.196 0-33.632 2.24-12.434 7.338-24.052 15.694-34.649s18.753-19.364 31.391-25.479c12.637-6.114 26.092-9.376 40.562-9.376 12.841 0.205 24.461 2.647 34.857 7.338 10.396 4.686 21.196 13.045 32.815 24.868 11.414 12.026 17.529 29.761 17.937 53.198 0 11.007-2.036 22.014-6.318 33.632zM278.921 719.545l18.549 24.052 453.116-444.963-19.975-23.847-451.687 444.758zM511.898-4.868c-283.324 0-513.653 230.33-513.653 513.653 0 283.121 230.33 513.653 513.653 513.653 283.121 0 513.653-230.531 513.653-513.653 0-283.324-230.33-513.653-513.653-513.653zM511.898 984.117c-262.126 0-475.333-213.209-475.333-475.333 0-262.126 213.209-475.333 475.333-475.333 262.126 0 475.333 213.209 475.333 475.333 0.205 262.126-213.209 475.333-475.333 475.333z" p-id="38156"></path></svg>
|
After Width: | Height: | Size: 3.2 KiB |
@ -1 +1 @@
|
||||
<svg t="1755571910705" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="36078" width="200" height="200"><path d="M896 990.4H128a32 32 0 0 1 0-64h768a32 32 0 0 1 0 64z" fill="#4D4D4D" p-id="36079"></path><path d="M512 990.4a32 32 0 0 1-32-32v-192a32 32 0 0 1 64 0v192a32 32 0 0 1-32 32z" fill="#4D4D4D" p-id="36080"></path><path d="M864 792.64H160a128 128 0 0 1-128-128v-512a128 128 0 0 1 128-128h704a128 128 0 0 1 128 128v512a128 128 0 0 1-128 128z m-704-704a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64v-512a64 64 0 0 0-64-64z" fill="#4D4D4D" p-id="36081"></path><path d="M960 664.64H64a32 32 0 0 1 0-64h896a32 32 0 0 1 0 64zM200 391.68a32 32 0 0 1-22.72-9.6 32 32 0 0 1 0-45.12l112-112a32 32 0 0 1 45.44 0 32 32 0 0 1 0 45.12l-112 112a32 32 0 0 1-22.72 9.6z" fill="#4D4D4D" p-id="36082"></path><path d="M312 504.64a32 32 0 0 1-22.72-9.6l-112-112a32 32 0 0 1 0-45.12 32 32 0 0 1 45.44 0l112 112a32 32 0 0 1-22.72 54.72zM824 391.68a32 32 0 0 1-22.72-9.6l-112-112a32 32 0 0 1 0-45.12 32 32 0 0 1 45.44 0l112 112a32 32 0 0 1-22.72 54.72z" fill="#4D4D4D" p-id="36083"></path><path d="M712 504.64a32 32 0 0 1-22.72-54.72l112-112a32 32 0 0 1 45.44 0 32 32 0 0 1 0 45.12l-112 112a32 32 0 0 1-22.72 9.6zM438.08 519.68a32 32 0 0 1-16-4.48 32 32 0 0 1-11.52-43.52l147.52-256a32.096 32.096 0 0 1 55.68 32l-147.84 256a32 32 0 0 1-27.84 16z" fill="#4D4D4D" p-id="36084"></path></svg>
|
||||
<svg t="1755842825279" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="74624" width="200" height="200"><path d="M916.108 114.967h-805.33a62.836 62.836 0 0 0-62.79 62.79v686.778c0 34.63 28.16 62.837 62.79 62.837h805.33c34.63 0 62.836-28.16 62.836-62.837V177.711a62.93 62.93 0 0 0-62.836-62.744z m-7.029 69.818v62.65H117.807v-62.65h791.272zM117.807 857.507v-540.3h791.272V857.46H117.807z m506.88-472.064L460.66 821.062a34.91 34.91 0 1 1-65.35-24.67L559.29 360.82a34.956 34.956 0 0 1 65.397 24.623zM341.969 549.236l-68.002 68.003 68.002 68.05a34.91 34.91 0 0 1-49.338 49.384l-92.718-92.718a34.863 34.863 0 0 1 0-49.338l92.718-92.672a34.91 34.91 0 0 1 49.338 49.291z m485.702-29.882a34.91 34.91 0 0 1 0 49.385l-92.718 92.718a34.816 34.816 0 0 1-49.338 0 34.91 34.91 0 0 1 0-49.384l68.049-68.05-68.05-68.05A34.91 34.91 0 1 1 735 426.59l92.672 92.765z" p-id="74625"></path></svg>
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 918 B |
@ -1 +1 @@
|
||||
<svg t="1755572567901" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="53364" width="200" height="200"><path d="M525.097674 11.906977C252.427907 11.906977 30.95814 233.376744 30.95814 506.046512S252.427907 1000.186047 525.097674 1000.186047s494.139535-221.469767 494.139535-494.139535S796.576744 11.906977 525.097674 11.906977z m0 940.651163C278.623256 952.55814 78.586047 752.52093 78.586047 506.046512S278.623256 59.534884 525.097674 59.534884s446.511628 200.037209 446.511628 446.511628S770.381395 952.55814 525.097674 952.55814z" fill="#464646" p-id="53365"></path><path d="M396.502326 547.72093c-8.334884-8.334884-17.860465-15.47907-29.767442-20.24186v-1.190698c60.725581-16.669767 91.683721-53.581395 91.683721-110.734884 0-34.530233-11.906977-61.916279-34.530233-80.967441-22.623256-19.051163-53.581395-28.576744-94.065116-28.576745H204.8v411.981396h53.581395V542.95814h38.102326c15.47907 0 29.767442 3.572093 40.483721 11.906976s23.813953 23.813953 36.911628 46.43721l67.869767 114.306976h63.106977L428.651163 592.967442c-13.097674-21.432558-23.813953-36.911628-32.148837-45.246512z m-76.204652-51.2h-63.106976V351.255814H321.488372c26.195349 0 46.437209 5.953488 60.725581 17.860465 14.288372 11.906977 20.24186 28.576744 20.241861 50.009302 0 22.623256-7.144186 41.674419-22.623256 55.962791s-34.530233 21.432558-59.534884 21.432558zM833.488372 359.590698c-41.674419-35.72093-92.874419-54.772093-155.981395-54.772093H559.627907v411.981395h113.116279c65.488372 0 117.87907-19.051163 159.553488-57.153488 41.674419-38.102326 61.916279-89.302326 61.916279-153.6 1.190698-61.916279-20.24186-110.734884-60.725581-146.455814z m-38.102325 266.716279c-29.767442 28.576744-70.251163 42.865116-122.641861 42.865116h-59.534884V352.446512h61.916279c48.818605 0 88.111628 13.097674 119.069768 39.293023 29.767442 26.195349 45.246512 64.297674 45.246511 115.497674 0 51.2-15.47907 90.493023-44.055813 119.069768z" fill="#464646" p-id="53366"></path></svg>
|
||||
<svg t="1755842482164" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="55391" id="mx_n_1755842482164" width="200" height="200"><path d="M525.097674 11.906977C252.427907 11.906977 30.95814 233.376744 30.95814 506.046512S252.427907 1000.186047 525.097674 1000.186047s494.139535-221.469767 494.139535-494.139535S796.576744 11.906977 525.097674 11.906977z m0 940.651163C278.623256 952.55814 78.586047 752.52093 78.586047 506.046512S278.623256 59.534884 525.097674 59.534884s446.511628 200.037209 446.511628 446.511628S770.381395 952.55814 525.097674 952.55814z" fill="#464646" p-id="55392"></path><path d="M396.502326 547.72093c-8.334884-8.334884-17.860465-15.47907-29.767442-20.24186v-1.190698c60.725581-16.669767 91.683721-53.581395 91.683721-110.734884 0-34.530233-11.906977-61.916279-34.530233-80.967441-22.623256-19.051163-53.581395-28.576744-94.065116-28.576745H204.8v411.981396h53.581395V542.95814h38.102326c15.47907 0 29.767442 3.572093 40.483721 11.906976s23.813953 23.813953 36.911628 46.43721l67.869767 114.306976h63.106977L428.651163 592.967442c-13.097674-21.432558-23.813953-36.911628-32.148837-45.246512z m-76.204652-51.2h-63.106976V351.255814H321.488372c26.195349 0 46.437209 5.953488 60.725581 17.860465 14.288372 11.906977 20.24186 28.576744 20.241861 50.009302 0 22.623256-7.144186 41.674419-22.623256 55.962791s-34.530233 21.432558-59.534884 21.432558zM833.488372 359.590698c-41.674419-35.72093-92.874419-54.772093-155.981395-54.772093H559.627907v411.981395h113.116279c65.488372 0 117.87907-19.051163 159.553488-57.153488 41.674419-38.102326 61.916279-89.302326 61.916279-153.6 1.190698-61.916279-20.24186-110.734884-60.725581-146.455814z m-38.102325 266.716279c-29.767442 28.576744-70.251163 42.865116-122.641861 42.865116h-59.534884V352.446512h61.916279c48.818605 0 88.111628 13.097674 119.069768 39.293023 29.767442 26.195349 45.246512 64.297674 45.246511 115.497674 0 51.2-15.47907 90.493023-44.055813 119.069768z" fill="#464646" p-id="55393"></path></svg>
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.0 KiB |
@ -0,0 +1 @@
|
||||
<svg t="1755843007667" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="87355" width="200" height="200"><path d="M908.413677 244.155569a24.473857 24.473857 0 0 0-3.158981-13.50592 28.026836 28.026836 0 0 0-13.316922-11.831931c-0.373998-0.240999-0.690996-0.542997-1.079994-0.762996L460.7283 2.083988c-9.629944-4.126976-21.334875-1.904989-29.546826 4.981971L23.400863 218.048722a30.576821 30.576821 0 0 0-6.460962 4.351975 28.041836 28.041836 0 0 0-13.337922 11.84193c-3.41498 5.979965-3.967977 12.759925-2.287987 19.009889A25.379851 25.379851 0 0 0 0.003 261.242469v469.721248c0 9.409945 5.395968 18.021894 13.142923 22.880866 1.837989 2.324986 3.998977 4.397974 6.649961 5.913965l415.732564 253.755513c5.400968 1.802989 8.999947 3.599979 14.396916 3.599979 1.284992 0 2.569985-0.097999 3.844977-0.250998l0.072 0.005c1.079994 0.142999 2.175987 0.245999 3.281981 0.245998 3.35298 0 8.257952-0.041 11.82193-2.954982a28.393834 28.393834 0 0 0 3.614979-2.221987l142.934163-79.405535c12.599926-7.197958 17.995895-23.397863 10.797936-35.992789-7.198958-12.599926-23.398863-17.996895-35.993789-10.797937l-106.183378 58.991654v-448.237373l370.737828-207.676783v84.003507c0 14.396916 12.599926 26.997842 26.996842 26.997842s26.997842-12.599926 26.997842-26.997842V248.646543a24.227858 24.227858 0 0 0-0.434998-4.489974zM53.992684 292.842284L430.13148 507.547026v438.310432L53.993684 716.268803v-423.427519z m391.805704 164.217038L81.032525 247.279551l369.897833-189.771888 373.429812 187.498901-378.560782 212.052758z" p-id="87356"></path><path d="M368.942838 567.190677l-201.568819-116.981315c-14.396916-9.000947-30.595821-3.599979-37.794778 8.999947-9.000947 14.397916-3.599979 30.597821 8.999947 37.796779l201.568819 116.980314c5.401968 1.802989 9.000947 3.599979 14.397916 3.599979 8.999947 0 17.995895-3.599979 23.397862-12.599926 8.995947-14.397916 3.599979-30.597821-8.999947-37.795778z m453.322344-107.990368h0.593997M774.045465 686.945975l142.979162 0.501997-178.337955 259.833478 34.0428-208.761777-142.980162-0.501997L814.07823 485.117158l-40.032765 201.828817z m48.209717-265.480445h-2.943983c-8.253952 1.177993-16.501903 4.715972-24.171858 13.562921l-1.76599 2.354986-211.58876 279.484363c-8.841948 12.384927-10.013941 25.942848-2.942983 39.499768 6.491962 12.379927 19.459886 20.628879 33.611803 20.628879l109.061361 0.567997-34.739796 202.218815c-2.948983 17.0949 6.491962 34.1908 22.404869 41.261758 4.720972 2.359986 10.029941 2.943983 15.33491 2.943983 11.196934 0 21.216876-5.309969 28.881831-15.33491l211.58276-303.061224c8.841948-12.384927 10.013941-25.942848 2.943983-39.499769-7.075959-13.557921-18.283893-20.628879-33.612803-20.628879l-109.060361 0.02 34.154799-177.45796c0.583997-2.943983 1.177993-5.892965 1.177994-8.836949-0.005-20.632879-17.1059-37.728779-36.561786-37.723779h-1.76599z" p-id="87357"></path></svg>
|
After Width: | Height: | Size: 2.8 KiB |
1
cds-fontend-2025.V1/src/assets/svg-icon/menu/juese1.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg t="1755841254089" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15470" width="200" height="200"><path d="M762.3 323.5c0-142.5-115.5-258.1-258-258.2v-0.1c-68.5 0-134.2 27.2-182.7 75.6C273.2 189.2 246 255 246 323.5c0 96.6 53.7 179.9 132.3 224.2C235.6 599 132.8 733.8 131.4 893.8v5.1c0.2 9.2 2 17.9 2.8 27.1h0.6c1.5 14.3 13.5 25.1 27.9 25.1 14.3 0 26.4-10.8 27.9-25.1h0.9c-0.8-9.7-2.9-19-2.9-28.8 0-83.7 33.2-164 92.4-223.2 59.2-59.2 139.5-92.5 223.2-92.4l28.7-2.9c128.8-14.3 229.4-122.5 229.4-255.2z m-459 0c0-111 89.9-200.9 200.9-200.9s200.9 89.9 200.9 200.9-89.9 200.9-200.9 200.9-200.9-90-200.9-200.9zM725.7 938.6V783.4h140.6c12.4 0 22.6-10.2 22.6-22.6v-4.5c0-12.4-10.2-22.6-22.6-22.6H725.7V605.3c0-12.4-10.2-22.6-22.6-22.6h-6.8c-12.4 0-22.6 10.2-22.6 22.6v128.3H533c-12.4 0-22.6 10.2-22.6 22.6v4.5c0 12.4 10.2 22.6 22.6 22.6h140.6v155.2c0 12.4 10.2 22.6 22.6 22.6h6.8c12.5 0.1 22.7-10.1 22.7-22.5z" p-id="15471"></path></svg>
|
After Width: | Height: | Size: 979 B |
1
cds-fontend-2025.V1/src/assets/svg-icon/menu/result.svg
Normal file
After Width: | Height: | Size: 10 KiB |
1
cds-fontend-2025.V1/src/assets/svg-icon/menu/shenji.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg t="1755840978460" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8739" width="200" height="200"><path d="M511.7 79.9c3.2 2.5 7 5.6 11.2 9 38.6 30.9 103.1 82.6 170.9 99 62 14.2 125.4 15.7 149.8 15.7 9.5 0 17.3-0.2 22.4-0.3v147.9c0 512.8-319.7 588.9-356.2 595.6-48.1-10-351.9-92.9-351.9-595.6V203.8c5.3 0.1 12.8 0.3 21.9 0.3 38.6 0 96.2-2.8 151-15.9 69.1-16.4 134.1-65.1 180.9-108.3M509.9 0c-12.7 0-25.5 3.7-36.6 10.6C470.6 12.7 391 95 313 113.5c-50.9 12.2-105.6 13.8-133.2 13.8-16.4 0-27.1-0.5-28.1-0.5h-4.2c-17 0-32.9 6.4-45.1 17.5-13.3 12.2-21.2 29.2-21.2 46.7v160.2c0 592.6 400.6 668.5 417.6 671.7 3.7 0.5 8 1.1 11.7 1.1 3.7 0 8-0.5 11.7-1.1 17-3.2 420.7-79.6 420.7-671.7V190.5c-0.5-17.5-8-34.5-21.2-46.7-12.2-11.1-28.7-17.5-45.1-17.5h-4.8c-1.1 0-11.7 0.5-28.1 0.5-27.6 0-81.7-2.1-132.6-13.8C645.2 97.1 569.3 24.9 547 10.6 535.9 3.2 522.6 0 509.9 0z" p-id="8740"></path><path d="M773.6 373l-278 269c-1.6 2.7-3.7 5.8-6.4 8-8 8-19.1 11.7-29.7 11.7-10.6 0-21.2-3.7-29.7-11.7-2.7-2.7-4.8-5.3-6.4-8L274.8 498.2c-15.9-15.4-15.9-39.8 0-55.2 15.9-15.4 41.4-15.4 57.3 0l127.3 123.1 256.8-248.3c15.9-15.4 41.4-15.4 57.3 0 15.5 15.4 15.5 39.8 0.1 55.2z" p-id="8741"></path></svg>
|
After Width: | Height: | Size: 1.2 KiB |
@ -1 +1 @@
|
||||
<svg t="1755569992196" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3142" width="200" height="200"><path d="M785.61 636.44c-18.96 0-34.35-15.35-34.38-34.31-0.03-18.99 15.33-34.41 34.31-34.45l137.52-0.26h0.07c18.96 0 34.35 15.35 34.38 34.31 0.03 18.99-15.33 34.41-34.31 34.45l-137.52 0.26h-0.07zM923.14 814.15H648.09c-18.99 0-34.38-15.39-34.38-34.38s15.39-34.38 34.38-34.38h275.05c18.99 0 34.38 15.39 34.38 34.38s-15.39 34.38-34.38 34.38zM923.14 992H648.09c-18.99 0-34.38-15.39-34.38-34.38 0-18.99 15.39-34.38 34.38-34.38h275.05c18.99 0 34.38 15.39 34.38 34.38 0 18.99-15.39 34.38-34.38 34.38zM510.57 578.74c-150.74 0-273.37-123.4-273.37-275.07C237.2 153.87 359.83 32 510.57 32s273.38 121.87 273.38 271.67c0 151.67-122.64 275.07-273.38 275.07z m0-477.98c-112.82 0-204.61 91.02-204.61 202.91 0 113.76 91.78 206.31 204.61 206.31s204.62-92.54 204.62-206.31c-0.01-111.89-91.8-202.91-204.62-202.91z" fill="#231815" p-id="3143"></path><path d="M100.86 992c-18.99 0-34.38-15.39-34.38-34.38 0-246.75 199.21-447.5 444.09-447.5 18.99 0 34.38 15.39 34.38 34.38 0 18.99-15.39 34.38-34.38 34.38-206.96 0-375.32 169.9-375.32 378.74-0.01 18.99-15.4 34.38-34.39 34.38z" fill="#231815" p-id="3144"></path></svg>
|
||||
<svg t="1755841074421" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9755" width="200" height="200"><path d="M531.7 479.8c58.1-1 112.6-24.1 153.8-65.3 42.1-42.1 65.3-98.2 65.3-157.7S727.6 141.1 685.5 99c-42.1-42.1-98.2-65.3-157.7-65.3-59.7 0-115.7 23.2-157.8 65.3-42.1 42.1-65.3 98.2-65.3 157.7s23.2 115.6 65.3 157.7c12 12 25.2 22.5 39.2 31.3-21 5.6-41.5 12.7-61.7 21.2-56.4 23.8-107 58-150.4 101.4-43.5 43.5-77.6 94.1-101.4 150.4C71 777.2 58.4 839.2 58.4 903.1h50c0-233.4 189.9-423.3 423.3-423.3zM354.6 256.7c0-95.4 77.6-173.1 173.1-173.1s173.1 77.6 173.1 173.1-77.6 173.1-173.1 173.1-173.1-77.6-173.1-173.1zM661 576.2c0 13.8 11.2 25 25 25h192.9c13.8 0 25-11.2 25-25s-11.2-25-25-25H686c-13.8 0-25 11.2-25 25zM878.9 708.9H551.3c-13.8 0-25 11.2-25 25s11.2 25 25 25h327.5c13.8 0 25-11.2 25-25s-11.1-25-24.9-25zM878.9 881.3H551.3c-13.8 0-25 11.2-25 25s11.2 25 25 25h327.5c13.8 0 25-11.2 25-25s-11.1-25-24.9-25z" p-id="9756"></path></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 981 B |
@ -1 +1 @@
|
||||
<svg t="1755570954098" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18318" width="200" height="200"><path d="M248.685714 782.628571H950.857143v65.828572H248.685714v-65.828572z" fill="#2C2C2C" p-id="18319"></path><path d="M950.857143 58.514286c0-29.257143-21.942857-58.514286-58.514286-58.514286H131.657143c-36.571429 0-58.514286 29.257143-58.514286 58.514286V826.514286C73.142857 936.228571 160.914286 1024 270.628571 1024h650.971429c14.628571 0 29.257143-14.628571 29.257143-29.257143s-14.628571-29.257143-29.257143-29.257143H270.628571c-73.142857 0-131.657143-58.514286-131.657142-131.657143s58.514286-131.657143 131.657142-131.657142h650.971429c14.628571 0 29.257143-14.628571 29.257143-29.257143V58.514286zM138.971429 680.228571V65.828571h109.714285v570.514286c-43.885714 0-80.457143 14.628571-109.714285 43.885714z m746.057142-51.2H314.514286V65.828571h577.828571v563.2h-7.314286z" fill="#2C2C2C" p-id="18320"></path><path d="M431.542857 351.085714s-7.314286-7.314286-14.628571 0c0 7.314286-14.628571 43.885714-14.628572 51.2 0 7.314286-7.314286 36.571429 0 43.885715 0 0 7.314286 0 7.314286-7.314286-14.628571-14.628571-14.628571-51.2 14.628571-58.514286 21.942857-14.628571 7.314286-29.257143 7.314286-29.257143zM453.485714 402.285714s7.314286 7.314286 7.314286-7.314285c0-7.314286-7.314286-7.314286-14.628571-7.314286s-14.628571 21.942857-14.628572 43.885714 7.314286 14.628571 7.314286 14.628572V438.857143c-7.314286-7.314286 0-36.571429 14.628571-36.571429z" fill="#2C2C2C" p-id="18321"></path><path d="M548.571429 504.685714c14.628571 29.257143-29.257143 80.457143-117.028572 87.771429s-87.771429-73.142857-58.514286-117.028572c21.942857-36.571429 58.514286-36.571429 58.514286-36.571428 43.885714 7.314286 109.714286 43.885714 117.028572 65.828571z m-73.142858-51.2c-21.942857 0-36.571429 21.942857-36.571428 36.571429s14.628571 36.571429 36.571428 36.571428c14.628571 0 36.571429-21.942857 36.571429-36.571428s-21.942857-36.571429-36.571429-36.571429z m7.314286 7.314286c-14.628571 0-29.257143 14.628571-29.257143 29.257143s7.314286 29.257143 29.257143 29.257143c14.628571 0 29.257143-14.628571 29.257143-29.257143-14.628571-14.628571-21.942857-29.257143-29.257143-29.257143z" fill="#2C2C2C" p-id="18322"></path></svg>
|
||||
<svg t="1755841207962" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14467" width="200" height="200"><path d="M445.44 89.81333333H289.92c-15.14666667 0-27.41333333-12.26666667-27.41333333-27.41333333s12.26666667-27.41333333 27.41333333-27.41333333h155.52c15.14666667 0 27.41333333 12.26666667 27.41333333 27.41333333s-12.26666667 27.41333333-27.41333333 27.41333333z m0 0" p-id="14468"></path><path d="M136.64 882.45333333c-15.14666667 0-27.41333333-12.26666667-27.41333333-27.41333333V144.42666667c0-60.37333333 49.06666667-109.44 109.44-109.44h71.25333333c15.14666667 0 27.41333333 12.26666667 27.41333333 27.41333333s-12.26666667 27.41333333-27.41333333 27.41333333H218.66666667c-30.08 0-54.50666667 24.42666667-54.50666667 54.50666667v710.61333333c-0.10666667 15.25333333-12.37333333 27.52-27.52 27.52z m0 0M535.04 335.68c-6.72 0-13.22666667-1.38666667-18.77333333-3.73333333-14.4-6.18666667-23.36-19.09333333-23.36-33.70666667v-235.73333333c0-15.14666667 12.26666667-27.41333333 27.41333333-27.41333334s27.41333333 12.26666667 27.41333333 27.41333334v201.6l29.54666667-28.37333334c15.04-14.4 38.50666667-14.4 53.44 0l23.57333333 22.72V62.4c0-15.14666667 12.26666667-27.41333333 27.41333334-27.41333333s27.41333333 12.26666667 27.41333333 27.41333333v234.24c0 15.46666667-9.17333333 29.33333333-23.46666667 35.41333333-14.18666667 6.08-30.61333333 3.09333333-41.81333333-7.68l-40-38.4-40 38.4c-8.10666667 8.10666667-18.66666667 11.30666667-28.8 11.30666667z m0 0" p-id="14469"></path><path d="M868.37333333 988.69333333H218.56c-60.37333333 0-109.44-49.06666667-109.44-109.44v-24.32c0-15.14666667 12.26666667-27.41333333 27.41333333-27.41333333s27.41333333 12.26666667 27.41333334 27.41333333v24.32c0 30.08 24.42666667 54.50666667 54.50666666 54.50666667H868.26666667c15.14666667 0 27.41333333 12.26666667 27.41333333 27.41333333 0.10666667 15.25333333-12.16 27.52-27.30666667 27.52z m0 0" p-id="14470"></path><path d="M136.64 900.26666667h-0.96c-15.14666667-0.53333333-26.98666667-13.22666667-26.45333333-28.37333334 1.06666667-30.08 6.72-51.73333333 17.81333333-67.84 14.72-21.44 37.76-32.32 68.58666667-32.32h656c3.41333333-2.88 6.82666667-6.50666667 9.17333333-9.17333333V107.84c-1.92-5.44-12.48-16-17.92-17.92H445.44c-15.14666667 0-27.41333333-12.26666667-27.41333333-27.41333333s12.26666667-27.41333333 27.41333333-27.41333334h398.50666667c21.12 0 39.14666667 14.82666667 48 23.68 8.85333333 8.85333333 23.68 26.88 23.68 48v663.04c0 11.52-6.61333333 20.90666667-13.12 28.48-4.90666667 5.76-10.98666667 11.73333333-16.64 16.42666667-1.06666667 0.96-2.24 1.81333333-3.41333334 2.66666667-5.76 4.37333333-13.76 9.38666667-23.78666666 9.38666666H195.52c-16 0-29.86666667 0-31.46666667 47.14666667-0.53333333 14.72-12.69333333 26.34666667-27.41333333 26.34666667z m0 0" p-id="14471"></path><path d="M269.22666667 826.02666667c-15.14666667 0-27.41333333-12.26666667-27.41333334-27.41333334V62.4c0-15.14666667 12.26666667-27.41333333 27.41333334-27.41333333s27.41333333 12.26666667 27.41333333 27.41333333v736.10666667c0 15.25333333-12.26666667 27.52-27.41333333 27.52z m0 0M867.09333333 988.8h-1.70666666c-7.04-0.32-32-2.45333333-55.68-18.02666667-20.8-13.54666667-45.44-40.53333333-45.44-92.05333333 0-66.45333333 38.08-107.73333333 99.30666666-107.73333333 15.14666667 0 27.41333333 12.26666667 27.41333334 27.41333333s-12.26666667 27.41333333-27.41333334 27.41333333c-13.33333333 0-44.48 0-44.48 52.90666667 0 22.4 7.04 37.65333333 21.44 46.72 11.30666667 7.04 23.57333333 8.32 26.66666667 8.53333333 1.49333333-0.10666667 3.09333333 0 4.69333333 0.21333334 14.61333333 1.81333333 25.17333333 14.93333333 24 29.54666666-0.96 10.13333333-9.38666667 25.06666667-28.8 25.06666667z m-1.92-54.72c-1.17333333 0.10666667-2.45333333 0.32-3.62666666 0.64 1.17333333-0.32 2.34666667-0.53333333 3.62666666-0.64z m0 0" p-id="14472"></path></svg>
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 4.1 KiB |
@ -44,21 +44,28 @@ const tenantId = ref<CommonType.IdType>(authStore.userInfo?.user?.tenantId || '0
|
||||
<GlobalBreadcrumb v-if="!appStore.isMobile" class="ml-12px" />
|
||||
</div>
|
||||
<div class="h-full flex-y-center justify-end">
|
||||
<!-- 法人-->
|
||||
<TenantSelect v-if="!appStore.isMobile" v-model:value="tenantId" class="mr-12px w-150px" />
|
||||
<!-- 搜索-->
|
||||
<GlobalSearch v-if="themeStore.header.globalSearch.visible && !appStore.isMobile" />
|
||||
<!-- 消息-->
|
||||
<MessageButton />
|
||||
<!-- 全屏-->
|
||||
<FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" />
|
||||
<!-- 语言-->
|
||||
<!-- <LangSwitch
|
||||
v-if="themeStore.header.multilingual.visible"
|
||||
:lang="appStore.locale"
|
||||
:lang-options="appStore.localeOptions"
|
||||
@change-lang="appStore.changeLocale"
|
||||
/>-->
|
||||
<!-- 主题模式-->
|
||||
<ThemeSchemaSwitch
|
||||
:theme-schema="themeStore.themeScheme"
|
||||
:is-dark="themeStore.darkMode"
|
||||
@switch="themeStore.toggleThemeScheme"
|
||||
/>
|
||||
<!-- 主题配置-->
|
||||
<ThemeButton v-if="!appStore.isMobile" />
|
||||
<UserAvatar />
|
||||
</div>
|
||||
|
@ -62,6 +62,8 @@ const layoutConfig: LayoutConfig = {
|
||||
|
||||
function handleChangeMode(mode: UnionKey.ThemeLayoutMode) {
|
||||
if (props.disabled) return;
|
||||
// 保存到 localStorage
|
||||
localStorage.setItem('layout-mode', mode);
|
||||
|
||||
emit('update:mode', mode);
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ const appStore = useAppStore();
|
||||
<template>
|
||||
<NDrawer v-model:show="appStore.themeDrawerVisible" display-directive="show" :width="360">
|
||||
<NDrawerContent :title="$t('theme.themeDrawerTitle')" :native-scrollbar="false" closable>
|
||||
<!-- 主题模式-->
|
||||
<DarkMode />
|
||||
|
||||
<!-- 布局模式-->
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
import { themeSchemaRecord } from '@/constants/app';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { $t } from '@/locales';
|
||||
@ -11,6 +11,24 @@ defineOptions({
|
||||
|
||||
const themeStore = useThemeStore();
|
||||
|
||||
const invertedA = ref(false);
|
||||
const grayscaleA = ref(false);
|
||||
const colourWeaknessA = ref(false);
|
||||
|
||||
onMounted(() => {
|
||||
const invertedSavedValue = localStorage.getItem('inverted');
|
||||
const grayscaleSavedValue = localStorage.getItem('grayscale');
|
||||
const colourWeaknessSavedValue = localStorage.getItem('colourWeakness');
|
||||
|
||||
invertedA.value = invertedSavedValue === 'true';
|
||||
grayscaleA.value = grayscaleSavedValue === 'true';
|
||||
colourWeaknessA.value = colourWeaknessSavedValue === 'true';
|
||||
|
||||
themeStore.sider.inverted = invertedA.value;
|
||||
themeStore.setGrayscale(grayscaleA.value);
|
||||
themeStore.setColourWeakness(colourWeaknessA.value);
|
||||
});
|
||||
|
||||
const icons: Record<UnionKey.ThemeScheme, string> = {
|
||||
light: 'sunny',
|
||||
dark: 'nightlight',
|
||||
@ -18,14 +36,26 @@ const icons: Record<UnionKey.ThemeScheme, string> = {
|
||||
};
|
||||
|
||||
function handleSegmentChange(value: string | number) {
|
||||
localStorage.setItem('themeScheme', value as string);
|
||||
themeStore.setThemeScheme(value as UnionKey.ThemeScheme);
|
||||
}
|
||||
|
||||
function handleInvertedChange(value: boolean) {
|
||||
invertedA.value = value;
|
||||
localStorage.setItem('inverted', value.toString());
|
||||
themeStore.sider.inverted = value;
|
||||
}
|
||||
|
||||
// 处理灰度模式切换
|
||||
function handleGrayscaleChange(value: boolean) {
|
||||
grayscaleA.value = value;
|
||||
localStorage.setItem('grayscale', value.toString());
|
||||
themeStore.setGrayscale(value);
|
||||
}
|
||||
|
||||
function handleColourWeaknessChange(value: boolean) {
|
||||
colourWeaknessA.value = value;
|
||||
localStorage.setItem('colourWeakness', value.toString());
|
||||
themeStore.setColourWeakness(value);
|
||||
}
|
||||
|
||||
@ -51,14 +81,14 @@ const showSiderInverted = computed(() => !themeStore.darkMode && themeStore.layo
|
||||
</div>
|
||||
<Transition name="sider-inverted">
|
||||
<SettingItem v-if="showSiderInverted" :label="$t('theme.sider.inverted')">
|
||||
<NSwitch v-model:value="themeStore.sider.inverted" />
|
||||
<NSwitch v-model:value="invertedA" @update:value="handleInvertedChange"/>
|
||||
</SettingItem>
|
||||
</Transition>
|
||||
<SettingItem :label="$t('theme.grayscale')">
|
||||
<NSwitch :value="themeStore.grayscale" @update:value="handleGrayscaleChange" />
|
||||
<NSwitch v-model:value="grayscaleA" @update:value="handleGrayscaleChange" />
|
||||
</SettingItem>
|
||||
<SettingItem :label="$t('theme.colourWeakness')">
|
||||
<NSwitch :value="themeStore.colourWeakness" @update:value="handleColourWeaknessChange" />
|
||||
<NSwitch v-model:value="colourWeaknessA" @update:value="handleColourWeaknessChange" />
|
||||
</SettingItem>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -2,6 +2,7 @@
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { $t } from '@/locales';
|
||||
import SettingItem from '../components/setting-item.vue';
|
||||
import {onMounted} from "vue";
|
||||
|
||||
defineOptions({
|
||||
name: 'ThemeColor'
|
||||
@ -10,9 +11,36 @@ defineOptions({
|
||||
const themeStore = useThemeStore();
|
||||
|
||||
function handleUpdateColor(color: string, key: App.Theme.ThemeColorKey) {
|
||||
console.log(color,key)
|
||||
localStorage.setItem(key, color);
|
||||
themeStore.updateThemeColors(key, color);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
/*localStorage.clear()*/
|
||||
const primaryValue = localStorage.getItem('primary');
|
||||
const infoValue = localStorage.getItem('info');
|
||||
const successValue = localStorage.getItem('success');
|
||||
const warningValue = localStorage.getItem('warning');
|
||||
const errorValue = localStorage.getItem('error');
|
||||
|
||||
if(primaryValue != null){
|
||||
themeStore.updateThemeColors('primary', primaryValue);
|
||||
}
|
||||
if(infoValue != null){
|
||||
themeStore.updateThemeColors('info', infoValue);
|
||||
}
|
||||
if(successValue != null){
|
||||
themeStore.updateThemeColors('success', successValue);
|
||||
}
|
||||
if(warningValue != null){
|
||||
themeStore.updateThemeColors('warning', warningValue);
|
||||
}
|
||||
if(errorValue != null){
|
||||
themeStore.updateThemeColors('error', errorValue);
|
||||
}
|
||||
});
|
||||
|
||||
const swatches: string[] = [
|
||||
'#3b82f6',
|
||||
'#6366f1',
|
||||
|
@ -1,22 +1,38 @@
|
||||
/** Default theme settings */
|
||||
export const themeSettings: App.Theme.ThemeSetting = {
|
||||
themeScheme: 'light',
|
||||
grayscale: false,
|
||||
colourWeakness: false,
|
||||
/*主题模式*/
|
||||
/*themeScheme: 'light',*/
|
||||
themeScheme: localStorage.getItem('themeScheme') ? localStorage.getItem('themeScheme'):'light',
|
||||
|
||||
/*灰色模式*/
|
||||
/*grayscale: false,*/
|
||||
grayscale: localStorage.getItem('grayscale') === 'true',
|
||||
|
||||
/*色弱模式*/
|
||||
/*colourWeakness: false,*/
|
||||
colourWeakness: localStorage.getItem('colourWeakness') === 'true',
|
||||
|
||||
/*应用推荐算法的颜色*/
|
||||
recommendColor: false,
|
||||
|
||||
/*主题颜色*/
|
||||
//themeColor: '#0E42D2',
|
||||
themeColor: '#ef4444',//默认主色
|
||||
themeColor: localStorage.getItem('primary') ? localStorage.getItem('primary'):'#ef4444',//默认主色
|
||||
otherColor: {
|
||||
//info: '#0E42D2',
|
||||
info: '#ef4444',//默认信息色
|
||||
success: '#009A29',
|
||||
warning: '#D25F00',
|
||||
error: '#CB2634'
|
||||
info: localStorage.getItem('info') ? localStorage.getItem('info'):'#ef4444',//默认信息色
|
||||
success: localStorage.getItem('success') ? localStorage.getItem('success'):'#009A29',
|
||||
warning: localStorage.getItem('warning') ? localStorage.getItem('warning'):'#D25F00',
|
||||
error: localStorage.getItem('error') ? localStorage.getItem('error'):'#CB2634'
|
||||
},
|
||||
isInfoFollowPrimary: true,
|
||||
resetCacheStrategy: 'close',
|
||||
|
||||
/*布局模式*/
|
||||
layout: {
|
||||
mode: 'vertical',
|
||||
/*mode: 'vertical',*/
|
||||
/*mode: 'horizontal',*/
|
||||
mode: localStorage.getItem('layout-mode') ? localStorage.getItem('layout-mode') : 'vertical',
|
||||
scrollMode: 'content',
|
||||
reverseHorizontalMix: false
|
||||
},
|
||||
@ -45,7 +61,11 @@ export const themeSettings: App.Theme.ThemeSetting = {
|
||||
},
|
||||
fixedHeaderAndTab: true,
|
||||
sider: {
|
||||
inverted: false,
|
||||
|
||||
/*深色侧边栏*/
|
||||
/*inverted: false,*/
|
||||
inverted: localStorage.getItem('inverted') === 'true',
|
||||
|
||||
width: 220,
|
||||
collapsedWidth: 64,
|
||||
mixWidth: 90,
|
||||
|
@ -61,7 +61,15 @@ const cardTemplate: Omit<MktCardData, 'value'>[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const cardDataList = ref<MktCardData[]>([]);
|
||||
// 初始化为0值
|
||||
const initialCardData = cardTemplate.map(item => ({
|
||||
...item,
|
||||
value: 0
|
||||
})) as MktCardData[];
|
||||
|
||||
const cardDataList = ref<MktCardData[]>(initialCardData);
|
||||
|
||||
/*const cardDataList = ref<MktCardData[]>([]);*/
|
||||
const loading = ref(false);
|
||||
|
||||
// 从API获取卡片数据
|
||||
|
@ -16,6 +16,13 @@ const props = defineProps<{
|
||||
|
||||
const appStore = useAppStore();
|
||||
|
||||
// 初始化默认数据(空图表)
|
||||
const defaultChartData = {
|
||||
dates: [],
|
||||
yoyData: [],
|
||||
momData: []
|
||||
};
|
||||
|
||||
// 初始化ECharts实例
|
||||
const { domRef, updateOptions } = useEcharts(() => ({
|
||||
tooltip: {
|
||||
@ -111,6 +118,17 @@ const { domRef, updateOptions } = useEcharts(() => ({
|
||||
// 从API获取线图数据
|
||||
async function fetchLineData() {
|
||||
try {
|
||||
|
||||
// 显示默认空数据0
|
||||
updateOptions(opts => {
|
||||
opts.xAxis.data = defaultChartData.dates.map(date =>
|
||||
dayjs(date).format('MM/DD')
|
||||
);
|
||||
opts.series[0].data = defaultChartData.yoyData;
|
||||
opts.series[1].data = defaultChartData.momData;
|
||||
return opts;
|
||||
});
|
||||
|
||||
// 格式化日期参数
|
||||
const startDate = dayjs(props.dateRange[0]).format('YYYY-MM-DD');
|
||||
const endDate = dayjs(props.dateRange[1]).format('YYYY-MM-DD');
|
||||
|
@ -16,6 +16,13 @@ const props = defineProps<{
|
||||
|
||||
const appStore = useAppStore();
|
||||
|
||||
// 初始化默认数据(空图表)
|
||||
const defaultChartData = {
|
||||
dates: [],
|
||||
yoyData: [],
|
||||
momData: []
|
||||
};
|
||||
|
||||
// 初始化ECharts实例
|
||||
const { domRef, updateOptions } = useEcharts(() => ({
|
||||
tooltip: {
|
||||
@ -111,6 +118,16 @@ const { domRef, updateOptions } = useEcharts(() => ({
|
||||
// 从API获取趋势数据
|
||||
async function fetchTrendData() {
|
||||
try {
|
||||
// 显示默认空数据
|
||||
updateOptions(opts => {
|
||||
opts.xAxis.data = defaultChartData.dates.map(date =>
|
||||
dayjs(date).format('MM/DD')
|
||||
);
|
||||
opts.series[0].data = defaultChartData.yoyData;
|
||||
opts.series[1].data = defaultChartData.momData;
|
||||
return opts;
|
||||
});
|
||||
|
||||
// 格式化日期参数
|
||||
const startDate = dayjs(props.dateRange[0]).format('YYYY-MM-DD');
|
||||
const endDate = dayjs(props.dateRange[1]).format('YYYY-MM-DD');
|
||||
|
@ -61,6 +61,12 @@ const { domRef, updateOptions } = useEcharts(() => ({
|
||||
// 从API获取饼图数据
|
||||
async function fetchPieData() {
|
||||
try {
|
||||
// 显示默认数据0
|
||||
updateOptions(opts => {
|
||||
opts.series[0].data = [];
|
||||
return opts;
|
||||
});
|
||||
|
||||
// 格式化日期参数
|
||||
const startDate = dayjs(props.dateRange[0]).format('YYYY-MM-DD');
|
||||
const endDate = dayjs(props.dateRange[1]).format('YYYY-MM-DD');
|
||||
|
@ -61,6 +61,12 @@ const { domRef, updateOptions } = useEcharts(() => ({
|
||||
// 从API获取饼图数据
|
||||
async function fetchPieData() {
|
||||
try {
|
||||
// 显示默认数据0
|
||||
updateOptions(opts => {
|
||||
opts.series[0].data = [];
|
||||
return opts;
|
||||
});
|
||||
|
||||
// 格式化日期参数
|
||||
const startDate = dayjs(props.dateRange[0]).format('YYYY-MM-DD');
|
||||
const endDate = dayjs(props.dateRange[1]).format('YYYY-MM-DD');
|
||||
|