Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 11:59:19 +08:00
v3-admin-vite/uno.config.ts

26 lines
581 B
TypeScript
Raw Normal View History

2025-02-21 17:19:07 +08:00
import { defineConfig, presetAttributify, presetWind3 } from "unocss"
2022-05-12 19:07:54 +08:00
export default defineConfig({
2024-11-19 20:14:23 +08:00
// 预设
2022-05-12 19:07:54 +08:00
presets: [
2024-11-19 20:14:23 +08:00
// 属性化模式 & 无值的属性模式
2025-02-12 14:05:27 +08:00
presetAttributify({
prefix: "un-",
prefixedOnly: false
}),
2024-11-19 20:14:23 +08:00
// 默认预设
2025-02-21 17:19:07 +08:00
presetWind3({
2024-12-09 18:49:38 +08:00
important: "#app"
2024-12-09 18:33:59 +08:00
})
2022-05-12 19:07:54 +08:00
],
2024-11-19 20:14:23 +08:00
// 自定义规则
2025-02-12 14:05:27 +08:00
rules: [],
2024-11-19 20:14:23 +08:00
// 自定义快捷方式
2022-05-12 19:07:54 +08:00
shortcuts: {
2025-02-12 14:05:27 +08:00
"wh-full": "w-full h-full",
"flex-center": "flex justify-center items-center",
"flex-x-center": "flex justify-center",
"flex-y-center": "flex items-center"
2022-05-12 19:07:54 +08:00
}
})