1 Star 0 Fork 14

unicodes/vue-uniapp-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
unocss.config.ts 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
郝先瑞 提交于 2024-12-04 00:53 . refactor: :recycle:界面优化
import presetWeapp from "unocss-preset-weapp";
import { extractorAttributify, transformerClass } from "unocss-preset-weapp/transformer";
const { presetWeappAttributify, transformerAttributify } = extractorAttributify();
export default {
presets: [
// https://github.com/MellowCo/unocss-preset-weapp
presetWeapp(),
// attributify autocomplete
presetWeappAttributify(),
],
shortcuts: [
{
"flex-center": "flex justify-center items-center flex-wrap",
"flex-start": "flex justify-start items-center",
"flex-end": "flex justify-end items-center",
"flex-col-center": "flex flex-col justify-center items-center",
"flex-between": "flex justify-between items-center",
"fixed-bottom": "fixed bottom-0 left-0 right-0",
"absolute-center": "absolute inset-0 flex justify-center items-center",
},
],
transformers: [
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify
transformerAttributify(),
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
transformerClass(),
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/unicodes/vue-uniapp-template.git
git@gitee.com:unicodes/vue-uniapp-template.git
unicodes
vue-uniapp-template
vue-uniapp-template
master

搜索帮助