perf(style): use skill

This commit is contained in:
zhangheng
2026-04-29 16:27:07 +08:00
parent 9d9bf4ff7f
commit 8372fb4a64
8 changed files with 267 additions and 45 deletions

View File

@@ -1,5 +1,5 @@
// theme.ts
import { Button, createTheme, MantineColorsTuple } from "@mantine/core"
import { Button, Menu, createTheme, MantineColorsTuple } from "@mantine/core"
/* -------- 1. 自定义颜色(可删/可改) -------- */
const brandColors: MantineColorsTuple = [
@@ -151,5 +151,34 @@ export const theme = createTheme({
}
},
}),
Menu: Menu.extend({
defaultProps: {
radius: "sm",
shadow: "sm",
},
styles() {
return {
dropdown: {
border: "1px solid #E5E6EB",
borderRadius: "4px",
background: "#FFFFFF",
boxShadow: "0 8px 20px rgba(15, 23, 42, 0.08)",
padding: "4px",
},
item: {
minHeight: "28px",
borderRadius: "4px",
padding: "4px 8px",
fontSize: "12px",
lineHeight: "20px",
color: "#4E5969",
},
arrow: {
borderColor: "#E5E6EB",
background: "#FFFFFF",
},
}
},
}),
},
})