Compare commits

..

1 Commits

Author SHA1 Message Date
xiaoxian521
9e21bc268b perf: 优化主题色选项风格 2025-12-17 18:36:34 +08:00
4 changed files with 23 additions and 20 deletions

View File

@@ -6,8 +6,7 @@ export default defineFakeRoute([
method: "post",
response: () => {
return {
code: 0,
message: "操作成功",
success: true,
data: {
list: [
{

View File

@@ -1,8 +1,7 @@
import { http } from "@/utils/http";
type Result = {
code: number;
message: string;
success: boolean;
data?: {
/** 列表数据 */
list: Array<any>;

View File

@@ -345,8 +345,8 @@ onUnmounted(() => removeMatchMedia);
@click="setLayoutThemeColor(item.themeColor)"
>
<el-icon
style="margin: 0.1em 0.1em 0 0"
:size="17"
class="mt-px"
:size="20"
:color="getThemeColor(item.themeColor)"
>
<IconifyIconOffline :icon="Check" />
@@ -538,17 +538,24 @@ onUnmounted(() => removeMatchMedia);
}
.theme-color {
height: 20px;
display: flex;
gap: 8px;
margin-top: 8px;
li {
float: left;
height: 20px;
margin-right: 8px;
position: relative;
width: 21px;
height: 21px;
cursor: pointer;
border-radius: 4px;
box-shadow: rgb(0 0 0 / 15%) 0 0 0 1px inset;
transition: all 0.2s ease;
&:nth-child(1) {
border: 1px solid #ddd;
&:hover {
box-shadow:
rgb(0 0 0 / 25%) 0 0 0 1px inset,
0 2px 4px rgb(0 0 0 / 15%);
transform: scale(1.1);
}
}
}

View File

@@ -38,14 +38,12 @@ const dataLoading = ref(true);
const getCardListData = async () => {
try {
const { code, data } = await getCardList();
if (code === 0) {
const { data } = await getCardList();
productList.value = data.list;
pagination.value = {
...pagination.value,
total: data.list.length
};
}
} catch (e) {
console.log(e);
} finally {