feat: 前端搭建
This commit is contained in:
15
Yi.Ai.Vue3/uno.config.ts
Normal file
15
Yi.Ai.Vue3/uno.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineConfig } from 'unocss';
|
||||
|
||||
export default defineConfig({
|
||||
// ...UnoCSS options
|
||||
// 一些实用的自定义组合
|
||||
shortcuts: {
|
||||
'm-0-auto': 'm-0 ma', // margin: 0 auto
|
||||
'wh-full': 'w-full h-full', // width: 100%, height: 100%
|
||||
'flex-center': 'flex justify-center items-center', // flex布局居中
|
||||
'flex-x-center': 'flex justify-center', // flex布局:主轴居中
|
||||
'flex-y-center': 'flex items-center', // flex布局:交叉轴居中
|
||||
'text-overflow': 'overflow-hidden whitespace-nowrap text-ellipsis', // 文本溢出显示省略号
|
||||
'text-break': 'whitespace-normal break-all break-words', // 文本溢出换行
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user