mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-22 11:59:19 +08:00
23 lines
595 B
TypeScript
23 lines
595 B
TypeScript
|
import { defineConfig, presetAttributify, presetUno } from "unocss"
|
||
|
|
||
|
export default defineConfig({
|
||
|
/** 排除 */
|
||
|
exclude: ["node_modules"],
|
||
|
/** 预设 */
|
||
|
presets: [
|
||
|
/** 属性化模式 & 无值的属性模式 */
|
||
|
presetAttributify(),
|
||
|
/** 默认预设 */
|
||
|
presetUno()
|
||
|
],
|
||
|
/** 自定义规则 */
|
||
|
rules: [["app-container", { padding: "20px" }]],
|
||
|
/** 自定义快捷方式 */
|
||
|
shortcuts: {
|
||
|
"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"
|
||
|
}
|
||
|
})
|